super-page-designer 2.0.51 → 2.0.54
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/es/components/design/utils/assemblys-config.js +67 -1
- package/dist/es/components/design/utils/data-table-util.js +3 -3
- package/dist/es/components/design/utils/form-design-util.d.ts +7 -0
- package/dist/es/components/design/utils/form-design-util.js +9 -0
- package/dist/es/components/design/utils/page-design-util.js +1 -4
- package/dist/es/components/design/utils/page-table-util.d.ts +7 -0
- package/dist/es/components/design/utils/page-table-util.js +50 -7
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +242 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +571 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -692
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +702 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +23 -4
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +23 -16
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +22 -16
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +21 -59
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +16 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +70 -97
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +12 -5
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +92 -63
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +20 -30
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -217
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +217 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +102 -8
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +176 -0
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +17 -28
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +6 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +26 -11
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +17 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +3 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +29 -14
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +41 -3
- package/dist/es/components/design/views/assemblys/form/link/link-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +20 -14
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +26 -29
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue2.js +12 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +27 -29
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +57 -18
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -24
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +20 -7
- package/dist/es/components/design/views/assemblys/page/page-attr.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +38 -6
- package/dist/es/components/design/views/design/page-design.vue.js +4 -3
- package/dist/es/components/design/views/design/view/attr-container.vue.js +4 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +0 -25
- package/dist/es/stores/table-store.d.ts +10 -0
- package/dist/es/stores/table-store.js +20 -0
- package/dist/es/style.css +661 -42
- package/package.json +4 -4
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
4
|
+
import _sfc_main$5 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import DataOrigin from "../common/data-origin.vue.js";
|
|
5
6
|
import _sfc_main$2 from "../common/data-linkage.vue.js";
|
|
6
7
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
7
8
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
9
|
import _sfc_main$3 from "../common/title-suffix.vue.js";
|
|
10
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
11
|
+
import _sfc_main$4 from "../common/verification-custom.vue.js";
|
|
9
12
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
13
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -15,10 +18,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
18
|
type: Object,
|
|
16
19
|
required: true
|
|
17
20
|
},
|
|
21
|
+
pageDesign: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => {
|
|
24
|
+
}
|
|
25
|
+
},
|
|
18
26
|
default: () => ({ props: {} })
|
|
19
27
|
},
|
|
20
|
-
|
|
28
|
+
emits: ["changeAssembly"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
21
30
|
const props = __props;
|
|
31
|
+
const emit = __emit;
|
|
22
32
|
const openCollapseItems = ref(["base"]);
|
|
23
33
|
const isTable = ref(false);
|
|
24
34
|
if (props.configure.isTable) {
|
|
@@ -36,6 +46,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
46
|
function afterBindDefaultValue(modelValue) {
|
|
37
47
|
props.configure.props.base.defaultValue = modelValue;
|
|
38
48
|
}
|
|
49
|
+
function nameChange(val) {
|
|
50
|
+
if (props.configure.isTable) {
|
|
51
|
+
tableResetConfigIndo(props.configure, val);
|
|
52
|
+
} else {
|
|
53
|
+
resetConfigIndo(props.configure, val);
|
|
54
|
+
}
|
|
55
|
+
emit("changeAssembly", props.configure);
|
|
56
|
+
}
|
|
39
57
|
return (_ctx, _cache) => {
|
|
40
58
|
const _component_el_option = resolveComponent("el-option");
|
|
41
59
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -46,8 +64,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
64
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
47
65
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
48
66
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
49
|
-
const _component_el_col = resolveComponent("el-col");
|
|
50
|
-
const _component_el_button = resolveComponent("el-button");
|
|
51
67
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
52
68
|
const _component_el_form = resolveComponent("el-form");
|
|
53
69
|
return openBlock(), createBlock(_component_el_form, {
|
|
@@ -76,6 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
92
|
createVNode(_component_el_select, {
|
|
77
93
|
modelValue: __props.configure.name,
|
|
78
94
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
95
|
+
onChange: nameChange,
|
|
79
96
|
placeholder: "请选择"
|
|
80
97
|
}, {
|
|
81
98
|
default: withCtx(() => [
|
|
@@ -491,30 +508,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
491
508
|
"label-width": "0"
|
|
492
509
|
}, {
|
|
493
510
|
default: withCtx(() => [
|
|
494
|
-
createVNode(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
value: "custom"
|
|
499
|
-
})
|
|
500
|
-
]),
|
|
501
|
-
_: 1
|
|
502
|
-
}),
|
|
503
|
-
createVNode(_component_el_col, { span: 14 }, {
|
|
504
|
-
default: withCtx(() => [
|
|
505
|
-
createVNode(_component_el_button, null, {
|
|
506
|
-
default: withCtx(() => [
|
|
507
|
-
createTextVNode("自定义逻辑")
|
|
508
|
-
]),
|
|
509
|
-
_: 1
|
|
510
|
-
}),
|
|
511
|
-
createVNode(_component_el_button, {
|
|
512
|
-
icon: _ctx.Search,
|
|
513
|
-
circle: ""
|
|
514
|
-
}, null, 8, ["icon"])
|
|
515
|
-
]),
|
|
516
|
-
_: 1
|
|
517
|
-
})
|
|
511
|
+
createVNode(_sfc_main$4, {
|
|
512
|
+
pageDesign: __props.pageDesign,
|
|
513
|
+
verification: __props.configure.props.verification
|
|
514
|
+
}, null, 8, ["pageDesign", "verification"])
|
|
518
515
|
]),
|
|
519
516
|
_: 1
|
|
520
517
|
})
|
|
@@ -522,7 +519,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
522
519
|
]),
|
|
523
520
|
_: 1
|
|
524
521
|
})),
|
|
525
|
-
!isTable.value ? (openBlock(), createBlock(_sfc_main$
|
|
522
|
+
!isTable.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
526
523
|
key: __props.configure.uuid,
|
|
527
524
|
size: __props.configure.props.size
|
|
528
525
|
}, null, 8, ["size"])) : createCommentVNode("", true)
|
|
@@ -13,8 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
type: Object,
|
|
14
14
|
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
15
15
|
// 设置默认值
|
|
16
|
+
},
|
|
17
|
+
// 页面设计对象
|
|
18
|
+
pageDesign: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => {
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
},
|
|
24
|
+
emits: ["changeAssembly"],
|
|
18
25
|
setup(__props) {
|
|
19
26
|
let currentConfigType = ref("base");
|
|
20
27
|
return (_ctx, _cache) => {
|
|
@@ -24,7 +31,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
31
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
32
|
}, null, 8, ["modelValue"]),
|
|
26
33
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
34
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
35
|
+
configure: __props.configure,
|
|
36
|
+
pageDesign: __props.pageDesign,
|
|
37
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
38
|
+
}, null, 8, ["configure", "pageDesign"]), [
|
|
28
39
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
40
|
]),
|
|
30
41
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const designStyle = ref({});
|
|
18
18
|
const designClass = ref("");
|
|
19
19
|
const designHeaderStyle = ref({});
|
|
20
|
-
const designProperty = ref({});
|
|
20
|
+
const designProperty = ref({ value: "" });
|
|
21
21
|
function getRestsParameter() {
|
|
22
22
|
let defineProps = {};
|
|
23
23
|
const tempProps = {};
|
|
@@ -28,6 +28,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
if (defineProps["base"] && defineProps["base"]["multiple"]) {
|
|
29
29
|
tempProps["multiple"] = true;
|
|
30
30
|
tempProps["value"] = [];
|
|
31
|
+
} else {
|
|
32
|
+
tempProps["multiple"] = false;
|
|
33
|
+
tempProps["value"] = "";
|
|
31
34
|
}
|
|
32
35
|
if (defineProps["base"] && defineProps["base"]["defaultValue"]) {
|
|
33
36
|
tempProps["defaultValue"] = defineProps["base"]["defaultValue"];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
3
4
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
5
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
6
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
9
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -14,8 +16,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
16
|
},
|
|
15
17
|
default: () => ({ props: {} })
|
|
16
18
|
},
|
|
17
|
-
|
|
19
|
+
emits: ["changeAssembly"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
18
21
|
const props = __props;
|
|
22
|
+
const emit = __emit;
|
|
19
23
|
const openCollapseItems = ref(["base"]);
|
|
20
24
|
const isTable = ref(false);
|
|
21
25
|
if (props.configure.isTable) {
|
|
@@ -30,6 +34,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
34
|
function afterBindDefaultValue(modelValue) {
|
|
31
35
|
props.configure.props.base.defaultValue = modelValue;
|
|
32
36
|
}
|
|
37
|
+
function nameChange(val) {
|
|
38
|
+
if (props.configure.isTable) {
|
|
39
|
+
tableResetConfigIndo(props.configure, val);
|
|
40
|
+
} else {
|
|
41
|
+
resetConfigIndo(props.configure, val);
|
|
42
|
+
}
|
|
43
|
+
emit("changeAssembly", props.configure);
|
|
44
|
+
}
|
|
33
45
|
return (_ctx, _cache) => {
|
|
34
46
|
const _component_el_option = resolveComponent("el-option");
|
|
35
47
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -71,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
83
|
createVNode(_component_el_select, {
|
|
72
84
|
modelValue: __props.configure.name,
|
|
73
85
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
86
|
+
onChange: nameChange,
|
|
74
87
|
placeholder: "请选择"
|
|
75
88
|
}, {
|
|
76
89
|
default: withCtx(() => [
|
|
@@ -24,7 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
25
|
}, null, 8, ["modelValue"]),
|
|
26
26
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
27
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
28
|
+
configure: __props.configure,
|
|
29
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
30
|
+
}, null, 8, ["configure"]), [
|
|
28
31
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
32
|
]),
|
|
30
33
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
3
4
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
5
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
6
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
10
|
__name: "tag-attr-base",
|
|
@@ -13,9 +15,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
15
|
},
|
|
14
16
|
default: () => ({ props: {} })
|
|
15
17
|
},
|
|
16
|
-
|
|
18
|
+
emits: ["changeAssembly"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
17
20
|
const props = __props;
|
|
18
21
|
const openCollapseItems = ref(["base"]);
|
|
22
|
+
const emit = __emit;
|
|
19
23
|
const isTable = ref(false);
|
|
20
24
|
if (props.configure.isTable) {
|
|
21
25
|
isTable.value = true;
|
|
@@ -29,11 +33,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
33
|
function afterBindDefaultValue(modelValue) {
|
|
30
34
|
props.configure.props.base.defaultValue = modelValue;
|
|
31
35
|
}
|
|
36
|
+
function nameChange(val) {
|
|
37
|
+
if (props.configure.isTable) {
|
|
38
|
+
tableResetConfigIndo(props.configure, val);
|
|
39
|
+
} else {
|
|
40
|
+
resetConfigIndo(props.configure, val);
|
|
41
|
+
}
|
|
42
|
+
emit("changeAssembly", props.configure);
|
|
43
|
+
}
|
|
32
44
|
return (_ctx, _cache) => {
|
|
33
45
|
const _component_el_option = resolveComponent("el-option");
|
|
34
46
|
const _component_el_select = resolveComponent("el-select");
|
|
35
47
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
36
48
|
const _component_el_input = resolveComponent("el-input");
|
|
49
|
+
const _component_el_text = resolveComponent("el-text");
|
|
37
50
|
const _component_el_radio = resolveComponent("el-radio");
|
|
38
51
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
39
52
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
@@ -66,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
79
|
createVNode(_component_el_select, {
|
|
67
80
|
modelValue: __props.configure.name,
|
|
68
81
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
82
|
+
onChange: nameChange,
|
|
69
83
|
placeholder: "请选择"
|
|
70
84
|
}, {
|
|
71
85
|
default: withCtx(() => [
|
|
@@ -145,8 +159,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
159
|
createVNode(_component_el_input, {
|
|
146
160
|
modelValue: __props.configure.props.base.formatting,
|
|
147
161
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.formatting = $event),
|
|
162
|
+
rows: 2,
|
|
163
|
+
type: "textarea",
|
|
148
164
|
placeholder: "请输入"
|
|
149
|
-
}, null, 8, ["modelValue"])
|
|
165
|
+
}, null, 8, ["modelValue"]),
|
|
166
|
+
createVNode(_component_el_text, {
|
|
167
|
+
style: { "line-height": "15px", "margin-top": "5px" },
|
|
168
|
+
type: "success",
|
|
169
|
+
size: "small"
|
|
170
|
+
}, {
|
|
171
|
+
default: withCtx(() => [
|
|
172
|
+
createTextVNode(" ${value}:数据值;${no}:数据序号 ")
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
})
|
|
150
176
|
]),
|
|
151
177
|
_: 1
|
|
152
178
|
}),
|
|
@@ -24,7 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
25
|
}, null, 8, ["modelValue"]),
|
|
26
26
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
27
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
28
|
+
configure: __props.configure,
|
|
29
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
30
|
+
}, null, 8, ["configure"]), [
|
|
28
31
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
32
|
]),
|
|
30
33
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
4
|
+
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
5
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
6
7
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
8
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
9
|
+
import _sfc_main$3 from "../common/verification-custom.vue.js";
|
|
7
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,10 +16,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
16
|
type: Object,
|
|
14
17
|
required: true
|
|
15
18
|
},
|
|
16
|
-
default: () => ({ props: {} })
|
|
19
|
+
default: () => ({ props: {} }),
|
|
20
|
+
pageDesign: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
17
25
|
},
|
|
18
|
-
|
|
26
|
+
emits: ["changeAssembly"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
19
28
|
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
20
30
|
const openCollapseItems = ref(["base"]);
|
|
21
31
|
const isTable = ref(false);
|
|
22
32
|
if (props.configure.isTable) {
|
|
@@ -31,6 +41,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
41
|
function afterBindDefaultValue(modelValue) {
|
|
32
42
|
props.configure.props.base.defaultValue = modelValue;
|
|
33
43
|
}
|
|
44
|
+
function nameChange(val) {
|
|
45
|
+
if (props.configure.isTable) {
|
|
46
|
+
tableResetConfigIndo(props.configure, val);
|
|
47
|
+
} else {
|
|
48
|
+
resetConfigIndo(props.configure, val);
|
|
49
|
+
}
|
|
50
|
+
emit("changeAssembly", props.configure);
|
|
51
|
+
}
|
|
34
52
|
return (_ctx, _cache) => {
|
|
35
53
|
const _component_el_option = resolveComponent("el-option");
|
|
36
54
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -43,7 +61,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
61
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
44
62
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
45
63
|
const _component_el_col = resolveComponent("el-col");
|
|
46
|
-
const _component_el_button = resolveComponent("el-button");
|
|
47
64
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
48
65
|
const _component_el_form = resolveComponent("el-form");
|
|
49
66
|
return openBlock(), createBlock(_component_el_form, {
|
|
@@ -72,6 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
89
|
createVNode(_component_el_select, {
|
|
73
90
|
modelValue: __props.configure.name,
|
|
74
91
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
92
|
+
onChange: nameChange,
|
|
75
93
|
placeholder: "请选择"
|
|
76
94
|
}, {
|
|
77
95
|
default: withCtx(() => [
|
|
@@ -454,30 +472,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
454
472
|
"label-width": "0"
|
|
455
473
|
}, {
|
|
456
474
|
default: withCtx(() => [
|
|
457
|
-
createVNode(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
value: "custom"
|
|
462
|
-
})
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
}),
|
|
466
|
-
createVNode(_component_el_col, { span: 14 }, {
|
|
467
|
-
default: withCtx(() => [
|
|
468
|
-
createVNode(_component_el_button, null, {
|
|
469
|
-
default: withCtx(() => [
|
|
470
|
-
createTextVNode("自定义逻辑")
|
|
471
|
-
]),
|
|
472
|
-
_: 1
|
|
473
|
-
}),
|
|
474
|
-
createVNode(_component_el_button, {
|
|
475
|
-
icon: _ctx.Search,
|
|
476
|
-
circle: ""
|
|
477
|
-
}, null, 8, ["icon"])
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
})
|
|
475
|
+
createVNode(_sfc_main$3, {
|
|
476
|
+
pageDesign: __props.pageDesign,
|
|
477
|
+
verification: __props.configure.props.verification
|
|
478
|
+
}, null, 8, ["pageDesign", "verification"])
|
|
481
479
|
]),
|
|
482
480
|
_: 1
|
|
483
481
|
})
|
|
@@ -485,7 +483,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
485
483
|
]),
|
|
486
484
|
_: 1
|
|
487
485
|
})),
|
|
488
|
-
!isTable.value ? (openBlock(), createBlock(_sfc_main$
|
|
486
|
+
!isTable.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
489
487
|
key: __props.configure.uuid,
|
|
490
488
|
size: __props.configure.props.size
|
|
491
489
|
}, null, 8, ["size"])) : createCommentVNode("", true)
|
|
@@ -13,6 +13,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
type: Object,
|
|
14
14
|
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
15
15
|
// 设置默认值
|
|
16
|
+
},
|
|
17
|
+
// 页面设计对象
|
|
18
|
+
pageDesign: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => {
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
},
|
|
18
24
|
setup(__props) {
|
|
@@ -24,7 +30,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
30
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
31
|
}, null, 8, ["modelValue"]),
|
|
26
32
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
33
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
34
|
+
configure: __props.configure,
|
|
35
|
+
pageDesign: __props.pageDesign,
|
|
36
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
37
|
+
}, null, 8, ["configure", "pageDesign"]), [
|
|
28
38
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
39
|
]),
|
|
30
40
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -129,7 +129,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
() => props.configure.name,
|
|
130
130
|
(newVal) => {
|
|
131
131
|
dynamicComponent.value = getDesignComponentByName(newVal);
|
|
132
|
-
$emits("onSelectWidget", thisComponentIndex, props.configure);
|
|
133
132
|
}
|
|
134
133
|
);
|
|
135
134
|
if (props.configure.props && props.configure.props.verification) {
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, unref, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
2
|
import { ElMessage } from "element-plus";
|
|
3
|
+
import _sfc_main$1 from "../../common/common-select-table.vue.js";
|
|
3
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
6
|
+
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
4
7
|
import { Search, Close } from "@element-plus/icons-vue";
|
|
5
8
|
const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { style: { "display": "block" } }, [
|
|
6
|
-
/* @__PURE__ */ createElementVNode("div", null, "1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分"),
|
|
9
|
+
/* @__PURE__ */ createElementVNode("div", null, " 1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分 "),
|
|
7
10
|
/* @__PURE__ */ createElementVNode("div", null, "2. 表单支态参数设置:格式为,如:BPPJ-${factory}-$year-$month;"),
|
|
8
|
-
/* @__PURE__ */ createElementVNode("div", null, "3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX")
|
|
11
|
+
/* @__PURE__ */ createElementVNode("div", null, " 3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX ")
|
|
9
12
|
], -1);
|
|
10
13
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", null, "1. 为hql 语句 前辍为t 如:t.factory = 'B1' or t.factory = 'B2'", -1);
|
|
11
14
|
const _hoisted_3 = { class: "operation-area operation-area-float" };
|
|
@@ -28,7 +31,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
31
|
emits: ["open", "opend", "closed", "close"],
|
|
29
32
|
setup(__props, { emit: __emit }) {
|
|
30
33
|
const props = __props;
|
|
34
|
+
const pageDesignUtil = usePageContextStore();
|
|
35
|
+
const pageDesign = pageDesignUtil.pageContext;
|
|
31
36
|
const $emit = __emit;
|
|
37
|
+
const selectTableDialog = ref(null);
|
|
32
38
|
const tableColumnData = ref([]);
|
|
33
39
|
const basicInformation = [
|
|
34
40
|
{ label: "年", value: "$year" },
|
|
@@ -45,15 +51,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
51
|
{ label: "初始化时", value: "initialization" },
|
|
46
52
|
{ label: "保存时", value: "whenSaving" }
|
|
47
53
|
];
|
|
48
|
-
ref(false);
|
|
49
54
|
const settingFormNoRuleBase = ref({
|
|
50
55
|
differentDataReset: false,
|
|
51
56
|
continuousMatch: false,
|
|
52
57
|
publishVersion: "",
|
|
53
58
|
enerationMode: "whenSaving"
|
|
54
59
|
});
|
|
55
|
-
const form = ref(
|
|
56
|
-
ref(null);
|
|
60
|
+
const form = ref({});
|
|
57
61
|
onMounted(() => {
|
|
58
62
|
settingFormNoRuleBase.value.publishVersion = props.publishVersion;
|
|
59
63
|
});
|
|
@@ -76,7 +80,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
80
|
});
|
|
77
81
|
}
|
|
78
82
|
function save() {
|
|
79
|
-
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = form.value) == null ? void 0 : _a.validate((valid) => {
|
|
80
85
|
if (valid) {
|
|
81
86
|
if (settingFormNoRuleBase.value["field"]) {
|
|
82
87
|
const fields = settingFormNoRuleBase.value["field"].split(",");
|
|
@@ -84,10 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
89
|
settingFormNoRuleBase.value["fieldName"] = fields[1];
|
|
85
90
|
}
|
|
86
91
|
if (settingFormNoRuleBase.value["id"]) {
|
|
87
|
-
update(
|
|
88
|
-
settingFormNoRuleBase.value["id"],
|
|
89
|
-
settingFormNoRuleBase.value
|
|
90
|
-
).then((data) => {
|
|
92
|
+
update(settingFormNoRuleBase.value["id"], settingFormNoRuleBase.value).then((data) => {
|
|
91
93
|
settingFormNoRuleBase.value = data;
|
|
92
94
|
settingFormNoRuleBase.value["field"] = settingFormNoRuleBase.value["field"] + "," + settingFormNoRuleBase.value["fieldName"];
|
|
93
95
|
ElMessage({
|
|
@@ -122,6 +124,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
124
|
settingFormNoRuleBase.value["ruleSet"] = value.value;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
127
|
+
function selectTable() {
|
|
128
|
+
selectTableDialog.value.openDialog();
|
|
129
|
+
}
|
|
130
|
+
function clearTable() {
|
|
131
|
+
settingFormNoRuleBase.value.entityTableCode = "";
|
|
132
|
+
settingFormNoRuleBase.value.entityTableName = "";
|
|
133
|
+
tableColumnData.value = [];
|
|
134
|
+
}
|
|
135
|
+
function onSelectTable(tableInfo) {
|
|
136
|
+
settingFormNoRuleBase.value.entityTableAlias = tableInfo.alias;
|
|
137
|
+
let hisKey = settingFormNoRuleBase.value.entityTableCode ? settingFormNoRuleBase.value.entityTableCode : "";
|
|
138
|
+
hisKey += "_";
|
|
139
|
+
hisKey += settingFormNoRuleBase.value.systemCode ? settingFormNoRuleBase.value.systemCode : "";
|
|
140
|
+
let newKey = tableInfo.name ? tableInfo.name : "";
|
|
141
|
+
newKey += "_";
|
|
142
|
+
newKey += tableInfo.systemCode ? tableInfo.systemCode : "";
|
|
143
|
+
if (newKey != hisKey) {
|
|
144
|
+
settingFormNoRuleBase.value.entityTableCode = tableInfo.name;
|
|
145
|
+
settingFormNoRuleBase.value.systemCode = tableInfo.systemCode;
|
|
146
|
+
const systemCode = tableInfo.systemCode ? tableInfo.systemCode : pageDesign.systemCode;
|
|
147
|
+
const systemVersion = tableInfo.systemVersion ? tableInfo.systemVersion : pageDesign.systemVersion;
|
|
148
|
+
queryTableFields(systemCode, systemVersion, tableInfo.name).then((tableFields) => {
|
|
149
|
+
tableColumnData.value = tableFields;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
125
153
|
return (_ctx, _cache) => {
|
|
126
154
|
const _component_el_input = resolveComponent("el-input");
|
|
127
155
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -228,18 +256,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
256
|
modelValue: settingFormNoRuleBase.value.entityTableCode,
|
|
229
257
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => settingFormNoRuleBase.value.entityTableCode = $event),
|
|
230
258
|
title: settingFormNoRuleBase.value.entityTableCode,
|
|
259
|
+
onClick: selectTable,
|
|
231
260
|
clearable: "",
|
|
232
261
|
readonly: "true"
|
|
233
262
|
}, {
|
|
234
263
|
append: withCtx(() => [
|
|
235
264
|
createVNode(_component_el_button, {
|
|
236
265
|
icon: unref(Search),
|
|
237
|
-
size: "small"
|
|
266
|
+
size: "small",
|
|
267
|
+
onClick: selectTable
|
|
238
268
|
}, null, 8, ["icon"]),
|
|
239
269
|
createVNode(_component_el_button, {
|
|
240
270
|
icon: unref(Close),
|
|
241
271
|
title: "Clear",
|
|
242
|
-
size: "small"
|
|
272
|
+
size: "small",
|
|
273
|
+
onClick: clearTable
|
|
243
274
|
}, null, 8, ["icon"])
|
|
244
275
|
]),
|
|
245
276
|
_: 1
|
|
@@ -253,7 +284,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
253
284
|
createVNode(_component_el_col, { span: 12 }, {
|
|
254
285
|
default: withCtx(() => [
|
|
255
286
|
createVNode(_component_el_form_item, {
|
|
256
|
-
label: "
|
|
287
|
+
label: "编号字段",
|
|
257
288
|
rules: [
|
|
258
289
|
{
|
|
259
290
|
required: true,
|
|
@@ -270,14 +301,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
270
301
|
"allow-create": "",
|
|
271
302
|
clearable: "",
|
|
272
303
|
filterable: "",
|
|
304
|
+
placeholder: "请选择",
|
|
273
305
|
style: { "padding-left": "10px" }
|
|
274
306
|
}, {
|
|
275
307
|
default: withCtx(() => [
|
|
276
308
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tableColumnData.value, (item) => {
|
|
277
309
|
return openBlock(), createBlock(_component_el_option, {
|
|
278
|
-
key: item.
|
|
279
|
-
label: item.
|
|
280
|
-
value: item.
|
|
310
|
+
key: item.dbColumnName,
|
|
311
|
+
label: item.alias + " " + (item.dbColumnName === item.alias ? "" : item.dbColumnName),
|
|
312
|
+
value: item.dbColumnName
|
|
281
313
|
}, null, 8, ["label", "value"]);
|
|
282
314
|
}), 128))
|
|
283
315
|
]),
|
|
@@ -460,14 +492,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
460
492
|
onClick: goback
|
|
461
493
|
}, {
|
|
462
494
|
default: withCtx(() => [
|
|
463
|
-
createTextVNode("
|
|
495
|
+
createTextVNode(" 关闭 ")
|
|
464
496
|
]),
|
|
465
497
|
_: 1
|
|
466
498
|
})
|
|
467
499
|
])
|
|
468
500
|
]),
|
|
469
501
|
_: 1
|
|
470
|
-
})
|
|
502
|
+
}),
|
|
503
|
+
createVNode(_sfc_main$1, {
|
|
504
|
+
ref_key: "selectTableDialog",
|
|
505
|
+
ref: selectTableDialog,
|
|
506
|
+
onSelectTable,
|
|
507
|
+
systemCode: unref(pageDesign).systemCode,
|
|
508
|
+
systemVersion: unref(pageDesign).systemVersion
|
|
509
|
+
}, null, 8, ["systemCode", "systemVersion"])
|
|
471
510
|
]);
|
|
472
511
|
};
|
|
473
512
|
}
|