super-page-designer 2.0.41-beta2 → 2.0.45
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/assets/design-attr.css.js +1 -0
- package/dist/es/assets/fonts/iconfont.css.js +1 -0
- package/dist/es/components/design/utils/assemblys-config.js +190 -116
- package/dist/es/components/design/utils/chart-design-util.js +11 -10
- package/dist/es/components/design/utils/form-design-util.js +2 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +16 -11
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +36 -8
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +244 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +2 -27
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-axislabel.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-base.vue.js +36 -8
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr.vue2.js +11 -5
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -688
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +692 -0
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +9 -5
- package/dist/es/components/design/views/assemblys/common/state-button.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/state-button.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +371 -168
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue3.js +1 -0
- 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-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +59 -86
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -117
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +28 -50
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue4.js +1 -0
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue3.js +1 -0
- 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.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +155 -35
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +13 -42
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +1 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +51 -33
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +6 -5
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr.vue3.js +1 -0
- package/dist/es/components/design/views/design/page-design.vue.js +4 -2
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -0
- package/dist/es/components/design/views/design/page-event/config.vue3.js +2 -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.vue3.js +1 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.js +2 -1
- package/dist/es/style.css +214 -214
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./composite-header.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./composite-header.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b436905c"]]);
|
|
5
5
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
import "@element-plus/icons-vue";
|
|
3
|
-
|
|
3
|
+
import "../../form/common/icon-set-dialog.vue3.js";
|
|
4
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
const _hoisted_1 = { class: "dialog-footer" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin-tree.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./data-origin-tree.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-97438be5"]]);
|
|
5
5
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./data-origin.vue3.js";
|
|
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-33ccef42"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -7,12 +7,14 @@ import _sfc_main$7 from "./column-config.vue.js";
|
|
|
7
7
|
import _sfc_main$4 from "../../common/common-select-table.vue.js";
|
|
8
8
|
import { Search, Close } from "@element-plus/icons";
|
|
9
9
|
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
10
|
-
import
|
|
10
|
+
import "uuid";
|
|
11
11
|
import eventBus from "../../../../utils/eventBus.js";
|
|
12
12
|
import StateButton from "../../common/state-button.vue.js";
|
|
13
13
|
import _sfc_main$3 from "../../form/common/data-origin-service-in.vue.js";
|
|
14
14
|
import _sfc_main$2 from "../../common/page-permission-select.vue.js";
|
|
15
15
|
import { queryServiceReturnFields } from "../../../../utils/page-service-util.js";
|
|
16
|
+
import "../../../../utils/assemblys-config.js";
|
|
17
|
+
import { ElLoading } from "element-plus";
|
|
16
18
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
17
19
|
const _hoisted_2 = ["onClick"];
|
|
18
20
|
const _hoisted_3 = { style: { "float": "left" } };
|
|
@@ -87,10 +89,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
89
|
function saveDefaultQuery(table) {
|
|
88
90
|
props.configure.props.dataOrigin["defaultQueryCriteria"] = table;
|
|
89
91
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
let modelFields = ref([]);
|
|
93
|
+
let isChangeTable = ref(false);
|
|
94
|
+
let tableInfo = ref(null);
|
|
95
|
+
function setConfigure({ columns, modelFieldsMap }) {
|
|
93
96
|
columnConfigClose();
|
|
97
|
+
const loading = ElLoading.service({
|
|
98
|
+
lock: true,
|
|
99
|
+
text: "Loading",
|
|
100
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
101
|
+
});
|
|
102
|
+
if (isChangeTable.value) {
|
|
103
|
+
debugger;
|
|
104
|
+
props.configure.tableSysCode = tableInfo ? tableInfo.value.systemCode : null;
|
|
105
|
+
props.configure.tableSysVersion = tableInfo ? tableInfo.value.systemVersion : null;
|
|
106
|
+
props.configure.props.dataOrigin.tableName = tableInfo ? tableInfo.value.name : null;
|
|
107
|
+
props.configure.props.dataOrigin.alias = tableInfo ? tableInfo.value.alias : null;
|
|
108
|
+
props.configure.modelFieldsMap = modelFieldsMap;
|
|
109
|
+
props.configure.modelFields = modelFields.value;
|
|
110
|
+
isChangeTable.value = false;
|
|
111
|
+
tableInfo.value = null;
|
|
112
|
+
modelFields.value = [];
|
|
113
|
+
}
|
|
114
|
+
eventBus.$emit("reloadTable", columns);
|
|
115
|
+
loading.close();
|
|
94
116
|
}
|
|
95
117
|
function selectTable() {
|
|
96
118
|
selectTableDialog.value.openDialog();
|
|
@@ -100,95 +122,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
122
|
props.configure.props.dataOrigin.alias = "";
|
|
101
123
|
props.configure.modelFields = [];
|
|
102
124
|
}
|
|
103
|
-
function onSelectTable(
|
|
125
|
+
function onSelectTable(myTableInfo) {
|
|
104
126
|
let hisKey = props.configure.tableSysCode ? props.configure.tableSysCode : "";
|
|
105
127
|
hisKey += "_";
|
|
106
128
|
hisKey += props.configure.tableSysVersion ? props.configure.tableSysVersion : "";
|
|
107
129
|
hisKey += "_";
|
|
108
|
-
hisKey += props.configure.tableName ? props.configure.tableName : "";
|
|
109
|
-
let newKey =
|
|
130
|
+
hisKey += props.configure.props.dataOrigin.tableName ? props.configure.props.dataOrigin.tableName : "";
|
|
131
|
+
let newKey = myTableInfo.systemCode ? myTableInfo.systemCode : "";
|
|
110
132
|
newKey += "_";
|
|
111
|
-
newKey +=
|
|
133
|
+
newKey += myTableInfo.systemVersion ? myTableInfo.systemVersion : "";
|
|
112
134
|
newKey += "_";
|
|
113
|
-
newKey +=
|
|
114
|
-
if (newKey
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
fieldArr.push(getTableField(attrbt));
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
if (props.configure.props.base.showOperation) {
|
|
133
|
-
props.configure.items.splice(props.configure.items.length - 1, 0, ...fieldArr);
|
|
134
|
-
} else {
|
|
135
|
-
props.configure.items.push(...fieldArr);
|
|
136
|
-
}
|
|
135
|
+
newKey += myTableInfo.name ? myTableInfo.name : "";
|
|
136
|
+
if (newKey !== hisKey) {
|
|
137
|
+
const loading = ElLoading.service({
|
|
138
|
+
lock: true,
|
|
139
|
+
text: "Loading",
|
|
140
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
141
|
+
});
|
|
142
|
+
tableInfo.value = myTableInfo;
|
|
143
|
+
const systemCode = myTableInfo.systemCode ? myTableInfo.systemCode : props.pageDesign.systemCode;
|
|
144
|
+
const systemVersion = myTableInfo.systemVersion ? myTableInfo.systemVersion : props.pageDesign.version;
|
|
145
|
+
queryTableFields(systemCode, systemVersion, myTableInfo.name).then((tableFields) => {
|
|
146
|
+
isChangeTable.value = true;
|
|
147
|
+
modelFields.value = tableFields;
|
|
148
|
+
columnConfigVisible.value = true;
|
|
149
|
+
loading.close();
|
|
150
|
+
eventBus.$emit("reloadTable");
|
|
137
151
|
});
|
|
138
152
|
}
|
|
139
153
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
props: {
|
|
149
|
-
base: {
|
|
150
|
-
prop: fieldInfo.name,
|
|
151
|
-
name: fieldInfo.alias,
|
|
152
|
-
visible: true,
|
|
153
|
-
displayOrder: fieldInfo.displayOrder,
|
|
154
|
-
sortable: true
|
|
155
|
-
},
|
|
156
|
-
size: {},
|
|
157
|
-
editLine: {},
|
|
158
|
-
scan: {},
|
|
159
|
-
preSuffix: {},
|
|
160
|
-
verification: {},
|
|
161
|
-
dataOrigin: {
|
|
162
|
-
sortField: [{ name: "", type: "" }],
|
|
163
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
164
|
-
displayQuantity: 20
|
|
165
|
-
},
|
|
166
|
-
defaultValue: {},
|
|
167
|
-
inParameter: {},
|
|
168
|
-
title: {},
|
|
169
|
-
definition: {},
|
|
170
|
-
uploadConfig: {},
|
|
171
|
-
singleWidth: {},
|
|
172
|
-
suffixModule: {},
|
|
173
|
-
querySetting: {},
|
|
174
|
-
orgFields: [{ type: "", model: "" }],
|
|
175
|
-
format: { type: "", icon: "", suffixModule: { staticStates: [] }, jumpPageAdditional: { staticStates: [] } }
|
|
176
|
-
},
|
|
177
|
-
events: [],
|
|
178
|
-
style: {
|
|
179
|
-
titleFont: {},
|
|
180
|
-
contentFont: {},
|
|
181
|
-
width: {},
|
|
182
|
-
background: {},
|
|
183
|
-
tableCell: [{ value: "", label: "" }],
|
|
184
|
-
conentPadding: {},
|
|
185
|
-
tittlePadding: {},
|
|
186
|
-
border: {},
|
|
187
|
-
shadow: {},
|
|
188
|
-
tittleClass: ""
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
return obj;
|
|
154
|
+
function showColumnDialog() {
|
|
155
|
+
const systemCode = props.configure.tableSysCode ? props.configure.tableSysCode : props.pageDesign.systemCode;
|
|
156
|
+
const systemVersion = props.configure.tableSysVersion ? props.configure.tableSysVersion : props.pageDesign.version;
|
|
157
|
+
const tableName = props.configure.props.dataOrigin.tableName;
|
|
158
|
+
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
159
|
+
modelFields.value = tableFields;
|
|
160
|
+
columnConfigVisible.value = true;
|
|
161
|
+
});
|
|
192
162
|
}
|
|
193
163
|
function afterSelectService(type, code, name, serviceId) {
|
|
194
164
|
dataOriginInfo.service.id;
|
|
@@ -422,7 +392,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
422
392
|
default: withCtx(() => [
|
|
423
393
|
createVNode(_component_el_button, {
|
|
424
394
|
type: "primary",
|
|
425
|
-
onClick: _cache[7] || (_cache[7] = ($event) =>
|
|
395
|
+
onClick: _cache[7] || (_cache[7] = ($event) => showColumnDialog())
|
|
426
396
|
}, {
|
|
427
397
|
default: withCtx(() => [
|
|
428
398
|
createTextVNode("编辑")
|
|
@@ -770,9 +740,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
770
740
|
columnConfigVisible.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
771
741
|
key: 3,
|
|
772
742
|
configure: __props.configure,
|
|
743
|
+
modelFields: unref(modelFields),
|
|
744
|
+
pageDesign: __props.pageDesign,
|
|
745
|
+
isChangeTable: unref(isChangeTable),
|
|
773
746
|
onSetConfigure: setConfigure,
|
|
774
747
|
onClose: columnConfigClose
|
|
775
|
-
}, null, 8, ["configure"])) : createCommentVNode("", true)
|
|
748
|
+
}, null, 8, ["configure", "modelFields", "pageDesign", "isChangeTable"])) : createCommentVNode("", true)
|
|
776
749
|
]),
|
|
777
750
|
_: 3
|
|
778
751
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import "@element-plus/icons-vue";
|
|
3
|
-
|
|
3
|
+
import "../../form/common/icon-set-dialog.vue3.js";
|
|
4
4
|
const _hoisted_1 = { class: "dialog-footer" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "querySetting",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./row-backgroud-color.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./row-backgroud-color.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const RowBackgroudColor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b203475d"]]);
|
|
5
5
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -35,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
const selectValue = ref("");
|
|
36
36
|
function selectChange() {
|
|
37
37
|
emit("update:prop", selectValue);
|
|
38
|
-
if (selectValue === "dynamicColumnSelect" || selectValue === null)
|
|
38
|
+
if (selectValue === "dynamicColumnSelect" || selectValue === null)
|
|
39
|
+
return;
|
|
39
40
|
if (props.propType != "") {
|
|
40
41
|
props.tableConfigure.modelFields.forEach((item) => {
|
|
41
42
|
if (item.dbColumnName === selectValue.value) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
2
|
+
import { getTableSelectionConf, getTableIndexConf, getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import DataOrigin from "../component/data-origin.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
|
|
6
6
|
import "@element-plus/icons-vue";
|
|
7
7
|
import "agilebuilder-ui/src/utils/request";
|
|
8
|
-
import
|
|
8
|
+
import "uuid";
|
|
9
9
|
import "../../../../../../stores/page-store.js";
|
|
10
|
-
|
|
10
|
+
import "../../common/common-variable-bind.vue2.js";
|
|
11
11
|
import "../../../../utils/eventBus.js";
|
|
12
12
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
13
13
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -45,62 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
() => props.configure.props.base.selection,
|
|
46
46
|
(newVal) => {
|
|
47
47
|
if (newVal) {
|
|
48
|
-
let selectColumn =
|
|
49
|
-
uuid: getUuidv4(),
|
|
50
|
-
name: "",
|
|
51
|
-
props: {
|
|
52
|
-
base: {
|
|
53
|
-
name: "复选框组件",
|
|
54
|
-
prop: "$selection",
|
|
55
|
-
columnWidth: 100,
|
|
56
|
-
sortable: true,
|
|
57
|
-
visible: true,
|
|
58
|
-
displayOrder: 0,
|
|
59
|
-
alignTittle: "center",
|
|
60
|
-
alignContent: "center"
|
|
61
|
-
},
|
|
62
|
-
size: {},
|
|
63
|
-
editLine: {},
|
|
64
|
-
scan: {},
|
|
65
|
-
preSuffix: {},
|
|
66
|
-
verification: {},
|
|
67
|
-
dataOrigin: {
|
|
68
|
-
sortField: [{ name: "", type: "" }],
|
|
69
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
70
|
-
displayQuantity: 20
|
|
71
|
-
},
|
|
72
|
-
defaultValue: {},
|
|
73
|
-
inParameter: {},
|
|
74
|
-
title: {},
|
|
75
|
-
definition: {},
|
|
76
|
-
uploadConfig: {},
|
|
77
|
-
singleWidth: {},
|
|
78
|
-
suffixModule: {},
|
|
79
|
-
querySetting: {},
|
|
80
|
-
formatting: {
|
|
81
|
-
type: "",
|
|
82
|
-
suffixModule: {
|
|
83
|
-
jumpPageAdditional: [],
|
|
84
|
-
icon: ""
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
events: [
|
|
89
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
90
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
91
|
-
],
|
|
92
|
-
style: {
|
|
93
|
-
titleFont: {},
|
|
94
|
-
contentFont: {},
|
|
95
|
-
width: {},
|
|
96
|
-
background: {},
|
|
97
|
-
conentPadding: {},
|
|
98
|
-
tittlePadding: {},
|
|
99
|
-
border: {},
|
|
100
|
-
shadow: {},
|
|
101
|
-
tittleClass: ""
|
|
102
|
-
}
|
|
103
|
-
};
|
|
48
|
+
let selectColumn = getTableSelectionConf();
|
|
104
49
|
props.configure.items.splice(0, 0, selectColumn);
|
|
105
50
|
} else {
|
|
106
51
|
if (props.configure.items[0].props.base.prop === "$selection") {
|
|
@@ -113,63 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
58
|
() => props.configure.props.base.showIndex,
|
|
114
59
|
(newVal) => {
|
|
115
60
|
if (newVal) {
|
|
116
|
-
let indexColumn =
|
|
117
|
-
uuid: getUuidv4(),
|
|
118
|
-
name: "",
|
|
119
|
-
props: {
|
|
120
|
-
base: {
|
|
121
|
-
name: "序号",
|
|
122
|
-
prop: "$index",
|
|
123
|
-
columnWidth: 80,
|
|
124
|
-
sortable: true,
|
|
125
|
-
visible: true,
|
|
126
|
-
displayOrder: 1,
|
|
127
|
-
alignTittle: "center",
|
|
128
|
-
alignContent: "center"
|
|
129
|
-
},
|
|
130
|
-
size: {},
|
|
131
|
-
editLine: {},
|
|
132
|
-
scan: {},
|
|
133
|
-
preSuffix: {},
|
|
134
|
-
verification: {},
|
|
135
|
-
dataOrigin: {
|
|
136
|
-
sortField: [{ name: "", type: "" }],
|
|
137
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
138
|
-
displayQuantity: 20
|
|
139
|
-
},
|
|
140
|
-
defaultValue: {},
|
|
141
|
-
inParameter: {},
|
|
142
|
-
title: {},
|
|
143
|
-
definition: {},
|
|
144
|
-
uploadConfig: {},
|
|
145
|
-
singleWidth: {},
|
|
146
|
-
suffixModule: {},
|
|
147
|
-
querySetting: {},
|
|
148
|
-
formatting: {
|
|
149
|
-
type: "",
|
|
150
|
-
suffixModule: {
|
|
151
|
-
jumpPageAdditional: [],
|
|
152
|
-
icon: ""
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
events: [
|
|
157
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
158
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
159
|
-
],
|
|
160
|
-
style: {
|
|
161
|
-
titleFont: {},
|
|
162
|
-
contentFont: {},
|
|
163
|
-
width: {},
|
|
164
|
-
background: {},
|
|
165
|
-
tableCell: [{ type: "", model: "" }],
|
|
166
|
-
conentPadding: {},
|
|
167
|
-
tittlePadding: {},
|
|
168
|
-
border: {},
|
|
169
|
-
shadow: {},
|
|
170
|
-
tittleClass: ""
|
|
171
|
-
}
|
|
172
|
-
};
|
|
61
|
+
let indexColumn = getTableIndexConf();
|
|
173
62
|
if (props.configure.items[0].props.base.prop === "$selection") {
|
|
174
63
|
props.configure.items.splice(1, 0, indexColumn);
|
|
175
64
|
} else {
|
|
@@ -416,7 +305,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
305
|
_: 1
|
|
417
306
|
}),
|
|
418
307
|
createVNode(_component_el_form_item, {
|
|
419
|
-
label: "
|
|
308
|
+
label: "显示序号",
|
|
420
309
|
class: "amb-design-attr-item"
|
|
421
310
|
}, {
|
|
422
311
|
default: withCtx(() => [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main from "./table-design.vue2.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import "./table-design.vue3.js";
|
|
3
|
+
import "./table-design.vue4.js";
|
|
4
4
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const tableDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const tableDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-130db8b6"]]);
|
|
6
6
|
export {
|
|
7
7
|
tableDesign as default
|
|
8
8
|
};
|
|
@@ -2,15 +2,16 @@ import { defineComponent, ref, onMounted, watch, resolveComponent, openBlock, cr
|
|
|
2
2
|
import eventBus from "../../../../utils/eventBus.js";
|
|
3
3
|
import { useDraggable } from "vue-draggable-plus";
|
|
4
4
|
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
5
|
-
import "../../../../utils/assemblys-config.js";
|
|
5
|
+
import { getTableColumnConf } from "../../../../utils/assemblys-config.js";
|
|
6
6
|
import { Plus, Delete } from "@element-plus/icons-vue";
|
|
7
7
|
import { ElMessageBox } from "element-plus";
|
|
8
8
|
import { getColumnsWithGroupHeader, addColumnToGroupHeaders } from "../../../../utils/data-table-util.js";
|
|
9
|
-
import
|
|
9
|
+
import "uuid";
|
|
10
10
|
import "@element-plus/icons";
|
|
11
11
|
import "super-page-runtime";
|
|
12
12
|
import "../../../../../../stores/page-store.js";
|
|
13
13
|
import _sfc_main$1 from "../component/table-children-column.vue.js";
|
|
14
|
+
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
14
15
|
const _hoisted_1 = {
|
|
15
16
|
id: "tableDesignMenu",
|
|
16
17
|
ref: "headerMenu",
|
|
@@ -71,6 +72,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
}
|
|
75
|
+
if (props.configure) {
|
|
76
|
+
queryMyTableFields();
|
|
77
|
+
}
|
|
74
78
|
onMounted(() => {
|
|
75
79
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
76
80
|
});
|
|
@@ -105,13 +109,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
109
|
() => {
|
|
106
110
|
if (props.configure.props.isChangeGroupHeader) {
|
|
107
111
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
108
|
-
tableRef.value
|
|
112
|
+
if (tableRef.value) {
|
|
113
|
+
tableRef.value.doLayout();
|
|
114
|
+
}
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
);
|
|
112
|
-
eventBus.$on("reloadTable", () => {
|
|
118
|
+
eventBus.$on("reloadTable", (tableData2) => {
|
|
119
|
+
props.configure.items = JSON.parse(JSON.stringify(tableData2));
|
|
113
120
|
listColumns.value = getColumnsWithGroupHeader(props.configure);
|
|
114
|
-
tableRef.value
|
|
121
|
+
if (tableRef.value) {
|
|
122
|
+
tableRef.value.doLayout();
|
|
123
|
+
}
|
|
115
124
|
});
|
|
116
125
|
watch(
|
|
117
126
|
() => listColumns.value,
|
|
@@ -127,6 +136,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
136
|
function onSelectWidget(selIndex, objConfigure) {
|
|
128
137
|
emit("onSelectWidget", selIndex, objConfigure);
|
|
129
138
|
}
|
|
139
|
+
function queryMyTableFields() {
|
|
140
|
+
const systemCode = props.configure.tableSysCode ? props.configure.tableSysCode : props.pageDesign.systemCode;
|
|
141
|
+
const systemVersion = props.configure.tableSysVersion ? props.configure.tableSysVersion : props.pageDesign.version;
|
|
142
|
+
const tableName = props.configure.props.dataOrigin.tableName;
|
|
143
|
+
queryTableFields(systemCode, systemVersion, tableName).then((tableFields) => {
|
|
144
|
+
props.configure.modelFieldsMap = {};
|
|
145
|
+
tableFields.forEach((attrbt) => {
|
|
146
|
+
props.configure.modelFieldsMap[attrbt.dbColumnName] = attrbt;
|
|
147
|
+
});
|
|
148
|
+
props.configure.modelFields = tableFields;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
130
151
|
const headerLabel = ref("");
|
|
131
152
|
function rowClick() {
|
|
132
153
|
headerLabel.value = "";
|
|
@@ -162,51 +183,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
183
|
function operationalMenuFun(type) {
|
|
163
184
|
closeMenuVisible();
|
|
164
185
|
if (type === "createCombinedHeader") {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
isTable: true,
|
|
168
|
-
// 是否是表格组件
|
|
169
|
-
name: "",
|
|
170
|
-
props: {
|
|
171
|
-
base: { name: "字段名称", tittleShow: false, sortable: true, visible: true },
|
|
172
|
-
size: {},
|
|
173
|
-
editLine: {
|
|
174
|
-
plugType: ""
|
|
175
|
-
},
|
|
176
|
-
scan: {},
|
|
177
|
-
preSuffix: {},
|
|
178
|
-
verification: {},
|
|
179
|
-
dataOrigin: {
|
|
180
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
181
|
-
displayQuantity: 20
|
|
182
|
-
},
|
|
183
|
-
defaultValue: {},
|
|
184
|
-
inParameter: {},
|
|
185
|
-
title: {},
|
|
186
|
-
definition: {},
|
|
187
|
-
uploadConfig: {},
|
|
188
|
-
singleWidth: {},
|
|
189
|
-
suffixModule: {},
|
|
190
|
-
tableCell: [{ value: "", label: "" }],
|
|
191
|
-
format: { icon: "" }
|
|
192
|
-
},
|
|
193
|
-
style: {
|
|
194
|
-
titleFont: {},
|
|
195
|
-
contentFont: {},
|
|
196
|
-
width: {},
|
|
197
|
-
background: {},
|
|
198
|
-
tableCell: [{ type: "", model: "" }],
|
|
199
|
-
conentPadding: {},
|
|
200
|
-
tittlePadding: {},
|
|
201
|
-
border: {},
|
|
202
|
-
shadow: {},
|
|
203
|
-
tittleClass: ""
|
|
204
|
-
},
|
|
205
|
-
events: [
|
|
206
|
-
{ name: "setValue", label: "弹框赋值回调", tip: "格式化配置超链接赋值回调" },
|
|
207
|
-
{ name: "closePopup", label: "关闭弹框回调", tip: "格式化配置超链接关闭弹框回调" }
|
|
208
|
-
]
|
|
209
|
-
};
|
|
186
|
+
const fieldInfo = { alias: "字段名称" };
|
|
187
|
+
let newObj = getTableColumnConf(fieldInfo);
|
|
210
188
|
props.configure.items.splice(columnDataIndex.value + 1, 0, newObj);
|
|
211
189
|
if (props.configure.props.base.isEnableGroupHeader) {
|
|
212
190
|
addColumnToGroupHeaders(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -940,8 +940,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
940
940
|
__props.configure.props.format.type === "hyperlinks" ? (openBlock(), createBlock(_sfc_main$5, {
|
|
941
941
|
key: 9,
|
|
942
942
|
pageDesign: __props.pageDesign,
|
|
943
|
-
configure: __props.configure
|
|
944
|
-
|
|
943
|
+
configure: __props.configure,
|
|
944
|
+
tableConfigure: __props.tableConfigure
|
|
945
|
+
}, null, 8, ["pageDesign", "configure", "tableConfigure"])) : createCommentVNode("", true),
|
|
945
946
|
__props.configure.props.format.type === "icon" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
946
947
|
key: 10,
|
|
947
948
|
label: "图标",
|
|
@@ -48,9 +48,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
props.configure.props.base.prop = modelValue;
|
|
49
49
|
}
|
|
50
50
|
function afterBindIcon(iconType, iconValue, fieldType) {
|
|
51
|
-
{
|
|
51
|
+
if (fieldType == "suf") {
|
|
52
52
|
props.configure.props.base.iconType = iconType;
|
|
53
53
|
props.configure.props.base.iconType = iconValue;
|
|
54
|
+
} else {
|
|
55
|
+
props.configure.props.base.iconType = iconType;
|
|
56
|
+
props.configure.props.base.icon = iconValue;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
return (_ctx, _cache) => {
|
|
@@ -329,7 +332,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
329
332
|
createVNode(_sfc_main$1, {
|
|
330
333
|
iconType: __props.configure.props.base.iconType,
|
|
331
334
|
iconValue: __props.configure.props.base.icon,
|
|
332
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
335
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = (iconType, iconValue) => afterBindIcon(iconType, iconValue, "suf"))
|
|
333
336
|
}, null, 8, ["iconType", "iconValue"])
|
|
334
337
|
]),
|
|
335
338
|
_: 1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./attr-event.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./attr-event.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const AttrEvent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c7ab7527"]]);
|
|
5
5
|
export {
|