@bdsoft/element 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BdElement.js +22921 -0
- package/dist/cjs/_virtual/_plugin-vue_export-helper.cjs +9 -0
- package/dist/cjs/global/index.cjs +14 -0
- package/dist/cjs/index.cjs +18276 -0
- package/dist/cjs/node_modules/.pnpm/splitpanes@4.0.4_vue@3.5.25_typescript@5.4.5_/node_modules/splitpanes/dist/splitpanes.css.cjs +1 -0
- package/dist/cjs/src/assets/css/element.scss.cjs +1 -0
- package/dist/cjs/src/assets/css/layout.scss.cjs +1 -0
- package/dist/cjs/src/assets/css/tailwind.scss.cjs +1 -0
- package/dist/cjs/src/assets/images/ff.png.cjs +3 -0
- package/dist/cjs/src/assets/images/menu/add.png.cjs +3 -0
- package/dist/cjs/src/assets/images/menu/del.png.cjs +3 -0
- package/dist/cjs/src/assets/images/menu/edit.png.cjs +3 -0
- package/dist/cjs/src/components/3dcloudwords/index.cjs +344 -0
- package/dist/cjs/src/components/3dcloudwords/index.vue.cjs +125 -0
- package/dist/cjs/src/components/badge/index.vue.cjs +96 -0
- package/dist/cjs/src/components/badge/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/basic/Finish.vue.cjs +55 -0
- package/dist/cjs/src/components/basic/Finish.vue2.cjs +1 -0
- package/dist/cjs/src/components/button/index.vue.cjs +44 -0
- package/dist/cjs/src/components/carousel/index.vue.cjs +97 -0
- package/dist/cjs/src/components/carousel/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/chartconfig/index.vue.cjs +327 -0
- package/dist/cjs/src/components/contextMenu/index.vue.cjs +152 -0
- package/dist/cjs/src/components/contextMenu/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/countup/countUp.cjs +165 -0
- package/dist/cjs/src/components/countup/index.vue.cjs +116 -0
- package/dist/cjs/src/components/empty/assets/build.png.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/emptybg.gif.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/emptybg.png.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/emptybg2.jpg.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/emptybg3.jpg.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/wuxiao.png.cjs +3 -0
- package/dist/cjs/src/components/empty/assets/wuxiao.webp.cjs +3 -0
- package/dist/cjs/src/components/empty/building.vue.cjs +95 -0
- package/dist/cjs/src/components/empty/building.vue2.cjs +1 -0
- package/dist/cjs/src/components/empty/empty.vue.cjs +108 -0
- package/dist/cjs/src/components/empty/empty.vue2.cjs +1 -0
- package/dist/cjs/src/components/empty/invalid.vue.cjs +20 -0
- package/dist/cjs/src/components/empty/invalid.vue2.cjs +1 -0
- package/dist/cjs/src/components/error/Error.vue.cjs +47 -0
- package/dist/cjs/src/components/error/Error.vue2.cjs +1 -0
- package/dist/cjs/src/components/form/Form.vue.cjs +92 -0
- package/dist/cjs/src/components/form/FormItem.vue.cjs +107 -0
- package/dist/cjs/src/components/form/FormItem.vue2.cjs +3 -0
- package/dist/cjs/src/components/layout/bar.vue.cjs +45 -0
- package/dist/cjs/src/components/layout/bar.vue2.cjs +1 -0
- package/dist/cjs/src/components/layout/layout1.vue.cjs +79 -0
- package/dist/cjs/src/components/layout/layout2.vue.cjs +174 -0
- package/dist/cjs/src/components/layout/layout2.vue2.cjs +1 -0
- package/dist/cjs/src/components/layout/layout3.vue.cjs +111 -0
- package/dist/cjs/src/components/layout/layout3.vue2.cjs +1 -0
- package/dist/cjs/src/components/layout/layout4.vue.cjs +70 -0
- package/dist/cjs/src/components/layout/layout4.vue2.cjs +1 -0
- package/dist/cjs/src/components/layout/nav.vue.cjs +222 -0
- package/dist/cjs/src/components/layout/nav.vue2.cjs +1 -0
- package/dist/cjs/src/components/layout/nav.vue3.cjs +1 -0
- package/dist/cjs/src/components/loading/index.vue.cjs +26 -0
- package/dist/cjs/src/components/loading/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/notice/NoticeList.vue.cjs +202 -0
- package/dist/cjs/src/components/notice/NoticeList.vue2.cjs +1 -0
- package/dist/cjs/src/components/notice/NoticeListPaging.vue.cjs +343 -0
- package/dist/cjs/src/components/notice/NoticeListPaging.vue2.cjs +1 -0
- package/dist/cjs/src/components/notice/NoticeView.vue.cjs +134 -0
- package/dist/cjs/src/components/notice/NoticeView.vue2.cjs +1 -0
- package/dist/cjs/src/components/pagination/index.vue.cjs +97 -0
- package/dist/cjs/src/components/pagination/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/pagination/scroll-to.cjs +40 -0
- package/dist/cjs/src/components/progress/bar.vue.cjs +64 -0
- package/dist/cjs/src/components/progress/bar.vue2.cjs +1 -0
- package/dist/cjs/src/components/progress/progress.vue.cjs +51 -0
- package/dist/cjs/src/components/progress/progress.vue2.cjs +1 -0
- package/dist/cjs/src/components/statisticalCount/index.vue.cjs +88 -0
- package/dist/cjs/src/components/statisticalCount/index.vue2.cjs +1 -0
- package/dist/cjs/src/components/username/index.vue.cjs +59 -0
- package/dist/cjs/src/components/username/index.vue2.cjs +1 -0
- package/dist/cjs/src/index.cjs +68 -0
- package/dist/cjs/src/utils/coms/load.cjs +23 -0
- package/dist/cjs/src/utils/func.cjs +48 -0
- package/dist/cjs/src/utils/hookDialog.cjs +27 -0
- package/dist/cjs/src/utils/hookPage.cjs +42 -0
- package/dist/cjs/src/utils/message.cjs +164 -0
- package/dist/cjs/src/xm_components/HeadSearch/hook/hookSearch.cjs +64 -0
- package/dist/cjs/src/xm_components/HeadSearch/index.vue.cjs +139 -0
- package/dist/cjs/src/xm_components/HeadSearch/index.vue2.cjs +1 -0
- package/dist/cjs/src/xm_components/Milestone/index.vue.cjs +88 -0
- package/dist/cjs/src/xm_components/Milestone/index.vue2.cjs +1 -0
- package/dist/cjs/src/xm_components/MultiStatisticalCard/index.vue.cjs +88 -0
- package/dist/cjs/src/xm_components/MultiStatisticalCard/index.vue2.cjs +1 -0
- package/dist/cjs/src/xm_components/StatisticalCard/index.vue.cjs +163 -0
- package/dist/cjs/src/xm_components/StatisticalCard/index.vue2.cjs +1 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/global/index.js +14 -0
- package/dist/es/index.js +18247 -0
- package/dist/es/node_modules/.pnpm/splitpanes@4.0.4_vue@3.5.25_typescript@5.4.5_/node_modules/splitpanes/dist/splitpanes.css.js +1 -0
- package/dist/es/src/assets/css/element.scss.js +1 -0
- package/dist/es/src/assets/css/layout.scss.js +1 -0
- package/dist/es/src/assets/css/tailwind.scss.js +1 -0
- package/dist/es/src/assets/images/ff.png.js +4 -0
- package/dist/es/src/assets/images/menu/add.png.js +4 -0
- package/dist/es/src/assets/images/menu/del.png.js +4 -0
- package/dist/es/src/assets/images/menu/edit.png.js +4 -0
- package/dist/es/src/components/3dcloudwords/index.js +345 -0
- package/dist/es/src/components/3dcloudwords/index.vue.js +126 -0
- package/dist/es/src/components/badge/index.vue.js +97 -0
- package/dist/es/src/components/badge/index.vue2.js +1 -0
- package/dist/es/src/components/basic/Finish.vue.js +56 -0
- package/dist/es/src/components/basic/Finish.vue2.js +1 -0
- package/dist/es/src/components/button/index.vue.js +45 -0
- package/dist/es/src/components/carousel/index.vue.js +98 -0
- package/dist/es/src/components/carousel/index.vue2.js +1 -0
- package/dist/es/src/components/chartconfig/index.vue.js +328 -0
- package/dist/es/src/components/contextMenu/index.vue.js +153 -0
- package/dist/es/src/components/contextMenu/index.vue2.js +1 -0
- package/dist/es/src/components/countup/countUp.js +165 -0
- package/dist/es/src/components/countup/index.vue.js +117 -0
- package/dist/es/src/components/empty/assets/build.png.js +4 -0
- package/dist/es/src/components/empty/assets/emptybg.gif.js +4 -0
- package/dist/es/src/components/empty/assets/emptybg.png.js +4 -0
- package/dist/es/src/components/empty/assets/emptybg2.jpg.js +4 -0
- package/dist/es/src/components/empty/assets/emptybg3.jpg.js +4 -0
- package/dist/es/src/components/empty/assets/wuxiao.png.js +4 -0
- package/dist/es/src/components/empty/assets/wuxiao.webp.js +4 -0
- package/dist/es/src/components/empty/building.vue.js +95 -0
- package/dist/es/src/components/empty/building.vue2.js +1 -0
- package/dist/es/src/components/empty/empty.vue.js +108 -0
- package/dist/es/src/components/empty/empty.vue2.js +1 -0
- package/dist/es/src/components/empty/invalid.vue.js +21 -0
- package/dist/es/src/components/empty/invalid.vue2.js +1 -0
- package/dist/es/src/components/error/Error.vue.js +48 -0
- package/dist/es/src/components/error/Error.vue2.js +1 -0
- package/dist/es/src/components/form/Form.vue.js +93 -0
- package/dist/es/src/components/form/FormItem.vue.js +108 -0
- package/dist/es/src/components/form/FormItem.vue2.js +4 -0
- package/dist/es/src/components/layout/bar.vue.js +46 -0
- package/dist/es/src/components/layout/bar.vue2.js +1 -0
- package/dist/es/src/components/layout/layout1.vue.js +80 -0
- package/dist/es/src/components/layout/layout2.vue.js +175 -0
- package/dist/es/src/components/layout/layout2.vue2.js +1 -0
- package/dist/es/src/components/layout/layout3.vue.js +112 -0
- package/dist/es/src/components/layout/layout3.vue2.js +1 -0
- package/dist/es/src/components/layout/layout4.vue.js +71 -0
- package/dist/es/src/components/layout/layout4.vue2.js +1 -0
- package/dist/es/src/components/layout/nav.vue.js +223 -0
- package/dist/es/src/components/layout/nav.vue2.js +1 -0
- package/dist/es/src/components/layout/nav.vue3.js +1 -0
- package/dist/es/src/components/loading/index.vue.js +27 -0
- package/dist/es/src/components/loading/index.vue2.js +1 -0
- package/dist/es/src/components/notice/NoticeList.vue.js +203 -0
- package/dist/es/src/components/notice/NoticeList.vue2.js +1 -0
- package/dist/es/src/components/notice/NoticeListPaging.vue.js +344 -0
- package/dist/es/src/components/notice/NoticeListPaging.vue2.js +1 -0
- package/dist/es/src/components/notice/NoticeView.vue.js +135 -0
- package/dist/es/src/components/notice/NoticeView.vue2.js +1 -0
- package/dist/es/src/components/pagination/index.vue.js +98 -0
- package/dist/es/src/components/pagination/index.vue2.js +1 -0
- package/dist/es/src/components/pagination/scroll-to.js +40 -0
- package/dist/es/src/components/progress/bar.vue.js +65 -0
- package/dist/es/src/components/progress/bar.vue2.js +1 -0
- package/dist/es/src/components/progress/progress.vue.js +52 -0
- package/dist/es/src/components/progress/progress.vue2.js +1 -0
- package/dist/es/src/components/statisticalCount/index.vue.js +89 -0
- package/dist/es/src/components/statisticalCount/index.vue2.js +1 -0
- package/dist/es/src/components/username/index.vue.js +60 -0
- package/dist/es/src/components/username/index.vue2.js +1 -0
- package/dist/es/src/index.js +68 -0
- package/dist/es/src/utils/coms/load.js +24 -0
- package/dist/es/src/utils/func.js +48 -0
- package/dist/es/src/utils/hookDialog.js +27 -0
- package/dist/es/src/utils/hookPage.js +42 -0
- package/dist/es/src/utils/message.js +153 -0
- package/dist/es/src/xm_components/HeadSearch/hook/hookSearch.js +65 -0
- package/dist/es/src/xm_components/HeadSearch/index.vue.js +140 -0
- package/dist/es/src/xm_components/HeadSearch/index.vue2.js +1 -0
- package/dist/es/src/xm_components/Milestone/index.vue.js +89 -0
- package/dist/es/src/xm_components/Milestone/index.vue2.js +1 -0
- package/dist/es/src/xm_components/MultiStatisticalCard/index.vue.js +89 -0
- package/dist/es/src/xm_components/MultiStatisticalCard/index.vue2.js +1 -0
- package/dist/es/src/xm_components/StatisticalCard/index.vue.js +164 -0
- package/dist/es/src/xm_components/StatisticalCard/index.vue2.js +1 -0
- package/package.json +26 -10
- package/index.html +0 -13
- package/vite.config.js +0 -51
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function getUrlKey(name, url) {
|
|
4
|
+
return decodeURIComponent((new RegExp("[?|&]" + name + "=([^&;]+?)(&|#|;|$)").exec(url || location.href) || [, ""])[1].replace(/\+/g, "%20")) || null;
|
|
5
|
+
}
|
|
6
|
+
function S4() {
|
|
7
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
8
|
+
}
|
|
9
|
+
function NewGuid() {
|
|
10
|
+
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
|
|
11
|
+
}
|
|
12
|
+
const debounce = (func, delay) => {
|
|
13
|
+
let timer;
|
|
14
|
+
return (...args) => {
|
|
15
|
+
clearTimeout(timer);
|
|
16
|
+
timer = setTimeout(() => {
|
|
17
|
+
func(...args);
|
|
18
|
+
}, delay);
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
function parseTime(time, format) {
|
|
22
|
+
if (!time)
|
|
23
|
+
return "";
|
|
24
|
+
let t = new Date(time);
|
|
25
|
+
let tf = function(i) {
|
|
26
|
+
return (i < 10 ? "0" : "") + i;
|
|
27
|
+
};
|
|
28
|
+
return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function(a) {
|
|
29
|
+
switch (a) {
|
|
30
|
+
case "yyyy":
|
|
31
|
+
return tf(t.getFullYear());
|
|
32
|
+
case "MM":
|
|
33
|
+
return tf(t.getMonth() + 1);
|
|
34
|
+
case "mm":
|
|
35
|
+
return tf(t.getMinutes());
|
|
36
|
+
case "dd":
|
|
37
|
+
return tf(t.getDate());
|
|
38
|
+
case "HH":
|
|
39
|
+
return tf(t.getHours());
|
|
40
|
+
case "ss":
|
|
41
|
+
return tf(t.getSeconds());
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
exports.NewGuid = NewGuid;
|
|
46
|
+
exports.debounce = debounce;
|
|
47
|
+
exports.getUrlKey = getUrlKey;
|
|
48
|
+
exports.parseTime = parseTime;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
function useDialog(showFn) {
|
|
5
|
+
const visible = vue.ref(false);
|
|
6
|
+
const openParms = vue.ref({});
|
|
7
|
+
const extParms = vue.ref({});
|
|
8
|
+
const showDialog = (parm, ext) => {
|
|
9
|
+
visible.value = true;
|
|
10
|
+
openParms.value = parm;
|
|
11
|
+
extParms.value = ext;
|
|
12
|
+
vue.nextTick(() => {
|
|
13
|
+
showFn && showFn();
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const hideDialog = () => {
|
|
17
|
+
visible.value = false;
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
visible,
|
|
21
|
+
openParms,
|
|
22
|
+
extParms,
|
|
23
|
+
showDialog,
|
|
24
|
+
hideDialog
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.useDialog = useDialog;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
function usePage(changeFn) {
|
|
5
|
+
let page = vue.reactive({
|
|
6
|
+
// 数据服务分页参数值
|
|
7
|
+
pageHeader: {
|
|
8
|
+
startindex: 0,
|
|
9
|
+
pagesize: 30,
|
|
10
|
+
carrytotal: true
|
|
11
|
+
},
|
|
12
|
+
currentPage: 1,
|
|
13
|
+
pageSizes: [30, 60, 90],
|
|
14
|
+
pageSize: 30,
|
|
15
|
+
total: 0
|
|
16
|
+
});
|
|
17
|
+
function handleSizeChange(val) {
|
|
18
|
+
page.pageSize = val;
|
|
19
|
+
changeFn();
|
|
20
|
+
}
|
|
21
|
+
function handleCurrentChange(val) {
|
|
22
|
+
page.currentPage = val;
|
|
23
|
+
page.pageHeader.startindex = val - 1;
|
|
24
|
+
changeFn();
|
|
25
|
+
}
|
|
26
|
+
function handlePagination(pageobj) {
|
|
27
|
+
let pageIndex = pageobj.page;
|
|
28
|
+
let pageSize = pageobj.pageSize;
|
|
29
|
+
page.currentPage = pageIndex;
|
|
30
|
+
page.pageSize = pageSize;
|
|
31
|
+
page.pageHeader.startindex = (pageIndex - 1) * pageSize;
|
|
32
|
+
page.pageHeader.pagesize = pageSize;
|
|
33
|
+
changeFn();
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...vue.toRefs(page),
|
|
37
|
+
handleSizeChange,
|
|
38
|
+
handleCurrentChange,
|
|
39
|
+
handlePagination
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.usePage = usePage;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
|
+
const ElementPlusIconsVue = require("@element-plus/icons-vue");
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
function showsuccess(msg, duration = 3e3, showClose = true) {
|
|
7
|
+
elementPlus.ElMessage({
|
|
8
|
+
message: msg || "保存成功",
|
|
9
|
+
type: "success",
|
|
10
|
+
duration,
|
|
11
|
+
showClose
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function showerror(msg, duration = 3e3, showClose = true) {
|
|
15
|
+
elementPlus.ElMessage({
|
|
16
|
+
message: msg || "保存失败",
|
|
17
|
+
type: "error",
|
|
18
|
+
duration,
|
|
19
|
+
showClose
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function showwarning(msg, duration = 3e3, showClose = true, clostFn) {
|
|
23
|
+
elementPlus.ElMessage({
|
|
24
|
+
message: msg || "警告内容",
|
|
25
|
+
type: "warning",
|
|
26
|
+
duration,
|
|
27
|
+
showClose,
|
|
28
|
+
onClose: clostFn
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function showinfo(msg, duration = 3e3, showClose = true) {
|
|
32
|
+
elementPlus.ElMessage({
|
|
33
|
+
message: msg || "提示信息",
|
|
34
|
+
duration,
|
|
35
|
+
showClose
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function hideloading(msg) {
|
|
39
|
+
elementPlus.ElMessage.closeAll();
|
|
40
|
+
}
|
|
41
|
+
function showconfirm(done, confirmtitle = "确认关闭?", showtext = { title: "提示", confirmButtonText: "确定", cancelButtonText: "取消" }, cancle) {
|
|
42
|
+
return elementPlus.ElMessageBox.confirm(confirmtitle, showtext.title, {
|
|
43
|
+
confirmButtonText: showtext.confirmButtonText,
|
|
44
|
+
cancelButtonText: showtext.cancelButtonText,
|
|
45
|
+
distinguishCancelAndClose: true,
|
|
46
|
+
type: "warning"
|
|
47
|
+
}).then((_) => {
|
|
48
|
+
done(_);
|
|
49
|
+
}).catch((_) => {
|
|
50
|
+
console.info("showconfirm catch");
|
|
51
|
+
console.info(_);
|
|
52
|
+
cancle && cancle(_);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function shownotiinfo(msg, type = "info", title = "提示", position = "bottom-right", dangerouslyUseHTMLString = false) {
|
|
56
|
+
elementPlus.ElNotification({
|
|
57
|
+
title,
|
|
58
|
+
position,
|
|
59
|
+
message: msg,
|
|
60
|
+
dangerouslyUseHTMLString,
|
|
61
|
+
type
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function showconfirminfo(msg = "确认删除?", showtext = { type: "", position: "bottom-right", title: "提示", dangerouslyUseHTMLString: true }, fn1, fn2) {
|
|
65
|
+
const btn1 = vue.h(elementPlus.ElButton, {
|
|
66
|
+
innerText: "立即刷新",
|
|
67
|
+
type: "primary",
|
|
68
|
+
size: "small",
|
|
69
|
+
style: { marginLeft: "16px", float: "right" },
|
|
70
|
+
onclick: (_) => {
|
|
71
|
+
fn1(_);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const btn2 = vue.h(elementPlus.ElButton, {
|
|
75
|
+
innerText: "暂不更新",
|
|
76
|
+
style: { float: "right" },
|
|
77
|
+
size: "small",
|
|
78
|
+
onclick: (_) => {
|
|
79
|
+
fn2(_);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const div = vue.h("div", { style: { marginLeft: "8px", marginBottom: "16px", marginTop: "16px" } }, msg);
|
|
83
|
+
const icon1 = vue.h(ElementPlusIconsVue.Warning);
|
|
84
|
+
const icon = vue.h(elementPlus.ElIcon, { style: { fontSize: "18px" } }, [icon1]);
|
|
85
|
+
const msgDiv = vue.h("div", { style: { display: "flex", alignItems: "center" } }, [icon, div]);
|
|
86
|
+
elementPlus.ElNotification({
|
|
87
|
+
class: "custom-notification",
|
|
88
|
+
title: showtext.title,
|
|
89
|
+
position: showtext.position,
|
|
90
|
+
dangerouslyUseHTMLString: showtext.dangerouslyUseHTMLString,
|
|
91
|
+
message: vue.h("div", [msgDiv, btn1, btn2]),
|
|
92
|
+
type: showtext.type,
|
|
93
|
+
duration: 0,
|
|
94
|
+
showClose: false
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function showalert(done, alertMsg = "This is a message", type = "info", showtext = { title: "提示", confirmButtonText: "确定" }) {
|
|
98
|
+
return elementPlus.ElMessageBox.alert(alertMsg, showtext.title, {
|
|
99
|
+
confirmButtonText: showtext.confirmButtonText,
|
|
100
|
+
type
|
|
101
|
+
}).then((_) => {
|
|
102
|
+
done(_);
|
|
103
|
+
}).catch((_) => {
|
|
104
|
+
console.info("showalert catch");
|
|
105
|
+
console.info(_);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function confirm(confirmtitle = "确认关闭?") {
|
|
109
|
+
return elementPlus.ElMessageBox.confirm(confirmtitle);
|
|
110
|
+
}
|
|
111
|
+
function showloading(msg, duration = 0, showClose = true) {
|
|
112
|
+
elementPlus.ElMessage({
|
|
113
|
+
// <svg viewBox="0 0 1024 1024" focusable="false" data-icon="loading" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"></path></svg>
|
|
114
|
+
icon: "loadsvg",
|
|
115
|
+
message: msg || "正在保存,请稍后...",
|
|
116
|
+
duration,
|
|
117
|
+
showClose
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
let loadingObj = null;
|
|
121
|
+
function showLoading(msg, parm) {
|
|
122
|
+
let _parm = parm || {};
|
|
123
|
+
loadingObj = elementPlus.ElLoading.service({
|
|
124
|
+
// 默认配置
|
|
125
|
+
lock: true,
|
|
126
|
+
text: "加载中...",
|
|
127
|
+
spinner: "el-icon-loading",
|
|
128
|
+
background: "rgba(0, 0, 0, 0.7)",
|
|
129
|
+
// 展开 _parm,其属性会覆盖上面的默认配置
|
|
130
|
+
..._parm
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function closeLoading() {
|
|
134
|
+
loadingObj.close();
|
|
135
|
+
}
|
|
136
|
+
Object.defineProperty(exports, "ElLoading", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: () => elementPlus.ElLoading
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "ElMessage", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: () => elementPlus.ElMessage
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "ElMessageBox", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: () => elementPlus.ElMessageBox
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "ElNotification", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: () => elementPlus.ElNotification
|
|
151
|
+
});
|
|
152
|
+
exports.closeLoading = closeLoading;
|
|
153
|
+
exports.confirm = confirm;
|
|
154
|
+
exports.hideloading = hideloading;
|
|
155
|
+
exports.showLoading = showLoading;
|
|
156
|
+
exports.showalert = showalert;
|
|
157
|
+
exports.showconfirm = showconfirm;
|
|
158
|
+
exports.showconfirminfo = showconfirminfo;
|
|
159
|
+
exports.showerror = showerror;
|
|
160
|
+
exports.showinfo = showinfo;
|
|
161
|
+
exports.showloading = showloading;
|
|
162
|
+
exports.shownotiinfo = shownotiinfo;
|
|
163
|
+
exports.showsuccess = showsuccess;
|
|
164
|
+
exports.showwarning = showwarning;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
function useSearrch(prefix = "") {
|
|
4
|
+
const searchkeysArr = vue.ref([]);
|
|
5
|
+
const search_drop = vue.ref(false);
|
|
6
|
+
const keyName = vue.ref("");
|
|
7
|
+
const getStorageKeys = () => {
|
|
8
|
+
var keys = localStorage.getItem("searchRerportkeys");
|
|
9
|
+
if (keys && keys !== "undefined" && keys !== "null") {
|
|
10
|
+
keys = JSON.parse(keys);
|
|
11
|
+
return keys;
|
|
12
|
+
}
|
|
13
|
+
return [];
|
|
14
|
+
};
|
|
15
|
+
const focusfns = (type) => {
|
|
16
|
+
searchkeysArr.value = getStorageKeys();
|
|
17
|
+
if (type === 1 && searchkeysArr.value.length > 0) {
|
|
18
|
+
search_drop.value = true;
|
|
19
|
+
} else {
|
|
20
|
+
setTimeout(function() {
|
|
21
|
+
vue.nextTick(function() {
|
|
22
|
+
search_drop.value = false;
|
|
23
|
+
});
|
|
24
|
+
}, 200);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const setSearchKeys = (key) => {
|
|
28
|
+
if (!key || key == null || key == "" || key == "null")
|
|
29
|
+
return;
|
|
30
|
+
let keys = localStorage.getItem("searchRerportkeys");
|
|
31
|
+
if (keys && keys !== "undefined" && keys !== "{}") {
|
|
32
|
+
keys = JSON.parse(keys);
|
|
33
|
+
if (keys.length > 5 && keys instanceof Array) {
|
|
34
|
+
keys.splice(0, 1);
|
|
35
|
+
}
|
|
36
|
+
keys.push(key);
|
|
37
|
+
let keys2 = [...new Set(keys)];
|
|
38
|
+
localStorage.setItem("searchRerportkeys", JSON.stringify(keys2));
|
|
39
|
+
} else {
|
|
40
|
+
keys = [];
|
|
41
|
+
keys.push(key);
|
|
42
|
+
localStorage.setItem("searchRerportkeys", JSON.stringify(keys));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const deleteSearchItem = (index) => {
|
|
46
|
+
debugger;
|
|
47
|
+
searchkeysArr.value.splice(index, 1);
|
|
48
|
+
localStorage.setItem("searchRerportkeys", JSON.stringify(searchkeysArr.value));
|
|
49
|
+
};
|
|
50
|
+
const setTxt = (val) => {
|
|
51
|
+
keyName.value = val;
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
keyName,
|
|
55
|
+
searchkeysArr,
|
|
56
|
+
search_drop,
|
|
57
|
+
focusfns,
|
|
58
|
+
setTxt,
|
|
59
|
+
deleteSearchItem,
|
|
60
|
+
setSearchKeys,
|
|
61
|
+
getStorageKeys
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
module.exports = useSearrch;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const func = require("../../utils/func.cjs");
|
|
4
|
+
const hookSearch = require("./hook/hookSearch.cjs");
|
|
5
|
+
require("./index.vue2.cjs");
|
|
6
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
7
|
+
const _hoisted_1 = { class: "search_warp" };
|
|
8
|
+
const _hoisted_2 = ["src"];
|
|
9
|
+
const _hoisted_3 = { class: "ipt_search" };
|
|
10
|
+
const _hoisted_4 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "search_drop"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_5 = ["onClick"];
|
|
15
|
+
const _hoisted_6 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "ipt_search_tip"
|
|
18
|
+
};
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "index",
|
|
21
|
+
props: {
|
|
22
|
+
ismodule: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
// logo url
|
|
27
|
+
logoUrl: {
|
|
28
|
+
type: String
|
|
29
|
+
// default: 'http://123.129.65.205:18012/RabbitDocService/Doc/ptIcon/View?filePath=20250911/006.png'
|
|
30
|
+
},
|
|
31
|
+
placeholderTxt: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "请输入搜索内容"
|
|
34
|
+
},
|
|
35
|
+
groupData: {
|
|
36
|
+
type: Object
|
|
37
|
+
},
|
|
38
|
+
searchNum: {
|
|
39
|
+
type: Number
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
emits: ["getSearchList"],
|
|
43
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
44
|
+
const emits = __emit;
|
|
45
|
+
const { keyName, searchkeysArr, search_drop, focusfns, setSearchKeys, deleteSearchItem, setTxt } = hookSearch();
|
|
46
|
+
const props = __props;
|
|
47
|
+
const gohome = () => {
|
|
48
|
+
};
|
|
49
|
+
vue.onMounted(() => {
|
|
50
|
+
let keymc = func.getUrlKey("txtKey") || "";
|
|
51
|
+
setTxt(keymc);
|
|
52
|
+
});
|
|
53
|
+
const getModuleList = (isfirst = false) => {
|
|
54
|
+
focusfns(-1);
|
|
55
|
+
setSearchKeys(keyName.value || "");
|
|
56
|
+
emits("getSearchList", keyName.value, isfirst);
|
|
57
|
+
};
|
|
58
|
+
const debouncedClick = func.debounce(getModuleList, 500);
|
|
59
|
+
__expose({
|
|
60
|
+
setTxt,
|
|
61
|
+
debouncedClick
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
|
65
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
66
|
+
const _component_Delete = vue.resolveComponent("Delete");
|
|
67
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
68
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
69
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
70
|
+
__props.logoUrl ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
71
|
+
key: 0,
|
|
72
|
+
src: __props.logoUrl,
|
|
73
|
+
style: { "width": "40px", "height": "40px", "margin-right": "5px", "vertical-align": "middle", "cursor": "pointer" },
|
|
74
|
+
alt: "",
|
|
75
|
+
onClick: gohome
|
|
76
|
+
}, null, 8, _hoisted_2)) : vue.createCommentVNode("", true),
|
|
77
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
78
|
+
vue.createVNode(_component_el_input, {
|
|
79
|
+
placeholder: __props.placeholderTxt,
|
|
80
|
+
modelValue: vue.unref(keyName),
|
|
81
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(keyName) ? keyName.value = $event : null),
|
|
82
|
+
clearable: "",
|
|
83
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => vue.unref(focusfns)(1)),
|
|
84
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => vue.unref(focusfns)(-1)),
|
|
85
|
+
onKeyup: vue.withKeys(vue.unref(debouncedClick), ["enter"])
|
|
86
|
+
}, {
|
|
87
|
+
append: vue.withCtx(() => [
|
|
88
|
+
vue.createVNode(_component_el_button, {
|
|
89
|
+
class: "SearchBtn",
|
|
90
|
+
onClick: vue.unref(debouncedClick),
|
|
91
|
+
type: "primary",
|
|
92
|
+
icon: "Search"
|
|
93
|
+
}, {
|
|
94
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
95
|
+
vue.createTextVNode("搜索", -1)
|
|
96
|
+
])]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["onClick"])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["placeholder", "modelValue", "onKeyup"]),
|
|
102
|
+
vue.unref(searchkeysArr) && vue.unref(searchkeysArr) != "" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
103
|
+
vue.createElementVNode("ul", null, [
|
|
104
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(searchkeysArr), (item, index2) => {
|
|
105
|
+
return vue.openBlock(), vue.createElementBlock("li", { key: index2 }, [
|
|
106
|
+
vue.createElementVNode("span", {
|
|
107
|
+
class: "search-item-text",
|
|
108
|
+
onClick: ($event) => vue.unref(setTxt)(item)
|
|
109
|
+
}, vue.toDisplayString(item), 9, _hoisted_5),
|
|
110
|
+
vue.createVNode(_component_el_icon, {
|
|
111
|
+
class: "delete-btn",
|
|
112
|
+
onClick: vue.withModifiers(($event) => vue.unref(deleteSearchItem)(index2), ["stop"])
|
|
113
|
+
}, {
|
|
114
|
+
default: vue.withCtx(() => [
|
|
115
|
+
vue.createVNode(_component_Delete)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["onClick"])
|
|
119
|
+
]);
|
|
120
|
+
}), 128))
|
|
121
|
+
])
|
|
122
|
+
], 512)), [
|
|
123
|
+
[vue.vShow, vue.unref(search_drop)]
|
|
124
|
+
]) : vue.createCommentVNode("", true)
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
__props.groupData && __props.groupData != "" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
128
|
+
_cache[4] || (_cache[4] = vue.createTextVNode(" 搜索结果数: ", -1)),
|
|
129
|
+
vue.withDirectives(vue.createElementVNode("span", null, vue.toDisplayString(Object.keys(__props.groupData).length) + "个系统, ", 513), [
|
|
130
|
+
[vue.vShow, props.ismodule]
|
|
131
|
+
]),
|
|
132
|
+
vue.createTextVNode(" " + vue.toDisplayString(__props.searchNum) + " 个相关页面模块 ", 1)
|
|
133
|
+
])) : vue.createCommentVNode("", true)
|
|
134
|
+
], 64);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const index = /* @__PURE__ */ _pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-4f36646f"]]);
|
|
139
|
+
module.exports = index;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const empty = require("../../components/empty/empty.vue.cjs");
|
|
4
|
+
require("./index.vue2.cjs");
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
+
const _hoisted_1 = { class: "milestone-container" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "milestone-track"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = { class: "milestone-info" };
|
|
12
|
+
const _hoisted_4 = { class: "milestone-name" };
|
|
13
|
+
const _hoisted_5 = { class: "milestone-info" };
|
|
14
|
+
const _hoisted_6 = { class: "milestone-name" };
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
// 标注色
|
|
19
|
+
bgColor: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "radial-gradient(circle, rgba(78, 171, 237, 1) 0%, rgb(81, 151, 244) 51%, rgba(78, 171, 237, 1) 100%)"
|
|
22
|
+
},
|
|
23
|
+
milestones: {
|
|
24
|
+
type: Array,
|
|
25
|
+
required: true,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
hideLast: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
vue.useCssVars((_ctx) => ({
|
|
35
|
+
"c05aa1d0": __props.bgColor
|
|
36
|
+
}));
|
|
37
|
+
const props = __props;
|
|
38
|
+
vue.computed(() => !props.hideLast);
|
|
39
|
+
const calculatePosition = (startDate) => {
|
|
40
|
+
if (props.milestones.length === 0)
|
|
41
|
+
return 0;
|
|
42
|
+
const firstDate = new Date(props.milestones[0].rq);
|
|
43
|
+
const lastDate = new Date(props.milestones[props.milestones.length - 1].rq);
|
|
44
|
+
const currentDate = new Date(startDate);
|
|
45
|
+
const totalDays = (lastDate - firstDate) / (1e3 * 60 * 60 * 24);
|
|
46
|
+
const daysPassed = (currentDate - firstDate) / (1e3 * 60 * 60 * 24);
|
|
47
|
+
return daysPassed / totalDays * 100;
|
|
48
|
+
};
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
51
|
+
__props.milestones && __props.milestones != "" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
52
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.milestones, (item, index2) => {
|
|
53
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
+
key: index2,
|
|
55
|
+
class: vue.normalizeClass(["milestone-item", { "odd-item": index2 % 2 === 0, "even-item": index2 % 2 !== 0 }]),
|
|
56
|
+
style: vue.normalizeStyle({
|
|
57
|
+
left: `${calculatePosition(item.rq)}%`,
|
|
58
|
+
opacity: index2 === __props.milestones.length - 1 && __props.hideLast ? "0" : "1"
|
|
59
|
+
})
|
|
60
|
+
}, [
|
|
61
|
+
index2 % 2 === 0 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
62
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
63
|
+
vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(item.name), 1)
|
|
64
|
+
]),
|
|
65
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "milestone-line" }, null, -1)),
|
|
66
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "milestone-dot" }, null, -1))
|
|
67
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
68
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "milestone-dot" }, null, -1)),
|
|
69
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "milestone-line" }, null, -1)),
|
|
70
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
71
|
+
vue.createElementVNode("div", _hoisted_6, vue.toDisplayString(item.name), 1)
|
|
72
|
+
])
|
|
73
|
+
], 64))
|
|
74
|
+
], 6);
|
|
75
|
+
}), 128)),
|
|
76
|
+
_cache[4] || (_cache[4] = vue.createElementVNode("div", { class: "with-arrow" }, null, -1))
|
|
77
|
+
])) : (vue.openBlock(), vue.createBlock(empty, {
|
|
78
|
+
key: 1,
|
|
79
|
+
imgType: "svg",
|
|
80
|
+
imgSize: 50,
|
|
81
|
+
des: "没有查询到相关数据"
|
|
82
|
+
}))
|
|
83
|
+
]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const index = /* @__PURE__ */ _pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-66562b87"]]);
|
|
88
|
+
module.exports = index;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const index$1 = require("../../components/countup/index.vue.cjs");
|
|
4
|
+
require("./index.vue2.cjs");
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
height: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "200px"
|
|
12
|
+
},
|
|
13
|
+
// 指标数据列表
|
|
14
|
+
indicators: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["indicator-click"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const emit = __emit;
|
|
22
|
+
vue.ref({});
|
|
23
|
+
const props = __props;
|
|
24
|
+
const handleItemClick = (item, index2) => {
|
|
25
|
+
if (item.onClick) {
|
|
26
|
+
item.onClick(item, index2);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const handleIndicatorClick = (item, index2) => {
|
|
30
|
+
emit("indicator-click", {
|
|
31
|
+
item,
|
|
32
|
+
// 点击的指标项完整数据
|
|
33
|
+
index: index2
|
|
34
|
+
// 点击的指标项索引
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
vue.watch(
|
|
38
|
+
() => props.indicators,
|
|
39
|
+
(newIndicators) => {
|
|
40
|
+
if (newIndicators && newIndicators.length > 0)
|
|
41
|
+
;
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
immediate: true
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
vue.onMounted(() => {
|
|
48
|
+
});
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
|
51
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
|
52
|
+
return vue.openBlock(), vue.createBlock(_component_el_row, {
|
|
53
|
+
gutter: 0,
|
|
54
|
+
class: "basicwarp",
|
|
55
|
+
style: vue.normalizeStyle({ height: __props.height })
|
|
56
|
+
}, {
|
|
57
|
+
default: vue.withCtx(() => [
|
|
58
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.indicators, (item, index2) => {
|
|
59
|
+
return vue.openBlock(), vue.createBlock(_component_el_col, {
|
|
60
|
+
key: index2,
|
|
61
|
+
onClick: ($event) => handleIndicatorClick(item, index2),
|
|
62
|
+
md: item.colSize || 4,
|
|
63
|
+
class: "text-center mb-4",
|
|
64
|
+
style: { "cursor": "pointer" }
|
|
65
|
+
}, {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.createVNode(index$1, {
|
|
68
|
+
class: "infor-intro-num user-created-count",
|
|
69
|
+
title: item.title,
|
|
70
|
+
"id-name": item.key,
|
|
71
|
+
endVal: item.value,
|
|
72
|
+
countSize: "30px",
|
|
73
|
+
color: item.valueColor || "",
|
|
74
|
+
countWeight: 700,
|
|
75
|
+
onClick: ($event) => handleItemClick(item, index2)
|
|
76
|
+
}, null, 8, ["title", "id-name", "endVal", "color", "onClick"])
|
|
77
|
+
]),
|
|
78
|
+
_: 2
|
|
79
|
+
}, 1032, ["onClick", "md"]);
|
|
80
|
+
}), 128))
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["style"]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const index = /* @__PURE__ */ _pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-3ca6df40"]]);
|
|
88
|
+
module.exports = index;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|