super-page-designer 2.3.0-sit4 → 2.3.0-sit7
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.
|
@@ -1,40 +1,45 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, withDirectives as s, createCommentVNode as d, createElementVNode as r, createElementBlock as p, Fragment as n, renderList as m, unref as f, createTextVNode as c, vShow as b } from "vue";
|
|
2
2
|
import { Search as g } from "@element-plus/icons-vue";
|
|
3
3
|
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
4
|
-
import { componentNameChange as
|
|
5
|
-
import
|
|
4
|
+
import { componentNameChange as v } from "../../../../utils/form-design-util.js";
|
|
5
|
+
import _ from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import y from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import h from "./depttree-autoset.vue.js";
|
|
8
8
|
import { OrganizationInput as S } from "agilebuilder-ui";
|
|
9
9
|
import U from "../../common/common-function-code.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import x from "../common/title-suffix.vue.js";
|
|
11
|
+
import k from "../../common/common-i18n-key-input.vue.js";
|
|
12
|
+
import { usePageContextStore as j } from "../../../../../../stores/page-store.js";
|
|
13
|
+
import { getModelOptionsByFields as w } from "../../../../utils/page-table-util.js";
|
|
14
|
+
const T = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "depttree-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
15
|
+
} }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: D2 }) {
|
|
16
|
+
const W = j(), F = e2, M = l(F.configure.name), O = D2, q = l(["base"]), L = l(false);
|
|
17
|
+
F.configure.isTable && (L.value = true);
|
|
18
|
+
const A = l(null), B = W.pageContext;
|
|
19
|
+
var E;
|
|
20
|
+
function G(e3) {
|
|
21
|
+
v(F.configure, e3, O);
|
|
17
22
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
23
|
+
function H(e3, l2) {
|
|
24
|
+
F.configure.props.base.prop = e3, l2 && (F.configure.props.base.title = l2);
|
|
20
25
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
26
|
+
function I(e3) {
|
|
27
|
+
F.configure.props.base.defaultValue = e3;
|
|
23
28
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
29
|
+
function J(e3) {
|
|
30
|
+
F.configure.props.base.deptScopeField = e3;
|
|
26
31
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
32
|
+
function K(e3, l2) {
|
|
33
|
+
F.configure.props.base.deptScopeDepts = l2;
|
|
29
34
|
}
|
|
30
|
-
function
|
|
31
|
-
"depts" === e3 && (
|
|
35
|
+
function N(e3) {
|
|
36
|
+
"depts" === e3 && (F.configure.props.base.limitFilterColumn = null);
|
|
32
37
|
}
|
|
33
|
-
return
|
|
34
|
-
const
|
|
35
|
-
return t(), o(
|
|
38
|
+
return (E = B.currentTableConfig) && (A.value = w(E.modelFields)), (l2, v2) => {
|
|
39
|
+
const j2 = a("el-option"), w2 = a("el-select"), D3 = a("el-form-item"), W2 = a("el-input"), F2 = a("el-radio"), O2 = a("el-radio-group"), B2 = a("el-input-number"), E2 = a("el-collapse-item"), P = a("el-checkbox"), Q = a("el-col"), R = a("el-button"), X = a("el-collapse"), Y = a("el-form");
|
|
40
|
+
return t(), o(Y, { "label-width": "80px", size: "small" }, { default: u(() => [i(X, { modelValue: q.value, "onUpdate:modelValue": v2[15] || (v2[15] = (e3) => q.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(E2, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", T, [i(D3, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: M.value, "onUpdate:modelValue": v2[0] || (v2[0] = (e3) => M.value = e3), onChange: G, placeholder: "请选择" }, { default: u(() => [(t(true), p(n, null, m(f(V)(), (e3) => (t(), o(j2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(D3, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(W2, { 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 }), i(D3, { label: "结构树类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: e2.configure.props.base.treeType, "onUpdate:modelValue": v2[2] || (v2[2] = (l3) => e2.configure.props.base.treeType = l3), placeholder: "请选择" }, { default: u(() => [i(j2, { label: "部门人员树", value: "DeptUserTree" }), i(j2, { label: "工作组人员树", value: "WgUserTree" }), i(j2, { label: "部门树", value: "DeptTree" }), i(j2, { label: "工作组树", value: "WgTree" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), L.value ? d("", true) : (t(), o(D3, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": H }, null, 8, ["modelValue"]))]), _: 1 })), i(D3, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": I }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), L.value ? d("", true) : (t(), o(D3, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), L.value ? d("", true) : (t(), o(D3, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": v2[3] || (v2[3] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: true }, { default: u(() => v2[16] || (v2[16] = [c("显示")])), _: 1 }), i(F2, { value: false }, { default: u(() => v2[17] || (v2[17] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), s(i(D3, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(k, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": v2[4] || (v2[4] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(D3, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(B2, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": v2[5] || (v2[5] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(D3, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": v2[6] || (v2[6] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "block" }, { default: u(() => v2[18] || (v2[18] = [c("换行")])), _: 1 }), i(F2, { value: "inline" }, { default: u(() => v2[19] || (v2[19] = [c("不换行")])), _: 1 }), i(F2, { value: "omit" }, { default: u(() => v2[20] || (v2[20] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(D3, { label: "多选", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.treeMultiple, "onUpdate:modelValue": v2[7] || (v2[7] = (l3) => e2.configure.props.base.treeMultiple = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: true }, { default: u(() => v2[21] || (v2[21] = [c("是")])), _: 1 }), i(F2, { value: false }, { default: u(() => v2[22] || (v2[22] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(i(D3, { label: "分隔符", class: "amb-design-attr-item" }, { default: u(() => [i(W2, { modelValue: e2.configure.props.base.separator, "onUpdate:modelValue": v2[8] || (v2[8] = (l3) => e2.configure.props.base.separator = l3), placeholder: "," }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.treeMultiple]]), i(D3, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": v2[9] || (v2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "large" }, { default: u(() => v2[23] || (v2[23] = [c("大")])), _: 1 }), i(F2, { value: "default" }, { default: u(() => v2[24] || (v2[24] = [c("中")])), _: 1 }), i(F2, { value: "small" }, { default: u(() => v2[25] || (v2[25] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(D3, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": v2[10] || (v2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "default" }, { default: u(() => v2[26] || (v2[26] = [c("普通")])), _: 1 }), i(F2, { value: "disabled" }, { default: u(() => v2[27] || (v2[27] = [c("禁用")])), _: 1 }), i(F2, { value: "hidden" }, { default: u(() => v2[28] || (v2[28] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(E2, { title: "限定部门", name: "deptScopes", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", z, [i(O2, { modelValue: e2.configure.props.base.deptScope, "onUpdate:modelValue": v2[12] || (v2[12] = (l3) => e2.configure.props.base.deptScope = l3), onChange: N }, { default: u(() => [i(D3, { class: "amb-design-attr-item" }, { label: u(() => [i(F2, { value: "field" }, { default: u(() => v2[29] || (v2[29] = [c("指定变量")])), _: 1 })]), default: u(() => [i(y, { showLabel: "field" != e2.configure.props.base.deptScope, objModelOptions: A.value, modelValue: e2.configure.props.base.deptScopeField, "onUpdate:modelValue": J }, null, 8, ["showLabel", "objModelOptions", "modelValue"])]), _: 1 }), i(D3, { class: "amb-design-attr-item" }, { label: u(() => [i(F2, { value: "depts" }, { default: u(() => v2[30] || (v2[30] = [c("固定部门")])), _: 1 })]), default: u(() => [i(f(S), { disabled: "depts" != e2.configure.props.base.deptScope, multiple: true, treeType: "DeptTree", value: e2.configure.props.base.deptScopeDepts, "onUpdate:value": v2[11] || (v2[11] = (l3) => e2.configure.props.base.deptScopeDepts = l3), models: e2.configure.props.base, fields: [{ type: "code", model: "deptScopeCodes" }], size: "small", placeholder: "请选择", separator: ",", onSetValue: K }, null, 8, ["disabled", "value", "models"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "field" === e2.configure.props.base.deptScope ? (t(), o(D3, { key: 0, label: "筛选字段", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: e2.configure.props.base.limitFilterColumn, "onUpdate:modelValue": v2[13] || (v2[13] = (l3) => e2.configure.props.base.limitFilterColumn = l3), clearable: "", placeholder: "请选择" }, { default: u(() => [i(j2, { key: "id", label: "id", value: "id" }), i(j2, { key: "code", label: "编码", value: "code" }), i(j2, { key: "name", label: "名称", value: "name" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true)])]), _: 1 }), (t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), s(i(x, { configure: e2.configure }, null, 8, ["configure"]), [[b, e2.configure.props.base.tittleShow]]), (t(), o(E2, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [r("div", C, [i(D3, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(P, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": v2[14] || (v2[14] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(D3, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(Q, { span: 8 }, { default: u(() => [i(P, { label: "自定义", value: "custom" })]), _: 1 }), i(Q, { span: 14 }, { default: u(() => [i(R, { type: "default" }, { default: u(() => v2[31] || (v2[31] = [c("自定义逻辑")])), _: 1 }), i(R, { type: "default", icon: f(g), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), L.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
36
41
|
};
|
|
37
42
|
} });
|
|
38
43
|
export {
|
|
39
|
-
|
|
44
|
+
D as default
|
|
40
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-sit7",
|
|
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.36-
|
|
32
|
+
"agilebuilder-ui": "1.1.36-sit3",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.3.0-sit2",
|
|
44
|
-
"super-page-runtime": "2.3.0-
|
|
44
|
+
"super-page-runtime": "2.3.0-sit5",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|