@xjw_/vue3-npm-system 1.3.0 → 1.5.0
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/index.es.js +1079 -140
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1077 -138
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/vue3-npm-system.css +167 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Cookies from "js-cookie";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import { ElMessage, ElInput, ElOption, ElCascader, ElDatePicker, ElSelect } from "element-plus";
|
|
4
|
-
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, createElementVNode, ref, watch, resolveComponent, createBlock, provide, withCtx, createVNode, normalizeStyle, renderSlot, inject, normalizeClass, createCommentVNode, Fragment, renderList, createSlots, getCurrentInstance, toDisplayString, useSlots, onMounted, unref, withKeys, createTextVNode, withDirectives, resolveDynamicComponent, vShow, nextTick, normalizeProps, guardReactiveProps } from "vue";
|
|
3
|
+
import { ElMessage, ElInput, ElOption, ElCascader, ElDatePicker, ElSelect, ElMessageBox } from "element-plus";
|
|
4
|
+
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, createElementVNode, ref, watch, resolveComponent, createBlock, provide, withCtx, createVNode, normalizeStyle, renderSlot, inject, normalizeClass, createCommentVNode, Fragment, renderList, createSlots, getCurrentInstance, toDisplayString, useSlots, onMounted, unref, withKeys, createTextVNode, withDirectives, resolveDynamicComponent, vShow, nextTick, normalizeProps, guardReactiveProps, reactive, withModifiers } from "vue";
|
|
5
5
|
function debounce$1(func, wait) {
|
|
6
6
|
let timeout = null;
|
|
7
7
|
return function(...args) {
|
|
@@ -282,8 +282,8 @@ const directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
282
282
|
registerDirectives,
|
|
283
283
|
throttle
|
|
284
284
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
285
|
-
const _hoisted_1$
|
|
286
|
-
const _sfc_main$
|
|
285
|
+
const _hoisted_1$5 = ["href", "xlink:href"];
|
|
286
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
287
287
|
__name: "SvgIcon",
|
|
288
288
|
props: {
|
|
289
289
|
iconClass: {
|
|
@@ -324,7 +324,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
324
324
|
createElementVNode("use", {
|
|
325
325
|
href: iconName.value,
|
|
326
326
|
"xlink:href": iconName.value
|
|
327
|
-
}, null, 8, _hoisted_1$
|
|
327
|
+
}, null, 8, _hoisted_1$5)
|
|
328
328
|
], 16));
|
|
329
329
|
};
|
|
330
330
|
}
|
|
@@ -336,8 +336,8 @@ const _export_sfc = (sfc, props) => {
|
|
|
336
336
|
}
|
|
337
337
|
return target;
|
|
338
338
|
};
|
|
339
|
-
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
340
|
-
const _sfc_main$
|
|
339
|
+
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-bc56d70e"]]);
|
|
340
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
341
341
|
__name: "XDatePicker",
|
|
342
342
|
props: {
|
|
343
343
|
type: {
|
|
@@ -544,8 +544,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
|
-
const XDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
548
|
-
const _sfc_main$
|
|
547
|
+
const XDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-264a8a79"]]);
|
|
548
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
549
549
|
__name: "XElForm",
|
|
550
550
|
props: {
|
|
551
551
|
model: {
|
|
@@ -686,8 +686,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
const XElForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
690
|
-
const _sfc_main$
|
|
689
|
+
const XElForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-441b419b"]]);
|
|
690
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
691
691
|
__name: "XElFormItem",
|
|
692
692
|
props: {
|
|
693
693
|
label: {
|
|
@@ -770,8 +770,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
|
-
const XElFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
774
|
-
const _sfc_main$
|
|
773
|
+
const XElFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-50c1c717"]]);
|
|
774
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
775
775
|
__name: "XElOption",
|
|
776
776
|
props: {
|
|
777
777
|
label: {
|
|
@@ -831,7 +831,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
-
const _sfc_main$
|
|
834
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
835
835
|
__name: "XElSelect",
|
|
836
836
|
props: {
|
|
837
837
|
modelValue: {
|
|
@@ -954,8 +954,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
|
-
const _hoisted_1$
|
|
958
|
-
const _sfc_main$
|
|
957
|
+
const _hoisted_1$4 = { class: "x-pagination" };
|
|
958
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
959
959
|
__name: "XPagination",
|
|
960
960
|
props: {
|
|
961
961
|
currentPage: {
|
|
@@ -1013,7 +1013,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1013
1013
|
}
|
|
1014
1014
|
return (_ctx, _cache) => {
|
|
1015
1015
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
1016
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1016
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1017
1017
|
createVNode(_component_el_pagination, {
|
|
1018
1018
|
"current-page": internalCurrentPage.value,
|
|
1019
1019
|
"page-size": internalPageSize.value,
|
|
@@ -1027,8 +1027,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
|
-
const XPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1031
|
-
const _sfc_main$
|
|
1030
|
+
const XPagination = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-bd405b6e"]]);
|
|
1031
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1032
1032
|
__name: "XVxeTable",
|
|
1033
1033
|
props: {
|
|
1034
1034
|
tableData: { type: Array, default: () => [] },
|
|
@@ -1292,35 +1292,35 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
|
-
const XVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1296
|
-
const _hoisted_1$
|
|
1297
|
-
const _hoisted_2$
|
|
1298
|
-
const _hoisted_3$
|
|
1299
|
-
const _hoisted_4$
|
|
1300
|
-
const _hoisted_5$
|
|
1301
|
-
const _hoisted_6$
|
|
1302
|
-
const _hoisted_7$
|
|
1303
|
-
const _hoisted_8$
|
|
1304
|
-
const _hoisted_9$
|
|
1305
|
-
const _hoisted_10$
|
|
1306
|
-
const _hoisted_11$
|
|
1307
|
-
const _hoisted_12$
|
|
1308
|
-
const _hoisted_13$
|
|
1309
|
-
const _hoisted_14$
|
|
1310
|
-
const _hoisted_15$
|
|
1311
|
-
const _hoisted_16$
|
|
1312
|
-
const _hoisted_17$
|
|
1313
|
-
const _hoisted_18 = { class: "" };
|
|
1314
|
-
const _hoisted_19 = { class: "" };
|
|
1315
|
-
const _hoisted_20 = { class: "report-body" };
|
|
1316
|
-
const _hoisted_21 = { class: "report-flex report-justify-between" };
|
|
1317
|
-
const _hoisted_22 = { class: "" };
|
|
1318
|
-
const _hoisted_23 = { class: "" };
|
|
1319
|
-
const _hoisted_24 = { key: 0 };
|
|
1320
|
-
const _hoisted_25 = { class: "" };
|
|
1321
|
-
const _hoisted_26 = { class: "" };
|
|
1322
|
-
const _hoisted_27 = { class: "" };
|
|
1323
|
-
const _sfc_main$
|
|
1295
|
+
const XVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9111013e"]]);
|
|
1296
|
+
const _hoisted_1$3 = { class: "x-report-table" };
|
|
1297
|
+
const _hoisted_2$3 = { class: "report-header" };
|
|
1298
|
+
const _hoisted_3$3 = { class: "report-title" };
|
|
1299
|
+
const _hoisted_4$3 = { class: "report-actions" };
|
|
1300
|
+
const _hoisted_5$3 = ["onClick"];
|
|
1301
|
+
const _hoisted_6$3 = { class: "report-text-primary" };
|
|
1302
|
+
const _hoisted_7$3 = { class: "report-text-primary" };
|
|
1303
|
+
const _hoisted_8$3 = { class: "report-text-primary" };
|
|
1304
|
+
const _hoisted_9$2 = { class: "report-flex report-justify-between" };
|
|
1305
|
+
const _hoisted_10$2 = { class: "" };
|
|
1306
|
+
const _hoisted_11$2 = { class: "" };
|
|
1307
|
+
const _hoisted_12$2 = { key: 0 };
|
|
1308
|
+
const _hoisted_13$2 = { class: "" };
|
|
1309
|
+
const _hoisted_14$2 = { class: "" };
|
|
1310
|
+
const _hoisted_15$2 = { key: 1 };
|
|
1311
|
+
const _hoisted_16$2 = { class: "" };
|
|
1312
|
+
const _hoisted_17$2 = { class: "" };
|
|
1313
|
+
const _hoisted_18$1 = { class: "" };
|
|
1314
|
+
const _hoisted_19$1 = { class: "" };
|
|
1315
|
+
const _hoisted_20$1 = { class: "report-body" };
|
|
1316
|
+
const _hoisted_21$1 = { class: "report-flex report-justify-between" };
|
|
1317
|
+
const _hoisted_22$1 = { class: "" };
|
|
1318
|
+
const _hoisted_23$1 = { class: "" };
|
|
1319
|
+
const _hoisted_24$1 = { key: 0 };
|
|
1320
|
+
const _hoisted_25$1 = { class: "" };
|
|
1321
|
+
const _hoisted_26$1 = { class: "" };
|
|
1322
|
+
const _hoisted_27$1 = { class: "" };
|
|
1323
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1324
1324
|
__name: "XReportTable",
|
|
1325
1325
|
props: {
|
|
1326
1326
|
tableData: { type: Array, default: () => [] },
|
|
@@ -1523,32 +1523,32 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1523
1523
|
getTableInstance
|
|
1524
1524
|
});
|
|
1525
1525
|
return (_ctx, _cache) => {
|
|
1526
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1527
|
-
createElementVNode("div", _hoisted_2$
|
|
1528
|
-
createElementVNode("h2", _hoisted_3$
|
|
1529
|
-
createElementVNode("div", _hoisted_4$
|
|
1526
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1527
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
1528
|
+
createElementVNode("h2", _hoisted_3$3, toDisplayString(displayTitle.value), 1),
|
|
1529
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
1530
1530
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.customButtons, (btn, index2) => {
|
|
1531
1531
|
return openBlock(), createElementBlock("div", {
|
|
1532
1532
|
key: index2,
|
|
1533
1533
|
class: "action-item report-cursor-pointer",
|
|
1534
1534
|
onClick: ($event) => handleCustomBtn(index2, btn)
|
|
1535
1535
|
}, [
|
|
1536
|
-
createElementVNode("span", _hoisted_6$
|
|
1537
|
-
], 8, _hoisted_5$
|
|
1536
|
+
createElementVNode("span", _hoisted_6$3, toDisplayString(btn), 1)
|
|
1537
|
+
], 8, _hoisted_5$3);
|
|
1538
1538
|
}), 128)),
|
|
1539
1539
|
__props.showPrint ? (openBlock(), createElementBlock("div", {
|
|
1540
1540
|
key: 0,
|
|
1541
1541
|
class: "action-item report-cursor-pointer",
|
|
1542
1542
|
onClick: _cache[0] || (_cache[0] = ($event) => printReport(1))
|
|
1543
1543
|
}, [
|
|
1544
|
-
createElementVNode("span", _hoisted_7$
|
|
1544
|
+
createElementVNode("span", _hoisted_7$3, toDisplayString(__props.printText), 1)
|
|
1545
1545
|
])) : createCommentVNode("", true),
|
|
1546
1546
|
__props.printText1 ? (openBlock(), createElementBlock("div", {
|
|
1547
1547
|
key: 1,
|
|
1548
1548
|
class: "action-item report-cursor-pointer",
|
|
1549
1549
|
onClick: _cache[1] || (_cache[1] = ($event) => printReport(2))
|
|
1550
1550
|
}, [
|
|
1551
|
-
createElementVNode("span", _hoisted_8$
|
|
1551
|
+
createElementVNode("span", _hoisted_8$3, toDisplayString(__props.printText1), 1)
|
|
1552
1552
|
])) : createCommentVNode("", true),
|
|
1553
1553
|
__props.showExport ? (openBlock(), createElementBlock("div", {
|
|
1554
1554
|
key: 2,
|
|
@@ -1564,30 +1564,30 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1564
1564
|
ref_key: "reportHeaderRef",
|
|
1565
1565
|
ref: reportHeaderRef
|
|
1566
1566
|
}, [
|
|
1567
|
-
createElementVNode("div", _hoisted_9$
|
|
1567
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
1568
1568
|
createElementVNode("div", null, [
|
|
1569
1569
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "" }, "制表单位:", -1)),
|
|
1570
|
-
createElementVNode("span", _hoisted_10$
|
|
1570
|
+
createElementVNode("span", _hoisted_10$2, toDisplayString(organizationNameDisplay.value), 1)
|
|
1571
1571
|
]),
|
|
1572
1572
|
createElementVNode("div", null, [
|
|
1573
1573
|
_cache[4] || (_cache[4] = createElementVNode("span", { class: "" }, "日期范围:", -1)),
|
|
1574
|
-
createElementVNode("span", _hoisted_11$
|
|
1574
|
+
createElementVNode("span", _hoisted_11$2, toDisplayString(dateRangeDisplay.value), 1)
|
|
1575
1575
|
]),
|
|
1576
|
-
__props.customHeader1Label ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
1577
|
-
createElementVNode("span", _hoisted_13$
|
|
1578
|
-
createElementVNode("span", _hoisted_14$
|
|
1576
|
+
__props.customHeader1Label ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
1577
|
+
createElementVNode("span", _hoisted_13$2, toDisplayString(__props.customHeader1Label) + ":", 1),
|
|
1578
|
+
createElementVNode("span", _hoisted_14$2, toDisplayString(__props.customHeader1 || ""), 1)
|
|
1579
1579
|
])) : createCommentVNode("", true),
|
|
1580
|
-
__props.customHeader2Label ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
1581
|
-
createElementVNode("span", _hoisted_16$
|
|
1582
|
-
createElementVNode("span", _hoisted_17$
|
|
1580
|
+
__props.customHeader2Label ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
1581
|
+
createElementVNode("span", _hoisted_16$2, toDisplayString(__props.customHeader2Label) + ":", 1),
|
|
1582
|
+
createElementVNode("span", _hoisted_17$2, toDisplayString(__props.customHeader2 || ""), 1)
|
|
1583
1583
|
])) : createCommentVNode("", true),
|
|
1584
1584
|
createElementVNode("div", null, [
|
|
1585
|
-
createElementVNode("span", _hoisted_18, toDisplayString(__props.customHeader3Label) + toDisplayString(__props.customHeader3Label ? ":" : ""), 1),
|
|
1586
|
-
createElementVNode("span", _hoisted_19, toDisplayString(__props.customHeader3 || ""), 1)
|
|
1585
|
+
createElementVNode("span", _hoisted_18$1, toDisplayString(__props.customHeader3Label) + toDisplayString(__props.customHeader3Label ? ":" : ""), 1),
|
|
1586
|
+
createElementVNode("span", _hoisted_19$1, toDisplayString(__props.customHeader3 || ""), 1)
|
|
1587
1587
|
])
|
|
1588
1588
|
])
|
|
1589
1589
|
], 512),
|
|
1590
|
-
createElementVNode("div", _hoisted_20, [
|
|
1590
|
+
createElementVNode("div", _hoisted_20$1, [
|
|
1591
1591
|
createVNode(XVxeTable, {
|
|
1592
1592
|
ref_key: "repVxeTableRef",
|
|
1593
1593
|
ref: repVxeTableRef,
|
|
@@ -1619,22 +1619,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1619
1619
|
ref_key: "reportFooterRef",
|
|
1620
1620
|
ref: reportFooterRef
|
|
1621
1621
|
}, [
|
|
1622
|
-
createElementVNode("div", _hoisted_21, [
|
|
1622
|
+
createElementVNode("div", _hoisted_21$1, [
|
|
1623
1623
|
createElementVNode("div", null, [
|
|
1624
1624
|
_cache[5] || (_cache[5] = createElementVNode("span", { class: "" }, "审核人员:", -1)),
|
|
1625
|
-
createElementVNode("span", _hoisted_22, toDisplayString(__props.auditorName || ""), 1)
|
|
1625
|
+
createElementVNode("span", _hoisted_22$1, toDisplayString(__props.auditorName || ""), 1)
|
|
1626
1626
|
]),
|
|
1627
1627
|
createElementVNode("div", null, [
|
|
1628
1628
|
_cache[6] || (_cache[6] = createElementVNode("span", { class: "" }, "制表人员:", -1)),
|
|
1629
|
-
createElementVNode("span", _hoisted_23, toDisplayString(creatorNameDisplay.value), 1)
|
|
1629
|
+
createElementVNode("span", _hoisted_23$1, toDisplayString(creatorNameDisplay.value), 1)
|
|
1630
1630
|
]),
|
|
1631
|
-
__props.customFooterFieldLabel ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
1632
|
-
createElementVNode("span", _hoisted_25, toDisplayString(__props.customFooterFieldLabel) + ":", 1),
|
|
1633
|
-
createElementVNode("span", _hoisted_26, toDisplayString(__props.customFooterField || ""), 1)
|
|
1631
|
+
__props.customFooterFieldLabel ? (openBlock(), createElementBlock("div", _hoisted_24$1, [
|
|
1632
|
+
createElementVNode("span", _hoisted_25$1, toDisplayString(__props.customFooterFieldLabel) + ":", 1),
|
|
1633
|
+
createElementVNode("span", _hoisted_26$1, toDisplayString(__props.customFooterField || ""), 1)
|
|
1634
1634
|
])) : createCommentVNode("", true),
|
|
1635
1635
|
createElementVNode("div", null, [
|
|
1636
1636
|
_cache[7] || (_cache[7] = createElementVNode("span", { class: "" }, "打印日期:", -1)),
|
|
1637
|
-
createElementVNode("span", _hoisted_27, toDisplayString(formattedPrintDate.value), 1)
|
|
1637
|
+
createElementVNode("span", _hoisted_27$1, toDisplayString(formattedPrintDate.value), 1)
|
|
1638
1638
|
])
|
|
1639
1639
|
])
|
|
1640
1640
|
], 512)
|
|
@@ -1642,52 +1642,52 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
1644
|
});
|
|
1645
|
-
const XReportTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1646
|
-
const _hoisted_1$
|
|
1645
|
+
const XReportTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-00481d7c"]]);
|
|
1646
|
+
const _hoisted_1$2 = {
|
|
1647
1647
|
key: 0,
|
|
1648
1648
|
class: "search-top"
|
|
1649
1649
|
};
|
|
1650
|
-
const _hoisted_2$
|
|
1651
|
-
const _hoisted_3$
|
|
1652
|
-
const _hoisted_4$
|
|
1650
|
+
const _hoisted_2$2 = { class: "search-top__inner" };
|
|
1651
|
+
const _hoisted_3$2 = { class: "search-top__row" };
|
|
1652
|
+
const _hoisted_4$2 = {
|
|
1653
1653
|
key: 0,
|
|
1654
1654
|
class: "search-top__label"
|
|
1655
1655
|
};
|
|
1656
|
-
const _hoisted_5$
|
|
1656
|
+
const _hoisted_5$2 = {
|
|
1657
1657
|
key: 1,
|
|
1658
1658
|
class: "search-top-input"
|
|
1659
1659
|
};
|
|
1660
|
-
const _hoisted_6$
|
|
1660
|
+
const _hoisted_6$2 = {
|
|
1661
1661
|
key: 0,
|
|
1662
1662
|
class: "search-top-extra-item"
|
|
1663
1663
|
};
|
|
1664
|
-
const _hoisted_7$
|
|
1664
|
+
const _hoisted_7$2 = {
|
|
1665
1665
|
key: 0,
|
|
1666
1666
|
class: "search-top-extra-label"
|
|
1667
1667
|
};
|
|
1668
|
-
const _hoisted_8$
|
|
1669
|
-
const _hoisted_9 = {
|
|
1668
|
+
const _hoisted_8$2 = { class: "search-top-extra-content" };
|
|
1669
|
+
const _hoisted_9$1 = {
|
|
1670
1670
|
key: 1,
|
|
1671
1671
|
class: "search-top-extra-item"
|
|
1672
1672
|
};
|
|
1673
|
-
const _hoisted_10 = {
|
|
1673
|
+
const _hoisted_10$1 = {
|
|
1674
1674
|
key: 0,
|
|
1675
1675
|
class: "search-top-extra-label"
|
|
1676
1676
|
};
|
|
1677
|
-
const _hoisted_11 = { class: "search-top-extra-content" };
|
|
1678
|
-
const _hoisted_12 = {
|
|
1677
|
+
const _hoisted_11$1 = { class: "search-top-extra-content" };
|
|
1678
|
+
const _hoisted_12$1 = {
|
|
1679
1679
|
key: 2,
|
|
1680
1680
|
class: "search-top-extra-item"
|
|
1681
1681
|
};
|
|
1682
|
-
const _hoisted_13 = {
|
|
1682
|
+
const _hoisted_13$1 = {
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
class: "search-top-extra-label"
|
|
1685
1685
|
};
|
|
1686
|
-
const _hoisted_14 = { class: "search-top-extra-content" };
|
|
1687
|
-
const _hoisted_15 = { class: "search-top__actions" };
|
|
1688
|
-
const _hoisted_16 = { class: "search-form__buttons" };
|
|
1689
|
-
const _hoisted_17 = { class: "search-form__buttons" };
|
|
1690
|
-
const _sfc_main$
|
|
1686
|
+
const _hoisted_14$1 = { class: "search-top-extra-content" };
|
|
1687
|
+
const _hoisted_15$1 = { class: "search-top__actions" };
|
|
1688
|
+
const _hoisted_16$1 = { class: "search-form__buttons" };
|
|
1689
|
+
const _hoisted_17$1 = { class: "search-form__buttons" };
|
|
1690
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1691
1691
|
__name: "XSearchBar",
|
|
1692
1692
|
props: {
|
|
1693
1693
|
modelValue: {
|
|
@@ -1941,11 +1941,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1941
1941
|
class: "search",
|
|
1942
1942
|
style: normalizeStyle({ paddingBottom: __props.paddingBottom })
|
|
1943
1943
|
}, [
|
|
1944
|
-
__props.showSearch ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1945
|
-
createElementVNode("div", _hoisted_2$
|
|
1946
|
-
createElementVNode("div", _hoisted_3$
|
|
1947
|
-
__props.showInput ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1948
|
-
__props.showInput ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1944
|
+
__props.showSearch ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
1945
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
1946
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
1947
|
+
__props.showInput ? (openBlock(), createElementBlock("span", _hoisted_4$2, "快捷搜索 ")) : createCommentVNode("", true),
|
|
1948
|
+
__props.showInput ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
1949
1949
|
createVNode(unref(ElInput), {
|
|
1950
1950
|
type: "text",
|
|
1951
1951
|
onKeyup: withKeys(searchParentList, ["enter"]),
|
|
@@ -1978,27 +1978,27 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1978
1978
|
class: normalizeClass([{ "search-top-extra--ml": __props.showInput }, "search-top-extra"])
|
|
1979
1979
|
}, [
|
|
1980
1980
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1981
|
-
unref(slots).text1 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1982
|
-
__props.text1 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
1983
|
-
createElementVNode("div", _hoisted_8$
|
|
1981
|
+
unref(slots).text1 ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
1982
|
+
__props.text1 ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(__props.text1) + ":", 1)) : createCommentVNode("", true),
|
|
1983
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
1984
1984
|
renderSlot(_ctx.$slots, "text1", {}, void 0, true)
|
|
1985
1985
|
])
|
|
1986
1986
|
])) : createCommentVNode("", true),
|
|
1987
|
-
unref(slots).text2 ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
1988
|
-
__props.text2 ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(__props.text2) + ":", 1)) : createCommentVNode("", true),
|
|
1989
|
-
createElementVNode("div", _hoisted_11, [
|
|
1987
|
+
unref(slots).text2 ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
1988
|
+
__props.text2 ? (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(__props.text2) + ":", 1)) : createCommentVNode("", true),
|
|
1989
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
1990
1990
|
renderSlot(_ctx.$slots, "text2", {}, void 0, true)
|
|
1991
1991
|
])
|
|
1992
1992
|
])) : createCommentVNode("", true),
|
|
1993
|
-
unref(slots).text3 ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
1994
|
-
__props.text3 ? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(__props.text3) + ":", 1)) : createCommentVNode("", true),
|
|
1995
|
-
createElementVNode("div", _hoisted_14, [
|
|
1993
|
+
unref(slots).text3 ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
1994
|
+
__props.text3 ? (openBlock(), createElementBlock("span", _hoisted_13$1, toDisplayString(__props.text3) + ":", 1)) : createCommentVNode("", true),
|
|
1995
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
1996
1996
|
renderSlot(_ctx.$slots, "text3", {}, void 0, true)
|
|
1997
1997
|
])
|
|
1998
1998
|
])) : createCommentVNode("", true)
|
|
1999
1999
|
], 2)
|
|
2000
2000
|
]),
|
|
2001
|
-
createElementVNode("div", _hoisted_15, [
|
|
2001
|
+
createElementVNode("div", _hoisted_15$1, [
|
|
2002
2002
|
createVNode(_component_el_button, {
|
|
2003
2003
|
plain: "",
|
|
2004
2004
|
onClick: reset
|
|
@@ -2046,7 +2046,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2046
2046
|
span: buttonItemSpan.value
|
|
2047
2047
|
}, {
|
|
2048
2048
|
default: withCtx(() => [
|
|
2049
|
-
createElementVNode("div", _hoisted_16, [
|
|
2049
|
+
createElementVNode("div", _hoisted_16$1, [
|
|
2050
2050
|
createVNode(_component_el_button, {
|
|
2051
2051
|
plain: "",
|
|
2052
2052
|
onClick: reset
|
|
@@ -2120,7 +2120,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2120
2120
|
span: buttonItemSpan.value
|
|
2121
2121
|
}, {
|
|
2122
2122
|
default: withCtx(() => [
|
|
2123
|
-
createElementVNode("div", _hoisted_17, [
|
|
2123
|
+
createElementVNode("div", _hoisted_17$1, [
|
|
2124
2124
|
createVNode(_component_el_button, {
|
|
2125
2125
|
plain: "",
|
|
2126
2126
|
onClick: reset
|
|
@@ -2156,22 +2156,22 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
2158
2158
|
});
|
|
2159
|
-
const XSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2160
|
-
const _hoisted_1 = { class: "x-split-layout__sidebar-menu" };
|
|
2161
|
-
const _hoisted_2 = ["onClick"];
|
|
2162
|
-
const _hoisted_3 = { class: "x-split-layout__menu-icon" };
|
|
2163
|
-
const _hoisted_4 = { class: "x-split-layout__menu-label" };
|
|
2164
|
-
const _hoisted_5 = { class: "x-split-layout__content" };
|
|
2165
|
-
const _hoisted_6 = {
|
|
2159
|
+
const XSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-0c479461"]]);
|
|
2160
|
+
const _hoisted_1$1 = { class: "x-split-layout__sidebar-menu" };
|
|
2161
|
+
const _hoisted_2$1 = ["onClick"];
|
|
2162
|
+
const _hoisted_3$1 = { class: "x-split-layout__menu-icon" };
|
|
2163
|
+
const _hoisted_4$1 = { class: "x-split-layout__menu-label" };
|
|
2164
|
+
const _hoisted_5$1 = { class: "x-split-layout__content" };
|
|
2165
|
+
const _hoisted_6$1 = {
|
|
2166
2166
|
key: 0,
|
|
2167
2167
|
class: "x-split-layout__content-header"
|
|
2168
2168
|
};
|
|
2169
|
-
const _hoisted_7 = { class: "x-split-layout__content-title" };
|
|
2170
|
-
const _hoisted_8 = {
|
|
2169
|
+
const _hoisted_7$1 = { class: "x-split-layout__content-title" };
|
|
2170
|
+
const _hoisted_8$1 = {
|
|
2171
2171
|
key: 1,
|
|
2172
2172
|
class: "x-split-layout__content-footer"
|
|
2173
2173
|
};
|
|
2174
|
-
const _sfc_main$
|
|
2174
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2175
2175
|
__name: "XSplitLayout",
|
|
2176
2176
|
props: {
|
|
2177
2177
|
height: { type: String, default: "100%" },
|
|
@@ -2288,7 +2288,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2288
2288
|
}), 128))
|
|
2289
2289
|
], true)
|
|
2290
2290
|
], 4)) : createCommentVNode("", true),
|
|
2291
|
-
createElementVNode("div", _hoisted_1, [
|
|
2291
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
2292
2292
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuItems, (item, index2) => {
|
|
2293
2293
|
return openBlock(), createElementBlock("div", {
|
|
2294
2294
|
key: index2,
|
|
@@ -2300,26 +2300,26 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2300
2300
|
index: index2,
|
|
2301
2301
|
active: activeIndex.value === index2
|
|
2302
2302
|
}, () => [
|
|
2303
|
-
createElementVNode("span", _hoisted_3, [
|
|
2303
|
+
createElementVNode("span", _hoisted_3$1, [
|
|
2304
2304
|
createElementVNode("span", {
|
|
2305
2305
|
class: normalizeClass(["x-split-layout__menu-dot", { "is-active-dot": activeIndex.value === index2 }])
|
|
2306
2306
|
}, null, 2)
|
|
2307
2307
|
]),
|
|
2308
|
-
createElementVNode("span", _hoisted_4, toDisplayString(item[__props.menuLabelKey]), 1)
|
|
2308
|
+
createElementVNode("span", _hoisted_4$1, toDisplayString(item[__props.menuLabelKey]), 1)
|
|
2309
2309
|
], true),
|
|
2310
2310
|
renderSlot(_ctx.$slots, "menu-item-right", {
|
|
2311
2311
|
item,
|
|
2312
2312
|
index: index2,
|
|
2313
2313
|
active: activeIndex.value === index2
|
|
2314
2314
|
}, void 0, true)
|
|
2315
|
-
], 10, _hoisted_2);
|
|
2315
|
+
], 10, _hoisted_2$1);
|
|
2316
2316
|
}), 128))
|
|
2317
2317
|
]),
|
|
2318
2318
|
renderSlot(_ctx.$slots, "sidebar-right", {}, void 0, true)
|
|
2319
2319
|
], 4),
|
|
2320
|
-
createElementVNode("div", _hoisted_5, [
|
|
2321
|
-
showContentHeader.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
2322
|
-
createElementVNode("div", _hoisted_7, [
|
|
2320
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
2321
|
+
showContentHeader.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
2322
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
2323
2323
|
renderSlot(_ctx.$slots, "content-title", {}, () => [
|
|
2324
2324
|
createElementVNode("span", null, toDisplayString(currentContentTitle.value), 1)
|
|
2325
2325
|
], true)
|
|
@@ -2338,7 +2338,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2338
2338
|
}, void 0, true)
|
|
2339
2339
|
], 4)
|
|
2340
2340
|
], 2),
|
|
2341
|
-
showActions.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
2341
|
+
showActions.value ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
2342
2342
|
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
2343
2343
|
createVNode(_component_el_button, { onClick: handleCancel }, {
|
|
2344
2344
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
@@ -2374,8 +2374,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
2376
|
});
|
|
2377
|
-
const XSplitLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2378
|
-
const _sfc_main$
|
|
2377
|
+
const XSplitLayout = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-c57f39a8"]]);
|
|
2378
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2379
2379
|
__name: "XSwitch",
|
|
2380
2380
|
props: {
|
|
2381
2381
|
modelValue: {
|
|
@@ -2463,7 +2463,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
2465
|
});
|
|
2466
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2466
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2467
2467
|
__name: "XVxeColumn",
|
|
2468
2468
|
props: {
|
|
2469
2469
|
title: {
|
|
@@ -2549,20 +2549,958 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2549
2549
|
};
|
|
2550
2550
|
}
|
|
2551
2551
|
});
|
|
2552
|
-
const XVxeColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ace2083"]]);
|
|
2552
|
+
const XVxeColumn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8ace2083"]]);
|
|
2553
|
+
function createSearchApi(serverBaseURL) {
|
|
2554
|
+
const request = createRequest({ baseURL: serverBaseURL });
|
|
2555
|
+
return {
|
|
2556
|
+
// 查询所有系统
|
|
2557
|
+
sysList(data) {
|
|
2558
|
+
return request({ url: "/plugin/system/list", method: "post", data });
|
|
2559
|
+
},
|
|
2560
|
+
// 新增系统
|
|
2561
|
+
sysSave(data) {
|
|
2562
|
+
return request({ url: "/plugin/system/save", method: "post", data });
|
|
2563
|
+
},
|
|
2564
|
+
// 修改系统
|
|
2565
|
+
sysUpdate(data) {
|
|
2566
|
+
return request({ url: "/plugin/system/update", method: "post", data });
|
|
2567
|
+
},
|
|
2568
|
+
// 新增模块/页面
|
|
2569
|
+
moduleSave(data) {
|
|
2570
|
+
return request({ url: "/plugin/module/save", method: "post", data });
|
|
2571
|
+
},
|
|
2572
|
+
// 修改模块/页面
|
|
2573
|
+
moduleUpdate(data) {
|
|
2574
|
+
return request({ url: "/plugin/module/update", method: "post", data });
|
|
2575
|
+
},
|
|
2576
|
+
// 删除模块/页面
|
|
2577
|
+
moduleDelete(id) {
|
|
2578
|
+
return request({ url: `/plugin/module/delete/${id}`, method: "post" });
|
|
2579
|
+
},
|
|
2580
|
+
// 查询模块/页面列表
|
|
2581
|
+
moduleList(data) {
|
|
2582
|
+
return request({ url: "/plugin/module/list", method: "post", params: data });
|
|
2583
|
+
},
|
|
2584
|
+
// 新增或修改字段
|
|
2585
|
+
fieldSaveOrUpdate(data) {
|
|
2586
|
+
return request({ url: "/plugin/system/field/saveOrUpdate", method: "post", data });
|
|
2587
|
+
},
|
|
2588
|
+
// 字段分页查询
|
|
2589
|
+
fieldPageView(data) {
|
|
2590
|
+
return request({ url: "/plugin/system/field/pageView", method: "post", data });
|
|
2591
|
+
},
|
|
2592
|
+
// 获取用户字段列表(兼容旧接口)
|
|
2593
|
+
listByCurrentUser(data) {
|
|
2594
|
+
return request({
|
|
2595
|
+
url: "/plugin/system/field/user/listByCurrentUser",
|
|
2596
|
+
method: "post",
|
|
2597
|
+
data: { systemId: "1233849248630274", systemName: "进销存", ...data }
|
|
2598
|
+
});
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
}
|
|
2602
|
+
const _hoisted_1 = { class: "x-search-bar-config" };
|
|
2603
|
+
const _hoisted_2 = { class: "config-sidebar" };
|
|
2604
|
+
const _hoisted_3 = { class: "config-sidebar__header" };
|
|
2605
|
+
const _hoisted_4 = { class: "config-sidebar__list" };
|
|
2606
|
+
const _hoisted_5 = ["onClick"];
|
|
2607
|
+
const _hoisted_6 = { class: "config-sidebar__item-info" };
|
|
2608
|
+
const _hoisted_7 = { class: "config-sidebar__item-name" };
|
|
2609
|
+
const _hoisted_8 = { class: "config-sidebar__item-id" };
|
|
2610
|
+
const _hoisted_9 = {
|
|
2611
|
+
key: 0,
|
|
2612
|
+
class: "config-sidebar__empty"
|
|
2613
|
+
};
|
|
2614
|
+
const _hoisted_10 = {
|
|
2615
|
+
key: 0,
|
|
2616
|
+
class: "config-sidebar__modules"
|
|
2617
|
+
};
|
|
2618
|
+
const _hoisted_11 = { class: "config-sidebar__header" };
|
|
2619
|
+
const _hoisted_12 = { class: "config-sidebar__list" };
|
|
2620
|
+
const _hoisted_13 = ["onClick"];
|
|
2621
|
+
const _hoisted_14 = { class: "config-sidebar__item-info" };
|
|
2622
|
+
const _hoisted_15 = { class: "config-sidebar__item-name" };
|
|
2623
|
+
const _hoisted_16 = { class: "config-sidebar__item-id" };
|
|
2624
|
+
const _hoisted_17 = {
|
|
2625
|
+
key: 0,
|
|
2626
|
+
class: "config-sidebar__empty"
|
|
2627
|
+
};
|
|
2628
|
+
const _hoisted_18 = { class: "config-content" };
|
|
2629
|
+
const _hoisted_19 = { class: "config-section" };
|
|
2630
|
+
const _hoisted_20 = { class: "config-section__header" };
|
|
2631
|
+
const _hoisted_21 = { class: "config-section__title" };
|
|
2632
|
+
const _hoisted_22 = {
|
|
2633
|
+
key: 0,
|
|
2634
|
+
class: "config-section__actions"
|
|
2635
|
+
};
|
|
2636
|
+
const _hoisted_23 = { class: "config-form__grid" };
|
|
2637
|
+
const _hoisted_24 = { class: "config-form__grid config-form__grid--2col" };
|
|
2638
|
+
const _hoisted_25 = { class: "config-form__footer" };
|
|
2639
|
+
const _hoisted_26 = { class: "config-section" };
|
|
2640
|
+
const _hoisted_27 = {
|
|
2641
|
+
key: 1,
|
|
2642
|
+
class: "config-content__empty"
|
|
2643
|
+
};
|
|
2644
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2645
|
+
__name: "SearchBar",
|
|
2646
|
+
props: {
|
|
2647
|
+
serverBaseURL: {
|
|
2648
|
+
type: String,
|
|
2649
|
+
required: true
|
|
2650
|
+
},
|
|
2651
|
+
systemId: {
|
|
2652
|
+
type: String,
|
|
2653
|
+
required: true
|
|
2654
|
+
}
|
|
2655
|
+
},
|
|
2656
|
+
setup(__props) {
|
|
2657
|
+
const props = __props;
|
|
2658
|
+
const api = createSearchApi(props.serverBaseURL);
|
|
2659
|
+
const systemList = ref([]);
|
|
2660
|
+
const currentSystemId = ref("");
|
|
2661
|
+
const currentSystemName = ref("");
|
|
2662
|
+
const systemDialogVisible = ref(false);
|
|
2663
|
+
const editingSystem = ref(null);
|
|
2664
|
+
const systemFormRef = ref();
|
|
2665
|
+
const systemForm = reactive({ systemName: "" });
|
|
2666
|
+
function getSystemList() {
|
|
2667
|
+
api.sysList().then((res) => {
|
|
2668
|
+
systemList.value = res.data || [];
|
|
2669
|
+
if (props.systemId && !currentSystemId.value) {
|
|
2670
|
+
const found = systemList.value.find((s) => s.id === props.systemId);
|
|
2671
|
+
if (found) {
|
|
2672
|
+
selectSystem(found);
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
});
|
|
2676
|
+
}
|
|
2677
|
+
function selectSystem(sys) {
|
|
2678
|
+
currentSystemId.value = sys.id;
|
|
2679
|
+
currentSystemName.value = sys.systemName;
|
|
2680
|
+
getModuleList();
|
|
2681
|
+
getFieldList();
|
|
2682
|
+
}
|
|
2683
|
+
function handleAddSystem() {
|
|
2684
|
+
editingSystem.value = null;
|
|
2685
|
+
systemForm.systemName = "";
|
|
2686
|
+
systemDialogVisible.value = true;
|
|
2687
|
+
}
|
|
2688
|
+
function handleEditSystem(sys) {
|
|
2689
|
+
editingSystem.value = sys;
|
|
2690
|
+
systemForm.systemName = sys.systemName;
|
|
2691
|
+
systemDialogVisible.value = true;
|
|
2692
|
+
}
|
|
2693
|
+
function submitSystem() {
|
|
2694
|
+
var _a;
|
|
2695
|
+
(_a = systemFormRef.value) == null ? void 0 : _a.validate((valid) => {
|
|
2696
|
+
if (!valid) return;
|
|
2697
|
+
if (editingSystem.value) {
|
|
2698
|
+
api.sysUpdate({ id: editingSystem.value.id, systemName: systemForm.systemName, status: 1 }).then(() => {
|
|
2699
|
+
ElMessage.success("修改成功");
|
|
2700
|
+
systemDialogVisible.value = false;
|
|
2701
|
+
getSystemList();
|
|
2702
|
+
});
|
|
2703
|
+
} else {
|
|
2704
|
+
api.sysSave({ systemName: systemForm.systemName, status: 1 }).then(() => {
|
|
2705
|
+
ElMessage.success("新增成功");
|
|
2706
|
+
systemDialogVisible.value = false;
|
|
2707
|
+
getSystemList();
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
const moduleList = ref([]);
|
|
2713
|
+
const currentModuleId = ref("");
|
|
2714
|
+
const moduleDialogVisible = ref(false);
|
|
2715
|
+
const editingModule = ref(null);
|
|
2716
|
+
const moduleFormRef = ref();
|
|
2717
|
+
const moduleForm = reactive({ moduleCode: "", moduleName: "" });
|
|
2718
|
+
function getModuleList() {
|
|
2719
|
+
if (!currentSystemId.value) return;
|
|
2720
|
+
api.moduleList({ systemId: currentSystemId.value }).then((res) => {
|
|
2721
|
+
moduleList.value = res.data || [];
|
|
2722
|
+
});
|
|
2723
|
+
}
|
|
2724
|
+
function selectModule(mod) {
|
|
2725
|
+
currentModuleId.value = mod.id;
|
|
2726
|
+
getFieldList();
|
|
2727
|
+
}
|
|
2728
|
+
function handleAddModule() {
|
|
2729
|
+
editingModule.value = null;
|
|
2730
|
+
moduleForm.moduleCode = "";
|
|
2731
|
+
moduleForm.moduleName = "";
|
|
2732
|
+
moduleDialogVisible.value = true;
|
|
2733
|
+
}
|
|
2734
|
+
function handleEditModule(mod) {
|
|
2735
|
+
editingModule.value = mod;
|
|
2736
|
+
moduleForm.moduleCode = mod.moduleCode;
|
|
2737
|
+
moduleForm.moduleName = mod.moduleName;
|
|
2738
|
+
moduleDialogVisible.value = true;
|
|
2739
|
+
}
|
|
2740
|
+
function handleDeleteModule(mod) {
|
|
2741
|
+
ElMessageBox.confirm(`确定删除模块「${mod.moduleName}」?`, "提示", { type: "warning" }).then(() => {
|
|
2742
|
+
api.moduleDelete(mod.id).then(() => {
|
|
2743
|
+
ElMessage.success("删除成功");
|
|
2744
|
+
if (currentModuleId.value === mod.id) {
|
|
2745
|
+
currentModuleId.value = "";
|
|
2746
|
+
}
|
|
2747
|
+
getModuleList();
|
|
2748
|
+
});
|
|
2749
|
+
}).catch(() => {
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2752
|
+
function submitModule() {
|
|
2753
|
+
var _a;
|
|
2754
|
+
(_a = moduleFormRef.value) == null ? void 0 : _a.validate((valid) => {
|
|
2755
|
+
if (!valid) return;
|
|
2756
|
+
if (editingModule.value) {
|
|
2757
|
+
api.moduleUpdate({
|
|
2758
|
+
id: editingModule.value.id,
|
|
2759
|
+
moduleCode: moduleForm.moduleCode,
|
|
2760
|
+
moduleName: moduleForm.moduleName,
|
|
2761
|
+
systemId: currentSystemId.value,
|
|
2762
|
+
status: 1
|
|
2763
|
+
}).then(() => {
|
|
2764
|
+
ElMessage.success("修改成功");
|
|
2765
|
+
moduleDialogVisible.value = false;
|
|
2766
|
+
getModuleList();
|
|
2767
|
+
});
|
|
2768
|
+
} else {
|
|
2769
|
+
api.moduleSave({
|
|
2770
|
+
moduleCode: moduleForm.moduleCode,
|
|
2771
|
+
moduleName: moduleForm.moduleName,
|
|
2772
|
+
systemId: currentSystemId.value,
|
|
2773
|
+
status: 1
|
|
2774
|
+
}).then(() => {
|
|
2775
|
+
ElMessage.success("新增成功");
|
|
2776
|
+
moduleDialogVisible.value = false;
|
|
2777
|
+
getModuleList();
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2781
|
+
}
|
|
2782
|
+
const fieldFormRef = ref();
|
|
2783
|
+
const editingField = ref(null);
|
|
2784
|
+
const fieldTypeOptions = [
|
|
2785
|
+
{ label: "文本框", value: "el-input" },
|
|
2786
|
+
{ label: "下拉框", value: "el-select" },
|
|
2787
|
+
{ label: "日期选择器", value: "el-date-picker" },
|
|
2788
|
+
{ label: "级联选择器", value: "el-cascader" },
|
|
2789
|
+
{ label: "部门选择", value: "h-select-tree-dep" },
|
|
2790
|
+
{ label: "所选组织名称", value: "h-select-org" }
|
|
2791
|
+
];
|
|
2792
|
+
const fieldForm = reactive({
|
|
2793
|
+
id: "",
|
|
2794
|
+
attribute: "",
|
|
2795
|
+
fieldJavaName: "",
|
|
2796
|
+
fieldName: "",
|
|
2797
|
+
fieldType: "el-input",
|
|
2798
|
+
isRequire: "0",
|
|
2799
|
+
moduleId: "",
|
|
2800
|
+
dictKey: "",
|
|
2801
|
+
selType: "3",
|
|
2802
|
+
isCache: false
|
|
2803
|
+
});
|
|
2804
|
+
const fieldTableData = ref([]);
|
|
2805
|
+
const fieldPage = reactive({
|
|
2806
|
+
currentPage: 1,
|
|
2807
|
+
pageSize: 20,
|
|
2808
|
+
total: 0
|
|
2809
|
+
});
|
|
2810
|
+
watch(() => fieldForm.fieldName, () => handleFieldChange(), { immediate: false });
|
|
2811
|
+
watch(() => fieldForm.fieldType, () => handleFieldChange(), { immediate: false });
|
|
2812
|
+
watch(() => fieldForm.selType, () => selTypeFieldChange(), { immediate: false });
|
|
2813
|
+
function selTypeFieldChange() {
|
|
2814
|
+
const val = fieldForm.selType;
|
|
2815
|
+
if (val === "1") {
|
|
2816
|
+
fieldForm.dictKey = JSON.stringify({ type: "dict", label: "dictLabel", value: "dictValue", key: "" }, null, 2);
|
|
2817
|
+
} else if (val === "2") {
|
|
2818
|
+
fieldForm.dictKey = JSON.stringify({ type: "compound", label: "label", value: "value", url: "" }, null, 2);
|
|
2819
|
+
} else {
|
|
2820
|
+
fieldForm.dictKey = JSON.stringify({ type: "normal", label: "label", value: "value", key: "" }, null, 2);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
function handleFieldChange() {
|
|
2824
|
+
const val = fieldForm.fieldType;
|
|
2825
|
+
if (val === "el-input") {
|
|
2826
|
+
fieldForm.attribute = JSON.stringify({ placeholder: "请输入" + fieldForm.fieldName, clearable: true }, null, 2);
|
|
2827
|
+
fieldForm.dictKey = "{}";
|
|
2828
|
+
} else if (val === "el-select") {
|
|
2829
|
+
fieldForm.attribute = JSON.stringify({ placeholder: "请选择" + fieldForm.fieldName, filterable: true, clearable: true }, null, 2);
|
|
2830
|
+
} else if (val === "el-date-picker") {
|
|
2831
|
+
if (fieldForm.fieldName.indexOf("日期") > -1) {
|
|
2832
|
+
fieldForm.attribute = JSON.stringify({ type: "date", placeholder: "请选择" + fieldForm.fieldName, "value-format": "YYYY-MM-DD", clearable: true }, null, 2);
|
|
2833
|
+
} else {
|
|
2834
|
+
fieldForm.attribute = JSON.stringify({ type: "date", placeholder: "请选择" + fieldForm.fieldName, "value-format": "YYYY-MM-DD HH:mm:ss", clearable: true }, null, 2);
|
|
2835
|
+
}
|
|
2836
|
+
} else if (val === "h-select-org") {
|
|
2837
|
+
fieldForm.fieldName = "所选组织名称";
|
|
2838
|
+
fieldForm.fieldJavaName = "orgIds";
|
|
2839
|
+
fieldForm.attribute = JSON.stringify({ placeholder: "请选择" + fieldForm.fieldName, filterable: true, multiple: true, disabled: false, clearable: false }, null, 2);
|
|
2840
|
+
} else {
|
|
2841
|
+
fieldForm.attribute = "{}";
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
function getFieldList() {
|
|
2845
|
+
if (!currentSystemId.value) return;
|
|
2846
|
+
const params = {
|
|
2847
|
+
systemId: currentSystemId.value,
|
|
2848
|
+
currentPage: fieldPage.currentPage,
|
|
2849
|
+
pageSize: fieldPage.pageSize
|
|
2850
|
+
};
|
|
2851
|
+
if (currentModuleId.value) {
|
|
2852
|
+
params.moduleId = currentModuleId.value;
|
|
2853
|
+
}
|
|
2854
|
+
api.fieldPageView(params).then((res) => {
|
|
2855
|
+
const data = res.data || {};
|
|
2856
|
+
fieldTableData.value = data.records || data.list || [];
|
|
2857
|
+
fieldPage.total = data.total || 0;
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
function handleFieldPageChange(page, pageSize) {
|
|
2861
|
+
fieldPage.currentPage = page;
|
|
2862
|
+
fieldPage.pageSize = pageSize;
|
|
2863
|
+
getFieldList();
|
|
2864
|
+
}
|
|
2865
|
+
function handleEditField(row) {
|
|
2866
|
+
editingField.value = row;
|
|
2867
|
+
fieldForm.id = row.id || "";
|
|
2868
|
+
fieldForm.fieldName = row.fieldName || "";
|
|
2869
|
+
fieldForm.fieldJavaName = row.fieldJavaName || "";
|
|
2870
|
+
fieldForm.fieldType = row.fieldType || "el-input";
|
|
2871
|
+
fieldForm.isRequire = row.isRequire || "0";
|
|
2872
|
+
fieldForm.moduleId = row.moduleId || "";
|
|
2873
|
+
fieldForm.attribute = row.attribute || "";
|
|
2874
|
+
fieldForm.dictKey = row.dictKey || "";
|
|
2875
|
+
fieldForm.isCache = row.isCache || false;
|
|
2876
|
+
fieldForm.selType = "3";
|
|
2877
|
+
}
|
|
2878
|
+
function cancelEditField() {
|
|
2879
|
+
editingField.value = null;
|
|
2880
|
+
resetFieldForm();
|
|
2881
|
+
}
|
|
2882
|
+
function resetFieldForm() {
|
|
2883
|
+
fieldForm.id = "";
|
|
2884
|
+
fieldForm.fieldName = "";
|
|
2885
|
+
fieldForm.fieldJavaName = "";
|
|
2886
|
+
fieldForm.fieldType = "el-input";
|
|
2887
|
+
fieldForm.isRequire = "0";
|
|
2888
|
+
fieldForm.moduleId = currentModuleId.value || "";
|
|
2889
|
+
fieldForm.attribute = "";
|
|
2890
|
+
fieldForm.dictKey = "";
|
|
2891
|
+
fieldForm.selType = "3";
|
|
2892
|
+
fieldForm.isCache = false;
|
|
2893
|
+
editingField.value = null;
|
|
2894
|
+
}
|
|
2895
|
+
function submitField() {
|
|
2896
|
+
var _a;
|
|
2897
|
+
(_a = fieldFormRef.value) == null ? void 0 : _a.validate((valid) => {
|
|
2898
|
+
if (!valid) return;
|
|
2899
|
+
const data = {
|
|
2900
|
+
...JSON.parse(JSON.stringify(fieldForm)),
|
|
2901
|
+
systemId: currentSystemId.value,
|
|
2902
|
+
status: 1
|
|
2903
|
+
};
|
|
2904
|
+
if (editingField.value) {
|
|
2905
|
+
data.id = editingField.value.id;
|
|
2906
|
+
}
|
|
2907
|
+
api.fieldSaveOrUpdate({ fieldList: [data] }).then(() => {
|
|
2908
|
+
ElMessage.success(editingField.value ? "修改成功" : "新增成功");
|
|
2909
|
+
if (!fieldForm.isCache) {
|
|
2910
|
+
resetFieldForm();
|
|
2911
|
+
}
|
|
2912
|
+
getFieldList();
|
|
2913
|
+
});
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2916
|
+
onMounted(() => {
|
|
2917
|
+
getSystemList();
|
|
2918
|
+
});
|
|
2919
|
+
return (_ctx, _cache) => {
|
|
2920
|
+
const _component_el_button = resolveComponent("el-button");
|
|
2921
|
+
const _component_el_option = resolveComponent("el-option");
|
|
2922
|
+
const _component_el_select = resolveComponent("el-select");
|
|
2923
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
2924
|
+
const _component_el_input = resolveComponent("el-input");
|
|
2925
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2926
|
+
const _component_el_form = resolveComponent("el-form");
|
|
2927
|
+
const _component_el_tag = resolveComponent("el-tag");
|
|
2928
|
+
const _component_el_empty = resolveComponent("el-empty");
|
|
2929
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
2930
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2931
|
+
createElementVNode("div", _hoisted_2, [
|
|
2932
|
+
createElementVNode("div", _hoisted_3, [
|
|
2933
|
+
_cache[19] || (_cache[19] = createElementVNode("span", { class: "config-sidebar__title" }, "系统列表", -1)),
|
|
2934
|
+
createVNode(_component_el_button, {
|
|
2935
|
+
type: "primary",
|
|
2936
|
+
size: "small",
|
|
2937
|
+
onClick: handleAddSystem
|
|
2938
|
+
}, {
|
|
2939
|
+
default: withCtx(() => _cache[18] || (_cache[18] = [
|
|
2940
|
+
createTextVNode("新增")
|
|
2941
|
+
])),
|
|
2942
|
+
_: 1,
|
|
2943
|
+
__: [18]
|
|
2944
|
+
})
|
|
2945
|
+
]),
|
|
2946
|
+
createElementVNode("div", _hoisted_4, [
|
|
2947
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(systemList.value, (sys) => {
|
|
2948
|
+
return openBlock(), createElementBlock("div", {
|
|
2949
|
+
key: sys.id,
|
|
2950
|
+
class: normalizeClass(["config-sidebar__item", { "is-active": currentSystemId.value === sys.id }]),
|
|
2951
|
+
onClick: ($event) => selectSystem(sys)
|
|
2952
|
+
}, [
|
|
2953
|
+
createElementVNode("div", _hoisted_6, [
|
|
2954
|
+
createElementVNode("span", _hoisted_7, toDisplayString(sys.systemName), 1),
|
|
2955
|
+
createElementVNode("span", _hoisted_8, "ID: " + toDisplayString(sys.id), 1)
|
|
2956
|
+
]),
|
|
2957
|
+
createElementVNode("div", {
|
|
2958
|
+
class: "config-sidebar__item-actions",
|
|
2959
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2960
|
+
}, ["stop"]))
|
|
2961
|
+
}, [
|
|
2962
|
+
createVNode(_component_el_button, {
|
|
2963
|
+
type: "primary",
|
|
2964
|
+
link: "",
|
|
2965
|
+
size: "small",
|
|
2966
|
+
onClick: ($event) => handleEditSystem(sys)
|
|
2967
|
+
}, {
|
|
2968
|
+
default: withCtx(() => _cache[20] || (_cache[20] = [
|
|
2969
|
+
createTextVNode("编辑")
|
|
2970
|
+
])),
|
|
2971
|
+
_: 2,
|
|
2972
|
+
__: [20]
|
|
2973
|
+
}, 1032, ["onClick"])
|
|
2974
|
+
])
|
|
2975
|
+
], 10, _hoisted_5);
|
|
2976
|
+
}), 128)),
|
|
2977
|
+
systemList.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_9, "暂无系统")) : createCommentVNode("", true)
|
|
2978
|
+
]),
|
|
2979
|
+
currentSystemId.value ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
2980
|
+
createElementVNode("div", _hoisted_11, [
|
|
2981
|
+
_cache[22] || (_cache[22] = createElementVNode("span", { class: "config-sidebar__title" }, "模块列表", -1)),
|
|
2982
|
+
createVNode(_component_el_button, {
|
|
2983
|
+
type: "primary",
|
|
2984
|
+
size: "small",
|
|
2985
|
+
onClick: handleAddModule
|
|
2986
|
+
}, {
|
|
2987
|
+
default: withCtx(() => _cache[21] || (_cache[21] = [
|
|
2988
|
+
createTextVNode("新增")
|
|
2989
|
+
])),
|
|
2990
|
+
_: 1,
|
|
2991
|
+
__: [21]
|
|
2992
|
+
})
|
|
2993
|
+
]),
|
|
2994
|
+
createElementVNode("div", _hoisted_12, [
|
|
2995
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(moduleList.value, (mod) => {
|
|
2996
|
+
return openBlock(), createElementBlock("div", {
|
|
2997
|
+
key: mod.id,
|
|
2998
|
+
class: normalizeClass(["config-sidebar__item", { "is-active": currentModuleId.value === mod.id }]),
|
|
2999
|
+
onClick: ($event) => selectModule(mod)
|
|
3000
|
+
}, [
|
|
3001
|
+
createElementVNode("div", _hoisted_14, [
|
|
3002
|
+
createElementVNode("span", _hoisted_15, toDisplayString(mod.moduleName), 1),
|
|
3003
|
+
createElementVNode("span", _hoisted_16, toDisplayString(mod.moduleCode), 1)
|
|
3004
|
+
]),
|
|
3005
|
+
createElementVNode("div", {
|
|
3006
|
+
class: "config-sidebar__item-actions",
|
|
3007
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
3008
|
+
}, ["stop"]))
|
|
3009
|
+
}, [
|
|
3010
|
+
createVNode(_component_el_button, {
|
|
3011
|
+
type: "primary",
|
|
3012
|
+
link: "",
|
|
3013
|
+
size: "small",
|
|
3014
|
+
onClick: ($event) => handleEditModule(mod)
|
|
3015
|
+
}, {
|
|
3016
|
+
default: withCtx(() => _cache[23] || (_cache[23] = [
|
|
3017
|
+
createTextVNode("编辑")
|
|
3018
|
+
])),
|
|
3019
|
+
_: 2,
|
|
3020
|
+
__: [23]
|
|
3021
|
+
}, 1032, ["onClick"]),
|
|
3022
|
+
createVNode(_component_el_button, {
|
|
3023
|
+
type: "danger",
|
|
3024
|
+
link: "",
|
|
3025
|
+
size: "small",
|
|
3026
|
+
onClick: ($event) => handleDeleteModule(mod)
|
|
3027
|
+
}, {
|
|
3028
|
+
default: withCtx(() => _cache[24] || (_cache[24] = [
|
|
3029
|
+
createTextVNode("删除")
|
|
3030
|
+
])),
|
|
3031
|
+
_: 2,
|
|
3032
|
+
__: [24]
|
|
3033
|
+
}, 1032, ["onClick"])
|
|
3034
|
+
])
|
|
3035
|
+
], 10, _hoisted_13);
|
|
3036
|
+
}), 128)),
|
|
3037
|
+
moduleList.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_17, "暂无模块")) : createCommentVNode("", true)
|
|
3038
|
+
])
|
|
3039
|
+
])) : createCommentVNode("", true)
|
|
3040
|
+
]),
|
|
3041
|
+
createElementVNode("div", _hoisted_18, [
|
|
3042
|
+
currentSystemId.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3043
|
+
createElementVNode("div", _hoisted_19, [
|
|
3044
|
+
createElementVNode("div", _hoisted_20, [
|
|
3045
|
+
createElementVNode("span", _hoisted_21, toDisplayString(editingField.value ? "编辑字段" : "新增字段"), 1),
|
|
3046
|
+
editingField.value ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
3047
|
+
createVNode(_component_el_button, {
|
|
3048
|
+
size: "small",
|
|
3049
|
+
onClick: cancelEditField
|
|
3050
|
+
}, {
|
|
3051
|
+
default: withCtx(() => _cache[25] || (_cache[25] = [
|
|
3052
|
+
createTextVNode("取消编辑")
|
|
3053
|
+
])),
|
|
3054
|
+
_: 1,
|
|
3055
|
+
__: [25]
|
|
3056
|
+
})
|
|
3057
|
+
])) : createCommentVNode("", true)
|
|
3058
|
+
]),
|
|
3059
|
+
createVNode(_component_el_form, {
|
|
3060
|
+
model: fieldForm,
|
|
3061
|
+
ref_key: "fieldFormRef",
|
|
3062
|
+
ref: fieldFormRef,
|
|
3063
|
+
"label-suffix": ":",
|
|
3064
|
+
"label-width": "110px",
|
|
3065
|
+
"hide-required-asterisk": "",
|
|
3066
|
+
"show-message": "",
|
|
3067
|
+
class: "config-form"
|
|
3068
|
+
}, {
|
|
3069
|
+
default: withCtx(() => [
|
|
3070
|
+
createElementVNode("div", _hoisted_23, [
|
|
3071
|
+
createVNode(_component_el_form_item, {
|
|
3072
|
+
label: "模块/页面",
|
|
3073
|
+
prop: "moduleId"
|
|
3074
|
+
}, {
|
|
3075
|
+
default: withCtx(() => [
|
|
3076
|
+
createVNode(_component_el_select, {
|
|
3077
|
+
clearable: "",
|
|
3078
|
+
filterable: "",
|
|
3079
|
+
modelValue: fieldForm.moduleId,
|
|
3080
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => fieldForm.moduleId = $event),
|
|
3081
|
+
placeholder: "请选择"
|
|
3082
|
+
}, {
|
|
3083
|
+
default: withCtx(() => [
|
|
3084
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(moduleList.value, (item) => {
|
|
3085
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
3086
|
+
key: item.id,
|
|
3087
|
+
label: item.moduleName,
|
|
3088
|
+
value: item.id
|
|
3089
|
+
}, null, 8, ["label", "value"]);
|
|
3090
|
+
}), 128))
|
|
3091
|
+
]),
|
|
3092
|
+
_: 1
|
|
3093
|
+
}, 8, ["modelValue"])
|
|
3094
|
+
]),
|
|
3095
|
+
_: 1
|
|
3096
|
+
}),
|
|
3097
|
+
createVNode(_component_el_form_item, {
|
|
3098
|
+
label: "字段名称",
|
|
3099
|
+
prop: "fieldName"
|
|
3100
|
+
}, {
|
|
3101
|
+
default: withCtx(() => [
|
|
3102
|
+
createVNode(_component_el_input, {
|
|
3103
|
+
modelValue: fieldForm.fieldName,
|
|
3104
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => fieldForm.fieldName = $event),
|
|
3105
|
+
placeholder: "请输入"
|
|
3106
|
+
}, null, 8, ["modelValue"])
|
|
3107
|
+
]),
|
|
3108
|
+
_: 1
|
|
3109
|
+
}),
|
|
3110
|
+
createVNode(_component_el_form_item, {
|
|
3111
|
+
label: "字段Java名称",
|
|
3112
|
+
prop: "fieldJavaName"
|
|
3113
|
+
}, {
|
|
3114
|
+
default: withCtx(() => [
|
|
3115
|
+
createVNode(_component_el_input, {
|
|
3116
|
+
modelValue: fieldForm.fieldJavaName,
|
|
3117
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => fieldForm.fieldJavaName = $event),
|
|
3118
|
+
placeholder: "请输入"
|
|
3119
|
+
}, null, 8, ["modelValue"])
|
|
3120
|
+
]),
|
|
3121
|
+
_: 1
|
|
3122
|
+
}),
|
|
3123
|
+
createVNode(_component_el_form_item, {
|
|
3124
|
+
label: "字段类型",
|
|
3125
|
+
prop: "fieldType"
|
|
3126
|
+
}, {
|
|
3127
|
+
default: withCtx(() => [
|
|
3128
|
+
createVNode(_component_el_select, {
|
|
3129
|
+
clearable: "",
|
|
3130
|
+
filterable: "",
|
|
3131
|
+
modelValue: fieldForm.fieldType,
|
|
3132
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => fieldForm.fieldType = $event),
|
|
3133
|
+
placeholder: "请选择"
|
|
3134
|
+
}, {
|
|
3135
|
+
default: withCtx(() => [
|
|
3136
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(fieldTypeOptions, (item) => {
|
|
3137
|
+
return createVNode(_component_el_option, {
|
|
3138
|
+
key: item.value,
|
|
3139
|
+
label: item.label,
|
|
3140
|
+
value: item.value
|
|
3141
|
+
}, null, 8, ["label", "value"]);
|
|
3142
|
+
}), 64))
|
|
3143
|
+
]),
|
|
3144
|
+
_: 1
|
|
3145
|
+
}, 8, ["modelValue"])
|
|
3146
|
+
]),
|
|
3147
|
+
_: 1
|
|
3148
|
+
}),
|
|
3149
|
+
["el-cascader", "el-select"].includes(fieldForm.fieldType) ? (openBlock(), createBlock(_component_el_form_item, {
|
|
3150
|
+
key: 0,
|
|
3151
|
+
label: "下拉框类别",
|
|
3152
|
+
prop: "selType"
|
|
3153
|
+
}, {
|
|
3154
|
+
default: withCtx(() => [
|
|
3155
|
+
createVNode(_component_el_select, {
|
|
3156
|
+
clearable: "",
|
|
3157
|
+
filterable: "",
|
|
3158
|
+
modelValue: fieldForm.selType,
|
|
3159
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => fieldForm.selType = $event),
|
|
3160
|
+
placeholder: "请选择"
|
|
3161
|
+
}, {
|
|
3162
|
+
default: withCtx(() => [
|
|
3163
|
+
createVNode(_component_el_option, {
|
|
3164
|
+
label: "字典下拉框",
|
|
3165
|
+
value: "1"
|
|
3166
|
+
}),
|
|
3167
|
+
createVNode(_component_el_option, {
|
|
3168
|
+
label: "复合型下拉框",
|
|
3169
|
+
value: "2"
|
|
3170
|
+
}),
|
|
3171
|
+
createVNode(_component_el_option, {
|
|
3172
|
+
label: "普通下拉框",
|
|
3173
|
+
value: "3"
|
|
3174
|
+
})
|
|
3175
|
+
]),
|
|
3176
|
+
_: 1
|
|
3177
|
+
}, 8, ["modelValue"])
|
|
3178
|
+
]),
|
|
3179
|
+
_: 1
|
|
3180
|
+
})) : createCommentVNode("", true),
|
|
3181
|
+
createVNode(_component_el_form_item, {
|
|
3182
|
+
label: "是否必填",
|
|
3183
|
+
prop: "isRequire"
|
|
3184
|
+
}, {
|
|
3185
|
+
default: withCtx(() => [
|
|
3186
|
+
createVNode(_component_el_select, {
|
|
3187
|
+
clearable: "",
|
|
3188
|
+
modelValue: fieldForm.isRequire,
|
|
3189
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => fieldForm.isRequire = $event),
|
|
3190
|
+
placeholder: "请选择"
|
|
3191
|
+
}, {
|
|
3192
|
+
default: withCtx(() => [
|
|
3193
|
+
createVNode(_component_el_option, {
|
|
3194
|
+
label: "是",
|
|
3195
|
+
value: "1"
|
|
3196
|
+
}),
|
|
3197
|
+
createVNode(_component_el_option, {
|
|
3198
|
+
label: "否",
|
|
3199
|
+
value: "0"
|
|
3200
|
+
})
|
|
3201
|
+
]),
|
|
3202
|
+
_: 1
|
|
3203
|
+
}, 8, ["modelValue"])
|
|
3204
|
+
]),
|
|
3205
|
+
_: 1
|
|
3206
|
+
}),
|
|
3207
|
+
createVNode(_component_el_form_item, {
|
|
3208
|
+
label: "是否缓存",
|
|
3209
|
+
prop: "isCache"
|
|
3210
|
+
}, {
|
|
3211
|
+
default: withCtx(() => [
|
|
3212
|
+
createVNode(_component_el_checkbox, {
|
|
3213
|
+
modelValue: fieldForm.isCache,
|
|
3214
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => fieldForm.isCache = $event)
|
|
3215
|
+
}, {
|
|
3216
|
+
default: withCtx(() => _cache[26] || (_cache[26] = [
|
|
3217
|
+
createTextVNode("缓存")
|
|
3218
|
+
])),
|
|
3219
|
+
_: 1,
|
|
3220
|
+
__: [26]
|
|
3221
|
+
}, 8, ["modelValue"])
|
|
3222
|
+
]),
|
|
3223
|
+
_: 1
|
|
3224
|
+
})
|
|
3225
|
+
]),
|
|
3226
|
+
createElementVNode("div", _hoisted_24, [
|
|
3227
|
+
createVNode(_component_el_form_item, {
|
|
3228
|
+
label: "字段属性",
|
|
3229
|
+
prop: "attribute"
|
|
3230
|
+
}, {
|
|
3231
|
+
default: withCtx(() => [
|
|
3232
|
+
createVNode(_component_el_input, {
|
|
3233
|
+
modelValue: fieldForm.attribute,
|
|
3234
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => fieldForm.attribute = $event),
|
|
3235
|
+
type: "textarea",
|
|
3236
|
+
rows: 8,
|
|
3237
|
+
placeholder: "JSON 格式"
|
|
3238
|
+
}, null, 8, ["modelValue"])
|
|
3239
|
+
]),
|
|
3240
|
+
_: 1
|
|
3241
|
+
}),
|
|
3242
|
+
createVNode(_component_el_form_item, {
|
|
3243
|
+
label: "额外属性",
|
|
3244
|
+
prop: "dictKey"
|
|
3245
|
+
}, {
|
|
3246
|
+
default: withCtx(() => [
|
|
3247
|
+
createVNode(_component_el_input, {
|
|
3248
|
+
modelValue: fieldForm.dictKey,
|
|
3249
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => fieldForm.dictKey = $event),
|
|
3250
|
+
type: "textarea",
|
|
3251
|
+
rows: 8,
|
|
3252
|
+
placeholder: "JSON 格式"
|
|
3253
|
+
}, null, 8, ["modelValue"])
|
|
3254
|
+
]),
|
|
3255
|
+
_: 1
|
|
3256
|
+
})
|
|
3257
|
+
]),
|
|
3258
|
+
createElementVNode("div", _hoisted_25, [
|
|
3259
|
+
createVNode(_component_el_button, { onClick: resetFieldForm }, {
|
|
3260
|
+
default: withCtx(() => _cache[27] || (_cache[27] = [
|
|
3261
|
+
createTextVNode("重置")
|
|
3262
|
+
])),
|
|
3263
|
+
_: 1,
|
|
3264
|
+
__: [27]
|
|
3265
|
+
}),
|
|
3266
|
+
createVNode(_component_el_button, {
|
|
3267
|
+
type: "primary",
|
|
3268
|
+
onClick: submitField
|
|
3269
|
+
}, {
|
|
3270
|
+
default: withCtx(() => [
|
|
3271
|
+
createTextVNode(toDisplayString(editingField.value ? "更新" : "提交"), 1)
|
|
3272
|
+
]),
|
|
3273
|
+
_: 1
|
|
3274
|
+
})
|
|
3275
|
+
])
|
|
3276
|
+
]),
|
|
3277
|
+
_: 1
|
|
3278
|
+
}, 8, ["model"])
|
|
3279
|
+
]),
|
|
3280
|
+
createElementVNode("div", _hoisted_26, [
|
|
3281
|
+
_cache[29] || (_cache[29] = createElementVNode("div", { class: "config-section__header" }, [
|
|
3282
|
+
createElementVNode("span", { class: "config-section__title" }, "字段列表")
|
|
3283
|
+
], -1)),
|
|
3284
|
+
createVNode(XVxeTable, {
|
|
3285
|
+
"table-data": fieldTableData.value,
|
|
3286
|
+
"sub-height": "280px",
|
|
3287
|
+
"show-pagination": true,
|
|
3288
|
+
"page-size": fieldPage.pageSize,
|
|
3289
|
+
"current-page": fieldPage.currentPage,
|
|
3290
|
+
total: fieldPage.total,
|
|
3291
|
+
"show-toolbar": false,
|
|
3292
|
+
onChangePage: handleFieldPageChange
|
|
3293
|
+
}, {
|
|
3294
|
+
default: withCtx(() => [
|
|
3295
|
+
createVNode(XVxeColumn, {
|
|
3296
|
+
title: "字段名称",
|
|
3297
|
+
field: "fieldName",
|
|
3298
|
+
"min-width": "120"
|
|
3299
|
+
}),
|
|
3300
|
+
createVNode(XVxeColumn, {
|
|
3301
|
+
title: "Java名称",
|
|
3302
|
+
field: "fieldJavaName",
|
|
3303
|
+
"min-width": "120"
|
|
3304
|
+
}),
|
|
3305
|
+
createVNode(XVxeColumn, {
|
|
3306
|
+
title: "字段类型",
|
|
3307
|
+
field: "fieldType",
|
|
3308
|
+
"min-width": "120"
|
|
3309
|
+
}),
|
|
3310
|
+
createVNode(XVxeColumn, {
|
|
3311
|
+
title: "是否必填",
|
|
3312
|
+
field: "isRequire",
|
|
3313
|
+
width: "90"
|
|
3314
|
+
}, {
|
|
3315
|
+
default: withCtx(({ row }) => [
|
|
3316
|
+
createVNode(_component_el_tag, {
|
|
3317
|
+
type: row.isRequire === "1" ? "danger" : "info",
|
|
3318
|
+
size: "small"
|
|
3319
|
+
}, {
|
|
3320
|
+
default: withCtx(() => [
|
|
3321
|
+
createTextVNode(toDisplayString(row.isRequire === "1" ? "必填" : "非必填"), 1)
|
|
3322
|
+
]),
|
|
3323
|
+
_: 2
|
|
3324
|
+
}, 1032, ["type"])
|
|
3325
|
+
]),
|
|
3326
|
+
_: 1
|
|
3327
|
+
}),
|
|
3328
|
+
createVNode(XVxeColumn, {
|
|
3329
|
+
title: "操作",
|
|
3330
|
+
width: "100",
|
|
3331
|
+
fixed: "right"
|
|
3332
|
+
}, {
|
|
3333
|
+
default: withCtx(({ row }) => [
|
|
3334
|
+
createVNode(_component_el_button, {
|
|
3335
|
+
type: "primary",
|
|
3336
|
+
link: "",
|
|
3337
|
+
size: "small",
|
|
3338
|
+
onClick: ($event) => handleEditField(row)
|
|
3339
|
+
}, {
|
|
3340
|
+
default: withCtx(() => _cache[28] || (_cache[28] = [
|
|
3341
|
+
createTextVNode("编辑")
|
|
3342
|
+
])),
|
|
3343
|
+
_: 2,
|
|
3344
|
+
__: [28]
|
|
3345
|
+
}, 1032, ["onClick"])
|
|
3346
|
+
]),
|
|
3347
|
+
_: 1
|
|
3348
|
+
})
|
|
3349
|
+
]),
|
|
3350
|
+
_: 1
|
|
3351
|
+
}, 8, ["table-data", "page-size", "current-page", "total"])
|
|
3352
|
+
])
|
|
3353
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
3354
|
+
createVNode(_component_el_empty, { description: "请先在左侧选择一个系统" })
|
|
3355
|
+
]))
|
|
3356
|
+
]),
|
|
3357
|
+
createVNode(_component_el_dialog, {
|
|
3358
|
+
modelValue: systemDialogVisible.value,
|
|
3359
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => systemDialogVisible.value = $event),
|
|
3360
|
+
title: editingSystem.value ? "编辑系统" : "新增系统",
|
|
3361
|
+
width: "460px",
|
|
3362
|
+
"destroy-on-close": ""
|
|
3363
|
+
}, {
|
|
3364
|
+
footer: withCtx(() => [
|
|
3365
|
+
createVNode(_component_el_button, {
|
|
3366
|
+
onClick: _cache[12] || (_cache[12] = ($event) => systemDialogVisible.value = false)
|
|
3367
|
+
}, {
|
|
3368
|
+
default: withCtx(() => _cache[30] || (_cache[30] = [
|
|
3369
|
+
createTextVNode("取消")
|
|
3370
|
+
])),
|
|
3371
|
+
_: 1,
|
|
3372
|
+
__: [30]
|
|
3373
|
+
}),
|
|
3374
|
+
createVNode(_component_el_button, {
|
|
3375
|
+
type: "primary",
|
|
3376
|
+
onClick: submitSystem
|
|
3377
|
+
}, {
|
|
3378
|
+
default: withCtx(() => _cache[31] || (_cache[31] = [
|
|
3379
|
+
createTextVNode("确定")
|
|
3380
|
+
])),
|
|
3381
|
+
_: 1,
|
|
3382
|
+
__: [31]
|
|
3383
|
+
})
|
|
3384
|
+
]),
|
|
3385
|
+
default: withCtx(() => [
|
|
3386
|
+
createVNode(_component_el_form, {
|
|
3387
|
+
model: systemForm,
|
|
3388
|
+
ref_key: "systemFormRef",
|
|
3389
|
+
ref: systemFormRef,
|
|
3390
|
+
"label-suffix": ":",
|
|
3391
|
+
"label-width": "90px"
|
|
3392
|
+
}, {
|
|
3393
|
+
default: withCtx(() => [
|
|
3394
|
+
createVNode(_component_el_form_item, {
|
|
3395
|
+
label: "系统名称",
|
|
3396
|
+
prop: "systemName",
|
|
3397
|
+
rules: [{ required: true, message: "请输入系统名称" }]
|
|
3398
|
+
}, {
|
|
3399
|
+
default: withCtx(() => [
|
|
3400
|
+
createVNode(_component_el_input, {
|
|
3401
|
+
modelValue: systemForm.systemName,
|
|
3402
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => systemForm.systemName = $event),
|
|
3403
|
+
placeholder: "请输入系统名称"
|
|
3404
|
+
}, null, 8, ["modelValue"])
|
|
3405
|
+
]),
|
|
3406
|
+
_: 1
|
|
3407
|
+
})
|
|
3408
|
+
]),
|
|
3409
|
+
_: 1
|
|
3410
|
+
}, 8, ["model"])
|
|
3411
|
+
]),
|
|
3412
|
+
_: 1
|
|
3413
|
+
}, 8, ["modelValue", "title"]),
|
|
3414
|
+
createVNode(_component_el_dialog, {
|
|
3415
|
+
modelValue: moduleDialogVisible.value,
|
|
3416
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => moduleDialogVisible.value = $event),
|
|
3417
|
+
title: editingModule.value ? "编辑模块" : "新增模块",
|
|
3418
|
+
width: "460px",
|
|
3419
|
+
"destroy-on-close": ""
|
|
3420
|
+
}, {
|
|
3421
|
+
footer: withCtx(() => [
|
|
3422
|
+
createVNode(_component_el_button, {
|
|
3423
|
+
onClick: _cache[16] || (_cache[16] = ($event) => moduleDialogVisible.value = false)
|
|
3424
|
+
}, {
|
|
3425
|
+
default: withCtx(() => _cache[32] || (_cache[32] = [
|
|
3426
|
+
createTextVNode("取消")
|
|
3427
|
+
])),
|
|
3428
|
+
_: 1,
|
|
3429
|
+
__: [32]
|
|
3430
|
+
}),
|
|
3431
|
+
createVNode(_component_el_button, {
|
|
3432
|
+
type: "primary",
|
|
3433
|
+
onClick: submitModule
|
|
3434
|
+
}, {
|
|
3435
|
+
default: withCtx(() => _cache[33] || (_cache[33] = [
|
|
3436
|
+
createTextVNode("确定")
|
|
3437
|
+
])),
|
|
3438
|
+
_: 1,
|
|
3439
|
+
__: [33]
|
|
3440
|
+
})
|
|
3441
|
+
]),
|
|
3442
|
+
default: withCtx(() => [
|
|
3443
|
+
createVNode(_component_el_form, {
|
|
3444
|
+
model: moduleForm,
|
|
3445
|
+
ref_key: "moduleFormRef",
|
|
3446
|
+
ref: moduleFormRef,
|
|
3447
|
+
"label-suffix": ":",
|
|
3448
|
+
"label-width": "110px"
|
|
3449
|
+
}, {
|
|
3450
|
+
default: withCtx(() => [
|
|
3451
|
+
createVNode(_component_el_form_item, {
|
|
3452
|
+
label: "模块/页面code",
|
|
3453
|
+
prop: "moduleCode",
|
|
3454
|
+
rules: [{ required: true, message: "请输入" }]
|
|
3455
|
+
}, {
|
|
3456
|
+
default: withCtx(() => [
|
|
3457
|
+
createVNode(_component_el_input, {
|
|
3458
|
+
modelValue: moduleForm.moduleCode,
|
|
3459
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => moduleForm.moduleCode = $event),
|
|
3460
|
+
placeholder: "请输入"
|
|
3461
|
+
}, null, 8, ["modelValue"])
|
|
3462
|
+
]),
|
|
3463
|
+
_: 1
|
|
3464
|
+
}),
|
|
3465
|
+
createVNode(_component_el_form_item, {
|
|
3466
|
+
label: "模块/页面名称",
|
|
3467
|
+
prop: "moduleName",
|
|
3468
|
+
rules: [{ required: true, message: "请输入" }]
|
|
3469
|
+
}, {
|
|
3470
|
+
default: withCtx(() => [
|
|
3471
|
+
createVNode(_component_el_input, {
|
|
3472
|
+
modelValue: moduleForm.moduleName,
|
|
3473
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => moduleForm.moduleName = $event),
|
|
3474
|
+
placeholder: "请输入"
|
|
3475
|
+
}, null, 8, ["modelValue"])
|
|
3476
|
+
]),
|
|
3477
|
+
_: 1
|
|
3478
|
+
})
|
|
3479
|
+
]),
|
|
3480
|
+
_: 1
|
|
3481
|
+
}, 8, ["model"])
|
|
3482
|
+
]),
|
|
3483
|
+
_: 1
|
|
3484
|
+
}, 8, ["modelValue", "title"])
|
|
3485
|
+
]);
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
});
|
|
3489
|
+
const XSearchBarConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0f4e9ec9"]]);
|
|
2553
3490
|
const components = {
|
|
2554
3491
|
XDatePicker,
|
|
2555
3492
|
XElForm,
|
|
2556
3493
|
XElFormItem,
|
|
2557
|
-
XElOption: _sfc_main$
|
|
2558
|
-
XElSelect: _sfc_main$
|
|
3494
|
+
XElOption: _sfc_main$9,
|
|
3495
|
+
XElSelect: _sfc_main$8,
|
|
2559
3496
|
XPagination,
|
|
2560
3497
|
XReportTable,
|
|
2561
3498
|
XSearchBar,
|
|
2562
3499
|
XSplitLayout,
|
|
2563
|
-
XSwitch: _sfc_main$
|
|
3500
|
+
XSwitch: _sfc_main$2,
|
|
2564
3501
|
XVxeColumn,
|
|
2565
|
-
XVxeTable
|
|
3502
|
+
XVxeTable,
|
|
3503
|
+
XSearchBarConfig
|
|
2566
3504
|
};
|
|
2567
3505
|
const install = (app) => {
|
|
2568
3506
|
Object.keys(components).forEach((key) => {
|
|
@@ -2584,13 +3522,14 @@ export {
|
|
|
2584
3522
|
XDatePicker,
|
|
2585
3523
|
XElForm,
|
|
2586
3524
|
XElFormItem,
|
|
2587
|
-
_sfc_main$
|
|
2588
|
-
_sfc_main$
|
|
3525
|
+
_sfc_main$9 as XElOption,
|
|
3526
|
+
_sfc_main$8 as XElSelect,
|
|
2589
3527
|
XPagination,
|
|
2590
3528
|
XReportTable,
|
|
2591
3529
|
XSearchBar,
|
|
3530
|
+
XSearchBarConfig,
|
|
2592
3531
|
XSplitLayout,
|
|
2593
|
-
_sfc_main$
|
|
3532
|
+
_sfc_main$2 as XSwitch,
|
|
2594
3533
|
XVxeColumn,
|
|
2595
3534
|
XVxeTable,
|
|
2596
3535
|
index as default,
|