super-page-designer 2.2.58 → 2.2.64
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/form-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/form-design-util.js +5 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/package.json +4 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -199,5 +199,5 @@ export declare function getRefrencePropMap(newProp: string, oldProp: string, run
|
|
|
199
199
|
* @returns
|
|
200
200
|
*/
|
|
201
201
|
export declare function removePropFromRefrencePropMap(prop: string, runtimePropMap: any): void;
|
|
202
|
-
export declare function isShowOpinionSetting(buttonCode: string): boolean;
|
|
202
|
+
export declare function isShowOpinionSetting(buttonCode: string, type: string): boolean;
|
|
203
203
|
export declare function getFormPropTitleMap(configureCopy: any): {};
|
|
@@ -195,8 +195,11 @@ function w(e2, t2) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function T(e2) {
|
|
199
|
-
|
|
198
|
+
function T(e2, t2) {
|
|
199
|
+
if ("wfRemark" === t2) {
|
|
200
|
+
return ["copyTask"].includes(e2);
|
|
201
|
+
}
|
|
202
|
+
return ["submitTask", "approve", "refuse", "readed", "agreement", "oppose", "kiken"].includes(e2);
|
|
200
203
|
}
|
|
201
204
|
function C(e2) {
|
|
202
205
|
const t2 = {};
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as o, resolveComponent as i, createBlock as a, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as g, createTextVNode as c, withDirectives as d, vShow as m } from "vue";
|
|
2
2
|
import b from "../component/condition-dialog.vue.js";
|
|
3
3
|
import v from "../component/set-dialog.vue.js";
|
|
4
4
|
import y from "../component/combination.vue.js";
|
|
5
5
|
import C from "../component/journal-set-dialog.vue.js";
|
|
6
6
|
import _ from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
-
import { isShowOpinionSetting as
|
|
8
|
-
import
|
|
9
|
-
import { getTableConfigByTableUuid as
|
|
10
|
-
const
|
|
7
|
+
import { isShowOpinionSetting as k } from "../../../../utils/form-design-util.js";
|
|
8
|
+
import V from "agilebuilder-ui/src/utils/request";
|
|
9
|
+
import { getTableConfigByTableUuid as O } from "../../../../utils/page-table-util.js";
|
|
10
|
+
const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
11
11
|
} }, pageDesign: { type: Object, default: () => {
|
|
12
12
|
} } }, setup(e2) {
|
|
13
13
|
var _a;
|
|
14
|
-
const w2 = e2,
|
|
15
|
-
function
|
|
16
|
-
|
|
14
|
+
const w2 = e2, M = l(["base"]), D = l(false), j = l([]), x = (_a = w2.pageDesign) == null ? void 0 : _a.systemVersion, L = l(O(w2.pageDesign, w2.configure));
|
|
15
|
+
function R() {
|
|
16
|
+
D.value = false;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
w2.configure.props.base.logSetting = e3,
|
|
18
|
+
function S(e3) {
|
|
19
|
+
w2.configure.props.base.logSetting = e3, R();
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${w2.pageDesign.systemCode}/${x}`).then((e3) => {
|
|
22
|
+
j.value = e3;
|
|
23
23
|
});
|
|
24
|
-
const U =
|
|
25
|
-
function
|
|
24
|
+
const U = l(false);
|
|
25
|
+
function N() {
|
|
26
26
|
U.value = false;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
function
|
|
30
|
-
|
|
28
|
+
const z = l(false);
|
|
29
|
+
function A() {
|
|
30
|
+
z.value = false;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function $(e3) {
|
|
33
33
|
w2.configure.props.setValueList = e3;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
35
|
+
const F = l(false);
|
|
36
|
+
function P() {
|
|
37
|
+
F.value = false;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function W(e3) {
|
|
40
40
|
w2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
41
41
|
}
|
|
42
|
-
const I =
|
|
43
|
-
function J() {
|
|
44
|
-
let
|
|
42
|
+
const q = l(J("opinion")), I = l(J("wfRemark"));
|
|
43
|
+
function J(e3) {
|
|
44
|
+
let l2 = false;
|
|
45
45
|
const o2 = w2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
46
46
|
if (o2 && o2.length > 0) {
|
|
47
|
-
const
|
|
48
|
-
|
|
47
|
+
const i2 = o2[0].eventName;
|
|
48
|
+
l2 = k(i2, e3);
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return l2;
|
|
51
51
|
}
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
}, { immediate: true }), (
|
|
55
|
-
const
|
|
56
|
-
return
|
|
52
|
+
return o(w2.configure.events, (e3) => {
|
|
53
|
+
q.value = J("opinion"), I.value = J("wfRemark"), q.value || (w2.configure.props.base.isMustOpinion = false);
|
|
54
|
+
}, { immediate: true }), (l2, o2) => {
|
|
55
|
+
const k2 = i("el-option"), V2 = i("el-select"), O2 = i("el-form-item"), w3 = i("el-button"), x2 = i("el-text"), J2 = i("el-switch"), B = i("el-collapse-item"), E = i("el-collapse"), G = i("el-form");
|
|
56
|
+
return n(), a(G, { "label-width": "80px", size: "small" }, { default: t(() => [u(E, { modelValue: M.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", h, [u(O2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [u(k2, { label: "无操作", value: "noOperation" }), u(k2, { label: "刷新", value: "refresh" }), u(k2, { label: "关闭窗口", value: "closeWindow" }), u(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(O2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, g(j.value, (e3) => (n(), a(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(O2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [u(w3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => U.value = true) }, { default: t(() => o2[9] || (o2[9] = [c("编辑")])), _: 1 })]), _: 1 }), u(O2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), a(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(O2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [u(w3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => z.value = true) }, { default: t(() => o2[10] || (o2[10] = [c("编辑")])), _: 1 }), d(u(x2, { type: "success" }, { default: t(() => o2[11] || (o2[11] = [c(" 已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), u(O2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), a(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(O2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [u(w3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => D.value = true) }, { default: t(() => o2[12] || (o2[12] = [c("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), a(O2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [u(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustOpinion ? (n(), a(O2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), a(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), q.value ? (n(), a(O2, { key: 2, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [u(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustOpinion ? (n(), a(O2, { key: 3, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), a(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), I.value ? (n(), a(O2, { key: 4, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [u(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[7] || (o2[7] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustRemark ? (n(), a(O2, { key: 5, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), a(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true)])]), _: 1 }), U.value ? (n(), a(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: N }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), z.value ? (n(), a(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), F.value ? (n(), a(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : s("", true), D.value ? (n(), a(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : s("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.64",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.23",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.2.
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
43
|
+
"service-flow-designer": "2.2.63",
|
|
44
|
+
"super-page-runtime": "2.2.62",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|