super-page-designer 2.0.26 → 2.0.31
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/assets/images/data/barcode.png.js +4 -0
- package/dist/es/assets/images/workflow/workflow-history-img.png.js +4 -0
- package/dist/es/components/design/utils/assemblys-config.js +115 -19
- package/dist/es/components/design/utils/data-table-util.js +14 -5
- package/dist/es/components/design/utils/form-design-util.js +3 -2
- package/dist/es/components/design/utils/page-design-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-design-util.js +6 -13
- package/dist/es/components/design/utils/page-event-util.js +21 -0
- package/dist/es/components/design/utils/page-table-util.js +61 -32
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +19 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +11 -4
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +52 -66
- package/dist/es/components/design/views/assemblys/button/print-label/print-template-select.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/button/print-label/print-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +228 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +706 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.d.ts +16 -9
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +7 -3
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +19 -92
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +8 -22
- 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 +4 -3
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +449 -146
- 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 +34 -27
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +260 -225
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +2 -1
- 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 +13 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +10 -3
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +557 -132
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-event.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +45 -58
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue2.js +12 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +17 -18
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +12 -7
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue2.js +5 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +88 -42
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +33 -21
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +20 -14
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +57 -46
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +47 -9
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +44 -23
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +21 -13
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +18 -23
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +8 -3
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +25 -15
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +20 -11
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +6 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +7 -5
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +5 -3
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +0 -9
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +2 -10
- package/dist/es/components/design/views/design/page-design.vue.js +35 -41
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +1 -8
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +3 -2
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.d.ts +2 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +4 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +101 -98
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -2
- package/dist/es/stores/page-store.js +2 -1
- package/dist/es/style.css +936 -154
- package/package.json +5 -5
- package/dist/es/assets/images/workflow/workflow-history.png.js +0 -4
- package/dist/es/components/design/utils/system.d.ts +0 -6
- package/dist/es/components/design/utils/system.js +0 -26
- package/dist/es/components/design/views/assemblys/data/component/in-parameter.vue.js +0 -121
- package/dist/es/components/design/views/assemblys/data/component/in-parameter.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +0 -75
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +0 -5
- package/dist/es/components/design/views/assemblys/form/common/linkage.vue.js +0 -54
- package/dist/es/components/design/views/assemblys/form/common/linkage.vue2.js +0 -4
package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-event.vue.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import AttrEvent from "../../form/common/attr-event.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "printlabel-attr-event",
|
|
5
|
+
props: {
|
|
6
|
+
configure: Object
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
const events = ref([]);
|
|
11
|
+
watch(() => props.configure.events, (newVal) => {
|
|
12
|
+
events.value = props.configure.events;
|
|
13
|
+
}, { immediate: true });
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_el_form = resolveComponent("el-form");
|
|
16
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
17
|
+
"label-width": "80px",
|
|
18
|
+
size: "small"
|
|
19
|
+
}, {
|
|
20
|
+
default: withCtx(() => [
|
|
21
|
+
createVNode(AttrEvent, {
|
|
22
|
+
configure: __props.configure,
|
|
23
|
+
events: events.value
|
|
24
|
+
}, null, 8, ["configure", "events"])
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
_sfc_main as default
|
|
33
|
+
};
|
package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-style.vue.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../form/common/attr-style.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "printlabel-attr-style",
|
|
5
|
+
props: {
|
|
6
|
+
configure: Object
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const blankOption = {
|
|
10
|
+
showTittleFont: false,
|
|
11
|
+
// 是否显示标题字体
|
|
12
|
+
showBackground: false,
|
|
13
|
+
// 是否显示背景
|
|
14
|
+
showBorder: true,
|
|
15
|
+
// 是否显示边框
|
|
16
|
+
showShadow: true,
|
|
17
|
+
// 是否显示阴影
|
|
18
|
+
showCursor: true,
|
|
19
|
+
// 是否显示鼠标手势
|
|
20
|
+
showClass: true,
|
|
21
|
+
// 是否显示class
|
|
22
|
+
showCustom: true
|
|
23
|
+
// 是否显示自定义
|
|
24
|
+
};
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
27
|
+
const _component_el_form = resolveComponent("el-form");
|
|
28
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
29
|
+
"label-width": "80px",
|
|
30
|
+
size: "small"
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
createVNode(_component_el_collapse, { style: { "margin-top": "6px" } }, {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
createVNode(_sfc_main$1, {
|
|
36
|
+
blankOption,
|
|
37
|
+
configure: __props.configure
|
|
38
|
+
}, null, 8, ["configure"])
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createCommentVNode, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./printlabel-attr-base.vue.js";
|
|
3
|
+
import _sfc_main$3 from "./printlabel-attr-style.vue.js";
|
|
4
|
+
import _sfc_main$4 from "./printlabel-attr-event.vue.js";
|
|
5
|
+
import _sfc_main$2 from "./printlabel-attr-advanced.vue.js";
|
|
6
|
+
const _hoisted_1 = { class: "amb-design-attr-content" };
|
|
7
|
+
const _hoisted_2 = { class: "amb-design-attr-header" };
|
|
8
|
+
const _hoisted_3 = { class: "amb-design-attr-header-type" };
|
|
9
|
+
const _hoisted_4 = { class: "amb-design-attr-list" };
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "printlabel-attr",
|
|
12
|
+
props: {
|
|
13
|
+
configure: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
16
|
+
// 设置默认值
|
|
17
|
+
},
|
|
18
|
+
pageDesign: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
let currentConfigType = ref("base");
|
|
27
|
+
if (props.configure["isFlow"]) {
|
|
28
|
+
currentConfigType.value = "advanced";
|
|
29
|
+
}
|
|
30
|
+
function changeType(type) {
|
|
31
|
+
currentConfigType.value = type;
|
|
32
|
+
}
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
35
|
+
createElementVNode("div", _hoisted_2, [
|
|
36
|
+
createElementVNode("div", _hoisted_3, [
|
|
37
|
+
(__props.configure.isFlow ? false : true) ? (openBlock(), createElementBlock("label", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: normalizeClass({ selected: unref(currentConfigType) === "base" }),
|
|
40
|
+
onClick: _cache[0] || (_cache[0] = ($event) => changeType("base"))
|
|
41
|
+
}, "属性", 2)) : createCommentVNode("", true),
|
|
42
|
+
createElementVNode("label", {
|
|
43
|
+
class: normalizeClass({ selected: unref(currentConfigType) === "advanced" }),
|
|
44
|
+
onClick: _cache[1] || (_cache[1] = ($event) => changeType("advanced"))
|
|
45
|
+
}, "高级", 2),
|
|
46
|
+
(__props.configure.isFlow ? false : true) ? (openBlock(), createElementBlock("label", {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: normalizeClass({ selected: unref(currentConfigType) === "style" }),
|
|
49
|
+
onClick: _cache[2] || (_cache[2] = ($event) => changeType("style"))
|
|
50
|
+
}, "样式", 2)) : createCommentVNode("", true),
|
|
51
|
+
createElementVNode("label", {
|
|
52
|
+
class: normalizeClass({ selected: unref(currentConfigType) === "event" }),
|
|
53
|
+
onClick: _cache[3] || (_cache[3] = ($event) => changeType("event"))
|
|
54
|
+
}, "事件", 2)
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
createElementVNode("div", _hoisted_4, [
|
|
58
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
59
|
+
configure: __props.configure,
|
|
60
|
+
pageDesign: __props.pageDesign
|
|
61
|
+
}, null, 8, ["configure", "pageDesign"]), [
|
|
62
|
+
[vShow, unref(currentConfigType) === "base"]
|
|
63
|
+
]),
|
|
64
|
+
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
65
|
+
[vShow, unref(currentConfigType) === "advanced"]
|
|
66
|
+
]),
|
|
67
|
+
withDirectives(createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
68
|
+
[vShow, unref(currentConfigType) === "style"]
|
|
69
|
+
]),
|
|
70
|
+
withDirectives(createVNode(_sfc_main$4, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
71
|
+
[vShow, unref(currentConfigType) === "event"]
|
|
72
|
+
])
|
|
73
|
+
])
|
|
74
|
+
]);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
_sfc_main as default
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, unref } from "vue";
|
|
2
|
+
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
+
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
4
|
+
import { batchUpdatePermissions } from "../../../../utils/page-permission-util.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "printlabel-design",
|
|
7
|
+
props: {
|
|
8
|
+
pageDesign: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
if (!props.configure.runtime) {
|
|
14
|
+
props.configure.runtime = {};
|
|
15
|
+
}
|
|
16
|
+
const designStyle = ref({});
|
|
17
|
+
const designClass = ref("");
|
|
18
|
+
const designHeaderStyle = ref({});
|
|
19
|
+
const designProperty = ref({});
|
|
20
|
+
function getRestsParameter() {
|
|
21
|
+
let defineProps = props.configure.props ? props.configure.props : {};
|
|
22
|
+
const propsBase2 = defineProps.base ? defineProps.base : {};
|
|
23
|
+
const dropdownProps = defineProps.dropdown ? defineProps.dropdown : {};
|
|
24
|
+
Object.assign(designProperty.value, dropdownProps);
|
|
25
|
+
Object.assign(designProperty.value, propsBase2);
|
|
26
|
+
}
|
|
27
|
+
watch(
|
|
28
|
+
props.configure.style,
|
|
29
|
+
() => {
|
|
30
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
31
|
+
props.configure.runtime.style = designStyle.value;
|
|
32
|
+
props.configure.runtime.class = designClass.value;
|
|
33
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
34
|
+
},
|
|
35
|
+
{ immediate: true }
|
|
36
|
+
);
|
|
37
|
+
const propsBase = props.configure.props && props.configure.props.base ? props.configure.props.base : {};
|
|
38
|
+
let currentTitle = propsBase.title;
|
|
39
|
+
watch(
|
|
40
|
+
props.configure.props,
|
|
41
|
+
(newVal, hisVal) => {
|
|
42
|
+
caculateComponentProps(props.configure, designProperty);
|
|
43
|
+
getRestsParameter();
|
|
44
|
+
if (propsBase.title !== currentTitle && props.pageDesign) {
|
|
45
|
+
batchUpdatePermissions(props.configure, props.pageDesign);
|
|
46
|
+
console.log("newcurrentTitle", currentTitle);
|
|
47
|
+
currentTitle = propsBase.title;
|
|
48
|
+
}
|
|
49
|
+
props.configure.runtime.props = designProperty.value;
|
|
50
|
+
},
|
|
51
|
+
{ immediate: true }
|
|
52
|
+
);
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
const _component_el_button = resolveComponent("el-button");
|
|
55
|
+
return openBlock(), createBlock(_component_el_button, {
|
|
56
|
+
disabled: designProperty.value.state === "disabled",
|
|
57
|
+
class: normalizeClass(designClass.value),
|
|
58
|
+
style: normalizeStyle(designStyle.value),
|
|
59
|
+
type: designProperty.value.type,
|
|
60
|
+
size: designProperty.value.size,
|
|
61
|
+
text: designProperty.value.text,
|
|
62
|
+
round: designProperty.value.round,
|
|
63
|
+
plain: designProperty.value.plain
|
|
64
|
+
}, {
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
67
|
+
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
68
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
69
|
+
createTextVNode(" ")
|
|
70
|
+
], 64)) : createCommentVNode("", true)
|
|
71
|
+
], 64)) : createCommentVNode("", true),
|
|
72
|
+
designProperty.value.iconType && designProperty.value.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
73
|
+
key: 1,
|
|
74
|
+
iconType: designProperty.value.iconType,
|
|
75
|
+
iconValue: designProperty.value.iconValue
|
|
76
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
77
|
+
designProperty.value.title && designProperty.value.iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
78
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
79
|
+
createTextVNode(" ")
|
|
80
|
+
], 64)) : createCommentVNode("", true),
|
|
81
|
+
createTextVNode(" " + toDisplayString(designProperty.value.title), 1)
|
|
82
|
+
], 64)) : createCommentVNode("", true)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain"]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
_sfc_main as default
|
|
91
|
+
};
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
+
interface MyProps {
|
|
2
|
+
systemCode: string;
|
|
3
|
+
systemVersion: number;
|
|
4
|
+
}
|
|
1
5
|
/**
|
|
2
6
|
* 打开对象框
|
|
3
7
|
*/
|
|
4
8
|
declare function openDialog(): void;
|
|
5
|
-
declare const _default: import('vue').DefineComponent<
|
|
6
|
-
[x: string]: unknown;
|
|
7
|
-
}>>, {
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps>, {
|
|
8
10
|
openDialog: typeof openDialog;
|
|
9
11
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
12
|
selectTable: (...args: any[]) => void;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
12
|
-
[x: string]: unknown;
|
|
13
|
-
}>>>> & {
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & {
|
|
14
14
|
onSelectTable?: (...args: any[]) => any;
|
|
15
|
-
}, {
|
|
16
|
-
readonly [x: number]: string;
|
|
17
|
-
} | {}, {}>;
|
|
15
|
+
}, {}, {}>;
|
|
18
16
|
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -3,18 +3,22 @@ import { Search, RefreshLeft } from "@element-plus/icons";
|
|
|
3
3
|
import http from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { EnableStates } from "../../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
6
|
-
import { getSystemCode, getPublishVersion } from "../../../utils/system.js";
|
|
7
6
|
const _hoisted_1 = { style: { "background-color": "rgba(88, 147, 239, 0.06)", "padding": "10px" } };
|
|
8
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
8
|
__name: "common-select-table",
|
|
9
|
+
props: {
|
|
10
|
+
systemCode: {},
|
|
11
|
+
systemVersion: {}
|
|
12
|
+
},
|
|
10
13
|
emits: ["selectTable"],
|
|
11
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
+
const props = __props;
|
|
12
16
|
const pageDesignUtil = usePageContextStore();
|
|
13
17
|
const pageDesign = pageDesignUtil.pageContext ? pageDesignUtil.pageContext : {};
|
|
14
18
|
const emits = __emit;
|
|
15
19
|
const tableHeight = ref(300);
|
|
16
|
-
let appCode =
|
|
17
|
-
let appVersion =
|
|
20
|
+
let appCode = props.systemCode;
|
|
21
|
+
let appVersion = props.systemVersion;
|
|
18
22
|
if (!appCode) {
|
|
19
23
|
appCode = pageDesign.systemCode;
|
|
20
24
|
appVersion = pageDesign.systemVersion;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../../common/common-attr-size.vue.js";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import http from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
|
-
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
|
-
const _hoisted_3 = { key: 2 };
|
|
10
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
9
|
__name: "barcode-attr-base",
|
|
12
10
|
props: {
|
|
@@ -16,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
14
|
setup(__props) {
|
|
17
15
|
const props = __props;
|
|
18
16
|
const openCollapseItems = ref([]);
|
|
19
|
-
|
|
17
|
+
ref([]);
|
|
20
18
|
const formatOptions = ref([]);
|
|
21
19
|
onMounted(() => {
|
|
22
20
|
http.get(window["$vueApp"].config.globalProperties.baseAPI + "/dc/setting-barcode-model/select-options").then((res) => {
|
|
@@ -52,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
50
|
default: withCtx(() => [
|
|
53
51
|
createVNode(_component_el_collapse, {
|
|
54
52
|
modelValue: openCollapseItems.value,
|
|
55
|
-
"onUpdate:modelValue": _cache[
|
|
53
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => openCollapseItems.value = $event),
|
|
56
54
|
style: { "margin-top": "6px" }
|
|
57
55
|
}, {
|
|
58
56
|
default: withCtx(() => [
|
|
@@ -114,6 +112,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
112
|
]),
|
|
115
113
|
_: 1
|
|
116
114
|
}),
|
|
115
|
+
createVNode(_component_el_form_item, {
|
|
116
|
+
label: "绑定变量",
|
|
117
|
+
class: "amb-design-attr-item"
|
|
118
|
+
}, {
|
|
119
|
+
default: withCtx(() => [
|
|
120
|
+
(openBlock(), createBlock(BindVariable, {
|
|
121
|
+
key: __props.configure.uuid,
|
|
122
|
+
modelValue: __props.configure.props.base.prop,
|
|
123
|
+
paramTypes: ["data", "page"],
|
|
124
|
+
"onUpdate:modelValue": afterBindVariable
|
|
125
|
+
}, null, 8, ["modelValue"]))
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}),
|
|
117
129
|
createVNode(_component_el_form_item, {
|
|
118
130
|
label: "条码类型",
|
|
119
131
|
class: "amb-design-attr-item"
|
|
@@ -327,92 +339,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
327
339
|
]),
|
|
328
340
|
_: 1
|
|
329
341
|
}),
|
|
330
|
-
|
|
331
|
-
title: "数据",
|
|
332
|
-
name: "data",
|
|
333
|
-
class: "amb-design-attr-group-header"
|
|
334
|
-
}, {
|
|
335
|
-
default: withCtx(() => [
|
|
336
|
-
createElementVNode("div", _hoisted_2, [
|
|
337
|
-
createVNode(_component_el_form_item, {
|
|
338
|
-
label: "绑定",
|
|
339
|
-
class: "amb-design-attr-item"
|
|
340
|
-
}, {
|
|
341
|
-
default: withCtx(() => [
|
|
342
|
-
createVNode(_component_el_radio_group, {
|
|
343
|
-
modelValue: __props.configure.props.base.way,
|
|
344
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.way = $event),
|
|
345
|
-
class: "ml-4"
|
|
346
|
-
}, {
|
|
347
|
-
default: withCtx(() => [
|
|
348
|
-
createVNode(_component_el_radio, { value: "data" }, {
|
|
349
|
-
default: withCtx(() => [
|
|
350
|
-
createTextVNode("绑定变量")
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
}),
|
|
354
|
-
createVNode(_component_el_radio, { value: "regulation" }, {
|
|
355
|
-
default: withCtx(() => [
|
|
356
|
-
createTextVNode("绑定规则")
|
|
357
|
-
]),
|
|
358
|
-
_: 1
|
|
359
|
-
})
|
|
360
|
-
]),
|
|
361
|
-
_: 1
|
|
362
|
-
}, 8, ["modelValue"])
|
|
363
|
-
]),
|
|
364
|
-
_: 1
|
|
365
|
-
}),
|
|
366
|
-
__props.configure.props.base.way === "data" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
367
|
-
key: 0,
|
|
368
|
-
label: "绑定变量",
|
|
369
|
-
class: "amb-design-attr-item"
|
|
370
|
-
}, {
|
|
371
|
-
default: withCtx(() => [
|
|
372
|
-
(openBlock(), createBlock(BindVariable, {
|
|
373
|
-
key: __props.configure.uuid,
|
|
374
|
-
modelValue: __props.configure.props.base.prop,
|
|
375
|
-
paramTypes: ["data", "page"],
|
|
376
|
-
"onUpdate:modelValue": afterBindVariable
|
|
377
|
-
}, null, 8, ["modelValue"]))
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
})) : createCommentVNode("", true),
|
|
381
|
-
__props.configure.props.base.way === "regulation" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
382
|
-
key: 1,
|
|
383
|
-
label: "绑定规则",
|
|
384
|
-
class: "amb-design-attr-item"
|
|
385
|
-
}, {
|
|
386
|
-
default: withCtx(() => [
|
|
387
|
-
createVNode(_sfc_main$1, {
|
|
388
|
-
modelValue: __props.configure.props.base.regulation,
|
|
389
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.regulation = $event)
|
|
390
|
-
}, null, 8, ["modelValue"])
|
|
391
|
-
]),
|
|
392
|
-
_: 1
|
|
393
|
-
})) : createCommentVNode("", true),
|
|
394
|
-
dataRule.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
395
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(dataRule.value, (item, index) => {
|
|
396
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
397
|
-
key: index,
|
|
398
|
-
label: item.name,
|
|
399
|
-
class: "amb-design-attr-item"
|
|
400
|
-
}, {
|
|
401
|
-
default: withCtx(() => [
|
|
402
|
-
createVNode(_sfc_main$1, {
|
|
403
|
-
modelValue: item.date,
|
|
404
|
-
"onUpdate:modelValue": ($event) => item.date = $event
|
|
405
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
406
|
-
]),
|
|
407
|
-
_: 2
|
|
408
|
-
}, 1032, ["label"]);
|
|
409
|
-
}), 128))
|
|
410
|
-
])) : createCommentVNode("", true)
|
|
411
|
-
])
|
|
412
|
-
]),
|
|
413
|
-
_: 1
|
|
414
|
-
}),
|
|
415
|
-
(openBlock(), createBlock(_sfc_main$2, {
|
|
342
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
416
343
|
key: __props.configure.uuid,
|
|
417
344
|
size: __props.configure.props.size
|
|
418
345
|
}, null, 8, ["size"]))
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import "../../form/common/dimension-input.vue.js";
|
|
3
2
|
import RowBackgroudColor from "./row-backgroud-color.vue.js";
|
|
4
3
|
import _sfc_main$1 from "../../common/common-style-position.vue.js";
|
|
5
4
|
import _sfc_main$2 from "../../common/common-style-margin.vue.js";
|
|
@@ -31,14 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
const tableData = ref([]);
|
|
32
32
|
if (props.configure) {
|
|
33
33
|
tableData.value = getColumnsWithGroupHeader(props.configure);
|
|
34
|
-
console.log("%c描述-152039", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", tableData.value);
|
|
35
34
|
}
|
|
36
35
|
onMounted(() => {
|
|
37
36
|
eventBus.$emit("hadleDragging", true);
|
|
38
37
|
});
|
|
39
|
-
function
|
|
38
|
+
function handleClose() {
|
|
40
39
|
eventBus.$emit("hadleDragging", false);
|
|
41
|
-
emit("
|
|
40
|
+
emit("setConfigure", tableData.value);
|
|
42
41
|
}
|
|
43
42
|
function add() {
|
|
44
43
|
let obj = {
|
|
@@ -67,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
66
|
suffixModule: {},
|
|
68
67
|
querySetting: {},
|
|
69
68
|
orgFields: [{ type: "", model: "" }],
|
|
70
|
-
format:
|
|
69
|
+
format: { type: "", icon: "", suffixModule: { staticStates: [] }, jumpPageAdditional: { staticStates: [] } }
|
|
71
70
|
},
|
|
72
71
|
events: [
|
|
73
72
|
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
@@ -118,10 +117,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
117
|
const items = tableData.value;
|
|
119
118
|
[items[sortIndex], items[sortIndex + 1]] = [items[sortIndex + 1], items[sortIndex]];
|
|
120
119
|
}
|
|
121
|
-
function setColumnConfig() {
|
|
122
|
-
eventBus.$emit("hadleDragging", false);
|
|
123
|
-
emit("setConfigure", tableData.value);
|
|
124
|
-
}
|
|
125
120
|
function getTableHeaderName(item) {
|
|
126
121
|
let nameValue = "";
|
|
127
122
|
if (item.children && item.children.length > 0) {
|
|
@@ -134,8 +129,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
129
|
return nameValue;
|
|
135
130
|
}
|
|
136
131
|
return (_ctx, _cache) => {
|
|
137
|
-
const _component_el_button = resolveComponent("el-button");
|
|
138
132
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
133
|
+
const _component_el_button = resolveComponent("el-button");
|
|
139
134
|
const _component_el_icon = resolveComponent("el-icon");
|
|
140
135
|
const _component_el_input = resolveComponent("el-input");
|
|
141
136
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -149,19 +144,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
144
|
title: "快捷设置",
|
|
150
145
|
width: "70%",
|
|
151
146
|
"close-on-click-modal": false,
|
|
152
|
-
|
|
147
|
+
"before-close": handleClose
|
|
153
148
|
}, {
|
|
154
149
|
default: withCtx(() => [
|
|
155
|
-
createVNode(_component_el_button, {
|
|
156
|
-
type: "primary",
|
|
157
|
-
style: { "margin": "8px 0" },
|
|
158
|
-
onClick: setColumnConfig
|
|
159
|
-
}, {
|
|
160
|
-
default: withCtx(() => [
|
|
161
|
-
createTextVNode("确定")
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}),
|
|
165
150
|
createVNode(_component_el_table, {
|
|
166
151
|
data: tableData.value,
|
|
167
152
|
"row-key": "uuid",
|
|
@@ -262,7 +247,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
262
247
|
return openBlock(), createBlock(_component_el_option, {
|
|
263
248
|
key: item.name,
|
|
264
249
|
label: item.alias,
|
|
265
|
-
value: item.
|
|
250
|
+
value: item.dbColumnName
|
|
266
251
|
}, null, 8, ["label", "value"]);
|
|
267
252
|
}), 128))
|
|
268
253
|
]),
|
|
@@ -294,7 +279,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
294
279
|
createVNode(_component_el_select, {
|
|
295
280
|
modelValue: scope.row.name,
|
|
296
281
|
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
297
|
-
placeholder: "请选择"
|
|
282
|
+
placeholder: "请选择",
|
|
283
|
+
clearable: ""
|
|
298
284
|
}, {
|
|
299
285
|
default: withCtx(() => [
|
|
300
286
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getFormComponentOptions)(), (item) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./composite-header.vue2.js";
|
|
2
2
|
import "./composite-header.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-690ad0d7"]]);
|
|
5
5
|
export {
|
|
6
6
|
CompositeHeader as default
|
|
7
7
|
};
|
|
@@ -63,6 +63,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
console.log("%c描述-164737", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", fieldGroup.value);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
eventBus.$on("synchroGroupHeadersData", () => {
|
|
67
|
+
treeData.value = getTopGroupHeaderList(groupHeaders.value);
|
|
68
|
+
});
|
|
66
69
|
function initGroupHeaders() {
|
|
67
70
|
let index = 1;
|
|
68
71
|
props.configure.props.groupHeaders = [];
|
|
@@ -90,9 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
93
|
notChooseListColumns.value = [];
|
|
91
94
|
listColumns.forEach((column) => {
|
|
92
95
|
if (column.props.base.prop !== "$selection" && column.props.base.prop !== "$index" && column.props.base.prop !== "operation") {
|
|
93
|
-
const hasColumns = groupHeaders.value.filter(
|
|
94
|
-
(item) => item.columnUuid && item.columnUuid === column.uuid
|
|
95
|
-
);
|
|
96
|
+
const hasColumns = groupHeaders.value.filter((item) => item.columnUuid && item.columnUuid === column.uuid);
|
|
96
97
|
if (!hasColumns || hasColumns.length === 0) {
|
|
97
98
|
notChooseListColumns.value.push(column);
|
|
98
99
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin-tree.vue2.js";
|
|
2
2
|
import "./data-origin-tree.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-97438be5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
DataOrigin as default
|
|
7
7
|
};
|