You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.5 KiB
81 lines
2.5 KiB
window.rootPath = (function (src) {
|
|
src = document.currentScript
|
|
? document.currentScript.src
|
|
: document.scripts[document.scripts.length - 1].src;
|
|
return src.substring(0, src.lastIndexOf("/") + 1);
|
|
})();
|
|
|
|
layui.config({
|
|
base: rootPath + "module/",
|
|
version: "3.40.0"
|
|
}).extend({
|
|
admin: "admin", // 框架布局组件
|
|
common: "common", // 公共方法封装
|
|
menu: "menu", // 数据菜单组件
|
|
frame: "frame", // 内容页面组件
|
|
tab: "tab", // 多选项卡组件
|
|
echarts: "echarts", // 数据图表组件
|
|
echartsTheme: "echartsTheme",// 数据图表主题
|
|
encrypt: "encrypt", // 数据加密组件
|
|
select: "select", // 下拉多选组件
|
|
drawer: "drawer", // 抽屉弹层组件
|
|
notice: "notice", // 消息提示组件
|
|
step: "step", // 分布表单组件
|
|
tag: "tag", // 多标签页组件
|
|
popup: "popup", // 弹层封装
|
|
treetable: "treetable", // 树状表格
|
|
dtree: "dtree", // 树结构
|
|
tinymce: "tinymce/tinymce", // 编辑器
|
|
area: "area", // 省市级联
|
|
count: "count", // 数字滚动
|
|
topBar: "topBar", // 置顶组件
|
|
button: "button", // 加载按钮
|
|
design: "design", // 表单设计
|
|
card: "card", // 数据卡片组件
|
|
loading: "loading", // 加载组件
|
|
cropper: "cropper", // 裁剪组件
|
|
convert: "convert", // 数据转换
|
|
yaml: "yaml", // yaml 解析组件
|
|
context: "context", // 上下文组件
|
|
http: "http", // 网络请求组件
|
|
theme: "theme", // 主题转换
|
|
message: "message", // 通知组件
|
|
toast: "toast", // 消息通知
|
|
iconPicker: "iconPicker", // 图标选择
|
|
nprogress: "nprogress", // 进度过渡
|
|
watermark: "watermark/watermark", //水印组件
|
|
fullscreen: "fullscreen", //全屏组件
|
|
popover: "popover/popover" //汽泡组件
|
|
}).use(['layer', 'theme'], function () {
|
|
layui.theme.changeTheme(window, false);
|
|
});
|
|
|
|
window.getPersonLoginInfo = function ($) {
|
|
var personLoginInfo;
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: '/dsBase/base/getCurrentPersonInfo',
|
|
dataType: "json",
|
|
success: function (res) {
|
|
personLoginInfo = res;
|
|
}
|
|
})
|
|
return personLoginInfo;
|
|
}
|
|
|
|
window.getGlobalInfo = function ($, enCodeGlobalCode) {
|
|
var globalInfo;
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/dsBase/global/getGlobalByCodes",
|
|
data: {
|
|
"global_codes": enCodeGlobalCode
|
|
},
|
|
success: function (res) {
|
|
globalInfo = res;
|
|
}
|
|
});
|
|
return globalInfo;
|
|
} |