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.
@@ -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
- return ["submitTask", "approve", "refuse", "readed", "agreement", "oppose", "kiken", "copyTask"].includes(e2);
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 o, watch as l, resolveComponent as i, createBlock as n, openBlock as a, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as c, renderList as f, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
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 V } from "../../../../utils/form-design-util.js";
8
- import k from "agilebuilder-ui/src/utils/request";
9
- import { getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
10
- const D = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
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, O = o(["base"]), j = o(false), x = o([]), L = (_a = w2.pageDesign) == null ? void 0 : _a.systemVersion, M = o(h(w2.pageDesign, w2.configure));
15
- function S() {
16
- j.value = false;
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 N(e3) {
19
- w2.configure.props.base.logSetting = e3, S();
18
+ function S(e3) {
19
+ w2.configure.props.base.logSetting = e3, R();
20
20
  }
21
- k.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${w2.pageDesign.systemCode}/${L}`).then((e3) => {
22
- x.value = e3;
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 = o(false);
25
- function A() {
24
+ const U = l(false);
25
+ function N() {
26
26
  U.value = false;
27
27
  }
28
- const $ = o(false);
29
- function z() {
30
- $.value = false;
28
+ const z = l(false);
29
+ function A() {
30
+ z.value = false;
31
31
  }
32
- function F(e3) {
32
+ function $(e3) {
33
33
  w2.configure.props.setValueList = e3;
34
34
  }
35
- const P = o(false);
36
- function W() {
37
- P.value = false;
35
+ const F = l(false);
36
+ function P() {
37
+ F.value = false;
38
38
  }
39
- function q(e3) {
39
+ function W(e3) {
40
40
  w2.configure.props.base.showConditions = JSON.stringify(e3);
41
41
  }
42
- const I = o(J());
43
- function J() {
44
- let e3 = false;
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 l2 = o2[0].eventName;
48
- e3 = V(l2);
47
+ const i2 = o2[0].eventName;
48
+ l2 = k(i2, e3);
49
49
  }
50
- return e3;
50
+ return l2;
51
51
  }
52
- return l(w2.configure.events, (e3) => {
53
- I.value = J(), I.value || (w2.configure.props.base.isMustOpinion = false);
54
- }, { immediate: true }), (o2, l2) => {
55
- const V2 = i("el-option"), k2 = i("el-select"), h2 = i("el-form-item"), w3 = i("el-button"), L2 = i("el-text"), J2 = i("el-switch"), R = i("el-collapse-item"), B = i("el-collapse"), E = i("el-form");
56
- return a(), n(E, { "label-width": "80px", size: "small" }, { default: t(() => [s(B, { modelValue: O.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(R, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", D, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(k2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [s(V2, { label: "无操作", value: "noOperation" }), s(V2, { label: "刷新", value: "refresh" }), s(V2, { label: "关闭窗口", value: "closeWindow" }), s(V2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(k2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(a(true), p(c, null, f(x.value, (e3) => (a(), n(V2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(w3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => U.value = true) }, { default: t(() => l2[7] || (l2[7] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: M.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(w3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => $.value = true) }, { default: t(() => l2[8] || (l2[8] = [g("编辑")])), _: 1 }), d(s(L2, { type: "success" }, { default: t(() => l2[9] || (l2[9] = [g("  已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: M.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(w3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => j.value = true) }, { default: t(() => l2[10] || (l2[10] = [g("编辑")])), _: 1 })]), _: 1 }), I.value ? (a(), n(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (a(), n(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: M.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), U.value ? (a(), n(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: M.value, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), $.value ? (a(), n(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: M.value, onSave: F, onClose: z }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), P.value ? (a(), n(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: M.value, onSave: q, onClose: W }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (a(), n(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: S, onSave: N }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
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 {
@@ -1,4 +1,4 @@
1
- import e from "./common-variable-bind.vue2.js";
1
+ import e from "./common-variable-bind.vue3.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = o(e, [["__scopeId", "data-v-f1126e5e"]]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.58",
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.22",
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.57",
44
- "super-page-runtime": "2.2.56",
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",