super-page-designer 2.1.58 → 2.1.61
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 +94 -5
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -0
- package/dist/es/components/design/utils/form-design-util.js +5 -0
- package/dist/es/components/design/utils/page-i18n-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-i18n-util.js +18 -4
- package/dist/es/components/design/utils/page-table-util.js +2 -3
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +50 -43
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +26 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +213 -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 +9 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +17 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +26 -15
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -14
- 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 +738 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -738
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +12 -0
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +8 -2
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +10 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +12 -29
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +5 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +4 -1
- package/dist/es/style.css +84 -84
- package/package.json +4 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import _sfc_main$2 from "../component/condition-dialog.vue.js";
|
|
3
3
|
import _sfc_main$3 from "../component/set-dialog.vue.js";
|
|
4
4
|
import _sfc_main$4 from "../component/combination.vue.js";
|
|
5
5
|
import JournalSetDialog from "../component/journal-set-dialog.vue.js";
|
|
6
6
|
import _sfc_main$1 from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
+
import { isShowOpinionSetting } from "../../../../utils/form-design-util.js";
|
|
7
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "button-attr-advanced",
|
|
@@ -22,46 +23,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
23
|
setup(__props) {
|
|
23
24
|
const props = __props;
|
|
24
25
|
const openCollapseItems = ref(["base"]);
|
|
25
|
-
ref([
|
|
26
|
-
{
|
|
27
|
-
dbColumnName: "FIRST_TASK_ID",
|
|
28
|
-
label: "该流程的第一个任务的id",
|
|
29
|
-
type: "TEXT",
|
|
30
|
-
value: "FIRST_TASK_ID"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
dbColumnName: "ID",
|
|
34
|
-
label: "id",
|
|
35
|
-
type: "LONG",
|
|
36
|
-
value: "ID"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
dbColumnName: "AUDIT_REPORT_NO",
|
|
40
|
-
label: "审核报告编号",
|
|
41
|
-
type: "TEXT",
|
|
42
|
-
value: "AUDIT_REPORT_NO"
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
45
|
-
ref({
|
|
46
|
-
FIRST_TASK_ID: {
|
|
47
|
-
dbColumnName: "FIRST_TASK_ID",
|
|
48
|
-
label: "该流程的第一个任务的id",
|
|
49
|
-
type: "TEXT",
|
|
50
|
-
value: "FIRST_TASK_ID"
|
|
51
|
-
},
|
|
52
|
-
ID: {
|
|
53
|
-
dbColumnName: "ID",
|
|
54
|
-
label: "id",
|
|
55
|
-
type: "LONG",
|
|
56
|
-
value: "ID"
|
|
57
|
-
},
|
|
58
|
-
AUDIT_REPORT_NO: {
|
|
59
|
-
dbColumnName: "AUDIT_REPORT_NO",
|
|
60
|
-
label: "审核报告编号",
|
|
61
|
-
type: "TEXT",
|
|
62
|
-
value: "AUDIT_REPORT_NO"
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
26
|
const journalSetVisible = ref(false);
|
|
66
27
|
function closeJournalSet() {
|
|
67
28
|
journalSetVisible.value = false;
|
|
@@ -93,11 +54,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
54
|
function saveCondition(table) {
|
|
94
55
|
props.configure.props.base.showConditions = JSON.stringify(table);
|
|
95
56
|
}
|
|
57
|
+
const isShowOpinion = ref(isShowMustOpinion());
|
|
58
|
+
watch(props.configure.events, (newVal) => {
|
|
59
|
+
isShowOpinion.value = isShowMustOpinion();
|
|
60
|
+
if (!isShowOpinion.value) {
|
|
61
|
+
props.configure.props.base.isMustOpinion = false;
|
|
62
|
+
}
|
|
63
|
+
}, { immediate: true });
|
|
64
|
+
function isShowMustOpinion() {
|
|
65
|
+
let isShow = false;
|
|
66
|
+
const clickEvent = props.configure.events.filter((item) => item.name === "click" && item.eventName);
|
|
67
|
+
if (clickEvent && clickEvent.length > 0) {
|
|
68
|
+
const eventName = clickEvent[0].eventName;
|
|
69
|
+
isShow = isShowOpinionSetting(eventName);
|
|
70
|
+
}
|
|
71
|
+
return isShow;
|
|
72
|
+
}
|
|
96
73
|
return (_ctx, _cache) => {
|
|
97
74
|
const _component_el_option = resolveComponent("el-option");
|
|
98
75
|
const _component_el_select = resolveComponent("el-select");
|
|
99
76
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
100
77
|
const _component_el_button = resolveComponent("el-button");
|
|
78
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
101
79
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
102
80
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
103
81
|
const _component_el_form = resolveComponent("el-form");
|
|
@@ -108,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
86
|
default: withCtx(() => [
|
|
109
87
|
createVNode(_component_el_collapse, {
|
|
110
88
|
modelValue: openCollapseItems.value,
|
|
111
|
-
"onUpdate:modelValue": _cache[
|
|
89
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => openCollapseItems.value = $event),
|
|
112
90
|
style: { "margin-top": "6px" }
|
|
113
91
|
}, {
|
|
114
92
|
default: withCtx(() => [
|
|
@@ -255,7 +233,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
255
233
|
})
|
|
256
234
|
]),
|
|
257
235
|
_: 1
|
|
258
|
-
})
|
|
236
|
+
}),
|
|
237
|
+
isShowOpinion.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
238
|
+
key: 0,
|
|
239
|
+
label: "意见必填",
|
|
240
|
+
class: "amb-design-attr-item"
|
|
241
|
+
}, {
|
|
242
|
+
default: withCtx(() => [
|
|
243
|
+
createVNode(_component_el_switch, {
|
|
244
|
+
modelValue: __props.configure.props.base.isMustOpinion,
|
|
245
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.isMustOpinion = $event),
|
|
246
|
+
size: "default"
|
|
247
|
+
}, null, 8, ["modelValue"])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})) : createCommentVNode("", true),
|
|
251
|
+
__props.configure.props.base.isMustOpinion ? (openBlock(), createBlock(_component_el_form_item, {
|
|
252
|
+
key: 1,
|
|
253
|
+
label: "意见必填条件",
|
|
254
|
+
class: "amb-design-attr-item"
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
258
|
+
key: __props.configure.uuid + "_opinion",
|
|
259
|
+
configure: __props.configure,
|
|
260
|
+
type: "mustOpinionConditions",
|
|
261
|
+
title: "意见必填条件"
|
|
262
|
+
}, null, 8, ["configure"]))
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
})) : createCommentVNode("", true)
|
|
259
266
|
])
|
|
260
267
|
]),
|
|
261
268
|
_: 1
|
|
@@ -7,6 +7,7 @@ import http from "agilebuilder-ui/src/utils/request";
|
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
8
|
import _sfc_main$4 from "../../form/common/suffixmodule.vue.js";
|
|
9
9
|
import _sfc_main$2 from "../../common/common-i18n-key-input.vue.js";
|
|
10
|
+
import { findDesignItemByUuid } from "../../../../utils/common-util.js";
|
|
10
11
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
12
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
13
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -28,11 +29,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
const openCollapseItems = ref(["base", "appearance", "otherSettings", "linkPage"]);
|
|
29
30
|
const templateList = ref({});
|
|
30
31
|
const templateFileUuids = ref([]);
|
|
32
|
+
const tableConfigure = ref(getTableConfigByTableUuid());
|
|
31
33
|
if (props.configure.props.base.templateFiles) {
|
|
32
34
|
props.configure.props.base.templateFiles.forEach((templateFile) => {
|
|
33
35
|
templateFileUuids.value.push(templateFile.templateUuid);
|
|
34
36
|
});
|
|
35
37
|
}
|
|
38
|
+
if (props.configure.props.base.isEnableRequired === void 0) {
|
|
39
|
+
props.configure.props.base.isEnableRequired = true;
|
|
40
|
+
}
|
|
36
41
|
const tableList = ref([]);
|
|
37
42
|
function getTableList() {
|
|
38
43
|
if (props.pageDesign.items && props.pageDesign.items.length > 0) {
|
|
@@ -76,6 +81,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
81
|
props.configure.props.base.templateFiles = [];
|
|
77
82
|
}
|
|
78
83
|
}
|
|
84
|
+
function getTableConfigByTableUuid() {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
let tableUuid;
|
|
87
|
+
if (props.configure.props.base.tableUuid) {
|
|
88
|
+
tableUuid = props.configure.props.base.tableUuid;
|
|
89
|
+
} else if (((_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.length) > 0) {
|
|
90
|
+
tableUuid = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids[0];
|
|
91
|
+
}
|
|
92
|
+
if (tableUuid) {
|
|
93
|
+
return findDesignItemByUuid(props.pageDesign, tableUuid);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function changeTableConfig(tableUuid) {
|
|
97
|
+
const tableConfig = getTableConfigByTableUuid();
|
|
98
|
+
tableConfigure.value = tableConfig;
|
|
99
|
+
}
|
|
79
100
|
return (_ctx, _cache) => {
|
|
80
101
|
const _component_el_option = resolveComponent("el-option");
|
|
81
102
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -533,8 +554,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
533
554
|
(openBlock(), createBlock(_sfc_main$4, {
|
|
534
555
|
key: __props.configure.uuid,
|
|
535
556
|
configure: __props.configure,
|
|
536
|
-
pageDesign: __props.pageDesign
|
|
537
|
-
|
|
557
|
+
pageDesign: __props.pageDesign,
|
|
558
|
+
tableConfigure: tableConfigure.value
|
|
559
|
+
}, null, 8, ["configure", "pageDesign", "tableConfigure"]))
|
|
538
560
|
])
|
|
539
561
|
]),
|
|
540
562
|
_: 1
|
|
@@ -674,7 +696,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
674
696
|
modelValue: __props.configure.props.base.tableUuid,
|
|
675
697
|
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => __props.configure.props.base.tableUuid = $event),
|
|
676
698
|
clearable: "",
|
|
677
|
-
filterable: ""
|
|
699
|
+
filterable: "",
|
|
700
|
+
onChange: changeTableConfig
|
|
678
701
|
}, {
|
|
679
702
|
default: withCtx(() => [
|
|
680
703
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tableList.value, (item) => {
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./table-showcondition.vue.js";
|
|
3
|
+
import _sfc_main$2 from "../../../form/common/suffixmodule.vue.js";
|
|
4
|
+
import { getCustomFuncs } from "../../../../../utils/page-event-util.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "link-table",
|
|
7
|
+
props: {
|
|
8
|
+
data: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
},
|
|
12
|
+
// 页面设计对象
|
|
13
|
+
pageDesign: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
// 变量显示类型
|
|
19
|
+
paramTypes: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => ["data", "task", "page", "request"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["dataChange"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const tableData = ref([]);
|
|
29
|
+
if (props.data) {
|
|
30
|
+
tableData.value = props.data;
|
|
31
|
+
}
|
|
32
|
+
const dialogTableVisible = ref(false);
|
|
33
|
+
if (!tableData.value || tableData.value.length == 0) {
|
|
34
|
+
tableData.value.push({
|
|
35
|
+
showCondition: [],
|
|
36
|
+
eventCallBack: "",
|
|
37
|
+
style: {},
|
|
38
|
+
linkPage: {}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function addData(rowItem, index) {
|
|
42
|
+
tableData.value.splice(index + 1, 0, {
|
|
43
|
+
showCondition: [],
|
|
44
|
+
eventCallBack: "",
|
|
45
|
+
style: {}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function deleteData(rowItem, index) {
|
|
49
|
+
console.log("%c描述-111955", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", index);
|
|
50
|
+
if (tableData.value.length == 1) {
|
|
51
|
+
rowItem.showCondition = [], rowItem.eventCallBack = "", rowItem.style = {};
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
tableData.value.splice(index, 1);
|
|
55
|
+
}
|
|
56
|
+
const linkData = ref({});
|
|
57
|
+
const linkIndex = ref(0);
|
|
58
|
+
function linkConfig(data, index) {
|
|
59
|
+
linkData.value = data;
|
|
60
|
+
dialogTableVisible.value = true;
|
|
61
|
+
linkIndex.value = index;
|
|
62
|
+
}
|
|
63
|
+
function handleClose() {
|
|
64
|
+
tableData.value[linkIndex.value].linkPage = linkData.value;
|
|
65
|
+
dialogTableVisible.value = false;
|
|
66
|
+
}
|
|
67
|
+
watch(
|
|
68
|
+
() => tableData.value,
|
|
69
|
+
(newVal) => {
|
|
70
|
+
if (Object.keys(newVal[0].linkPage).length > 0) {
|
|
71
|
+
emit("dataChange", tableData.value);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{ deep: true }
|
|
75
|
+
);
|
|
76
|
+
function updateTableShowCondition(param) {
|
|
77
|
+
if (param.row) {
|
|
78
|
+
param.row.showCondition = param.data;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
83
|
+
const _component_el_option = resolveComponent("el-option");
|
|
84
|
+
const _component_el_select = resolveComponent("el-select");
|
|
85
|
+
const _component_el_button = resolveComponent("el-button");
|
|
86
|
+
const _component_Plus = resolveComponent("Plus");
|
|
87
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
88
|
+
const _component_Delete = resolveComponent("Delete");
|
|
89
|
+
const _component_el_table = resolveComponent("el-table");
|
|
90
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
91
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
92
|
+
createVNode(_component_el_table, {
|
|
93
|
+
data: tableData.value,
|
|
94
|
+
style: { "width": "100%" }
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [
|
|
97
|
+
createVNode(_component_el_table_column, {
|
|
98
|
+
label: "条件",
|
|
99
|
+
width: "55",
|
|
100
|
+
align: "center"
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx((scope) => [
|
|
103
|
+
createVNode(_sfc_main$1, {
|
|
104
|
+
paramTypes: __props.paramTypes,
|
|
105
|
+
data: scope.row.showCondition,
|
|
106
|
+
pageDesign: __props.pageDesign,
|
|
107
|
+
row: scope.row,
|
|
108
|
+
"onUpdate:data": updateTableShowCondition
|
|
109
|
+
}, null, 8, ["paramTypes", "data", "pageDesign", "row"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
createVNode(_component_el_table_column, {
|
|
114
|
+
label: "自定义条件",
|
|
115
|
+
align: "center"
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx((scope) => [
|
|
118
|
+
createVNode(_component_el_select, {
|
|
119
|
+
modelValue: scope.row.scopeFunc,
|
|
120
|
+
"onUpdate:modelValue": ($event) => scope.row.scopeFunc = $event,
|
|
121
|
+
clearable: "",
|
|
122
|
+
title: scope.row.scopeFunc,
|
|
123
|
+
size: "small",
|
|
124
|
+
placeholder: "请选择"
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCustomFuncs)(), (item) => {
|
|
128
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
129
|
+
key: item.value,
|
|
130
|
+
label: item.label,
|
|
131
|
+
value: item.value
|
|
132
|
+
}, null, 8, ["label", "value"]);
|
|
133
|
+
}), 128))
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "title"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
createVNode(_component_el_table_column, {
|
|
141
|
+
prop: "value",
|
|
142
|
+
label: "链接",
|
|
143
|
+
width: "55",
|
|
144
|
+
align: "center"
|
|
145
|
+
}, {
|
|
146
|
+
default: withCtx((scope) => [
|
|
147
|
+
createVNode(_component_el_button, {
|
|
148
|
+
type: "primary",
|
|
149
|
+
onClick: ($event) => linkConfig(scope.row.linkPage, scope.$index)
|
|
150
|
+
}, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
createTextVNode("设置")
|
|
153
|
+
]),
|
|
154
|
+
_: 2
|
|
155
|
+
}, 1032, ["onClick"])
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}),
|
|
159
|
+
createVNode(_component_el_table_column, {
|
|
160
|
+
label: "操作",
|
|
161
|
+
align: "center"
|
|
162
|
+
}, {
|
|
163
|
+
default: withCtx((scope) => [
|
|
164
|
+
createVNode(_component_el_icon, {
|
|
165
|
+
size: "14",
|
|
166
|
+
style: { "color": "#5893ef", "cursor": "pointer", "font-weight": "bold", "margin-right": "8px" },
|
|
167
|
+
onClick: ($event) => addData(scope.row, scope.$index)
|
|
168
|
+
}, {
|
|
169
|
+
default: withCtx(() => [
|
|
170
|
+
createVNode(_component_Plus)
|
|
171
|
+
]),
|
|
172
|
+
_: 2
|
|
173
|
+
}, 1032, ["onClick"]),
|
|
174
|
+
createVNode(_component_el_icon, {
|
|
175
|
+
size: "14",
|
|
176
|
+
style: { "color": "#5893ef", "cursor": "pointer" },
|
|
177
|
+
onClick: ($event) => deleteData(scope.row, scope.$index)
|
|
178
|
+
}, {
|
|
179
|
+
default: withCtx(() => [
|
|
180
|
+
createVNode(_component_Delete)
|
|
181
|
+
]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, 1032, ["onClick"])
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
})
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["data"]),
|
|
190
|
+
createVNode(_component_el_dialog, {
|
|
191
|
+
modelValue: dialogTableVisible.value,
|
|
192
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogTableVisible.value = $event),
|
|
193
|
+
title: "超链接设置",
|
|
194
|
+
"before-close": handleClose,
|
|
195
|
+
width: "900",
|
|
196
|
+
"append-to-body": ""
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [
|
|
199
|
+
createVNode(_sfc_main$2, {
|
|
200
|
+
isDialog: true,
|
|
201
|
+
configure: linkData.value,
|
|
202
|
+
pageDesign: __props.pageDesign
|
|
203
|
+
}, null, 8, ["configure", "pageDesign"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["modelValue"])
|
|
207
|
+
], 64);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
export {
|
|
212
|
+
_sfc_main as default
|
|
213
|
+
};
|
|
@@ -55,7 +55,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
() => tableData.value,
|
|
56
56
|
(newVal) => {
|
|
57
57
|
if (Object.keys(newVal[0].style).length > 0) {
|
|
58
|
-
debugger;
|
|
59
58
|
emit("dataChange", tableData.value);
|
|
60
59
|
}
|
|
61
60
|
},
|
|
@@ -76,6 +75,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
75
|
}
|
|
77
76
|
tableData.value.splice(index, 1);
|
|
78
77
|
}
|
|
78
|
+
function updateTableShowCondition(param) {
|
|
79
|
+
if (param.row) {
|
|
80
|
+
param.row.matchingCondition = param.data;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
79
83
|
return (_ctx, _cache) => {
|
|
80
84
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
81
85
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -99,10 +103,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
103
|
createVNode(_sfc_main$1, {
|
|
100
104
|
paramTypes: __props.paramTypes,
|
|
101
105
|
title: "匹配条件/生效条件",
|
|
106
|
+
row: scope.row,
|
|
102
107
|
data: scope.row.matchingCondition,
|
|
103
108
|
pageDesign: __props.pageDesign,
|
|
104
|
-
configure: __props.configure
|
|
105
|
-
|
|
109
|
+
configure: __props.configure,
|
|
110
|
+
"onUpdate:data": updateTableShowCondition
|
|
111
|
+
}, null, 8, ["paramTypes", "row", "data", "pageDesign", "configure"])
|
|
106
112
|
]),
|
|
107
113
|
_: 1
|
|
108
114
|
})) : createCommentVNode("", true),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, withCtx, createTextVNode, unref, createBlock, createCommentVNode, withDirectives, vShow } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, withCtx, createTextVNode, unref, createBlock, createCommentVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { Plus, Delete } from "@element-plus/icons";
|
|
3
3
|
import BindVariable from "../../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getUuidv4 } from "../../../../../utils/common-util.js";
|
|
@@ -32,12 +32,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
type: Object,
|
|
33
33
|
default: () => {
|
|
34
34
|
}
|
|
35
|
+
},
|
|
36
|
+
// 表格/样式/内容中“条件”时会用到
|
|
37
|
+
row: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => {
|
|
40
|
+
}
|
|
35
41
|
}
|
|
36
42
|
},
|
|
37
|
-
|
|
43
|
+
emits: ["update:data"],
|
|
44
|
+
setup(__props, { emit: __emit }) {
|
|
38
45
|
const pageDesignUtil = usePageContextStore();
|
|
39
46
|
const statisticsTableStore = statisticsTable();
|
|
40
47
|
const props = __props;
|
|
48
|
+
const emit = __emit;
|
|
41
49
|
const tableHeight = ref(300);
|
|
42
50
|
const tableDatas = ref([]);
|
|
43
51
|
if (props.data) {
|
|
@@ -67,6 +75,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
75
|
tableHeight.value = tempHeight;
|
|
68
76
|
dialogTableVisible.value = true;
|
|
69
77
|
}
|
|
78
|
+
watch(
|
|
79
|
+
() => tableDatas.value,
|
|
80
|
+
(newVal) => {
|
|
81
|
+
emit("update:data", { row: props.row, data: tableDatas.value });
|
|
82
|
+
},
|
|
83
|
+
{ deep: true }
|
|
84
|
+
);
|
|
70
85
|
function moveTop(rowItem) {
|
|
71
86
|
let sortIndex = queryIndex(rowItem);
|
|
72
87
|
if (sortIndex < 1) {
|
|
@@ -2,23 +2,19 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx
|
|
|
2
2
|
import { getFormComponentOptions, getStatisticsTableColumn } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import DataOrigin from "./component/data-origin.vue.js";
|
|
4
4
|
import _sfc_main$4 from "./component/style-table.vue.js";
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
9
|
-
import "../../../../../../stores/page-store.js";
|
|
10
|
-
import "../../../../../../stores/table-store.js";
|
|
11
|
-
import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
|
|
12
|
-
import "../../common/common-variable-bind.vue2.js";
|
|
13
|
-
import "@vueuse/core";
|
|
14
|
-
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
15
|
-
import _sfc_main$5 from "./component/table-pageination.vue.js";
|
|
16
|
-
import _sfc_main$6 from "../../common/common-attr-size.vue.js";
|
|
5
|
+
import _sfc_main$5 from "./component/link-table.vue.js";
|
|
6
|
+
import _sfc_main$6 from "./component/table-pageination.vue.js";
|
|
7
|
+
import _sfc_main$7 from "../../common/common-attr-size.vue.js";
|
|
17
8
|
import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
|
|
9
|
+
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
18
10
|
import { addColumnToGroupHeaders, getColumnsWithGroupHeader } from "../../../../utils/data-table-util.js";
|
|
11
|
+
import "agilebuilder-ui/src/utils/request";
|
|
19
12
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
20
13
|
import _sfc_main$3 from "../../data/component/formatting-icon-label.vue.js";
|
|
14
|
+
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
21
15
|
import eventBus from "../../../../utils/eventBus.js";
|
|
16
|
+
import { InfoFilled } from "@element-plus/icons-vue";
|
|
17
|
+
import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
|
|
22
18
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
23
19
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
24
20
|
const _hoisted_3 = { style: { "float": "left" } };
|
|
@@ -66,6 +62,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
62
|
function columnStyleChange(data, index) {
|
|
67
63
|
props.configure.items[index].style = data;
|
|
68
64
|
}
|
|
65
|
+
function linkChange(data, index) {
|
|
66
|
+
props.configure.items[index].linkPage = data;
|
|
67
|
+
}
|
|
69
68
|
function addRow() {
|
|
70
69
|
const fieldInfo = {
|
|
71
70
|
alias: "",
|
|
@@ -1109,7 +1108,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1109
1108
|
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1110
1109
|
data: props2.row.style,
|
|
1111
1110
|
onDataChange: (data) => columnStyleChange(data, props2.$index)
|
|
1112
|
-
}, null, 8, ["configure", "data", "onDataChange"])
|
|
1111
|
+
}, null, 8, ["configure", "data", "onDataChange"]),
|
|
1112
|
+
createVNode(_component_el_divider, null, {
|
|
1113
|
+
default: withCtx(() => [
|
|
1114
|
+
createTextVNode("链接设置")
|
|
1115
|
+
]),
|
|
1116
|
+
_: 1
|
|
1117
|
+
}),
|
|
1118
|
+
createVNode(_sfc_main$5, {
|
|
1119
|
+
pageDesign: __props.pageDesign,
|
|
1120
|
+
paramTypes: ["data", "task", "page", "request", "row"],
|
|
1121
|
+
data: props2.row.linkPage,
|
|
1122
|
+
onDataChange: (data) => linkChange(data, props2.$index)
|
|
1123
|
+
}, null, 8, ["pageDesign", "data", "onDataChange"])
|
|
1113
1124
|
]),
|
|
1114
1125
|
_: 1
|
|
1115
1126
|
}),
|
|
@@ -1232,7 +1243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1232
1243
|
]),
|
|
1233
1244
|
_: 1
|
|
1234
1245
|
}),
|
|
1235
|
-
createVNode(_sfc_main$
|
|
1246
|
+
createVNode(_sfc_main$6, {
|
|
1236
1247
|
configure: __props.configure,
|
|
1237
1248
|
pageDesign: __props.pageDesign,
|
|
1238
1249
|
serviceFields: selectedServiceResultFields.value
|
|
@@ -1335,7 +1346,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1335
1346
|
]),
|
|
1336
1347
|
_: 1
|
|
1337
1348
|
}),
|
|
1338
|
-
createVNode(_sfc_main$
|
|
1349
|
+
createVNode(_sfc_main$7, {
|
|
1339
1350
|
size: __props.configure.props.size,
|
|
1340
1351
|
showMaxHeight: true,
|
|
1341
1352
|
showCalcHeight: true
|
package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js
CHANGED
|
@@ -28,21 +28,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
props.configure.props = { base: {} };
|
|
29
29
|
}
|
|
30
30
|
let tableDatas = null;
|
|
31
|
-
if (props.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} else {
|
|
37
|
-
if (!props.configure.props.base) {
|
|
38
|
-
props.configure.props.base = { showConditions: [] };
|
|
39
|
-
} else {
|
|
40
|
-
if (!props.configure.props.base.showConditions) {
|
|
41
|
-
props.configure.props.base.showConditions = [];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
tableDatas = props.configure.props.base.showConditions;
|
|
31
|
+
if (!props.configure.props.base) {
|
|
32
|
+
props.configure.props.base = {};
|
|
33
|
+
}
|
|
34
|
+
if (!props.configure.props.base[props.type]) {
|
|
35
|
+
props.configure.props.base[props.type] = [];
|
|
45
36
|
}
|
|
37
|
+
tableDatas = props.configure.props.base[props.type];
|
|
46
38
|
const tableHeight = ref(300);
|
|
47
39
|
const dialogTableVisible = ref(false);
|
|
48
40
|
function openDialog() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
2
|
-
import "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue2.js";
|
|
2
|
+
import "./common-variable-bind.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3528c938"]]);
|
|
5
5
|
export {
|