super-page-designer 2.0.79 → 2.0.83
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 +24 -24
- package/dist/es/components/design/utils/form-design-util.d.ts +17 -1
- package/dist/es/components/design/utils/form-design-util.js +112 -4
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +2 -1
- 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 +31 -10
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +9 -13
- 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 +15 -13
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +13 -6
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +2 -2
- 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-advanced-basic-showcondition.vue.js +8 -7
- 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.vue3.js +6 -3
- 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 +2 -3
- 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 +1908 -1
- 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-format.vue.js +1 -1
- 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/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/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 +13 -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/object-design.vue.js +14 -2
- 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/page-event-content.vue.js +32 -3
- 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 +3 -20
- package/dist/es/style.css +17 -12
- package/package.json +4 -4
|
@@ -1,12 +1,11 @@
|
|
|
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 DataOrigin from "../common/data-origin.vue.js";
|
|
6
6
|
import _sfc_main$2 from "../common/data-linkage.vue.js";
|
|
7
7
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
8
8
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
9
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
10
9
|
import _sfc_main$3 from "../common/verification-custom.vue.js";
|
|
11
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -33,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
32
|
if (props.configure.isTable) {
|
|
34
33
|
isTable.value = true;
|
|
35
34
|
}
|
|
35
|
+
const componentName = ref(props.configure.name);
|
|
36
36
|
function afterBindVariable(modelValue, alias) {
|
|
37
37
|
props.configure.props.base.prop = modelValue;
|
|
38
38
|
if (alias) {
|
|
@@ -43,12 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
props.configure.props.base.defaultValue = modelValue;
|
|
44
44
|
}
|
|
45
45
|
function nameChange(val) {
|
|
46
|
-
|
|
47
|
-
tableResetConfigIndo(props.configure, val);
|
|
48
|
-
} else {
|
|
49
|
-
resetConfigIndo(props.configure, val);
|
|
50
|
-
}
|
|
51
|
-
emit("changeAssembly", props.configure);
|
|
46
|
+
componentNameChange(props.configure, val, emit);
|
|
52
47
|
}
|
|
53
48
|
return (_ctx, _cache) => {
|
|
54
49
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -86,8 +81,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
81
|
}, {
|
|
87
82
|
default: withCtx(() => [
|
|
88
83
|
createVNode(_component_el_select, {
|
|
89
|
-
modelValue:
|
|
90
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
84
|
+
modelValue: componentName.value,
|
|
85
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
91
86
|
onChange: nameChange,
|
|
92
87
|
placeholder: "请选择"
|
|
93
88
|
}, {
|
|
@@ -126,11 +121,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
121
|
}, {
|
|
127
122
|
default: withCtx(() => [
|
|
128
123
|
(openBlock(), createBlock(BindVariable, {
|
|
124
|
+
isTable: __props.configure.isTable,
|
|
129
125
|
key: __props.configure.uuid,
|
|
130
126
|
modelValue: __props.configure.props.base.prop,
|
|
131
127
|
paramTypes: ["data", "page"],
|
|
132
128
|
"onUpdate:modelValue": afterBindVariable
|
|
133
|
-
}, null, 8, ["modelValue"]))
|
|
129
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
134
130
|
]),
|
|
135
131
|
_: 1
|
|
136
132
|
})) : createCommentVNode("", true),
|
|
@@ -140,10 +136,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
136
|
}, {
|
|
141
137
|
default: withCtx(() => [
|
|
142
138
|
(openBlock(), createBlock(BindVariable, {
|
|
139
|
+
isTable: __props.configure.isTable,
|
|
143
140
|
key: __props.configure.uuid,
|
|
144
141
|
modelValue: __props.configure.props.base.defaultValue,
|
|
145
142
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
146
|
-
}, null, 8, ["modelValue"]))
|
|
143
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
147
144
|
]),
|
|
148
145
|
_: 1
|
|
149
146
|
}),
|
|
@@ -14,18 +14,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
},
|
|
15
15
|
setup(__props, { expose: __expose }) {
|
|
16
16
|
const props = __props;
|
|
17
|
+
const tableData = ref([]);
|
|
18
|
+
if (props.list) {
|
|
19
|
+
tableData.value = props.list;
|
|
20
|
+
}
|
|
17
21
|
const dialogVisible = ref(false);
|
|
18
22
|
const currentRow = ref({});
|
|
19
23
|
function remove() {
|
|
20
|
-
if (
|
|
21
|
-
|
|
24
|
+
if (tableData.value && tableData.value.length > 0) {
|
|
25
|
+
tableData.value.splice(tableData.value.length - 1, 1);
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
function handleCurrentChange(val) {
|
|
25
29
|
currentRow.value = val;
|
|
26
30
|
}
|
|
27
31
|
function add() {
|
|
28
|
-
|
|
32
|
+
tableData.value.push({
|
|
29
33
|
uuid: getUuidv4(),
|
|
30
34
|
leftBracket: "",
|
|
31
35
|
propName: "",
|
|
@@ -42,12 +46,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
46
|
if (sortIndex < 1) {
|
|
43
47
|
return;
|
|
44
48
|
}
|
|
45
|
-
const items =
|
|
49
|
+
const items = tableData.value;
|
|
46
50
|
[items[sortIndex - 1], items[sortIndex]] = [items[sortIndex], items[sortIndex - 1]];
|
|
47
51
|
}
|
|
48
52
|
function moveToBottom(rowItem) {
|
|
49
53
|
let sortIndex = queryIndex(rowItem);
|
|
50
|
-
const items =
|
|
54
|
+
const items = tableData.value;
|
|
51
55
|
if (sortIndex == -1 || items.length == sortIndex + 1) {
|
|
52
56
|
return;
|
|
53
57
|
}
|
|
@@ -57,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
61
|
let sortIndex = -1;
|
|
58
62
|
const itemLen = props.list.length;
|
|
59
63
|
for (let index = 0; index < itemLen; index++) {
|
|
60
|
-
if (
|
|
64
|
+
if (tableData.value[index].uuid == rowItem.uuid) {
|
|
61
65
|
sortIndex = index;
|
|
62
66
|
break;
|
|
63
67
|
}
|
|
@@ -176,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
180
|
border: "",
|
|
177
181
|
"highlight-current-row": "",
|
|
178
182
|
onCurrentChange: handleCurrentChange,
|
|
179
|
-
data:
|
|
183
|
+
data: tableData.value,
|
|
180
184
|
style: { "width": "100%" }
|
|
181
185
|
}, {
|
|
182
186
|
default: withCtx(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, withDirectives, createTextVNode, createElementBlock, Fragment, renderList, vShow, normalizeClass } from "vue";
|
|
2
|
-
import _sfc_main$3 from "./dataorigin-input-table.
|
|
2
|
+
import _sfc_main$3 from "./dataorigin-input-table.vue2.js";
|
|
3
3
|
import _sfc_main$2 from "./condition.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e6c84ad9"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode,
|
|
2
|
-
import _sfc_main$
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import _sfc_main$
|
|
5
|
-
import _sfc_main$
|
|
6
|
-
import _sfc_main$5 from "./data-origin-service-in.vue.js";
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, withDirectives, vShow, unref, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
|
|
2
|
+
import _sfc_main$2 from "./condition.vue.js";
|
|
3
|
+
import _sfc_main$1 from "./row-ul-li.vue.js";
|
|
4
|
+
import _sfc_main$5 from "./data-origin-autoset.vue.js";
|
|
5
|
+
import _sfc_main$4 from "./data-origin-service-in.vue.js";
|
|
7
6
|
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
8
|
-
import _sfc_main$
|
|
7
|
+
import _sfc_main$6 from "../../common/common-select-table.vue.js";
|
|
9
8
|
import { Search, Close } from "@element-plus/icons";
|
|
10
9
|
import http from "agilebuilder-ui/src/utils/request";
|
|
11
10
|
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
12
|
-
import _sfc_main$
|
|
11
|
+
import _sfc_main$3 from "../../common/page-permission-select.vue.js";
|
|
13
12
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
14
13
|
const _hoisted_2 = ["onClick"];
|
|
15
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
15
|
__name: "data-origin",
|
|
17
16
|
props: {
|
|
18
|
-
// 是否是动态列
|
|
19
|
-
isDynamicColumn: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
17
|
// 表格总体数据
|
|
24
18
|
tableConfigure: {
|
|
25
19
|
type: Object,
|
|
@@ -35,8 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
29
|
default: true
|
|
36
30
|
}
|
|
37
31
|
},
|
|
38
|
-
|
|
39
|
-
setup(__props, { emit: __emit }) {
|
|
32
|
+
setup(__props) {
|
|
40
33
|
const props = __props;
|
|
41
34
|
const pageContextUtil = usePageContextStore();
|
|
42
35
|
const pageDesign = pageContextUtil.pageContext;
|
|
@@ -50,7 +43,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
43
|
if (!dataOriginInfo.filterList) {
|
|
51
44
|
dataOriginInfo.filterList = [];
|
|
52
45
|
}
|
|
53
|
-
const $emit = __emit;
|
|
54
46
|
const conditionRef = ref(null);
|
|
55
47
|
const selectTableDialog = ref(null);
|
|
56
48
|
const atPresentSortIndex = ref("");
|
|
@@ -151,7 +143,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
143
|
}
|
|
152
144
|
queryTableFields(systemCode, systemVersion, tableName).then((resultFields) => {
|
|
153
145
|
tableFields.value = resultFields;
|
|
154
|
-
$emit("propDataOriginField", resultFields);
|
|
155
146
|
optionValueTypeChange();
|
|
156
147
|
}).catch((error) => {
|
|
157
148
|
console.log("数据源中查询表字段失败!", error);
|
|
@@ -181,11 +172,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
172
|
const _component_el_radio = resolveComponent("el-radio");
|
|
182
173
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
183
174
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
184
|
-
const _component_el_input = resolveComponent("el-input");
|
|
185
175
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
186
176
|
const _component_el_option = resolveComponent("el-option");
|
|
187
177
|
const _component_el_select = resolveComponent("el-select");
|
|
188
178
|
const _component_el_button = resolveComponent("el-button");
|
|
179
|
+
const _component_el_input = resolveComponent("el-input");
|
|
189
180
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
190
181
|
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
191
182
|
title: "数据源",
|
|
@@ -205,50 +196,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
196
|
onChange: optionValueTypeChange
|
|
206
197
|
}, {
|
|
207
198
|
default: withCtx(() => [
|
|
208
|
-
|
|
199
|
+
createVNode(_component_el_radio, { value: "none" }, {
|
|
209
200
|
default: withCtx(() => [
|
|
210
201
|
createTextVNode("无")
|
|
211
202
|
]),
|
|
212
203
|
_: 1
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
]),
|
|
216
|
-
withDirectives(createVNode(_component_el_radio, { value: "static" }, {
|
|
204
|
+
}),
|
|
205
|
+
createVNode(_component_el_radio, { value: "static" }, {
|
|
217
206
|
default: withCtx(() => [
|
|
218
207
|
createTextVNode("静态数据")
|
|
219
208
|
]),
|
|
220
209
|
_: 1
|
|
221
|
-
}
|
|
222
|
-
[vShow, !__props.isDynamicColumn]
|
|
223
|
-
]),
|
|
210
|
+
}),
|
|
224
211
|
createVNode(_component_el_radio, { value: "optionGroup" }, {
|
|
225
212
|
default: withCtx(() => [
|
|
226
213
|
createTextVNode("选项组")
|
|
227
214
|
]),
|
|
228
215
|
_: 1
|
|
229
216
|
}),
|
|
230
|
-
|
|
217
|
+
createVNode(_component_el_radio, { value: "dynamicData" }, {
|
|
231
218
|
default: withCtx(() => [
|
|
232
219
|
createTextVNode("动态数据源")
|
|
233
220
|
]),
|
|
234
221
|
_: 1
|
|
235
|
-
}
|
|
236
|
-
[vShow, !__props.isDynamicColumn]
|
|
237
|
-
]),
|
|
222
|
+
}),
|
|
238
223
|
createVNode(_component_el_radio, { value: "dataTable" }, {
|
|
239
224
|
default: withCtx(() => [
|
|
240
225
|
createTextVNode("数据表/视图")
|
|
241
226
|
]),
|
|
242
227
|
_: 1
|
|
243
228
|
}),
|
|
244
|
-
withDirectives(createVNode(_component_el_radio, { value: "sql" }, {
|
|
245
|
-
default: withCtx(() => [
|
|
246
|
-
createTextVNode("SQL语句")
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}, 512), [
|
|
250
|
-
[vShow, __props.isDynamicColumn]
|
|
251
|
-
]),
|
|
252
229
|
createVNode(_component_el_radio, { value: "service" }, {
|
|
253
230
|
default: withCtx(() => [
|
|
254
231
|
createTextVNode("服务")
|
|
@@ -261,39 +238,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
238
|
]),
|
|
262
239
|
_: 1
|
|
263
240
|
}),
|
|
264
|
-
__props.isDynamicColumn ? (openBlock(), createBlock(_component_el_form_item, {
|
|
265
|
-
key: 0,
|
|
266
|
-
label: "监控字段",
|
|
267
|
-
title: "监控主表字段",
|
|
268
|
-
class: "amb-design-attr-item"
|
|
269
|
-
}, {
|
|
270
|
-
default: withCtx(() => [
|
|
271
|
-
createVNode(_sfc_main$1, {
|
|
272
|
-
prop: __props.configure.props.dataOrigin.watchParentAttr,
|
|
273
|
-
"onUpdate:prop": _cache[1] || (_cache[1] = ($event) => __props.configure.props.dataOrigin.watchParentAttr = $event),
|
|
274
|
-
propType: __props.configure.props.dataOrigin.watchParentAttrType,
|
|
275
|
-
"onUpdate:propType": _cache[2] || (_cache[2] = ($event) => __props.configure.props.dataOrigin.watchParentAttrType = $event),
|
|
276
|
-
tableConfigure: __props.tableConfigure
|
|
277
|
-
}, null, 8, ["prop", "propType", "tableConfigure"])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
})) : createCommentVNode("", true),
|
|
281
|
-
withDirectives(createVNode(_component_el_form_item, {
|
|
282
|
-
label: "SQL",
|
|
283
|
-
class: "amb-design-attr-item"
|
|
284
|
-
}, {
|
|
285
|
-
default: withCtx(() => [
|
|
286
|
-
createVNode(_component_el_input, {
|
|
287
|
-
modelValue: __props.configure.props.dataOrigin.sql,
|
|
288
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.dataOrigin.sql = $event),
|
|
289
|
-
rows: 2,
|
|
290
|
-
type: "textarea"
|
|
291
|
-
}, null, 8, ["modelValue"])
|
|
292
|
-
]),
|
|
293
|
-
_: 1
|
|
294
|
-
}, 512), [
|
|
295
|
-
[vShow, __props.configure.props.dataOrigin.optionValueSetType === "sql"]
|
|
296
|
-
]),
|
|
297
241
|
withDirectives(createVNode(_component_el_form_item, {
|
|
298
242
|
label: "可搜索",
|
|
299
243
|
class: "amb-design-attr-item"
|
|
@@ -301,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
301
245
|
default: withCtx(() => [
|
|
302
246
|
createVNode(_component_el_radio_group, {
|
|
303
247
|
modelValue: __props.configure.props.dataOrigin.filterType,
|
|
304
|
-
"onUpdate:modelValue": _cache[
|
|
248
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.dataOrigin.filterType = $event),
|
|
305
249
|
class: "ml-4"
|
|
306
250
|
}, {
|
|
307
251
|
default: withCtx(() => [
|
|
@@ -336,8 +280,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
280
|
}, 512), [
|
|
337
281
|
[vShow, __props.configure.name == "select"]
|
|
338
282
|
]),
|
|
339
|
-
!__props.configure.props.dataOrigin.optionValueSetType || __props.configure.props.dataOrigin.optionValueSetType === "static" ? (openBlock(), createBlock(_sfc_main$
|
|
340
|
-
key:
|
|
283
|
+
!__props.configure.props.dataOrigin.optionValueSetType || __props.configure.props.dataOrigin.optionValueSetType === "static" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
284
|
+
key: 0,
|
|
341
285
|
style: { "margin-bottom": "10px", "border-top": "1px solid var(--el-border-color-lighter)" },
|
|
342
286
|
dataOrigin: unref(dataOriginInfo),
|
|
343
287
|
type: "select",
|
|
@@ -351,7 +295,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
351
295
|
default: withCtx(() => [
|
|
352
296
|
createVNode(_component_el_select, {
|
|
353
297
|
modelValue: __props.configure.props.dataOrigin.optionGroup,
|
|
354
|
-
"onUpdate:modelValue": _cache[
|
|
298
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.dataOrigin.optionGroup = $event),
|
|
355
299
|
filterable: "",
|
|
356
300
|
remote: "",
|
|
357
301
|
"reserve-keyword": "",
|
|
@@ -378,14 +322,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
378
322
|
[vShow, __props.configure.props.dataOrigin.optionValueSetType === "optionGroup"]
|
|
379
323
|
]),
|
|
380
324
|
__props.configure.props.dataOrigin.optionValueSetType === "dynamicData" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
381
|
-
key:
|
|
325
|
+
key: 1,
|
|
382
326
|
label: "动态数据源",
|
|
383
327
|
class: "amb-design-attr-item"
|
|
384
328
|
}, {
|
|
385
329
|
default: withCtx(() => [
|
|
386
330
|
createVNode(_component_el_select, {
|
|
387
331
|
modelValue: __props.configure.props.dataOrigin.dynamicDataSourceCode,
|
|
388
|
-
"onUpdate:modelValue": _cache[
|
|
332
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.dataOrigin.dynamicDataSourceCode = $event),
|
|
389
333
|
filterable: "",
|
|
390
334
|
remote: "",
|
|
391
335
|
"reserve-keyword": "",
|
|
@@ -417,7 +361,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
417
361
|
default: withCtx(() => [
|
|
418
362
|
createVNode(_component_el_input, {
|
|
419
363
|
modelValue: __props.configure.props.dataOrigin.tableName,
|
|
420
|
-
"onUpdate:modelValue": _cache[
|
|
364
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.dataOrigin.tableName = $event),
|
|
421
365
|
title: __props.configure.props.dataOrigin.tableName,
|
|
422
366
|
clearable: "",
|
|
423
367
|
readonly: "true"
|
|
@@ -449,7 +393,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
449
393
|
default: withCtx(() => [
|
|
450
394
|
createVNode(_component_el_select, {
|
|
451
395
|
modelValue: __props.configure.props.dataOrigin.tableValueField,
|
|
452
|
-
"onUpdate:modelValue": _cache[
|
|
396
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.dataOrigin.tableValueField = $event),
|
|
453
397
|
"allow-create": "",
|
|
454
398
|
filterable: "",
|
|
455
399
|
"reserve-keyword": "",
|
|
@@ -480,7 +424,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
480
424
|
default: withCtx(() => [
|
|
481
425
|
createVNode(_component_el_select, {
|
|
482
426
|
modelValue: __props.configure.props.dataOrigin.tableLableField,
|
|
483
|
-
"onUpdate:modelValue": _cache[
|
|
427
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.dataOrigin.tableLableField = $event),
|
|
484
428
|
"allow-create": "",
|
|
485
429
|
filterable: "",
|
|
486
430
|
"reserve-keyword": "",
|
|
@@ -505,7 +449,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
505
449
|
[vShow, __props.configure.props.dataOrigin.optionValueSetType === "dataTable"]
|
|
506
450
|
]),
|
|
507
451
|
__props.configure.props.dataOrigin.optionValueSetType === "dataTable" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
508
|
-
key:
|
|
452
|
+
key: 2,
|
|
509
453
|
label: "排序",
|
|
510
454
|
class: "amb-design-attr-item"
|
|
511
455
|
}, {
|
|
@@ -582,7 +526,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
582
526
|
default: withCtx(() => [
|
|
583
527
|
createVNode(_component_el_input, {
|
|
584
528
|
modelValue: __props.configure.props.dataOrigin.displayQuantity,
|
|
585
|
-
"onUpdate:modelValue": _cache[
|
|
529
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.dataOrigin.displayQuantity = $event),
|
|
586
530
|
placeholder: "请输入"
|
|
587
531
|
}, null, 8, ["modelValue"])
|
|
588
532
|
]),
|
|
@@ -595,7 +539,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
595
539
|
class: "amb-design-attr-item"
|
|
596
540
|
}, {
|
|
597
541
|
default: withCtx(() => [
|
|
598
|
-
createVNode(_sfc_main$
|
|
542
|
+
createVNode(_sfc_main$2, {
|
|
599
543
|
title: "过滤条件",
|
|
600
544
|
list: __props.configure.props.dataOrigin.filterList,
|
|
601
545
|
ref_key: "conditionRef",
|
|
@@ -611,11 +555,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
611
555
|
class: "amb-design-attr-item"
|
|
612
556
|
}, {
|
|
613
557
|
default: withCtx(() => [
|
|
614
|
-
createVNode(_sfc_main$
|
|
558
|
+
createVNode(_sfc_main$3, {
|
|
615
559
|
pageDesign: unref(pageDesign),
|
|
616
560
|
rowObj: unref(dataOriginInfo).service,
|
|
617
561
|
onlyService: "",
|
|
618
|
-
"onUpdate:modelValue": _cache[
|
|
562
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = (type, code, name) => afterSelectService(type, code, name))
|
|
619
563
|
}, null, 8, ["pageDesign", "rowObj"])
|
|
620
564
|
]),
|
|
621
565
|
_: 1
|
|
@@ -629,7 +573,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
629
573
|
default: withCtx(() => [
|
|
630
574
|
createVNode(_component_el_select, {
|
|
631
575
|
modelValue: unref(dataOriginInfo).serviceDataSetField,
|
|
632
|
-
"onUpdate:modelValue": _cache[
|
|
576
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(dataOriginInfo).serviceDataSetField = $event),
|
|
633
577
|
placeholder: "请选择"
|
|
634
578
|
}, {
|
|
635
579
|
default: withCtx(() => [
|
|
@@ -652,7 +596,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
652
596
|
default: withCtx(() => [
|
|
653
597
|
createVNode(_component_el_select, {
|
|
654
598
|
modelValue: unref(dataOriginInfo).serviceValueField,
|
|
655
|
-
"onUpdate:modelValue": _cache[
|
|
599
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(dataOriginInfo).serviceValueField = $event),
|
|
656
600
|
placeholder: "请选择"
|
|
657
601
|
}, {
|
|
658
602
|
default: withCtx(() => [
|
|
@@ -675,7 +619,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
675
619
|
default: withCtx(() => [
|
|
676
620
|
createVNode(_component_el_select, {
|
|
677
621
|
modelValue: unref(dataOriginInfo).serviceLabelField,
|
|
678
|
-
"onUpdate:modelValue": _cache[
|
|
622
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(dataOriginInfo).serviceLabelField = $event),
|
|
679
623
|
placeholder: "请选择"
|
|
680
624
|
}, {
|
|
681
625
|
default: withCtx(() => [
|
|
@@ -691,24 +635,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
691
635
|
}, 512), [
|
|
692
636
|
[vShow, unref(dataOriginInfo).optionValueSetType == "service"]
|
|
693
637
|
]),
|
|
694
|
-
withDirectives(createVNode(_sfc_main$
|
|
638
|
+
withDirectives(createVNode(_sfc_main$4, {
|
|
695
639
|
ref: "dataOriginServiceInRef",
|
|
696
640
|
dataOrigin: unref(dataOriginInfo)
|
|
697
641
|
}, null, 8, ["dataOrigin"]), [
|
|
698
642
|
[vShow, __props.configure.props.dataOrigin.optionValueSetType == "service"]
|
|
699
643
|
]),
|
|
700
|
-
withDirectives(createVNode(_sfc_main$
|
|
644
|
+
withDirectives(createVNode(_sfc_main$5, {
|
|
701
645
|
ref_key: "dataOriginAutosetRef",
|
|
702
646
|
ref: dataOriginAutosetRef,
|
|
703
647
|
dataOrigin: unref(dataOriginInfo)
|
|
704
648
|
}, null, 8, ["dataOrigin"]), [
|
|
705
649
|
[
|
|
706
650
|
vShow,
|
|
707
|
-
|
|
651
|
+
__props.configure.props.dataOrigin.optionValueSetType == "dataTable" || __props.configure.props.dataOrigin.optionValueSetType == "dynamicData" || __props.configure.props.dataOrigin.optionValueSetType == "service"
|
|
708
652
|
]
|
|
709
653
|
])
|
|
710
654
|
]),
|
|
711
|
-
createVNode(_sfc_main$
|
|
655
|
+
createVNode(_sfc_main$6, {
|
|
712
656
|
ref_key: "selectTableDialog",
|
|
713
657
|
ref: selectTableDialog,
|
|
714
658
|
onSelectTable,
|
|
@@ -1,155 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search } from "@element-plus/icons-vue";
|
|
3
|
-
const _hoisted_1 = { class: "dialog-footer" };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "dataorigin-input-table",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: ""
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(__props, { emit: __emit }) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const inputValue = ref(props.modelValue);
|
|
16
|
-
const emit = __emit;
|
|
17
|
-
const tableData = [
|
|
18
|
-
{
|
|
19
|
-
id: 1,
|
|
20
|
-
date: "2016-05-03",
|
|
21
|
-
name: "Tom",
|
|
22
|
-
address: "No. 189, Grove St, Los Angeles"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: 2,
|
|
26
|
-
date: "2016-05-02",
|
|
27
|
-
name: "Tom",
|
|
28
|
-
address: "No. 189, Grove St, Los Angeles"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: 3,
|
|
32
|
-
date: "2016-05-04",
|
|
33
|
-
name: "Tom",
|
|
34
|
-
address: "No. 189, Grove St, Los Angeles"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 4,
|
|
38
|
-
date: "2016-05-01",
|
|
39
|
-
name: "Tom",
|
|
40
|
-
address: "No. 189, Grove St, Los Angeles"
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
const dialogVisible = ref(false);
|
|
44
|
-
const selectData = ref([]);
|
|
45
|
-
watch(() => props.modelValue, (newVal) => {
|
|
46
|
-
inputValue.value = newVal;
|
|
47
|
-
});
|
|
48
|
-
function confirm() {
|
|
49
|
-
if (selectData.value.length > 0) {
|
|
50
|
-
let str = "";
|
|
51
|
-
selectData.value.forEach((item) => {
|
|
52
|
-
str = str + item.name + ",";
|
|
53
|
-
});
|
|
54
|
-
str = str.substring(0, str.length - 1);
|
|
55
|
-
emit("update:modelValue", str);
|
|
56
|
-
dialogVisible.value = false;
|
|
57
|
-
} else {
|
|
58
|
-
dialogVisible.value = false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function handleSelectionChange(selection) {
|
|
62
|
-
selectData.value = selection;
|
|
63
|
-
}
|
|
64
|
-
function inputClick() {
|
|
65
|
-
dialogVisible.value = true;
|
|
66
|
-
}
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
69
|
-
const _component_el_input = resolveComponent("el-input");
|
|
70
|
-
const _component_el_table_column = resolveComponent("el-table-column");
|
|
71
|
-
const _component_el_table = resolveComponent("el-table");
|
|
72
|
-
const _component_el_button = resolveComponent("el-button");
|
|
73
|
-
const _component_el_dialog = resolveComponent("el-dialog");
|
|
74
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
75
|
-
createVNode(_component_el_input, {
|
|
76
|
-
modelValue: inputValue.value,
|
|
77
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
78
|
-
placeholder: "请选择",
|
|
79
|
-
onClick: inputClick
|
|
80
|
-
}, {
|
|
81
|
-
suffix: withCtx(() => [
|
|
82
|
-
createVNode(_component_el_icon, { onClick: inputClick }, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
createVNode(unref(Search))
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["modelValue"]),
|
|
91
|
-
createVNode(_component_el_dialog, {
|
|
92
|
-
modelValue: dialogVisible.value,
|
|
93
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
|
|
94
|
-
title: "Tips",
|
|
95
|
-
width: "500"
|
|
96
|
-
}, {
|
|
97
|
-
footer: withCtx(() => [
|
|
98
|
-
createElementVNode("div", _hoisted_1, [
|
|
99
|
-
createVNode(_component_el_button, {
|
|
100
|
-
onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
|
|
101
|
-
}, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
createTextVNode("取消")
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}),
|
|
107
|
-
createVNode(_component_el_button, {
|
|
108
|
-
type: "primary",
|
|
109
|
-
onClick: confirm
|
|
110
|
-
}, {
|
|
111
|
-
default: withCtx(() => [
|
|
112
|
-
createTextVNode(" 确定 ")
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
})
|
|
116
|
-
])
|
|
117
|
-
]),
|
|
118
|
-
default: withCtx(() => [
|
|
119
|
-
createVNode(_component_el_table, {
|
|
120
|
-
data: tableData,
|
|
121
|
-
style: { "width": "100%" },
|
|
122
|
-
onSelectionChange: handleSelectionChange
|
|
123
|
-
}, {
|
|
124
|
-
default: withCtx(() => [
|
|
125
|
-
createVNode(_component_el_table_column, {
|
|
126
|
-
type: "selection",
|
|
127
|
-
width: "55"
|
|
128
|
-
}),
|
|
129
|
-
createVNode(_component_el_table_column, {
|
|
130
|
-
prop: "date",
|
|
131
|
-
label: "Date",
|
|
132
|
-
width: "180"
|
|
133
|
-
}),
|
|
134
|
-
createVNode(_component_el_table_column, {
|
|
135
|
-
prop: "name",
|
|
136
|
-
label: "Name",
|
|
137
|
-
width: "180"
|
|
138
|
-
}),
|
|
139
|
-
createVNode(_component_el_table_column, {
|
|
140
|
-
prop: "address",
|
|
141
|
-
label: "Address"
|
|
142
|
-
})
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
})
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["modelValue"])
|
|
149
|
-
], 64);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
});
|
|
1
|
+
import _sfc_main from "./dataorigin-input-table.vue2.js";
|
|
153
2
|
export {
|
|
154
3
|
_sfc_main as default
|
|
155
4
|
};
|