super-page-designer 2.0.17 → 2.0.23
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/fonts/iconfont.css.js +1 -0
- package/dist/es/components/design/utils/assemblys-config.js +125 -63
- package/dist/es/components/design/utils/data-table-util.js +4 -4
- package/dist/es/components/design/utils/form-design-util.js +11 -0
- package/dist/es/components/design/utils/page-service-util.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +3 -3
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +16 -8
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +16 -12
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +10 -8
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -7
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +31 -9
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +6 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +18 -8
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +14 -8
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +33 -16
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +37 -34
- 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 +112 -13
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +0 -5
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +18 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +31 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +10 -9
- 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 -8
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +64 -75
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +44 -37
- 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 +2 -1
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +15 -50
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -3
- 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 +4 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +3 -42
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +19 -13
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +5 -68
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +24 -14
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +21 -11
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +6 -4
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-event.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/divider/divider-design.vue2.js +17 -16
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +24 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +19 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +20 -10
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-design.vue2.js +8 -13
- 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 +16 -9
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +2 -2
- 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-advanced.vue.js +40 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +142 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue.js +53 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue2.js +93 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-design.vue2.js +56 -0
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/object-design.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +2 -2
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -11
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +20 -5
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +9 -7
- package/dist/es/components/design/views/design/page-design.vue.js +135 -133
- package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +678 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.d.ts +16 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +602 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue2.js +4 -0
- 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 +2 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.d.ts +4 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +82 -39
- package/dist/es/components/design/views/design/view/view-design.vue.d.ts +13 -1
- package/dist/es/components/design/views/design/view/view-design.vue.js +13 -3
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/stores/undo-redo-store.d.ts +13 -0
- package/dist/es/stores/undo-redo-store.js +44 -0
- package/dist/es/style.css +977 -177
- package/package.json +6 -4
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +0 -539
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue2.js +0 -4
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, reactive, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
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
|
-
const _hoisted_1 = { style: { "background-color": "rgba(88,147,239,0.06)", "padding": "10px" } };
|
|
5
|
+
const _hoisted_1 = { style: { "background-color": "rgba(88, 147, 239, 0.06)", "padding": "10px" } };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "common-select-page",
|
|
8
8
|
props: {
|
|
@@ -31,11 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
total: 0
|
|
32
32
|
});
|
|
33
33
|
const tableDatas = ref([]);
|
|
34
|
-
const allSystems = ref([
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
const allSystems = ref([
|
|
35
|
+
{
|
|
36
|
+
value: "",
|
|
37
|
+
version: 1,
|
|
38
|
+
label: ""
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
39
41
|
const allSystemMap = ref({});
|
|
40
42
|
function confirmSelectTable(scopeData) {
|
|
41
43
|
emits("selectPage", scopeData.row);
|
|
@@ -60,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
function queryAllSystems() {
|
|
63
|
-
http.
|
|
65
|
+
http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((res) => {
|
|
64
66
|
const datas = res;
|
|
65
67
|
const systemCodes = [];
|
|
66
68
|
const tempMap = {};
|
|
@@ -142,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
144
|
}
|
|
143
145
|
let systemId = searchModel.systemId;
|
|
144
146
|
searchModel.tableType ? searchModel.tableType : 0;
|
|
145
|
-
const url = "/mms/app-pages/listBySystem/" + (systemId ? systemId : 0);
|
|
147
|
+
const url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/app-pages/listBySystem/" + (systemId ? systemId : 0);
|
|
146
148
|
console.log("searchPages", url);
|
|
147
149
|
http.post(url, param).then((res) => {
|
|
148
150
|
tableDatas.value = res.data;
|
|
@@ -9,13 +9,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
__name: "common-select-table",
|
|
10
10
|
emits: ["selectTable"],
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const props = __props;
|
|
13
12
|
const pageDesignUtil = usePageContextStore();
|
|
14
|
-
pageDesignUtil.pageContext ? pageDesignUtil.pageContext : {};
|
|
13
|
+
const pageDesign = pageDesignUtil.pageContext ? pageDesignUtil.pageContext : {};
|
|
15
14
|
const emits = __emit;
|
|
16
15
|
const tableHeight = ref(300);
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
let appCode = getSystemCode();
|
|
17
|
+
let appVersion = getPublishVersion();
|
|
18
|
+
if (!appCode) {
|
|
19
|
+
appCode = pageDesign.systemCode;
|
|
20
|
+
appVersion = pageDesign.systemVersion;
|
|
21
|
+
}
|
|
19
22
|
const dialogTableVisible = ref(false);
|
|
20
23
|
const searchModel = reactive({
|
|
21
24
|
systemCode: "",
|
|
@@ -47,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
50
|
name: scopeData.row.name,
|
|
48
51
|
alias: scopeData.row.alias
|
|
49
52
|
};
|
|
50
|
-
if (searchModel.systemCode && searchModel.systemCode !=
|
|
53
|
+
if (searchModel.systemCode && searchModel.systemCode != pageDesign.systemCode) {
|
|
51
54
|
let systemCode = searchModel.systemCode;
|
|
52
55
|
let items = allSystems.value.filter((item) => {
|
|
53
56
|
return item.value == systemCode;
|
|
@@ -77,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
function queryAllSystems() {
|
|
80
|
-
http.get("/component/super-charts/findAllSystem").then((res) => {
|
|
83
|
+
http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((res) => {
|
|
81
84
|
const datas = res;
|
|
82
85
|
const systemCodes = [];
|
|
83
86
|
const tempMap = {};
|
|
@@ -156,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
159
|
publishVersion = items.length > 0 ? items[0].version : -1;
|
|
157
160
|
}
|
|
158
161
|
const tableType = searchModel.tableType ? searchModel.tableType : 0;
|
|
159
|
-
const url = "/mms/data-tables/list/" + systemCode + "/" + tableType + "/" + publishVersion;
|
|
162
|
+
const url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/list/" + systemCode + "/" + tableType + "/" + publishVersion;
|
|
160
163
|
console.log("searc", url);
|
|
161
164
|
http.post(url, param).then((res) => {
|
|
162
165
|
tableDatas.value = res.data;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createElementBlock, unref } from "vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createElementBlock, unref } from "vue";
|
|
2
2
|
import { Plus } from "@element-plus/icons-vue";
|
|
3
|
+
import { getToken } from "agilebuilder-ui/src/utils/auth";
|
|
3
4
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
4
5
|
const _hoisted_2 = ["src"];
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,10 +13,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
},
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
15
|
-
|
|
16
|
+
const uploadAction = ref(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-form/uploads");
|
|
17
|
+
const token = getToken();
|
|
18
|
+
const defaultShowImageAction = ref(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + token + "&serverPath=");
|
|
19
|
+
console.log("uploadAction", uploadAction.value);
|
|
20
|
+
function beforeAvatarUpload(file) {
|
|
21
|
+
let limitFileSize = 3;
|
|
22
|
+
if (file.size > limitFileSize * 1024 * 1024) {
|
|
23
|
+
this.$message({
|
|
24
|
+
type: "warning",
|
|
25
|
+
message: this.$t("imatrixUIMessage.exceedFileSize", {
|
|
26
|
+
fileSize: limitFileSize
|
|
27
|
+
}),
|
|
28
|
+
showClose: true
|
|
29
|
+
});
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
16
32
|
}
|
|
17
|
-
const handleAvatarSuccess = (response,
|
|
18
|
-
|
|
33
|
+
const handleAvatarSuccess = (response, file) => {
|
|
34
|
+
if (response) {
|
|
35
|
+
console.log("response", response);
|
|
36
|
+
}
|
|
37
|
+
props.configure.style.backgroundImageServerPath = response.serverPath;
|
|
19
38
|
};
|
|
20
39
|
return (_ctx, _cache) => {
|
|
21
40
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
@@ -49,15 +68,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
68
|
default: withCtx(() => [
|
|
50
69
|
createVNode(_component_el_upload, {
|
|
51
70
|
class: "avatar-uploader",
|
|
52
|
-
|
|
71
|
+
accept: "image/png, image/jpeg",
|
|
72
|
+
"with-credentials": true,
|
|
73
|
+
action: uploadAction.value,
|
|
53
74
|
"show-file-list": false,
|
|
54
75
|
"on-success": handleAvatarSuccess,
|
|
55
|
-
"before-upload": beforeAvatarUpload
|
|
76
|
+
"before-upload": beforeAvatarUpload,
|
|
77
|
+
name: "file"
|
|
56
78
|
}, {
|
|
57
79
|
default: withCtx(() => [
|
|
58
|
-
__props.configure.style.
|
|
80
|
+
__props.configure.style.backgroundImageServerPath ? (openBlock(), createElementBlock("img", {
|
|
59
81
|
key: 0,
|
|
60
|
-
src: __props.configure.style.
|
|
82
|
+
src: defaultShowImageAction.value + __props.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(),
|
|
61
83
|
class: "avatar"
|
|
62
84
|
}, null, 8, _hoisted_2)) : (openBlock(), createBlock(_component_el_icon, {
|
|
63
85
|
key: 1,
|
|
@@ -70,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
92
|
}))
|
|
71
93
|
]),
|
|
72
94
|
_: 1
|
|
73
|
-
})
|
|
95
|
+
}, 8, ["action"])
|
|
74
96
|
]),
|
|
75
97
|
_: 1
|
|
76
98
|
})
|
|
@@ -30,6 +30,11 @@ const typeOptions = [
|
|
|
30
30
|
{
|
|
31
31
|
value: "fixed",
|
|
32
32
|
label: "固定值"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: "row",
|
|
36
|
+
label: "行记录"
|
|
37
|
+
// 子表行记录
|
|
33
38
|
}
|
|
34
39
|
];
|
|
35
40
|
const contextVarOptions = [
|
|
@@ -45,7 +50,7 @@ const contextVarOptions = [
|
|
|
45
50
|
{ value: "currentTransactorMainDepartmentId", label: "当前用户部门ID" },
|
|
46
51
|
{ value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" },
|
|
47
52
|
{ value: "currentTransactorMainDepartment", label: "当前用户部门名称" },
|
|
48
|
-
{ value:
|
|
53
|
+
// { value: 'currentRoleCode', label: '当前角色编码' },
|
|
49
54
|
// { value: 'currentRoleName', label: '当前角色名称' },
|
|
50
55
|
// { value: 'currentWorkgroupId', label: '当前工作组ID' },
|
|
51
56
|
// { value: 'currentWorkgroupName', label: '当前工作组名称' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./common-variable-bind.vue2.js";
|
|
2
2
|
import "./common-variable-bind.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea40d1e1"]]);
|
|
5
5
|
export {
|
|
6
6
|
BindVariable as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import http from "agilebuilder-ui/src/utils/request";
|
|
|
4
4
|
import { getUuidv4 } from "../../../utils/common-util.js";
|
|
5
5
|
import { getTypeOptions, contextVarOptions, taskVarOptions } from "./common-variable-bind-option.js";
|
|
6
6
|
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-ea40d1e1"), n = n(), popScopeId(), n);
|
|
8
8
|
const _hoisted_1 = { key: 0 };
|
|
9
9
|
const _hoisted_2 = { style: { "margin-top": "10px", "font-size": "10px", "display": "flex", "align-items": "center", "justify-self": "center" } };
|
|
10
10
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1));
|
|
@@ -116,12 +116,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
116
|
query: searchValue.value
|
|
117
117
|
};
|
|
118
118
|
lastSystemQuery = searchValue.value;
|
|
119
|
-
http.post("/component/system-params/query", param).then((results) => {
|
|
119
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/system-params/query", param).then((results) => {
|
|
120
120
|
const tempOptions = [];
|
|
121
121
|
for (let result of results) {
|
|
122
122
|
tempOptions.push({
|
|
123
|
-
value: result.
|
|
124
|
-
label: result.
|
|
123
|
+
value: result.propKey,
|
|
124
|
+
label: result.propKey + " (" + result.propValue + ")"
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
selectOptions.value.systemVarOptions = tempOptions;
|
|
@@ -284,7 +284,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
284
|
const _component_el_table = resolveComponent("el-table");
|
|
285
285
|
const _component_el_row = resolveComponent("el-row");
|
|
286
286
|
const _component_el_popover = resolveComponent("el-popover");
|
|
287
|
-
return __props.showLabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(
|
|
287
|
+
return __props.showLabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(defalutValue.value), 1)) : (openBlock(), createBlock(_component_el_popover, {
|
|
288
288
|
key: 1,
|
|
289
289
|
ref_key: "popoverRef",
|
|
290
290
|
ref: popoverRef,
|
|
@@ -98,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
queryCustomServices();
|
|
99
99
|
}
|
|
100
100
|
function queryAllSystems() {
|
|
101
|
-
http.get("/component/super-charts/findAllSystem").then((res) => {
|
|
101
|
+
http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((res) => {
|
|
102
102
|
var _a2, _b2;
|
|
103
103
|
const datas = res;
|
|
104
104
|
const systemCodes = [];
|
|
@@ -169,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
propValue: searchModel.searchValue
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
let url = "/component/super-page-design/service-flow/list";
|
|
172
|
+
let url = window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/list";
|
|
173
173
|
let selSysVersion = null;
|
|
174
174
|
if (searchModel.systemCode) {
|
|
175
175
|
let selSystemItems = allSystems.value.filter((item) => {
|
package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js
CHANGED
|
@@ -3,6 +3,7 @@ import { VueDraggable } from "vue-draggable-plus";
|
|
|
3
3
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
|
+
import { ElMessageBox } from "element-plus";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "container-design",
|
|
8
9
|
props: {
|
|
@@ -112,13 +113,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
113
|
items = props.configure.headers;
|
|
113
114
|
}
|
|
114
115
|
if (sourceItem.items && sourceItem.items.length > 0) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
ElMessageBox.confirm(
|
|
117
|
+
"还有子元素,确定要删除吗?",
|
|
118
|
+
"删除",
|
|
119
|
+
{
|
|
120
|
+
confirmButtonText: "确认",
|
|
121
|
+
cancelButtonText: "取消",
|
|
122
|
+
type: "warning"
|
|
123
|
+
}
|
|
124
|
+
).then(() => {
|
|
125
|
+
const index = items.indexOf(sourceItem);
|
|
126
|
+
if (index > -1) {
|
|
127
|
+
items.splice(index, 1);
|
|
128
|
+
}
|
|
129
|
+
}).catch((err) => {
|
|
130
|
+
console.log(err);
|
|
131
|
+
});
|
|
122
132
|
}
|
|
123
133
|
}
|
|
124
134
|
return (_ctx, _cache) => {
|
|
@@ -3,6 +3,7 @@ import { useDraggable } from "vue-draggable-plus";
|
|
|
3
3
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
|
+
import { ElMessageBox } from "element-plus";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "flex-design",
|
|
8
9
|
props: {
|
|
@@ -87,13 +88,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
88
|
function deleteItem(sourceItem) {
|
|
88
89
|
let items = props.configure.items;
|
|
89
90
|
if (sourceItem.items && sourceItem.items.length > 0) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
ElMessageBox.confirm(
|
|
92
|
+
"还有子元素,确定要删除吗?",
|
|
93
|
+
"删除",
|
|
94
|
+
{
|
|
95
|
+
confirmButtonText: "确认",
|
|
96
|
+
cancelButtonText: "取消",
|
|
97
|
+
type: "warning"
|
|
98
|
+
}
|
|
99
|
+
).then(() => {
|
|
100
|
+
const index = items.indexOf(sourceItem);
|
|
101
|
+
if (index > -1) {
|
|
102
|
+
items.splice(index, 1);
|
|
103
|
+
}
|
|
104
|
+
}).catch((err) => {
|
|
105
|
+
console.log(err);
|
|
106
|
+
});
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
109
|
return (_ctx, _cache) => {
|
|
@@ -3,6 +3,7 @@ import { useDraggable } from "vue-draggable-plus";
|
|
|
3
3
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
|
+
import { ElMessageBox } from "element-plus";
|
|
6
7
|
const _hoisted_1 = { class: "amb-design-item-default" };
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "form-design",
|
|
@@ -99,14 +100,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
100
|
}
|
|
100
101
|
function deleteItem(sourceItem) {
|
|
101
102
|
if (sourceItem.items && sourceItem.items.length > 0) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
ElMessageBox.confirm(
|
|
104
|
+
"还有子元素,确定要删除吗?",
|
|
105
|
+
"删除",
|
|
106
|
+
{
|
|
107
|
+
confirmButtonText: "确认",
|
|
108
|
+
cancelButtonText: "取消",
|
|
109
|
+
type: "warning"
|
|
110
|
+
}
|
|
111
|
+
).then(() => {
|
|
112
|
+
const items = props.configure.items;
|
|
113
|
+
const index = items.indexOf(sourceItem);
|
|
114
|
+
if (index > -1) {
|
|
115
|
+
items.splice(index, 1);
|
|
116
|
+
}
|
|
117
|
+
}).catch((err) => {
|
|
118
|
+
console.log(err);
|
|
119
|
+
});
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
return (_ctx, _cache) => {
|
|
@@ -3,8 +3,9 @@ import { useDraggable } from "vue-draggable-plus";
|
|
|
3
3
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
|
+
import { ElMessageBox } from "element-plus";
|
|
6
7
|
const _hoisted_1 = {
|
|
7
|
-
class: "amb-widget-tools-parent",
|
|
8
|
+
class: "amb-widget-tools-parent amb-design-item-default",
|
|
8
9
|
style: { "width": "99.5%" }
|
|
9
10
|
};
|
|
10
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -129,13 +130,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
130
|
function deleteItem(sourceItem) {
|
|
130
131
|
let items = props.configure.items;
|
|
131
132
|
if (sourceItem.items && sourceItem.items.length > 0) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
ElMessageBox.confirm("还有子元素,确定要删除吗?", "删除", {
|
|
134
|
+
confirmButtonText: "确认",
|
|
135
|
+
cancelButtonText: "取消",
|
|
136
|
+
type: "warning"
|
|
137
|
+
}).then(() => {
|
|
138
|
+
const index = items.indexOf(sourceItem);
|
|
139
|
+
if (index > -1) {
|
|
140
|
+
items.splice(index, 1);
|
|
141
|
+
}
|
|
142
|
+
}).catch((err) => {
|
|
143
|
+
console.log(err);
|
|
144
|
+
});
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
return (_ctx, _cache) => {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, 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 "@element-plus/icons-vue";
|
|
4
3
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
5
|
-
import "../../form/common/dimension-input.vue.js";
|
|
6
|
-
import "@element-plus/icons";
|
|
7
|
-
import "agilebuilder-ui/src/utils/request";
|
|
8
4
|
import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
|
|
5
|
+
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
9
6
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
7
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
8
|
const _hoisted_3 = { key: 2 };
|
|
@@ -16,9 +13,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
13
|
default: () => ({ props: {} })
|
|
17
14
|
},
|
|
18
15
|
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
19
17
|
const openCollapseItems = ref([]);
|
|
20
18
|
const dataRule = ref([]);
|
|
21
|
-
|
|
19
|
+
function afterBindVariable(modelValue) {
|
|
20
|
+
props.configure.props.base.prop = modelValue;
|
|
21
|
+
}
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
23
|
const _component_el_option = resolveComponent("el-option");
|
|
24
24
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -71,6 +71,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
}),
|
|
74
|
+
createVNode(_component_el_form_item, {
|
|
75
|
+
label: "唯一编码",
|
|
76
|
+
class: "amb-design-attr-item"
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(_component_el_input, {
|
|
80
|
+
modelValue: __props.configure.uuid,
|
|
81
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.uuid = $event),
|
|
82
|
+
readonly: "",
|
|
83
|
+
title: __props.configure.uuid
|
|
84
|
+
}, null, 8, ["modelValue", "title"])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}),
|
|
74
88
|
createVNode(_component_el_form_item, {
|
|
75
89
|
label: "组件名",
|
|
76
90
|
class: "amb-design-attr-item"
|
|
@@ -78,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
92
|
default: withCtx(() => [
|
|
79
93
|
createVNode(_component_el_input, {
|
|
80
94
|
modelValue: __props.configure.props.base.name,
|
|
81
|
-
"onUpdate:modelValue": _cache[
|
|
95
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.name = $event),
|
|
82
96
|
placeholder: "请输入"
|
|
83
97
|
}, null, 8, ["modelValue"])
|
|
84
98
|
]),
|
|
@@ -91,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
105
|
default: withCtx(() => [
|
|
92
106
|
createVNode(_component_el_radio_group, {
|
|
93
107
|
modelValue: __props.configure.props.base.type,
|
|
94
|
-
"onUpdate:modelValue": _cache[
|
|
108
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.type = $event),
|
|
95
109
|
class: "ml-4"
|
|
96
110
|
}, {
|
|
97
111
|
default: withCtx(() => [
|
|
@@ -120,7 +134,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
134
|
default: withCtx(() => [
|
|
121
135
|
createVNode(_component_el_select, {
|
|
122
136
|
modelValue: __props.configure.props.base.format,
|
|
123
|
-
"onUpdate:modelValue": _cache[
|
|
137
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.format = $event),
|
|
124
138
|
placeholder: "请选择"
|
|
125
139
|
}, {
|
|
126
140
|
default: withCtx(() => [
|
|
@@ -209,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
223
|
default: withCtx(() => [
|
|
210
224
|
createVNode(_component_el_radio_group, {
|
|
211
225
|
modelValue: __props.configure.props.base.state,
|
|
212
|
-
"onUpdate:modelValue": _cache[
|
|
226
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.state = $event),
|
|
213
227
|
class: "ml-4"
|
|
214
228
|
}, {
|
|
215
229
|
default: withCtx(() => [
|
|
@@ -249,7 +263,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249
263
|
default: withCtx(() => [
|
|
250
264
|
createVNode(_component_el_radio_group, {
|
|
251
265
|
modelValue: __props.configure.props.base.way,
|
|
252
|
-
"onUpdate:modelValue": _cache[
|
|
266
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.way = $event),
|
|
253
267
|
class: "ml-4"
|
|
254
268
|
}, {
|
|
255
269
|
default: withCtx(() => [
|
|
@@ -277,10 +291,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
277
291
|
class: "amb-design-attr-item"
|
|
278
292
|
}, {
|
|
279
293
|
default: withCtx(() => [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
294
|
+
(openBlock(), createBlock(BindVariable, {
|
|
295
|
+
key: __props.configure.uuid,
|
|
296
|
+
modelValue: __props.configure.props.base.prop,
|
|
297
|
+
paramTypes: ["data", "page"],
|
|
298
|
+
"onUpdate:modelValue": afterBindVariable
|
|
299
|
+
}, null, 8, ["modelValue"]))
|
|
284
300
|
]),
|
|
285
301
|
_: 1
|
|
286
302
|
})) : createCommentVNode("", true),
|
|
@@ -318,9 +334,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
318
334
|
]),
|
|
319
335
|
_: 1
|
|
320
336
|
}),
|
|
321
|
-
|
|
337
|
+
(openBlock(), createBlock(_sfc_main$2, {
|
|
338
|
+
key: __props.configure.uuid,
|
|
322
339
|
size: __props.configure.props.size
|
|
323
|
-
}, null, 8, ["size"])
|
|
340
|
+
}, null, 8, ["size"]))
|
|
324
341
|
]),
|
|
325
342
|
_: 1
|
|
326
343
|
}, 8, ["modelValue"])
|