super-page-designer 2.0.78 → 2.0.82
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 +23 -23
- package/dist/es/components/design/utils/form-design-util.d.ts +2 -1
- package/dist/es/components/design/utils/form-design-util.js +76 -4
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/utils/page-design-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-design-util.js +27 -0
- package/dist/es/components/design/utils/page-table-util.js +19 -3
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +3 -18
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +10 -9
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +13 -6
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +2 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +9 -6
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +4 -20
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/data/component/column-config.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 +1 -2
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +3 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +16 -16
- 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 +5 -3
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +5 -1560
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1860 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +9 -12
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +11 -7
- 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 +36 -92
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +13 -14
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +5 -0
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +9 -12
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -10
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +5 -10
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +21 -10
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +8 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -7
- package/dist/es/components/design/views/design/page-design.vue.js +4 -0
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +33 -4
- package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +4 -21
- package/dist/es/stores/table-store.js +2 -3
- package/dist/es/style.css +73 -68
- package/package.json +4 -4
|
@@ -1,10 +1,9 @@
|
|
|
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 { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
8
7
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
8
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -19,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
18
|
emits: ["changeAssembly"],
|
|
20
19
|
setup(__props, { emit: __emit }) {
|
|
21
20
|
const props = __props;
|
|
21
|
+
const componentName = ref(props.configure.name);
|
|
22
22
|
const emit = __emit;
|
|
23
23
|
const openCollapseItems = ref(["base"]);
|
|
24
24
|
const isTable = ref(false);
|
|
@@ -35,12 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
props.configure.props.base.defaultValue = modelValue;
|
|
36
36
|
}
|
|
37
37
|
function nameChange(val) {
|
|
38
|
-
|
|
39
|
-
tableResetConfigIndo(props.configure, val);
|
|
40
|
-
} else {
|
|
41
|
-
resetConfigIndo(props.configure, val);
|
|
42
|
-
}
|
|
43
|
-
emit("changeAssembly", props.configure);
|
|
38
|
+
componentNameChange(props.configure, val, emit);
|
|
44
39
|
}
|
|
45
40
|
return (_ctx, _cache) => {
|
|
46
41
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -81,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
76
|
}, {
|
|
82
77
|
default: withCtx(() => [
|
|
83
78
|
createVNode(_component_el_select, {
|
|
84
|
-
modelValue:
|
|
85
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
79
|
+
modelValue: componentName.value,
|
|
80
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
86
81
|
onChange: nameChange,
|
|
87
82
|
placeholder: "请选择"
|
|
88
83
|
}, {
|
|
@@ -135,10 +130,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
130
|
}, {
|
|
136
131
|
default: withCtx(() => [
|
|
137
132
|
(openBlock(), createBlock(BindVariable, {
|
|
133
|
+
isTable: __props.configure.isTable,
|
|
138
134
|
key: __props.configure.uuid,
|
|
139
135
|
modelValue: __props.configure.props.base.defaultValue,
|
|
140
136
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
141
|
-
}, null, 8, ["modelValue"]))
|
|
137
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
142
138
|
]),
|
|
143
139
|
_: 1
|
|
144
140
|
}),
|
|
@@ -1,10 +1,9 @@
|
|
|
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 { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
8
7
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
9
|
__name: "tag-attr-base",
|
|
@@ -18,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
17
|
emits: ["changeAssembly"],
|
|
19
18
|
setup(__props, { emit: __emit }) {
|
|
20
19
|
const props = __props;
|
|
20
|
+
const componentName = ref(props.configure.name);
|
|
21
21
|
const openCollapseItems = ref(["base"]);
|
|
22
22
|
const emit = __emit;
|
|
23
23
|
const isTable = ref(false);
|
|
@@ -34,12 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
props.configure.props.base.defaultValue = modelValue;
|
|
35
35
|
}
|
|
36
36
|
function nameChange(val) {
|
|
37
|
-
|
|
38
|
-
tableResetConfigIndo(props.configure, val);
|
|
39
|
-
} else {
|
|
40
|
-
resetConfigIndo(props.configure, val);
|
|
41
|
-
}
|
|
42
|
-
emit("changeAssembly", props.configure);
|
|
37
|
+
componentNameChange(props.configure, val, emit);
|
|
43
38
|
}
|
|
44
39
|
return (_ctx, _cache) => {
|
|
45
40
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -77,8 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
72
|
}, {
|
|
78
73
|
default: withCtx(() => [
|
|
79
74
|
createVNode(_component_el_select, {
|
|
80
|
-
modelValue:
|
|
81
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
75
|
+
modelValue: componentName.value,
|
|
76
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
82
77
|
onChange: nameChange,
|
|
83
78
|
placeholder: "请选择"
|
|
84
79
|
}, {
|
|
@@ -131,10 +126,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
126
|
}, {
|
|
132
127
|
default: withCtx(() => [
|
|
133
128
|
(openBlock(), createBlock(BindVariable, {
|
|
129
|
+
isTable: __props.configure.isTable,
|
|
134
130
|
key: __props.configure.uuid,
|
|
135
131
|
modelValue: __props.configure.props.base.defaultValue,
|
|
136
132
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
137
|
-
}, null, 8, ["modelValue"]))
|
|
133
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
138
134
|
]),
|
|
139
135
|
_: 1
|
|
140
136
|
}),
|
|
@@ -1,11 +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 {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
7
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
8
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
9
8
|
import _sfc_main$3 from "../common/verification-custom.vue.js";
|
|
10
9
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
10
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -26,6 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
25
|
emits: ["changeAssembly"],
|
|
27
26
|
setup(__props, { emit: __emit }) {
|
|
28
27
|
const props = __props;
|
|
28
|
+
const componentName = ref(props.configure.name);
|
|
29
29
|
const emit = __emit;
|
|
30
30
|
const openCollapseItems = ref(["base"]);
|
|
31
31
|
const isTable = ref(false);
|
|
@@ -42,12 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
props.configure.props.base.defaultValue = modelValue;
|
|
43
43
|
}
|
|
44
44
|
function nameChange(val) {
|
|
45
|
-
|
|
46
|
-
tableResetConfigIndo(props.configure, val);
|
|
47
|
-
} else {
|
|
48
|
-
resetConfigIndo(props.configure, val);
|
|
49
|
-
}
|
|
50
|
-
emit("changeAssembly", props.configure);
|
|
45
|
+
componentNameChange(props.configure, val, emit);
|
|
51
46
|
}
|
|
52
47
|
return (_ctx, _cache) => {
|
|
53
48
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -87,8 +82,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
82
|
}, {
|
|
88
83
|
default: withCtx(() => [
|
|
89
84
|
createVNode(_component_el_select, {
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
85
|
+
modelValue: componentName.value,
|
|
86
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
92
87
|
onChange: nameChange,
|
|
93
88
|
placeholder: "请选择"
|
|
94
89
|
}, {
|
|
@@ -141,10 +136,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
136
|
}, {
|
|
142
137
|
default: withCtx(() => [
|
|
143
138
|
(openBlock(), createBlock(BindVariable, {
|
|
139
|
+
isTable: __props.configure.isTable,
|
|
144
140
|
key: __props.configure.uuid,
|
|
145
141
|
modelValue: __props.configure.props.base.defaultValue,
|
|
146
142
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
147
|
-
}, null, 8, ["modelValue"]))
|
|
143
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
148
144
|
]),
|
|
149
145
|
_: 1
|
|
150
146
|
}),
|
|
@@ -11,6 +11,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: any;
|
|
13
13
|
};
|
|
14
|
+
systemCode: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
14
18
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
19
|
close: (...args: any[]) => void;
|
|
16
20
|
open: (...args: any[]) => void;
|
|
@@ -29,12 +33,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
29
33
|
type: NumberConstructor;
|
|
30
34
|
default: any;
|
|
31
35
|
};
|
|
36
|
+
systemCode: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
32
40
|
}>> & {
|
|
33
41
|
onClose?: (...args: any[]) => any;
|
|
34
42
|
onOpen?: (...args: any[]) => any;
|
|
35
43
|
onOpend?: (...args: any[]) => any;
|
|
36
44
|
onClosed?: (...args: any[]) => any;
|
|
37
45
|
}, {
|
|
46
|
+
systemCode: string;
|
|
38
47
|
code: string;
|
|
39
48
|
rowId: number;
|
|
40
49
|
publishVersion: number;
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -26,6 +26,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
publishVersion: {
|
|
27
27
|
type: Number,
|
|
28
28
|
default: null
|
|
29
|
+
},
|
|
30
|
+
systemCode: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: null
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
emits: ["open", "opend", "closed", "close"],
|
|
@@ -55,17 +59,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
59
|
differentDataReset: false,
|
|
56
60
|
continuousMatch: false,
|
|
57
61
|
publishVersion: "",
|
|
62
|
+
systemCode: "",
|
|
58
63
|
enerationMode: "whenSaving"
|
|
59
64
|
});
|
|
60
65
|
const form = ref({});
|
|
61
66
|
onMounted(() => {
|
|
62
67
|
settingFormNoRuleBase.value.publishVersion = props.publishVersion;
|
|
68
|
+
settingFormNoRuleBase.value.systemCode = props.systemCode;
|
|
63
69
|
});
|
|
64
70
|
function create(data) {
|
|
65
71
|
return http.post(window["$vueApp"].config.globalProperties.baseAPI + "/mms/setting-form-rule-base", data);
|
|
66
72
|
}
|
|
67
73
|
function update(id, data) {
|
|
68
|
-
return http.put(window["$vueApp"].config.globalProperties.baseAPI + `/mms/setting-form-rule-base/${id}
|
|
74
|
+
return http.put(window["$vueApp"].config.globalProperties.baseAPI + `/mms/setting-form-rule-base/${id}`, data);
|
|
69
75
|
}
|
|
70
76
|
function preview(data) {
|
|
71
77
|
return http.post(window["$vueApp"].config.globalProperties.baseAPI + "/mms/setting-form-rule-base/preview", data);
|
|
@@ -83,15 +89,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
89
|
var _a;
|
|
84
90
|
(_a = form.value) == null ? void 0 : _a.validate((valid) => {
|
|
85
91
|
if (valid) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
const fieldDbName = settingFormNoRuleBase.value["field"];
|
|
93
|
+
if (fieldDbName) {
|
|
94
|
+
const column = tableColumnData.value.filter((item) => item.dbColumnName && item.dbColumnName === fieldDbName);
|
|
95
|
+
if (column && column.length > 0) {
|
|
96
|
+
settingFormNoRuleBase.value["fieldName"] = column[0]["name"];
|
|
97
|
+
}
|
|
90
98
|
}
|
|
91
99
|
if (settingFormNoRuleBase.value["id"]) {
|
|
100
|
+
console.log("修改表单编号规则---settingFormNoRuleBase.value===", settingFormNoRuleBase.value);
|
|
92
101
|
update(settingFormNoRuleBase.value["id"], settingFormNoRuleBase.value).then((data) => {
|
|
93
102
|
settingFormNoRuleBase.value = data;
|
|
94
|
-
settingFormNoRuleBase.value["field"] = settingFormNoRuleBase.value["field"] + "," + settingFormNoRuleBase.value["fieldName"];
|
|
95
103
|
ElMessage({
|
|
96
104
|
showClose: true,
|
|
97
105
|
message: "保存成功",
|
|
@@ -99,9 +107,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
107
|
});
|
|
100
108
|
});
|
|
101
109
|
} else {
|
|
110
|
+
settingFormNoRuleBase.value.systemCode = props.systemCode;
|
|
111
|
+
console.log("创建表单编号规则---settingFormNoRuleBase.value===", settingFormNoRuleBase.value);
|
|
102
112
|
create(settingFormNoRuleBase.value).then((data) => {
|
|
103
113
|
settingFormNoRuleBase.value = data;
|
|
104
|
-
settingFormNoRuleBase.value["field"] = settingFormNoRuleBase.value["field"] + "," + settingFormNoRuleBase.value["fieldName"];
|
|
105
114
|
ElMessage({
|
|
106
115
|
showClose: true,
|
|
107
116
|
message: "保存成功",
|
|
@@ -115,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
124
|
});
|
|
116
125
|
}
|
|
117
126
|
function goback() {
|
|
118
|
-
$emit("close");
|
|
127
|
+
$emit("close", settingFormNoRuleBase.value.ruleCode);
|
|
119
128
|
}
|
|
120
129
|
function clickBasic(value) {
|
|
121
130
|
if (settingFormNoRuleBase.value["ruleSet"]) {
|
|
@@ -133,13 +142,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
142
|
tableColumnData.value = [];
|
|
134
143
|
}
|
|
135
144
|
function onSelectTable(tableInfo) {
|
|
145
|
+
const initSystemCode = settingFormNoRuleBase.value.systemCode ? settingFormNoRuleBase.value.systemCode : "";
|
|
136
146
|
settingFormNoRuleBase.value.entityTableAlias = tableInfo.alias;
|
|
137
147
|
let hisKey = settingFormNoRuleBase.value.entityTableCode ? settingFormNoRuleBase.value.entityTableCode : "";
|
|
138
148
|
hisKey += "_";
|
|
139
|
-
hisKey +=
|
|
149
|
+
hisKey += initSystemCode;
|
|
140
150
|
let newKey = tableInfo.name ? tableInfo.name : "";
|
|
141
151
|
newKey += "_";
|
|
142
|
-
newKey += tableInfo.systemCode ? tableInfo.systemCode :
|
|
152
|
+
newKey += tableInfo.systemCode ? tableInfo.systemCode : initSystemCode;
|
|
153
|
+
console.log("onSelectTable----newKey=", newKey, "hisKey=", hisKey);
|
|
143
154
|
if (newKey != hisKey) {
|
|
144
155
|
settingFormNoRuleBase.value.entityTableCode = tableInfo.name;
|
|
145
156
|
settingFormNoRuleBase.value.systemCode = tableInfo.systemCode;
|
|
@@ -72,7 +72,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
props.configure.props["judgeHeavyList"] = tabValue;
|
|
73
73
|
WeightFieldInputClose();
|
|
74
74
|
}
|
|
75
|
-
function getRuleClose() {
|
|
75
|
+
function getRuleClose(formNoRuleCode) {
|
|
76
|
+
if (formNoRuleCode && !props.configure.props.formNoRuleCode) {
|
|
77
|
+
props.configure.props.formNoRuleCode = formNoRuleCode;
|
|
78
|
+
}
|
|
79
|
+
initFormNoRules();
|
|
76
80
|
settingFormRuleBaseInputVisile.value = false;
|
|
77
81
|
}
|
|
78
82
|
function trimString(event) {
|
|
@@ -239,10 +243,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
243
|
}, 8, ["modelValue"]),
|
|
240
244
|
settingFormRuleBaseInputVisile.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
241
245
|
key: 0,
|
|
242
|
-
code: _ctx.configure.
|
|
246
|
+
code: _ctx.configure.props.formNoRuleCode,
|
|
243
247
|
publishVersion: _ctx.configure.systemVersion,
|
|
248
|
+
systemCode: _ctx.configure.systemCode,
|
|
244
249
|
onClose: getRuleClose
|
|
245
|
-
}, null, 8, ["code", "publishVersion"])) : createCommentVNode("", true),
|
|
250
|
+
}, null, 8, ["code", "publishVersion", "systemCode"])) : createCommentVNode("", true),
|
|
246
251
|
WeightFieldInputVisile.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
247
252
|
key: 1,
|
|
248
253
|
judgeHeavyList: _ctx.configure.props.judgeHeavyList,
|
|
@@ -64,16 +64,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
operationArr.value.push([]);
|
|
65
65
|
}
|
|
66
66
|
function afterBindDefaultValue(modelValue, row) {
|
|
67
|
-
row.
|
|
67
|
+
row.propValue = modelValue;
|
|
68
68
|
}
|
|
69
|
-
function changeFieldName(index,
|
|
69
|
+
function changeFieldName(index, row, propDbName) {
|
|
70
70
|
console.log("%c描述-164035", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.fieldMap);
|
|
71
|
-
const item = props.fieldMap[
|
|
71
|
+
const item = props.fieldMap[propDbName];
|
|
72
72
|
if (item.type === "date") {
|
|
73
73
|
tableData.value[index].isData = true;
|
|
74
74
|
} else {
|
|
75
75
|
tableData.value[index].isData = false;
|
|
76
76
|
}
|
|
77
|
+
row.propName = item.name;
|
|
78
|
+
row.dataType = item.dataType;
|
|
77
79
|
operationArr.value[index] = getOperators(item);
|
|
78
80
|
}
|
|
79
81
|
function savebuttonSetting() {
|
|
@@ -231,11 +233,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
233
|
}, {
|
|
232
234
|
default: withCtx((scope) => [
|
|
233
235
|
createVNode(_component_el_select, {
|
|
234
|
-
modelValue: scope.row.
|
|
235
|
-
"onUpdate:modelValue": ($event) => scope.row.
|
|
236
|
+
modelValue: scope.row.propDbName,
|
|
237
|
+
"onUpdate:modelValue": ($event) => scope.row.propDbName = $event,
|
|
236
238
|
clearable: "",
|
|
237
239
|
size: "default",
|
|
238
|
-
onChange: ($event) => changeFieldName(scope.$index, scope.row.
|
|
240
|
+
onChange: ($event) => changeFieldName(scope.$index, scope.row, scope.row.propDbName)
|
|
239
241
|
}, {
|
|
240
242
|
default: withCtx(() => [
|
|
241
243
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fieldNameList, (item, index) => {
|
|
@@ -285,7 +287,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285
287
|
default: withCtx((scope) => [
|
|
286
288
|
createVNode(BindVariable, {
|
|
287
289
|
size: "default",
|
|
288
|
-
modelValue: scope.row.
|
|
290
|
+
modelValue: scope.row.propValue,
|
|
289
291
|
"onUpdate:modelValue": (data) => afterBindDefaultValue(data, scope.row)
|
|
290
292
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
291
293
|
]),
|
|
@@ -88,6 +88,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
const systemVersion = pageDesign2.tableSysVersion ? pageDesign2.tableSysVersion : pageDesign2.systemVersion;
|
|
89
89
|
queryTableFields(systemCode, systemVersion, pageDesign2.tableName).then((tableFields) => {
|
|
90
90
|
pageDesign2.modelFields = tableFields;
|
|
91
|
+
pageDesign2.modelFieldsMap = {};
|
|
92
|
+
tableFields.forEach((item) => {
|
|
93
|
+
pageDesign2.modelFieldsMap[item.dbColumnName] = item;
|
|
94
|
+
});
|
|
91
95
|
pageDesignUtil.setPageContext(pageDesign2);
|
|
92
96
|
});
|
|
93
97
|
}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./config.vue2.js";
|
|
3
|
-
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26f79956"]]);
|
|
5
|
-
export {
|
|
6
|
-
config as default
|
|
7
|
-
};
|
|
1
|
+
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import _sfc_main from "./config.vue3.js";
|
|
2
|
+
import "./config.vue.js";
|
|
3
|
+
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26f79956"]]);
|
|
5
|
+
export {
|
|
6
|
+
config as default
|
|
7
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, withDirectives, vShow, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import { ElMessageBox, ElMessage } from "element-plus";
|
|
3
|
-
import config from "./config.
|
|
3
|
+
import config from "./config.vue2.js";
|
|
4
4
|
import { standardButtonOperations } from "../../../utils/assemblys-config.js";
|
|
5
|
-
import { getUuidv4, deepCopy } from "../../../utils/common-util.js";
|
|
5
|
+
import { findDesignItemByUuid, getUuidv4, deepCopy } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
7
7
|
import { undoRedo } from "../../../../../stores/event-undo-redo-store.js";
|
|
8
8
|
import eventBus from "../../../utils/eventBus.js";
|
|
@@ -151,21 +151,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
151
|
}
|
|
152
152
|
const tempObj = tempEvent.value;
|
|
153
153
|
let hisEvent = null;
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
let currentEventIndex = -1;
|
|
155
|
+
for (let index = 0; index < pageDesign.customEvents.length; index++) {
|
|
156
|
+
const e = pageDesign.customEvents[index];
|
|
157
|
+
if (tempObj.name === "customFunc") {
|
|
156
158
|
if (e.uuid == tempObj.uuid) {
|
|
157
159
|
hisEvent = e;
|
|
160
|
+
currentEventIndex = index;
|
|
158
161
|
break;
|
|
159
162
|
}
|
|
160
163
|
} else {
|
|
161
164
|
if (e.componentUuid == tempObj.componentUuid && e.name == tempObj.name) {
|
|
162
165
|
hisEvent = e;
|
|
166
|
+
currentEventIndex = index;
|
|
163
167
|
break;
|
|
164
168
|
}
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
171
|
if (hisEvent) {
|
|
168
172
|
Object.assign(hisEvent, tempObj);
|
|
173
|
+
pageDesign.customEvents[currentEventIndex] = hisEvent;
|
|
174
|
+
if (hisEvent.name !== "customFunc" && hisEvent.componentUuid) {
|
|
175
|
+
const itemConfig = findDesignItemByUuid(pageDesign, hisEvent.componentUuid);
|
|
176
|
+
if (itemConfig && itemConfig.events) {
|
|
177
|
+
const eventIndex = itemConfig.events.findIndex(
|
|
178
|
+
(e) => e.name == hisEvent.name && e.componentUuid == hisEvent.componentUuid
|
|
179
|
+
);
|
|
180
|
+
if (eventIndex > -1) {
|
|
181
|
+
itemConfig.events[eventIndex] = hisEvent;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
169
185
|
} else {
|
|
170
186
|
Object.assign(editEvent.value, tempObj);
|
|
171
187
|
pageDesign.customEvents.push(editEvent.value);
|
|
@@ -280,12 +296,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
296
|
event2.remark = "";
|
|
281
297
|
event2.standardValues = [];
|
|
282
298
|
pageDesign.customEvents.splice(i, 1);
|
|
299
|
+
deleteComponentEvent(tempObj);
|
|
283
300
|
break;
|
|
284
301
|
}
|
|
285
302
|
}
|
|
286
303
|
}
|
|
287
304
|
}
|
|
288
305
|
}
|
|
306
|
+
function deleteComponentEvent(event) {
|
|
307
|
+
const pageDesign = pageDesignUtil.pageContext;
|
|
308
|
+
const itemConfig = findDesignItemByUuid(pageDesign, event.componentUuid);
|
|
309
|
+
if (itemConfig && itemConfig.events) {
|
|
310
|
+
const eventIndex = itemConfig.events.findIndex(
|
|
311
|
+
(e) => e.name == event.name && e.componentUuid == event.componentUuid
|
|
312
|
+
);
|
|
313
|
+
if (eventIndex > -1) {
|
|
314
|
+
itemConfig.events.splice(eventIndex, 1);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
289
318
|
function validateBeforeSave() {
|
|
290
319
|
const tempObj = tempEvent.value;
|
|
291
320
|
if (!tempObj.isStandard) {
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
const cacheComponent = {};
|
|
36
36
|
function changeAssembly(configure) {
|
|
37
37
|
console.log("%c描述-103213", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", configure);
|
|
38
|
-
if (!configure || !configure.name || configure.name
|
|
38
|
+
if (!configure || !configure.name || configure.name === "page") {
|
|
39
39
|
dynamicConfigure.value = props.pageInfo;
|
|
40
40
|
dynamicComponent.value = _sfc_main$1;
|
|
41
41
|
} else {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./page-switch.vue2.js";
|
|
2
2
|
import "./page-switch.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const PageSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const PageSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-56a8e877"]]);
|
|
5
5
|
export {
|
|
6
6
|
PageSwitch as default
|
|
7
7
|
};
|
|
@@ -111,10 +111,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
}, {
|
|
112
112
|
reference: withCtx(() => [
|
|
113
113
|
createVNode(_component_el_button, {
|
|
114
|
-
color: "#eee",
|
|
115
114
|
icon: unref(Operation),
|
|
116
|
-
style: { "width": "150px", "font-size": "14px", "font-weight": "600" }
|
|
117
|
-
type: "primary"
|
|
115
|
+
style: { "width": "150px", "font-size": "14px", "font-weight": "600" }
|
|
118
116
|
}, {
|
|
119
117
|
default: withCtx(() => [
|
|
120
118
|
createTextVNode(toDisplayString(__props.pageDesign.label + "(" + __props.pageDesign.version + ")") + " ", 1),
|
|
@@ -6,7 +6,7 @@ import { deepCopy, getUuidv4, findDesignItemByUuid } from "../../../utils/common
|
|
|
6
6
|
import { addComponentRef } from "../../../utils/page-helper-util.js";
|
|
7
7
|
import { caculatePageStyle } from "../../../utils/container-design-util.js";
|
|
8
8
|
import _sfc_main$2 from "./view-design-preview.vue.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ElMessage } from "element-plus";
|
|
10
10
|
import "@vueuse/core";
|
|
11
11
|
import "@element-plus/icons-vue";
|
|
12
12
|
import "codemirror";
|
|
@@ -15,7 +15,7 @@ import "@codemirror/state";
|
|
|
15
15
|
import "@codemirror/autocomplete";
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
|
-
import "../page-event/config.
|
|
18
|
+
import "../page-event/config.vue.js";
|
|
19
19
|
import "../../../utils/assemblys-config.js";
|
|
20
20
|
import "../../../../../stores/page-store.js";
|
|
21
21
|
import "../../../../../stores/event-undo-redo-store.js";
|
|
@@ -23,6 +23,7 @@ import "../../../utils/eventBus.js";
|
|
|
23
23
|
import _sfc_main$3 from "./components/quick-add-dialog.vue.js";
|
|
24
24
|
import { setTableRuntimesFromConfigure } from "../../../utils/page-table-util.js";
|
|
25
25
|
import http from "agilebuilder-ui/src/utils/request";
|
|
26
|
+
import { deleteDesignItem } from "../../../utils/page-design-util.js";
|
|
26
27
|
const _hoisted_1 = { class: "amb-design-content-center-header" };
|
|
27
28
|
const _hoisted_2 = { class: "amb-design-tool" };
|
|
28
29
|
const _hoisted_3 = { class: "amb-design-tool-item" };
|
|
@@ -141,25 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
142
|
pageItems.splice(index, 0, copyObj);
|
|
142
143
|
}
|
|
143
144
|
function deleteItem(sourceItem) {
|
|
144
|
-
|
|
145
|
-
ElMessageBox.confirm("还有子元素,确定要删除吗?", "删除", {
|
|
146
|
-
confirmButtonText: "确认",
|
|
147
|
-
cancelButtonText: "取消",
|
|
148
|
-
type: "warning"
|
|
149
|
-
}).then(() => {
|
|
150
|
-
_deleteItem(sourceItem);
|
|
151
|
-
}).catch((err) => {
|
|
152
|
-
console.log(err);
|
|
153
|
-
});
|
|
154
|
-
} else {
|
|
155
|
-
_deleteItem(sourceItem);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function _deleteItem(sourceItem) {
|
|
159
|
-
const index = pageItems.indexOf(sourceItem);
|
|
160
|
-
if (index > -1) {
|
|
161
|
-
pageItems.splice(index, 1);
|
|
162
|
-
}
|
|
145
|
+
deleteDesignItem(pageItems, sourceItem, sourceItem.items && sourceItem.items.length > 0, true);
|
|
163
146
|
}
|
|
164
147
|
const pageDesignBoardMain = ref(null);
|
|
165
148
|
useDraggable(pageDesignBoardMain, pageItems, {
|
|
@@ -7,10 +7,9 @@ const tableField = defineStore("dataOptions", () => {
|
|
|
7
7
|
let arr = [];
|
|
8
8
|
tableFields.forEach((item) => {
|
|
9
9
|
arr.push({
|
|
10
|
-
value: item.
|
|
10
|
+
value: item.dbColumnName,
|
|
11
11
|
label: item.alias,
|
|
12
|
-
alias: item.alias
|
|
13
|
-
dbColumnName: item.dbColumnName
|
|
12
|
+
alias: item.alias
|
|
14
13
|
});
|
|
15
14
|
});
|
|
16
15
|
fieldList.value = arr;
|