super-page-designer 2.2.77-sit9 → 2.2.82
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 +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +34 -38
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +19 -20
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +8 -9
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +36 -39
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +23 -24
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -64
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- 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.vue3.js +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +63 -67
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +38 -43
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +26 -26
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- 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.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +14 -17
- 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 +80 -83
- 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 +9 -29
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +25 -33
- 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 +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +30 -33
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +0 -4
- package/dist/es/components/design/views/assemblys/object-design.vue.js +138 -5
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +34 -25
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +18 -22
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +65 -65
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +9 -10
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +9 -10
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- 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 +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +26 -27
- package/dist/es/index.js +1 -1
- package/dist/es/style.css +11223 -12881
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +0 -140
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as s, createElementVNode as d, withDirectives as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as s, createElementVNode as d, withDirectives as n, createElementBlock as r, Fragment as m, renderList as p, unref as c, createTextVNode as f, vShow as b } from "vue";
|
|
2
2
|
import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import { componentNameChange as V } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _ from "../../common/common-attr-size.vue.js";
|
|
@@ -19,7 +19,7 @@ const U = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8p
|
|
|
19
19
|
}
|
|
20
20
|
return w.configure.isTable && (z.value = true), (l2, V2) => {
|
|
21
21
|
const k3 = a("el-option"), w2 = a("el-select"), j2 = a("el-form-item"), q = a("el-input"), A = a("el-radio"), D = a("el-radio-group"), B = a("el-input-number"), E = a("el-color-picker"), F = a("el-collapse-item"), G = a("el-checkbox"), H = a("el-col"), I = a("el-button"), J = a("el-collapse"), K = a("el-form");
|
|
22
|
-
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: S.value, "onUpdate:modelValue": V2[16] || (V2[16] = (e3) => S.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(F, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [d("div", U, [i(j2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: T.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => T.value = e3), onChange: O, placeholder: "请选择" }, { default: u(() => [(t(true),
|
|
22
|
+
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: S.value, "onUpdate:modelValue": V2[16] || (V2[16] = (e3) => S.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(F, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [d("div", U, [i(j2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: T.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => T.value = e3), onChange: O, placeholder: "请选择" }, { default: u(() => [(t(true), r(m, null, p(c(g)(), (e3) => (t(), o(k3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), z.value ? s("", true) : (t(), o(j2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(v, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": W }, null, 8, ["modelValue"]))]), _: 1 })), i(j2, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(v, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": C }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), z.value ? s("", true) : (t(), o(j2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), z.value ? s("", true) : (t(), o(j2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[2] || (V2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(A, { value: true }, { default: u(() => V2[17] || (V2[17] = [f("显示")])), _: 1 }), i(A, { value: false }, { default: u(() => V2[18] || (V2[18] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), n(i(j2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(y, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[3] || (V2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), n(i(j2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(B, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), n(i(j2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(A, { value: "block" }, { default: u(() => V2[19] || (V2[19] = [f("换行")])), _: 1 }), i(A, { value: "inline" }, { default: u(() => V2[20] || (V2[20] = [f("不换行")])), _: 1 }), i(A, { value: "omit" }, { default: u(() => V2[21] || (V2[21] = [f("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(j2, { label: "开关宽度", class: "amb-design-attr-item" }, { default: u(() => [i(B, { modelValue: e2.configure.props.base.offOnWidth, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.offOnWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "激活的值", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.props.base.activeValue, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.activeValue = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "激活的颜色", class: "amb-design-attr-item" }, { default: u(() => [i(E, { modelValue: e2.configure.props.base.onColor, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.onColor = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "激活的文字", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.props.base.activeText, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.activeText = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "关闭的值", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.props.base.inactiveValue, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.inactiveValue = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "关闭的颜色", class: "amb-design-attr-item" }, { default: u(() => [i(E, { modelValue: e2.configure.props.base.offColor, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.offColor = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "关闭的文字", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.props.base.inactiveText, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.base.inactiveText = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": V2[13] || (V2[13] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [i(A, { value: "large" }, { default: u(() => V2[22] || (V2[22] = [f("大")])), _: 1 }), i(A, { value: "default" }, { default: u(() => V2[23] || (V2[23] = [f("中")])), _: 1 }), i(A, { value: "small" }, { default: u(() => V2[24] || (V2[24] = [f("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[14] || (V2[14] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(A, { value: "default" }, { default: u(() => V2[25] || (V2[25] = [f("普通")])), _: 1 }), i(A, { value: "disabled" }, { default: u(() => V2[26] || (V2[26] = [f("禁用")])), _: 1 }), i(A, { value: "hidden" }, { default: u(() => V2[27] || (V2[27] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), (t(), o(F, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [d("div", x, [i(j2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(G, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[15] || (V2[15] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(j2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(H, { span: 8 }, { default: u(() => [i(G, { label: "自定义", value: "custom" })]), _: 1 }), i(H, { span: 14 }, { default: u(() => [i(I, null, { default: u(() => V2[28] || (V2[28] = [f("自定义逻辑")])), _: 1 }), i(I, { icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), z.value ? s("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
@@ -7,10 +7,8 @@ interface MyProps {
|
|
|
7
7
|
indexObj: any;
|
|
8
8
|
showSelectedClass: boolean;
|
|
9
9
|
errorBlank: boolean;
|
|
10
|
-
isTableBtnLink: boolean;
|
|
11
10
|
}
|
|
12
11
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
|
|
13
|
-
isTableBtnLink: boolean;
|
|
14
12
|
showSelectedClass: boolean;
|
|
15
13
|
errorBlank: boolean;
|
|
16
14
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -19,7 +17,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
17
|
onCustomAttrWidget: (...args: any[]) => void;
|
|
20
18
|
onDelete: (...args: any[]) => void;
|
|
21
19
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
|
|
22
|
-
isTableBtnLink: boolean;
|
|
23
20
|
showSelectedClass: boolean;
|
|
24
21
|
errorBlank: boolean;
|
|
25
22
|
}>>> & Readonly<{
|
|
@@ -30,7 +27,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
27
|
}>, {
|
|
31
28
|
errorBlank: boolean;
|
|
32
29
|
showSelectedClass: boolean;
|
|
33
|
-
isTableBtnLink: boolean;
|
|
34
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
31
|
export default _default;
|
|
36
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,140 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, createElementBlock as g, openBlock as u, normalizeClass as p, normalizeStyle as a, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as d, createElementVNode as m, createVNode as D, withCtx as v, unref as b, vShow as h } from "vue";
|
|
2
|
+
import { CopyDocument as x, Delete as y } from "@element-plus/icons";
|
|
3
|
+
import j from "./error-design.vue.js";
|
|
4
|
+
import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
|
|
5
|
+
import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
|
|
6
|
+
import { PageDimensions as O } from "../../utils/interfaces/page-design-types.js";
|
|
7
|
+
import { batchUpdatePermissions as k, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
|
+
import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as w } from "../../utils/form-design-util.js";
|
|
9
|
+
import { usePageContextStore as U } from "../../../../stores/page-store.js";
|
|
10
|
+
import { getListCode as T } from "super-page-runtime";
|
|
11
|
+
import { getFormPropName as _ } from "../../utils/page-helper-util.js";
|
|
12
|
+
import { updateServiceInputs as B } from "../../utils/chart-design-util.js";
|
|
13
|
+
const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
const q = U(), z = e2;
|
|
16
|
+
if ("table" === z.configure.name && z.pageDesign.tableRuntimes && z.pageDesign.tableRuntimes[z.configure.uuid]) {
|
|
17
|
+
const e3 = z.pageDesign.tableRuntimes[z.configure.uuid].configure, i2 = JSON.parse(e3);
|
|
18
|
+
Object.assign(z.configure, i2), delete z.pageDesign.tableRuntimes[z.configure.uuid];
|
|
19
|
+
}
|
|
20
|
+
z.indexObj && z.indexObj.index++, null == z.configure.props && (z.configure.props = {}), null == z.configure.style && (z.configure.style = {});
|
|
21
|
+
const H = q.getModelField(_((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
|
|
22
|
+
if (z.pageDesign && z.configure && "table" == z.configure.name) {
|
|
23
|
+
if (z.configure.uuid) {
|
|
24
|
+
z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []);
|
|
25
|
+
const e3 = setTimeout(() => {
|
|
26
|
+
var _a2, _b2, _c2, _d2;
|
|
27
|
+
((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
|
|
28
|
+
}, 500);
|
|
29
|
+
i(() => {
|
|
30
|
+
var _a2, _b2, _c2, _d2;
|
|
31
|
+
const i2 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
|
|
32
|
+
null != i2 && i2 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(i2, 1));
|
|
33
|
+
const n2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
34
|
+
z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[n2] && delete z.pageDesign.listCodesMap[n2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid], e3 && clearTimeout(e3);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
n(() => z.configure.code, (e3) => {
|
|
38
|
+
A(e3);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function A(e3) {
|
|
42
|
+
z.pageDesign.listCodesMap || (z.pageDesign.listCodesMap = {});
|
|
43
|
+
const i2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
44
|
+
i2 && (z.pageDesign.listCodesMap[i2] = e3 || i2);
|
|
45
|
+
}
|
|
46
|
+
z.configure.events && z.pageDesign && (n(z.configure.events, (e3) => {
|
|
47
|
+
k(z.configure, z.pageDesign);
|
|
48
|
+
const i2 = z.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
49
|
+
z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.events = i2;
|
|
50
|
+
}, { immediate: true }), i(() => {
|
|
51
|
+
S(z.pageDesign, z.configure.uuid);
|
|
52
|
+
})), z.configure.props.linkPage && z.pageDesign && n(z.configure.props.linkPage, (e3) => {
|
|
53
|
+
z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.linkPage = z.configure.props.linkPage;
|
|
54
|
+
}, { immediate: true }), z.configure.props.parameter && z.pageDesign && n(z.configure.props.parameter, (e3) => {
|
|
55
|
+
let i2 = {};
|
|
56
|
+
e3.forEach((e4) => {
|
|
57
|
+
e4.paramName && e4.paramValue && (i2[e4.name] = e4.value);
|
|
58
|
+
}), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
|
|
59
|
+
}, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
|
|
60
|
+
B(z.configure, e3);
|
|
61
|
+
}, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
|
|
62
|
+
let N = z.indexObj.index;
|
|
63
|
+
const E = R2, F = o({});
|
|
64
|
+
F.value = C(z.configure.name);
|
|
65
|
+
const J = o(true);
|
|
66
|
+
null == F.value && (F.value = j, J.value = false), n(() => z.configure.name, (e3) => {
|
|
67
|
+
F.value = C(e3);
|
|
68
|
+
}), z.configure.props && z.configure.props.verification && (z.configure.props.base && z.configure.props.base.title && n(() => z.configure.props.base.title, (e3) => {
|
|
69
|
+
P(z.configure, z.configure.props.verification, H);
|
|
70
|
+
}), z.configure.props.base && z.configure.props.base.prop && (n(() => z.configure.props.base.prop, (e3, i2) => {
|
|
71
|
+
P(z.configure, z.configure.props.verification, H), z.pageDesign.runtime || (z.pageDesign.runtime = {}), z.pageDesign.runtime.refercePropMap || (z.pageDesign.runtime.refercePropMap = {}), M(e3, i2, z.pageDesign.runtime.refercePropMap);
|
|
72
|
+
}), i(() => {
|
|
73
|
+
var _a2, _b2;
|
|
74
|
+
w(z.configure.props.base.prop, (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
|
|
75
|
+
})), n(z.configure.props.verification, (e3, i2) => {
|
|
76
|
+
P(z.configure, e3, H);
|
|
77
|
+
})), z.pageDesign.props && n(() => z.pageDesign.props.activeWorkflow, (e3, i2) => {
|
|
78
|
+
if (e3) {
|
|
79
|
+
const e4 = z.configure.props && z.configure.props.rules ? z.configure.props.rules.filter((e5) => e5.required) : null;
|
|
80
|
+
e4 && e4.length > 0 && e4.forEach((e5) => {
|
|
81
|
+
e5.required = false;
|
|
82
|
+
}), z.configure.props && z.configure.props.verification && z.configure.props.verification.required && (z.configure.props.verification.required = false);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
const V = o(null), G = o({}), K = o(""), L = o({});
|
|
86
|
+
function Q() {
|
|
87
|
+
W(z.configure, G, K), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = K.value, z.configure.runtime.common.style = G.value;
|
|
88
|
+
}
|
|
89
|
+
if (z.configure.props && z.configure.props && (n(z.configure.props.size, (e3) => {
|
|
90
|
+
Q();
|
|
91
|
+
}), n(z.configure.props.position, (e3) => {
|
|
92
|
+
Q();
|
|
93
|
+
}, { immediate: true })), z.configure.style && z.configure.style && n(z.configure.style, () => {
|
|
94
|
+
Q();
|
|
95
|
+
}), z.configure.props) {
|
|
96
|
+
z.configure.props.size || (z.configure.props.size = {});
|
|
97
|
+
const e3 = z.configure.props.size;
|
|
98
|
+
let i2 = e3[O.PC];
|
|
99
|
+
i2 || (i2 = {}, e3[O.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
|
|
100
|
+
}
|
|
101
|
+
const X = r(() => {
|
|
102
|
+
const e3 = G.value;
|
|
103
|
+
if (L.value = {}, !e3 || !z.pageDesign) return {};
|
|
104
|
+
const i2 = {};
|
|
105
|
+
z.configure.design && z.configure.design.style && Object.assign(i2, z.configure.design.style);
|
|
106
|
+
const n2 = z.pageDesign.dimensions ? z.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
|
|
107
|
+
return o2 && (i2.width = o2.width, i2.height = o2.height, L.value = { height: o2.height }), K.value = e3[n2 + "_class"], i2;
|
|
108
|
+
});
|
|
109
|
+
n(z.selectWidget, (e3) => {
|
|
110
|
+
e3 && e3.value == N ? Y.value = "amb-design-item-selected" : Y.value = "";
|
|
111
|
+
});
|
|
112
|
+
const Y = o("");
|
|
113
|
+
function Z(e3) {
|
|
114
|
+
e3 && e3.preventDefault(), E("onSelectWidget", N, z.configure);
|
|
115
|
+
}
|
|
116
|
+
function $(e3, i2) {
|
|
117
|
+
E("onSelectWidget", e3, i2);
|
|
118
|
+
}
|
|
119
|
+
function ee(e3, i2) {
|
|
120
|
+
E("onCustomAttrWidget", e3, i2);
|
|
121
|
+
}
|
|
122
|
+
function ie(e3) {
|
|
123
|
+
e3.preventDefault(), E("onCopy", z.configure);
|
|
124
|
+
}
|
|
125
|
+
function ne(e3) {
|
|
126
|
+
if (e3.preventDefault(), E("onDelete", z.configure), z.pageDesign.allChartUuids) {
|
|
127
|
+
const e4 = z.pageDesign.allChartUuids.findIndex((e5) => e5 === z.configure.uuid);
|
|
128
|
+
e4 >= 0 && z.pageDesign.allChartUuids.splice(e4, 1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return s(() => {
|
|
132
|
+
z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, E("onSelectWidget", N, z.configure));
|
|
133
|
+
}), (e3, i2) => {
|
|
134
|
+
const n2 = t("el-icon");
|
|
135
|
+
return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(K.value), ref_key: "thisRef", ref: V }, [(u(), c(f(F.value), { style: a([G.value, L.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
|
|
136
|
+
};
|
|
137
|
+
} });
|
|
5
138
|
export {
|
|
6
|
-
|
|
139
|
+
R as default
|
|
7
140
|
};
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -61,10 +61,10 @@ const h = { class: "operation-area operation-area-float" }, $ = e({ __name: "set
|
|
|
61
61
|
q.value.publishVersion = w.publishVersion, q.value.systemCode = w.systemCode;
|
|
62
62
|
}), (e3, l2) => {
|
|
63
63
|
const a2 = t("el-input"), b2 = t("el-form-item"), y2 = t("el-col"), C2 = t("el-row"), g2 = t("el-button"), $3 = t("el-option"), w2 = t("el-select"), N2 = t("el-tag"), I = t("el-switch"), j = t("el-form"), R = t("el-card"), J = t("el-dialog");
|
|
64
|
-
return o(), u("div", null, [n(J, { "close-on-click-modal": false, title: "表单编号管理", "append-to-body": "", fullscreen: "", "model-value": "", onClose: l2[10] || (l2[10] = () => X()) }, { default: s(() => [n(R, { style: { height: "100%", "overflow-y": "scroll", "margin-bottom": "40px" } }, { default: s(() => [n(j, { ref_key: "form", ref: x, model: q.value, "label-position": "left", "label-width": "160px" }, { default: s(() => [n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则编号", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleCode" }, { default: s(() => [n(a2, { modelValue: q.value.ruleCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => q.value.ruleCode = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则名称", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleName" }, { default: s(() => [n(a2, { modelValue: q.value.ruleName, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => q.value.ruleName = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "数据表名", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "entityTableCode" }, { default: s(() => [n(a2, { modelValue: q.value.entityTableCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => q.value.entityTableCode = e4), title: q.value.entityTableCode, onClick: z, clearable: "", readonly: "true" }, { append: s(() => [n(g2, {
|
|
64
|
+
return o(), u("div", null, [n(J, { "close-on-click-modal": false, title: "表单编号管理", "append-to-body": "", fullscreen: "", "model-value": "", onClose: l2[10] || (l2[10] = () => X()) }, { default: s(() => [n(R, { style: { height: "100%", "overflow-y": "scroll", "margin-bottom": "40px" } }, { default: s(() => [n(j, { ref_key: "form", ref: x, model: q.value, "label-position": "left", "label-width": "160px" }, { default: s(() => [n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则编号", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleCode" }, { default: s(() => [n(a2, { modelValue: q.value.ruleCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => q.value.ruleCode = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则名称", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleName" }, { default: s(() => [n(a2, { modelValue: q.value.ruleName, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => q.value.ruleName = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "数据表名", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "entityTableCode" }, { default: s(() => [n(a2, { modelValue: q.value.entityTableCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => q.value.entityTableCode = e4), title: q.value.entityTableCode, onClick: z, clearable: "", readonly: "true" }, { append: s(() => [n(g2, { icon: r(V), size: "small", onClick: z }, null, 8, ["icon"]), n(g2, { icon: r(_), title: "Clear", size: "small", onClick: D }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "编号字段", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "field" }, { default: s(() => [n(w2, { modelValue: q.value.field, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => q.value.field = e4), "allow-create": "", clearable: "", filterable: "", placeholder: "请选择", style: { "padding-left": "10px" } }, { default: s(() => [(o(true), u(i, null, m(T.value, (e4) => (o(), p($3, { key: e4.dbColumnName, label: e4.alias + " " + (e4.dbColumnName === e4.alias ? "" : e4.dbColumnName), value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 24 }, { default: s(() => [n(b2, { label: "规则设置", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleSet" }, { default: s(() => [(o(), u(i, null, m(P, (e4) => n(N2, { key: e4.value, style: { "margin-left": "20px" }, onClick: (l3) => {
|
|
65
65
|
return a3 = e4, void (q.value.ruleSet ? q.value.ruleSet = q.value.ruleSet + a3.value : q.value.ruleSet = a3.value);
|
|
66
66
|
var a3;
|
|
67
|
-
} }, { default: s(() => [v(f(e4.label), 1)]), _: 2 }, 1032, ["onClick"])), 64)), n(a2, { modelValue: q.value.ruleSet, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => q.value.ruleSet = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "是否需要连续编号" }, { default: s(() => [n(I, { modelValue: q.value.continuousMatch, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => q.value.continuousMatch = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "不同值是否需要重置" }, { default: s(() => [n(I, { modelValue: q.value.differentDataReset, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => q.value.differentDataReset = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(b2, { label: "生成时间", prop: "enerationMode" }, { default: s(() => [n(w2, { modelValue: q.value.enerationMode, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => q.value.enerationMode = e4), clearable: "", style: { "padding-left": "10px" } }, { default: s(() => [(o(), u(i, null, m(U, (e4) => n($3, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "规则填写说明" }, { default: s(() => l2[11] || (l2[11] = [d("div", { style: { display: "block" } }, [d("div", null, " 1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分 "), d("div", null, "2. 表单支态参数设置:格式为,如:BPPJ-${factory}-$year-$month;"), d("div", null, " 3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX ")], -1)])), _: 1 }), n(b2, { label: "拓展参数(条件)", prop: "developmentConditions" }, { default: s(() => [n(a2, { modelValue: q.value.developmentConditions, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => q.value.developmentConditions = e4) }, null, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "拓展参数(条件)说明:" }, { default: s(() => l2[12] || (l2[12] = [d("div", null, "1. 为hql 语句 前辍为t 如:t.factory = 'B1' or t.factory = 'B2'", -1)])), _: 1 }), n(b2, { label: "效果预览", prop: "preview" }, { default: s(() => [n(a2, { modelValue: q.value.preview, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => q.value.preview = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }), d("div", h, [n(g2, { size: "default", type: "primary", onClick: M }, { default: s(() => l2[13] || (l2[13] = [v("保存 ")])), _: 1 }), n(g2, {
|
|
67
|
+
} }, { default: s(() => [v(f(e4.label), 1)]), _: 2 }, 1032, ["onClick"])), 64)), n(a2, { modelValue: q.value.ruleSet, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => q.value.ruleSet = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "是否需要连续编号" }, { default: s(() => [n(I, { modelValue: q.value.continuousMatch, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => q.value.continuousMatch = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "不同值是否需要重置" }, { default: s(() => [n(I, { modelValue: q.value.differentDataReset, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => q.value.differentDataReset = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(b2, { label: "生成时间", prop: "enerationMode" }, { default: s(() => [n(w2, { modelValue: q.value.enerationMode, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => q.value.enerationMode = e4), clearable: "", style: { "padding-left": "10px" } }, { default: s(() => [(o(), u(i, null, m(U, (e4) => n($3, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "规则填写说明" }, { default: s(() => l2[11] || (l2[11] = [d("div", { style: { display: "block" } }, [d("div", null, " 1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分 "), d("div", null, "2. 表单支态参数设置:格式为,如:BPPJ-${factory}-$year-$month;"), d("div", null, " 3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX ")], -1)])), _: 1 }), n(b2, { label: "拓展参数(条件)", prop: "developmentConditions" }, { default: s(() => [n(a2, { modelValue: q.value.developmentConditions, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => q.value.developmentConditions = e4) }, null, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "拓展参数(条件)说明:" }, { default: s(() => l2[12] || (l2[12] = [d("div", null, "1. 为hql 语句 前辍为t 如:t.factory = 'B1' or t.factory = 'B2'", -1)])), _: 1 }), n(b2, { label: "效果预览", prop: "preview" }, { default: s(() => [n(a2, { modelValue: q.value.preview, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => q.value.preview = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }), d("div", h, [n(g2, { size: "default", type: "primary", onClick: M }, { default: s(() => l2[13] || (l2[13] = [v("保存 ")])), _: 1 }), n(g2, { class: "button--default", size: "default", onClick: A }, { default: s(() => l2[14] || (l2[14] = [v("预览 ")])), _: 1 }), n(g2, { class: "button--default", size: "default", onClick: X }, { default: s(() => l2[15] || (l2[15] = [v(" 关闭 ")])), _: 1 })])]), _: 1 }), n(c, { ref_key: "selectTableDialog", ref: S, onSelectTable: B, systemCode: r(k).systemCode, systemVersion: r(k).systemVersion }, null, 8, ["systemCode", "systemVersion"])]);
|
|
68
68
|
};
|
|
69
69
|
} });
|
|
70
70
|
export {
|
|
@@ -35,7 +35,7 @@ const g = { class: "dialog-footer" }, C = e({ __name: "weight-field-input", prop
|
|
|
35
35
|
h.judgeHeavyList && (L.value = h.judgeHeavyList);
|
|
36
36
|
}), (l2, a2) => {
|
|
37
37
|
const b2 = t("el-button"), V2 = t("el-row"), C3 = t("el-option"), _2 = t("el-select"), w2 = t("el-table-column"), k2 = t("el-input"), U2 = t("el-table"), F = t("el-dialog");
|
|
38
|
-
return s(), o(F, { "model-value": "", title: "判重组合字段", "append-to-body": "", onBeforeClose: a2[1] || (a2[1] = () => l2.$emit("close")) }, { footer: u(() => [f("div", g, [i(b2, {
|
|
38
|
+
return s(), o(F, { "model-value": "", title: "判重组合字段", "append-to-body": "", onBeforeClose: a2[1] || (a2[1] = () => l2.$emit("close")) }, { footer: u(() => [f("div", g, [i(b2, { onClick: a2[0] || (a2[0] = (e3) => l2.$emit("close")) }, { default: u(() => a2[4] || (a2[4] = [d("取消")])), _: 1 }), i(b2, { type: "primary", onClick: A }, { default: u(() => a2[5] || (a2[5] = [d(" 确定 ")])), _: 1 })])]), default: u(() => [i(V2, { style: { "padding-bottom": "8px" } }, { default: u(() => [i(b2, { icon: n(y), plain: "", type: "primary", onClick: z }, { default: u(() => a2[2] || (a2[2] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), i(b2, { icon: n(c), plain: "", type: "primary", onClick: N }, { default: u(() => a2[3] || (a2[3] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), i(U2, { "highlight-current-row": "", onCurrentChange: x, data: L.value, style: { width: "100%" } }, { default: u(() => [i(w2, { prop: "date", label: "判重字段", align: "center" }, { default: u((l3) => [i(_2, { modelValue: l3.row.duplicateFieldList, "onUpdate:modelValue": (e3) => l3.row.duplicateFieldList = e3, size: "default", filterable: "", multiple: "", clearable: "", placeholder: "请选择", onChange: (e3) => function(e4, l4) {
|
|
39
39
|
l4.fieldalias = "", 0 != e4.length && (h.fieldList.forEach((a3) => {
|
|
40
40
|
e4.forEach((e5) => {
|
|
41
41
|
a3.dbColumnName === e5 && (l4.fieldalias += a3.alias + ",");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as t, createElementVNode as d, createVNode as r, createTextVNode as n } from "vue";
|
|
2
|
-
const m = { style: { "padding-bottom": "8px" } },
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
const m = { style: { "padding-bottom": "8px" } }, i = e({ __name: "create-workflow-dialog", emits: ["close"], setup(e2, { emit: i2 }) {
|
|
3
|
+
const f = l({}), s = i2, c = l(null);
|
|
4
|
+
function p() {
|
|
5
5
|
s("close");
|
|
6
6
|
}
|
|
7
7
|
function v() {
|
|
8
|
-
|
|
9
|
-
e3 && s("close",
|
|
8
|
+
c.value.validate((e3) => {
|
|
9
|
+
e3 && s("close", f.value);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
return (e3, l2) => {
|
|
13
|
-
const
|
|
14
|
-
return u(), a(b, { "
|
|
13
|
+
const i3 = o("el-button"), s2 = o("el-input"), g = o("el-form-item"), _ = o("el-form"), b = o("el-dialog");
|
|
14
|
+
return u(), a(b, { "model-value": "", title: "新建流程", onClose: p }, { default: t(() => [d("div", m, [r(i3, { onClick: v }, { default: t(() => l2[2] || (l2[2] = [n("确定 ")])), _: 1 })]), r(_, { ref_key: "wfInfoRef", ref: c, model: f.value }, { default: t(() => [r(g, { label: "流程编码", prop: "code", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }] }, { default: t(() => [r(s2, { modelValue: f.value.code, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => f.value.code = e4) }, null, 8, ["modelValue"])]), _: 1 }), r(g, { label: "流程名称", prop: "name", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }] }, { default: t(() => [r(s2, { modelValue: f.value.name, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => f.value.name = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 });
|
|
15
15
|
};
|
|
16
16
|
} });
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
i as default
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as
|
|
2
|
-
import { Search as m, Close as b, Setting as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as r, openBlock as a, withCtx as n, createVNode as t, createCommentVNode as i, createElementVNode as u, createTextVNode as s, toDisplayString as f, createElementBlock as p, Fragment as c, renderList as g, unref as d } from "vue";
|
|
2
|
+
import { Search as m, Close as b, Setting as k } from "@element-plus/icons";
|
|
3
|
+
import y from "../common/common-select-table.vue.js";
|
|
4
4
|
import w from "./variable-dialog.vue.js";
|
|
5
5
|
import x from "./create-workflow-dialog.vue.js";
|
|
6
6
|
import { queryTableFields as v, changeFeieldToMap as V } from "../../../utils/page-table-util.js";
|
|
@@ -47,8 +47,8 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
47
47
|
{
|
|
48
48
|
const o2 = [];
|
|
49
49
|
for (let l2 of e3) {
|
|
50
|
-
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") },
|
|
51
|
-
|
|
50
|
+
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") }, r2 = $(l2.items);
|
|
51
|
+
r2 && (e4.children = r2), o2.push(e4);
|
|
52
52
|
}
|
|
53
53
|
return o2;
|
|
54
54
|
}
|
|
@@ -66,7 +66,7 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
66
66
|
e4 && (z.configure.props.createWorkflowCode = e4.code, z.configure.props.createWorkflowName = e4.name, z.configure.workflowCode = z.configure.props.createWorkflowCode, z.configure.workflowVersion = e4.definitionVersion), E.value = false;
|
|
67
67
|
}) : E.value = false;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function re(e3) {
|
|
70
70
|
H.value ? W.confirm("开启流程后所有字段的必填验证配置会被取消,以流程图设置中的为准,确定开启吗?", "提示", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
71
71
|
z.configure.props.activeWorkflow = true;
|
|
72
72
|
}).catch((e4) => {
|
|
@@ -74,8 +74,8 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
74
74
|
}) : z.configure.props.activeWorkflow = false;
|
|
75
75
|
}
|
|
76
76
|
return ee(z.configure.props ? z.configure.props.workflowSource : null), (e3, o2) => {
|
|
77
|
-
const v2 = l("el-text"), V2 = l("el-form-item"), _2 = l("el-input"), C2 = l("el-radio-button"), h2 = l("el-radio-group"), W2 = l("el-switch"), j3 = l("el-option"), P2 = l("el-select"), Z2 = l("el-collapse-item"), $2 = l("el-button"),
|
|
78
|
-
return
|
|
77
|
+
const v2 = l("el-text"), V2 = l("el-form-item"), _2 = l("el-input"), C2 = l("el-radio-button"), h2 = l("el-radio-group"), W2 = l("el-switch"), j3 = l("el-option"), P2 = l("el-select"), Z2 = l("el-collapse-item"), $2 = l("el-button"), ae = l("el-tree"), ne = l("el-form"), te = l("el-radio"), ie = l("el-collapse");
|
|
78
|
+
return a(), r(ne, { "label-width": "80px", size: "small" }, { default: n(() => [t(ie, { modelValue: B.value, "onUpdate:modelValue": o2[9] || (o2[9] = (e4) => B.value = e4), style: { "margin-top": "6px" } }, { default: n(() => [t(Z2, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", S, [t(V2, { label: "编码" }, { default: n(() => [t(v2, null, { default: n(() => [s(f(e3.configure.code), 1)]), _: 1 })]), _: 1 }), t(V2, { label: "名称", style: { "margin-top": "-10px" } }, { default: n(() => [t(_2, { modelValue: e3.configure.label, "onUpdate:modelValue": o2[0] || (o2[0] = (o3) => e3.configure.label = o3) }, null, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "页面类型", style: { "margin-top": "-10px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.pageType, "onUpdate:modelValue": o2[1] || (o2[1] = (o3) => e3.configure.pageType = o3) }, { default: n(() => [t(C2, { value: "form" }, { default: n(() => o2[10] || (o2[10] = [s("表单")])), _: 1 }), t(C2, { value: "list" }, { default: n(() => o2[11] || (o2[11] = [s("台帐")])), _: 1 }), t(C2, { value: "other" }, { default: n(() => o2[12] || (o2[12] = [s("其他")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "Flex布局", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: n(() => [t(W2, { modelValue: e3.configure.props.isFlex, "onUpdate:modelValue": o2[2] || (o2[2] = (o3) => e3.configure.props.isFlex = o3) }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.isFlex ? (a(), r(V2, { key: 0, label: "水平对齐", style: { "margin-top": "18px", "margin-bottom": "-15px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexJustify, "onUpdate:modelValue": o2[3] || (o2[3] = (o3) => e3.configure.props.flexJustify = o3), placeholder: "默认", clearable: "" }, { default: n(() => [t(j3, { label: "start", value: "start" }), t(j3, { label: "center", value: "center" }), t(j3, { label: "space-between", value: "space-between" }), t(j3, { label: "space-around", value: "space-around" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), "2" == e3.configure.props.isFlex ? (a(), r(V2, { key: 1, label: "分栏间隔", style: { "margin-bottom": "-15px", "margin-top": "-10px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexGutter, "onUpdate:modelValue": o2[4] || (o2[4] = (o3) => e3.configure.props.flexGutter = o3), placeholder: "默认", clearable: "" }, { default: n(() => [(a(true), p(c, null, g(O.value, (e4) => (a(), r(j3, { label: e4, value: e4 }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true)])]), _: 1 }), t(Z2, { title: "页面变量", name: "3", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", T, [e3.configure.pageType && "form" != e3.configure.pageType ? i("", true) : (a(), r(V2, { key: 0, label: "数据模型", class: "amb-design-attr-item" }, { default: n(() => [t(_2, { modelValue: e3.configure.tableAlias, "onUpdate:modelValue": o2[5] || (o2[5] = (o3) => e3.configure.tableAlias = o3), title: e3.configure.tableAlias, clearable: "", readonly: "true" }, { append: n(() => [t($2, { icon: d(m), onClick: L, size: "small" }, null, 8, ["icon"]), t($2, { icon: d(b), onClick: Q, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })), t(ne, { "label-position": "top", size: "small" }, { default: n(() => [t(V2, { "label-position": "top", class: "amb-design-attr-item" }, { label: n(() => [o2[13] || (o2[13] = s(" 自定义变量 ")), t($2, { type: "primary", round: "", icon: d(k), onClick: X, size: "small" }, null, 8, ["icon"])]), default: n(() => [t(ae, { style: { border: "1px solid #f5f6f8", padding: "10px", width: "100%", "min-height": "100px" }, data: I.value, props: A, "default-expand-all": "", "expand-on-click-node": false }, null, 8, ["data"])]), _: 1 })]), _: 1 })])]), _: 1 }), e3.configure.pageType && "form" != e3.configure.pageType || !z.configure.tableName ? i("", true) : (a(), r(Z2, { key: 0, title: "工作流", name: "2", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", U, [t(V2, { label: "启用", style: { "margin-bottom": "-14px" } }, { default: n(() => [t(W2, { modelValue: H.value, "onUpdate:modelValue": o2[6] || (o2[6] = (e4) => H.value = e4), onChange: re }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.activeWorkflow ? (a(), r(V2, { key: 0, label: "流程来源", style: { "margin-top": "14px", "margin-bottom": "-15px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.props.workflowSource, "onUpdate:modelValue": o2[7] || (o2[7] = (o3) => e3.configure.props.workflowSource = o3), onChange: ee }, { default: n(() => [t(te, { value: "link" }, { default: n(() => o2[14] || (o2[14] = [s("选择引用")])), _: 1 }), t(te, { value: "create" }, { default: n(() => o2[15] || (o2[15] = [s("新增流程")])), _: 1 }), e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (a(), p("span", F, [t($2, { onClick: oe }, { default: n(() => o2[16] || (o2[16] = [s("新增")])), _: 1 })])) : i("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (a(), r(V2, { key: 1, label: "选择引用", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [t(P2, { modelValue: q.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e4) => q.value = e4), onChange: K }, { default: n(() => [(a(true), p(c, null, g(M.value, (e4) => (a(), r(j3, { key: e4.code, label: e4.name, value: e4.code }, { default: n(() => [u("span", N, f(e4.name), 1), u("span", D, f(e4.code), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (a(), r(V2, { key: 2, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.linkWorkflowCode), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (a(), r(V2, { key: 3, label: "流程名称", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowName), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (a(), r(V2, { key: 4, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowCode), 1)]), _: 1 })) : i("", true)])]), _: 1 }))]), _: 1 }, 8, ["modelValue"]), t(y, { ref_key: "selectTableDialog", ref: G, onSelectTable: R, systemCode: e3.configure.systemCode, systemVersion: e3.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"]), t(w, { ref_key: "refVariableDialog", ref: J, pageDesign: e3.configure, onClose: Y }, null, 8, ["pageDesign"]), E.value ? (a(), r(x, { key: 0, pageDesign: e3.configure, onClose: le }, null, 8, ["pageDesign"])) : i("", true)]), _: 1 });
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -41,7 +41,7 @@ const y = { key: 0 }, V = { key: 0 }, h = { key: 0 }, v = { key: 0 }, k = e({ __
|
|
|
41
41
|
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, D.value = true;
|
|
42
42
|
} }), (e3, l2) => {
|
|
43
43
|
const k3 = a("el-table-column"), _2 = a("el-input"), x2 = a("el-option"), U2 = a("el-select"), A2 = a("el-input-number"), H2 = a("el-button"), R = a("el-tooltip"), B = a("el-dropdown-item"), F = a("el-dropdown-menu"), G = a("el-dropdown"), I = a("el-table"), J = a("el-dialog");
|
|
44
|
-
return t(), o(J, {
|
|
44
|
+
return t(), o(J, { modelValue: D.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => D.value = e4), title: "自定义参数", width: "800" }, { default: i(() => [n(I, { data: e3.pageDesign.variables, "row-key": "code", style: { width: "100%", "margin-bottom": "20px" }, size: "small", onRowDblclick: C, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: i(() => [n(k3, { type: "index", width: "60", label: "序号" }), n(k3, { prop: "name", width: "200", label: "变量名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, style: { width: "120px" }, disabled: e4.row.disabled, modelValue: e4.row.name, "onUpdate:modelValue": (l3) => e4.row.name = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", y, r(e4.row.name), 1))]), _: 1 }), n(k3, { prop: "alias", width: "140", label: "别名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, disabled: e4.row.disabled, modelValue: e4.row.alias, "onUpdate:modelValue": (l3) => e4.row.alias = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", V, r(e4.row.alias), 1))]), _: 1 }), n(k3, { prop: "type", width: "130", label: "类型" }, { default: i((e4) => [e4.row.$editing ? (t(), o(U2, { key: 1, modelValue: e4.row.type, "onUpdate:modelValue": (l3) => e4.row.type = l3, onChange: (l3) => {
|
|
45
45
|
return a2 = l3, e4.$index, o2 = e4.row, void ("array" === a2 ? (o2.items = [], o2.items.push({ level: o2.level + 1, code: b(), name: "items", disabled: true, isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] })) : o2.items && o2.items.length > 0 && (o2.items = []));
|
|
46
46
|
var a2, o2;
|
|
47
47
|
}, placeholder: "" }, { default: i(() => [(t(), d(u, null, s($, (e5) => n(x2, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (t(), d("span", h, r(e4.row.type), 1))]), _: 1 }), n(k3, { prop: "defaultValue", width: "130", label: "默认值" }, { default: i((e4) => [e4.row.$editing ? "string" === e4.row.type ? (t(), o(_2, { key: 1, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "int" === e4.row.type ? (t(), o(A2, { key: 2, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, "controls-position": "right", placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "number" === e4.row.type ? (t(), o(_2, { key: 3, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, type: "number", placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : p("", true) : (t(), d("span", v, r(e4.row.defaultValue), 1))]), _: 1 }), n(k3, { align: "right", width: 90 }, { header: i(() => [n(R, { class: "box-item", effect: "dark", content: "添加变量", placement: "top" }, { default: i(() => [n(H2, { type: "primary", size: "small", icon: c(f), circle: "", onClick: z }, null, 8, ["icon"])]), _: 1 })]), default: i((e4) => [m("span", null, [n(G, { size: "small", style: { "margin-right": "10px" } }, { dropdown: i(() => [n(F, null, { default: i(() => ["object" === e4.row.type ? (t(), o(B, { key: 0, size: "small", onClick: (l3) => function(e5, l4) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as t, openBlock as o, withCtx as u, createVNode as d, unref as r, createTextVNode as n, createElementBlock as i, Fragment as p, renderList as m } from "vue";
|
|
2
|
-
import { CirclePlus as s, Delete as f, Top as
|
|
2
|
+
import { CirclePlus as s, Delete as f, Top as c, Bottom as v } from "@element-plus/icons-vue";
|
|
3
3
|
import b from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import "element-plus";
|
|
5
|
-
import { getOperators as
|
|
6
|
-
import { getModelOptionsByFields as
|
|
5
|
+
import { getOperators as V } from "../../../../utils/data-table-util.js";
|
|
6
|
+
import { getModelOptionsByFields as y } from "../../../../utils/page-table-util.js";
|
|
7
7
|
const g = e({ __name: "combination", props: { list: { type: Array, default: () => [] }, fieldNameList: { type: Array, default: () => [] }, fieldMap: { type: Object, default: () => {
|
|
8
8
|
} }, dataFieldNameList: { type: Array, default: () => [] }, paramTypes: { type: Array, default: null } }, emits: ["remove", "save", "close"], setup(e2, { emit: g2 }) {
|
|
9
|
-
const w = e2, _ = g2, h = l({}), N = l([]), k = l([]), U = l([])
|
|
10
|
-
w.fieldNameList && w.fieldNameList.length > 0 && (U.value =
|
|
11
|
-
const
|
|
9
|
+
const w = e2, _ = g2, h = l({}), N = l([]), k = l([]), U = l([]);
|
|
10
|
+
w.fieldNameList && w.fieldNameList.length > 0 && (U.value = y(w.fieldNameList));
|
|
11
|
+
const C = l([]);
|
|
12
12
|
let j = w.dataFieldNameList;
|
|
13
13
|
function z() {
|
|
14
14
|
h.value && 0 !== Object.keys(h.value).length ? N.value = N.value.filter((e3) => e3 != h.value) : N.value.pop();
|
|
@@ -16,32 +16,41 @@ const g = e({ __name: "combination", props: { list: { type: Array, default: () =
|
|
|
16
16
|
function D(e3) {
|
|
17
17
|
h.value = e3;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function L() {
|
|
20
20
|
N.value.push({ leftBracket: "", propName: "", operator: "", rightBracket: "", joinSign: "" }), k.value.push([]);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
"date" === e3.type ? N.value[l2].isDate = true : N.value[l2].isDate = false;
|
|
24
|
-
let a2 = w.fieldMap[e3.propDbName];
|
|
25
|
-
k.value[l2] = y(a2);
|
|
26
|
-
});
|
|
27
|
-
const M = (e3) => e3.propDbName + e3.operator + e3.propValue;
|
|
28
|
-
function B() {
|
|
22
|
+
function M() {
|
|
29
23
|
N.value = N.value.filter((e3) => e3.propName), _("save", N.value), _("close");
|
|
30
24
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
function B(e3) {
|
|
26
|
+
let l2 = -1;
|
|
27
|
+
const a2 = N.value.length;
|
|
28
|
+
for (let t2 = 0; t2 < a2; t2++) if (N.value[t2].uuid == e3.uuid) {
|
|
29
|
+
l2 = t2;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
return l2;
|
|
33
|
+
}
|
|
34
|
+
return w.dataFieldNameList && 0 !== w.dataFieldNameList.length ? C.value = y(j) : C.value = U.value, N.value = w.list, N.value.length > 0 && N.value.forEach((e3, l2) => {
|
|
35
|
+
"date" === e3.type ? N.value[l2].isDate = true : N.value[l2].isDate = false;
|
|
36
|
+
let a2 = w.fieldMap[e3.propDbName];
|
|
37
|
+
k.value[l2] = V(a2);
|
|
38
|
+
}), (l2, y2) => {
|
|
39
|
+
const g3 = a("el-button"), _2 = a("el-row"), h2 = a("el-icon"), j2 = a("el-table-column"), O = a("el-option"), T = a("el-select"), x = a("el-table"), A = a("el-dialog");
|
|
40
|
+
return o(), t(A, { "model-value": "", title: "组合条件", width: "70%", "close-on-click-modal": false, "before-close": M }, { default: u(() => [d(_2, { style: { "padding-bottom": "8px" } }, { default: u(() => [d(g3, { icon: r(s), plain: "", type: "primary", onClick: L }, { default: u(() => y2[0] || (y2[0] = [n(" 添加 ")])), _: 1 }, 8, ["icon"]), d(g3, { icon: r(f), plain: "", type: "primary", onClick: z }, { default: u(() => y2[1] || (y2[1] = [n(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(x, { ref: "tableRef", "highlight-current-row": "", onCurrentChange: D, data: N.value, "row-key": "propName", style: { width: "100%" } }, { default: u(() => [d(j2, { width: "50", align: "center" }, { default: u((e3) => [d(h2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
41
|
+
let l4 = B(e4);
|
|
42
|
+
if (l4 < 1) return;
|
|
35
43
|
const a2 = N.value;
|
|
36
|
-
[a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]]
|
|
37
|
-
}(e3.row
|
|
38
|
-
|
|
44
|
+
[a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]];
|
|
45
|
+
}(e3.row) }, { default: u(() => [d(r(c))]), _: 2 }, 1032, ["onClick"]), d(h2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
46
|
+
let l4 = B(e4);
|
|
47
|
+
if (-1 == l4 || N.value.length == l4 + 1) return;
|
|
39
48
|
const a2 = N.value;
|
|
40
|
-
[a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]]
|
|
41
|
-
}(e3.row
|
|
49
|
+
[a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]];
|
|
50
|
+
}(e3.row) }, { default: u(() => [d(r(v))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(j2, { prop: "date", label: "(", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: "(", value: "(" }), d(O, { label: "((", value: "((" }), d(O, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "name", label: "字段名(*)", align: "center" }, { default: u((l3) => [d(T, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onChange: (e3) => function(e4, l4, a2) {
|
|
42
51
|
const t2 = w.fieldMap[a2];
|
|
43
|
-
t2 && "date" === t2.type ? N.value[e4].isDate = true : N.value[e4].isDate = false, l4.propName = t2 ? t2.name : null, l4.dataType = t2 ? t2.dataType : null, k.value[e4] =
|
|
44
|
-
}(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(O, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(O, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(b, { size: "default", modelValue: l3.row.propValue, dataModelOptions:
|
|
52
|
+
t2 && "date" === t2.type ? N.value[e4].isDate = true : N.value[e4].isDate = false, l4.propName = t2 ? t2.name : null, l4.dataType = t2 ? t2.dataType : null, k.value[e4] = V(t2);
|
|
53
|
+
}(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(O, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(O, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(b, { size: "default", modelValue: l3.row.propValue, dataModelOptions: C.value, objModelOptions: U.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => {
|
|
45
54
|
return a2 = e3, void (l3.row.propValue = a2);
|
|
46
55
|
var a2;
|
|
47
56
|
} }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "日期格式", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", disabled: !e3.row.isDate, size: "default" }, { default: u(() => [d(O, { label: "年份", value: "year" }), d(O, { label: "季度", value: "quarter" }), d(O, { label: "月份", value: "month" }), d(O, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])]), _: 1 }), d(j2, { prop: "address", label: ")", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: ")", value: ")" }), d(O, { label: "))", value: "))" }), d(O, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "并且/或者", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "或者", value: "or" }), d(O, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "变量为空时", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "Null", value: "null" }), d(O, { label: "忽略(1=1)", value: "1=1" }), d(O, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as
|
|
2
|
-
import { getFormComponentOptions as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as u, openBlock as t, withCtx as o, createVNode as d, createElementVNode as s, createElementBlock as i, Fragment as n, renderList as m, unref as r, createTextVNode as p } from "vue";
|
|
2
|
+
import { getFormComponentOptions as c } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import f from "../../common/common-function-code.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
const _2 = e2,
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
const b = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { padding: "8px 0px 0px 0px" } }, _ = e({ __name: "workflowbutton-attr-base", props: { configure: Object, default: () => ({ props: {} }) }, setup(e2) {
|
|
6
|
+
const _2 = e2, V = l([]);
|
|
7
7
|
return _2.configure.props.base.showActivityName || false === _2.configure.props.base.showActivityName || (_2.configure.props.base.showActivityName = true), (l2, _3) => {
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const v = a("el-option"), x = a("el-select"), h = a("el-form-item"), y = a("el-input"), U = a("el-checkbox"), w = a("el-col"), k = a("el-row"), j = a("el-collapse-item"), z = a("el-radio"), A = a("el-radio-group"), N = a("el-collapse"), O = a("el-form");
|
|
9
|
+
return t(), u(O, { "label-width": "80px", size: "small" }, { default: o(() => [d(N, { modelValue: V.value, "onUpdate:modelValue": _3[6] || (_3[6] = (e3) => V.value = e3), style: { "margin-top": "6px" } }, { default: o(() => [d(j, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: o(() => [s("div", b, [d(h, { label: "组件类型", class: "amb-design-attr-item" }, { default: o(() => [d(x, { modelValue: e2.configure.name, "onUpdate:modelValue": _3[0] || (_3[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: o(() => [(t(true), i(n, null, m(r(c)(), (e3) => (t(), u(v, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(h, { label: "唯一编码", class: "amb-design-attr-item" }, { default: o(() => [d(y, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _3[1] || (_3[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), d(h, { label: "绑定权限", class: "amb-design-attr-item" }, { default: o(() => [d(f, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), d(h, { label: "按钮", class: "amb-design-attr-item" }, { default: o(() => [d(k, null, { default: o(() => [(t(true), i(n, null, m(e2.configure.items, (e3, l3) => (t(), u(w, { key: e3, span: 12 }, { default: o(() => [d(U, { modelValue: e3.check, "onUpdate:modelValue": (l4) => e3.check = l4, label: e3.label, value: true, disabled: e3.disabled }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }), d(j, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: o(() => [s("div", g, [d(h, { label: "文字按钮", class: "amb-design-attr-item" }, { default: o(() => [d(A, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": _3[2] || (_3[2] = (l3) => e2.configure.props.base.text = l3), class: "ml-4" }, { default: o(() => [d(z, { value: true }, { default: o(() => _3[7] || (_3[7] = [p("是")])), _: 1 }), d(z, { value: false }, { default: o(() => _3[8] || (_3[8] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(h, { label: "尺寸", class: "amb-design-attr-item" }, { default: o(() => [d(A, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _3[3] || (_3[3] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: o(() => [d(z, { value: "large" }, { default: o(() => _3[9] || (_3[9] = [p("大")])), _: 1 }), d(z, { value: "default" }, { default: o(() => _3[10] || (_3[10] = [p("中")])), _: 1 }), d(z, { value: "small" }, { default: o(() => _3[11] || (_3[11] = [p("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(h, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: o(() => [d(A, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": _3[4] || (_3[4] = (l3) => e2.configure.props.base.plain = l3), class: "ml-4" }, { default: o(() => [d(z, { value: true }, { default: o(() => _3[12] || (_3[12] = [p("是")])), _: 1 }), d(z, { value: false }, { default: o(() => _3[13] || (_3[13] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(h, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: o(() => [d(A, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": _3[5] || (_3[5] = (l3) => e2.configure.props.base.round = l3), class: "ml-4" }, { default: o(() => [d(z, { value: true }, { default: o(() => _3[14] || (_3[14] = [p("是")])), _: 1 }), d(z, { value: false }, { default: o(() => _3[15] || (_3[15] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
10
10
|
};
|
|
11
11
|
} });
|
|
12
12
|
export {
|