super-page-designer 2.1.34 → 2.1.41
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 +72 -2
- package/dist/es/components/design/utils/container-design-util.js +4 -0
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/form-design-util.js +10 -1
- package/dist/es/components/design/utils/page-event-util.js +10 -6
- package/dist/es/components/design/utils/page-table-util.js +26 -4
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +542 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +230 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +205 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +198 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +507 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +285 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1177 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +97 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue2.js +62 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +8 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +358 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue4.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-function-code.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +8 -18
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +1 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +738 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -733
- 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.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +12 -10
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -0
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +6 -5
- 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 +4 -4
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
- 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.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +11 -8
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +5 -1
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +32 -0
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +54 -16
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +46 -8
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +15 -2
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +48 -10
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +46 -8
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +71 -3
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +8 -2
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +48 -10
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +49 -11
- package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +42 -4
- package/dist/es/components/design/views/assemblys/form/tag/tag-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +52 -14
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +4 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +21 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +14 -7
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -3
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +2 -0
- 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 +10 -0
- package/dist/es/stores/page-store.d.ts +1 -1
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/stores/statistics-table-store.d.ts +10 -0
- package/dist/es/stores/statistics-table-store.js +20 -0
- package/dist/es/style.css +791 -118
- package/package.json +6 -5
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1dada466"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -28,8 +28,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
},
|
|
29
29
|
setup(__props) {
|
|
30
30
|
const props = __props;
|
|
31
|
-
const
|
|
32
|
-
const pageDesign =
|
|
31
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
32
|
+
const pageDesign = pageDesignContextUtil.pageContext;
|
|
33
33
|
const cmOptions = {
|
|
34
34
|
tabSize: 4,
|
|
35
35
|
lineNumbers: true,
|
|
@@ -135,8 +135,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
}
|
|
136
136
|
let tableFields = ref([]);
|
|
137
137
|
function queryTableFieldsByTable() {
|
|
138
|
-
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode :
|
|
139
|
-
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion :
|
|
138
|
+
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageDesignContextUtil.pageContext.systemCode;
|
|
139
|
+
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion : pageDesignContextUtil.pageContext.systemVersion;
|
|
140
140
|
const tableName = dataOriginInfo.tableName;
|
|
141
141
|
if (!tableName) {
|
|
142
142
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
|
|
3
3
|
import { Codemirror } from "vue-codemirror";
|
|
4
4
|
import _sfc_main$6 from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import _sfc_main$5 from "./return-set-table.vue.js";
|
package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js
CHANGED
|
@@ -45,7 +45,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
setup(__props, { emit: __emit }) {
|
|
46
46
|
const props = __props;
|
|
47
47
|
const emit = __emit;
|
|
48
|
-
console.log("%c描述-170030", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.pageDesign);
|
|
49
48
|
function headerClick(item, column) {
|
|
50
49
|
if (item.props.base) {
|
|
51
50
|
setColumnData(item);
|
|
@@ -93,9 +92,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
92
|
eventBus.$on("hadleDragging", (val) => {
|
|
94
93
|
compositeDragging.value = val;
|
|
95
94
|
});
|
|
96
|
-
function onSelectWidget(selIndex, objConfigure) {
|
|
95
|
+
function onSelectWidget(selIndex, objConfigure, column) {
|
|
97
96
|
if (!compositeDragging.value) {
|
|
98
|
-
emit("onSelectWidget", selIndex, objConfigure);
|
|
97
|
+
emit("onSelectWidget", selIndex, objConfigure, column);
|
|
98
|
+
}
|
|
99
|
+
if (column && column.label) {
|
|
100
|
+
setHeaderLabel(column.label);
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
function copyItem(sourceItem) {
|
|
@@ -198,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
198
200
|
modelValue: props.configure.btnList,
|
|
199
201
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => props.configure.btnList = $event),
|
|
200
202
|
animation: 300,
|
|
201
|
-
style: { "width": "100%", "height": "100%" },
|
|
203
|
+
style: { "width": "100%", "height": "100%", "display": "inline-flex" },
|
|
202
204
|
group: "amb-assembly-item",
|
|
203
205
|
ghostClass: "amb-item-ghost"
|
|
204
206
|
}, {
|
|
@@ -211,23 +213,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
213
|
selectWidget: __props.selectWidget,
|
|
212
214
|
indexObj: __props.indexObj,
|
|
213
215
|
errorBlank: true,
|
|
214
|
-
onOnSelectWidget: onSelectWidget,
|
|
216
|
+
onOnSelectWidget: (selIndex, objConfigure) => onSelectWidget(selIndex, objConfigure, scope.column),
|
|
215
217
|
onOnCopy: copyItem,
|
|
216
218
|
onOnDelete: deleteItem
|
|
217
|
-
}, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]);
|
|
219
|
+
}, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnSelectWidget"]);
|
|
218
220
|
}), 128))
|
|
219
221
|
]),
|
|
220
|
-
_:
|
|
221
|
-
},
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1032, ["modelValue"])) : __props.listColumns.props && __props.listColumns.props.base && __props.listColumns.props.base.prop === "$selection" ? (openBlock(), createBlock(_component_el_checkbox, { key: 1 })) : __props.listColumns.props && __props.listColumns.props.base && __props.listColumns.props.base.prop === "$index" ? (openBlock(), createElementBlock("span", _hoisted_2, "1")) : (openBlock(), createBlock(_sfc_main$1, {
|
|
222
224
|
key: 3,
|
|
223
225
|
configure: __props.listColumns,
|
|
224
226
|
pageDesign: __props.pageDesign,
|
|
225
227
|
errorBlank: true,
|
|
226
228
|
selectWidget: __props.selectWidget,
|
|
227
229
|
indexObj: __props.indexObj,
|
|
228
|
-
onOnSelectWidget: onSelectWidget,
|
|
230
|
+
onOnSelectWidget: (selIndex, objConfigure) => onSelectWidget(selIndex, objConfigure, scope.column),
|
|
229
231
|
showSelectedClass: false
|
|
230
|
-
}, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj"]))
|
|
232
|
+
}, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj", "onOnSelectWidget"]))
|
|
231
233
|
]),
|
|
232
234
|
key: "1"
|
|
233
235
|
} : void 0
|
|
@@ -8,7 +8,8 @@ import "agilebuilder-ui/src/utils/request";
|
|
|
8
8
|
import "uuid";
|
|
9
9
|
import "../../../../../../stores/page-store.js";
|
|
10
10
|
import "../../../../../../stores/table-store.js";
|
|
11
|
-
import "
|
|
11
|
+
import "../../../../../../stores/statistics-table-store.js";
|
|
12
|
+
import "../../common/common-variable-bind.vue3.js";
|
|
12
13
|
import "../../../../utils/eventBus.js";
|
|
13
14
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
14
15
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./table-design.vue2.js";
|
|
|
2
2
|
import "./table-design.vue3.js";
|
|
3
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-828b46d0"]]);
|
|
6
6
|
export {
|
|
7
7
|
tableDesign as default
|
|
8
8
|
};
|
|
@@ -8,6 +8,7 @@ import { ElMessageBox } from "element-plus";
|
|
|
8
8
|
import { getColumnsWithGroupHeader, addColumnToGroupHeaders } from "../../../../utils/data-table-util.js";
|
|
9
9
|
import "uuid";
|
|
10
10
|
import "@element-plus/icons";
|
|
11
|
+
import "agilebuilder-ui/src/utils/auth";
|
|
11
12
|
import "super-page-runtime";
|
|
12
13
|
import "../../../../../../stores/page-store.js";
|
|
13
14
|
import _sfc_main$1 from "../component/table-children-column.vue.js";
|
|
@@ -101,6 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
102
|
caculateComponentProps(props.configure, designProperty);
|
|
102
103
|
getRestsParameter();
|
|
103
104
|
props.configure.runtime.props = designProperty.value;
|
|
105
|
+
console.log("%c描述-142333", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.configure);
|
|
104
106
|
},
|
|
105
107
|
{ immediate: true }
|
|
106
108
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./tablecolumn-attr-base.vue2.js";
|
|
2
2
|
import "./tablecolumn-attr-base.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const TablecolumnAttrBase = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const TablecolumnAttrBase = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1acd1467"]]);
|
|
5
5
|
export {
|
|
6
6
|
TablecolumnAttrBase as default
|
|
7
7
|
};
|
|
@@ -61,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
const modelTableFieldList = ref([]);
|
|
62
62
|
const groupHeaders = props.tableConfigure.props.groupHeaders;
|
|
63
63
|
const selectTableDialog = ref(null);
|
|
64
|
-
const
|
|
64
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
65
65
|
const operationColumn = ref(false);
|
|
66
66
|
onMounted(() => {
|
|
67
67
|
var _a;
|
|
@@ -140,8 +140,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
140
|
}
|
|
141
141
|
let clolumnTableFields = ref([]);
|
|
142
142
|
function queryTableFieldsByTableSublist() {
|
|
143
|
-
const systemCode = props.configure.props.dynamicColumnData.settingDataTableCode ? props.configure.props.dynamicColumnData.settingDataTableCode :
|
|
144
|
-
const systemVersion = props.configure.props.dynamicColumnData.settingDataSysVersion ? props.configure.props.dynamicColumnData.settingDataSysVersion :
|
|
143
|
+
const systemCode = props.configure.props.dynamicColumnData.settingDataTableCode ? props.configure.props.dynamicColumnData.settingDataTableCode : pageDesignContextUtil.pageContext.systemCode;
|
|
144
|
+
const systemVersion = props.configure.props.dynamicColumnData.settingDataSysVersion ? props.configure.props.dynamicColumnData.settingDataSysVersion : pageDesignContextUtil.pageContext.systemVersion;
|
|
145
145
|
const tableName = props.configure.props.dynamicColumnData.settingDataName;
|
|
146
146
|
if (!tableName) {
|
|
147
147
|
return;
|
|
@@ -157,8 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function queryTableFieldsByTable() {
|
|
160
|
-
const systemCode = props.configure.props.dynamicColumnData.dataTableCode ? props.configure.props.dynamicColumnData.dataTableCode :
|
|
161
|
-
const systemVersion = props.configure.props.dynamicColumnData.tableSysVersion ? props.configure.props.dynamicColumnData.tableSysVersion :
|
|
160
|
+
const systemCode = props.configure.props.dynamicColumnData.dataTableCode ? props.configure.props.dynamicColumnData.dataTableCode : pageDesignContextUtil.pageContext.systemCode;
|
|
161
|
+
const systemVersion = props.configure.props.dynamicColumnData.tableSysVersion ? props.configure.props.dynamicColumnData.tableSysVersion : pageDesignContextUtil.pageContext.systemVersion;
|
|
162
162
|
const tableName = props.configure.props.dynamicColumnData.tableName;
|
|
163
163
|
if (!tableName) {
|
|
164
164
|
return;
|
package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js
CHANGED
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
const props = __props;
|
|
39
39
|
const selectTableDialog = ref();
|
|
40
40
|
const selectTableType = ref("");
|
|
41
|
-
const
|
|
41
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
42
42
|
const queryConditionRef = ref();
|
|
43
43
|
const selectConditionRef = ref();
|
|
44
44
|
const updateConditionRef = ref();
|
|
@@ -140,8 +140,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
140
|
}
|
|
141
141
|
function queryTableFieldsByTable() {
|
|
142
142
|
const {
|
|
143
|
-
tableSysCode =
|
|
144
|
-
tableSysVersion =
|
|
143
|
+
tableSysCode = pageDesignContextUtil.pageContext.systemCode,
|
|
144
|
+
tableSysVersion = pageDesignContextUtil.pageContext.systemVersion,
|
|
145
145
|
dataTableCode: tableName
|
|
146
146
|
} = props.configure.props.dynamicColumnData;
|
|
147
147
|
const systemCode = tableSysCode;
|
|
@@ -160,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
}
|
|
161
161
|
function queryTableFieldsByTableSublist() {
|
|
162
162
|
const { settingDataSysCode, settingDataSysVersion, settingDataTableCode } = props.configure.props.dynamicColumnData;
|
|
163
|
-
const { systemCode: defaultSystemCode, systemVersion: defaultSystemVersion } =
|
|
163
|
+
const { systemCode: defaultSystemCode, systemVersion: defaultSystemVersion } = pageDesignContextUtil.pageContext;
|
|
164
164
|
const systemCode = settingDataSysCode || defaultSystemCode;
|
|
165
165
|
const systemVersion = settingDataSysVersion || defaultSystemVersion;
|
|
166
166
|
const tableName = settingDataTableCode;
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
default: withCtx(() => [
|
|
66
66
|
createVNode(_component_el_collapse, {
|
|
67
67
|
modelValue: openCollapseItems.value,
|
|
68
|
-
"onUpdate:modelValue": _cache[
|
|
68
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => openCollapseItems.value = $event),
|
|
69
69
|
style: { "margin-top": "6px" }
|
|
70
70
|
}, {
|
|
71
71
|
default: withCtx(() => [
|
|
@@ -220,6 +220,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
}, 512), [
|
|
221
221
|
[vShow, __props.configure.props.base.tittleShow]
|
|
222
222
|
]),
|
|
223
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
224
|
+
label: "标题超宽",
|
|
225
|
+
title: "标题超宽显示",
|
|
226
|
+
class: "amb-design-attr-item"
|
|
227
|
+
}, {
|
|
228
|
+
default: withCtx(() => [
|
|
229
|
+
createVNode(_component_el_radio_group, {
|
|
230
|
+
modelValue: __props.configure.props.base.titleShowWay,
|
|
231
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.titleShowWay = $event),
|
|
232
|
+
class: "ml-4"
|
|
233
|
+
}, {
|
|
234
|
+
default: withCtx(() => [
|
|
235
|
+
createVNode(_component_el_radio, { value: "block" }, {
|
|
236
|
+
default: withCtx(() => [
|
|
237
|
+
createTextVNode("换行")
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}),
|
|
241
|
+
createVNode(_component_el_radio, { value: "inline" }, {
|
|
242
|
+
default: withCtx(() => [
|
|
243
|
+
createTextVNode("不换行")
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}),
|
|
247
|
+
createVNode(_component_el_radio, { value: "omit" }, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createTextVNode("省略号")
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["modelValue"])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 512), [
|
|
259
|
+
[vShow, __props.configure.props.base.tittleShow && __props.configure.props.base.titleWidth > 0]
|
|
260
|
+
]),
|
|
223
261
|
createVNode(_component_el_form_item, {
|
|
224
262
|
label: "尺寸",
|
|
225
263
|
class: "amb-design-attr-item"
|
|
@@ -227,7 +265,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
265
|
default: withCtx(() => [
|
|
228
266
|
createVNode(_component_el_radio_group, {
|
|
229
267
|
modelValue: __props.configure.props.base.size,
|
|
230
|
-
"onUpdate:modelValue": _cache[
|
|
268
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.size = $event),
|
|
231
269
|
class: "ml-4"
|
|
232
270
|
}, {
|
|
233
271
|
default: withCtx(() => [
|
|
@@ -262,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
262
300
|
default: withCtx(() => [
|
|
263
301
|
createVNode(_component_el_radio_group, {
|
|
264
302
|
modelValue: __props.configure.props.base.state,
|
|
265
|
-
"onUpdate:modelValue": _cache[
|
|
303
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.state = $event),
|
|
266
304
|
class: "ml-4"
|
|
267
305
|
}, {
|
|
268
306
|
default: withCtx(() => [
|
|
@@ -318,7 +356,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
318
356
|
default: withCtx(() => [
|
|
319
357
|
createVNode(_component_el_checkbox, {
|
|
320
358
|
modelValue: __props.configure.props.verification.required,
|
|
321
|
-
"onUpdate:modelValue": _cache[
|
|
359
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.verification.required = $event),
|
|
322
360
|
label: "必填"
|
|
323
361
|
}, null, 8, ["modelValue"])
|
|
324
362
|
]),
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
const designClass = ref("");
|
|
19
19
|
const designHeaderStyle = ref({});
|
|
20
20
|
const designProperty = ref({});
|
|
21
|
+
const titleExceedStyle = ref({});
|
|
21
22
|
function getRestsParameter() {
|
|
22
23
|
if (props.configure.props.preSuffix) {
|
|
23
24
|
props.configure.props;
|
|
@@ -40,9 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
removComponentOptionConfigs(props.configure);
|
|
41
42
|
});
|
|
42
43
|
function caculateThisProps() {
|
|
43
|
-
caculateComponentProps(props.configure, designProperty);
|
|
44
|
+
caculateComponentProps(props.configure, designProperty, titleExceedStyle);
|
|
44
45
|
getRestsParameter();
|
|
45
46
|
props.configure.runtime.props = designProperty.value;
|
|
47
|
+
props.configure.runtime.titleExceedStyle = titleExceedStyle.value;
|
|
46
48
|
listOptions.value = designProperty.value["options"];
|
|
47
49
|
if (listOptions.value == null || listOptions.value.length == 0) {
|
|
48
50
|
listOptions.value = [
|
|
@@ -72,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
74
|
label: withCtx(() => [
|
|
73
75
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
74
76
|
key: 0,
|
|
75
|
-
style: normalizeStyle({ ...designHeaderStyle.value, "padding-right": "12px" })
|
|
77
|
+
style: normalizeStyle({ ...designHeaderStyle.value, ...titleExceedStyle.value, "padding-right": "12px" })
|
|
76
78
|
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
77
79
|
]),
|
|
78
80
|
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.vue.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";
|
|
@@ -7,7 +7,8 @@ import "@element-plus/icons-vue";
|
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
9
9
|
import "../../../../../../stores/table-store.js";
|
|
10
|
-
import "
|
|
10
|
+
import "../../../../../../stores/statistics-table-store.js";
|
|
11
|
+
import "../../common/common-variable-bind.vue3.js";
|
|
11
12
|
import _sfc_main$4 from "./data-origin-service-in.vue.js";
|
|
12
13
|
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
13
14
|
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
@@ -34,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
setup(__props) {
|
|
37
|
-
const
|
|
38
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
38
39
|
const props = __props;
|
|
39
40
|
if (!props.configure.props) {
|
|
40
41
|
props.configure.props = {};
|
|
@@ -135,8 +136,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
136
|
}
|
|
136
137
|
let tableFields = ref([]);
|
|
137
138
|
function queryTableFieldsByTable() {
|
|
138
|
-
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode :
|
|
139
|
-
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion :
|
|
139
|
+
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageDesignContextUtil.pageContext.systemCode;
|
|
140
|
+
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion : pageDesignContextUtil.pageContext.systemVersion;
|
|
140
141
|
const tableName = dataOriginInfo.tableName;
|
|
141
142
|
if (!tableName) {
|
|
142
143
|
return;
|
|
@@ -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-27806549"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -31,8 +31,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
},
|
|
32
32
|
setup(__props) {
|
|
33
33
|
const props = __props;
|
|
34
|
-
const
|
|
35
|
-
const pageDesign =
|
|
34
|
+
const pageDesignContextUtil = usePageContextStore();
|
|
35
|
+
const pageDesign = pageDesignContextUtil.pageContext;
|
|
36
36
|
if (!props.configure.props.dataOrigin) {
|
|
37
37
|
props.configure.props.dataOrigin = {};
|
|
38
38
|
}
|
|
@@ -135,8 +135,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
}
|
|
136
136
|
let tableFields = ref([]);
|
|
137
137
|
function queryTableFieldsByTable() {
|
|
138
|
-
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode :
|
|
139
|
-
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion :
|
|
138
|
+
const systemCode = dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageDesignContextUtil.pageContext.systemCode;
|
|
139
|
+
const systemVersion = dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion : pageDesignContextUtil.pageContext.systemVersion;
|
|
140
140
|
const tableName = dataOriginInfo.tableName;
|
|
141
141
|
if (!tableName) {
|
|
142
142
|
return;
|
|
@@ -1,4 +1,155 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
|
|
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
|
+
});
|
|
2
153
|
export {
|
|
3
154
|
_sfc_main as default
|
|
4
155
|
};
|