@fecp/designer 5.5.5 → 5.5.7
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/es/_virtual/app.mjs +5 -0
- package/es/_virtual/app2.mjs +4 -0
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/api/index.mjs +30 -31
- package/es/designer/src/components/DocumentParam.vue.mjs +5 -3
- package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +5 -3
- package/es/designer/src/components/TemplateDialog.vue.mjs +5 -3
- package/es/designer/src/layout/header/index.vue.mjs +4 -2
- package/es/designer/src/layout/index.vue.mjs +6 -4
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +6 -3
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -3
- package/es/designer/src/packages/dialog/index.vue.mjs +6 -4
- package/es/designer/src/packages/dialog/index.vue2.mjs +6 -4
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +9 -7
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +9 -7
- package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +5 -3
- package/es/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +5 -3
- package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +5 -3
- package/es/designer/src/packages/form/components/DefaultValueEditor.vue.mjs +2 -2
- package/es/designer/src/packages/form/property/contract.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/subTable.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/widgets.vue.mjs +6 -4
- package/es/designer/src/packages/prod/index.vue.mjs +5 -3
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -4
- package/es/designer/src/utils/optionLoader.mjs +9 -7
- package/es/designer.css +214 -185
- package/es/node_modules/element-china-category-data/dist/app.mjs +77 -0
- package/es/packages/mobile/index.mjs +4 -0
- package/es/packages/mobile/src/components/all.mjs +4 -0
- package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +2 -2
- package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +29 -25
- package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +195 -0
- package/es/packages/mobile/src/components/form/fieldIndustry/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +3 -25
- package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +34 -7
- package/es/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.mjs +27 -0
- package/es/packages/mobile/src/components/form/fieldSubTitle/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +1 -1
- package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +35 -16
- package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +2 -1
- package/es/packages/mobile/src/utils/common.mjs +28 -0
- package/es/packages/mobile/src/utils/datasource.mjs +354 -0
- package/es/packages/mobile/src/utils/optionUtil.mjs +63 -40
- package/es/packages/mobile/src/utils/parseRouteParams.mjs +41 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/_virtual/app.js +5 -0
- package/lib/_virtual/app2.js +4 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +30 -31
- package/lib/designer/src/components/DocumentParam.vue.js +4 -2
- package/lib/designer/src/components/RiskSchemeDialog.vue2.js +4 -2
- package/lib/designer/src/components/TemplateDialog.vue.js +4 -2
- package/lib/designer/src/layout/header/index.vue.js +3 -1
- package/lib/designer/src/layout/index.vue.js +5 -3
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +5 -2
- package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -3
- package/lib/designer/src/packages/dialog/index.vue.js +5 -3
- package/lib/designer/src/packages/dialog/index.vue2.js +5 -3
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +8 -6
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +8 -6
- package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +4 -2
- package/lib/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +4 -2
- package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +4 -2
- package/lib/designer/src/packages/form/components/DefaultValueEditor.vue.js +2 -2
- package/lib/designer/src/packages/form/property/contract.vue.js +4 -2
- package/lib/designer/src/packages/form/property/subTable.vue.js +4 -2
- package/lib/designer/src/packages/form/property/widgets.vue.js +5 -3
- package/lib/designer/src/packages/prod/index.vue.js +4 -2
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -4
- package/lib/designer/src/utils/optionLoader.js +9 -7
- package/lib/designer.css +214 -185
- package/lib/node_modules/element-china-category-data/dist/app.js +77 -0
- package/lib/packages/mobile/index.js +48 -44
- package/lib/packages/mobile/src/components/all.js +48 -44
- package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +2 -2
- package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +28 -24
- package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +195 -0
- package/lib/packages/mobile/src/components/form/fieldIndustry/index.js +10 -0
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +2 -24
- package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +33 -6
- package/lib/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.js +27 -0
- package/lib/packages/mobile/src/components/form/fieldSubTitle/index.js +10 -0
- package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +1 -1
- package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +34 -15
- package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +2 -1
- package/lib/packages/mobile/src/utils/common.js +28 -0
- package/lib/packages/mobile/src/utils/datasource.js +354 -0
- package/lib/packages/mobile/src/utils/optionUtil.js +64 -41
- package/lib/packages/mobile/src/utils/parseRouteParams.js +41 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -1,54 +1,77 @@
|
|
|
1
1
|
import useHttp from "../axios/index.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { createDataSource } from "./datasource.mjs";
|
|
3
3
|
import envConfig from "./env.mjs";
|
|
4
4
|
const baseUrl = envConfig.api_base_url;
|
|
5
5
|
const getOptions = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
staticOptions,
|
|
12
|
-
|
|
6
|
+
ctx,
|
|
7
|
+
dataSources,
|
|
8
|
+
formData = [],
|
|
9
|
+
fields = [],
|
|
10
|
+
optionSource,
|
|
11
|
+
options: staticOptions,
|
|
12
|
+
dataSourceValue,
|
|
13
|
+
displayField,
|
|
14
|
+
valueField,
|
|
15
|
+
dictionaryValue
|
|
13
16
|
}) => {
|
|
14
|
-
return new Promise((resolve, reject) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
return new Promise(async (resolve, reject) => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
switch (optionSource) {
|
|
20
|
+
case "custom":
|
|
17
21
|
resolve(staticOptions);
|
|
18
22
|
break;
|
|
19
|
-
case "
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
case "dictionary":
|
|
24
|
+
if (!dictionaryValue) {
|
|
25
|
+
resolve([]);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
const response = await ctx.$http.postForm(
|
|
29
|
+
"/base-server/parm/sysParmDic/getDicListByKey",
|
|
30
|
+
{
|
|
31
|
+
keyName: dictionaryValue
|
|
32
|
+
},
|
|
33
|
+
false
|
|
34
|
+
);
|
|
35
|
+
const dictionaryData = response;
|
|
36
|
+
const dictItems = dictionaryData[dictionaryValue];
|
|
37
|
+
if (dictItems) {
|
|
38
|
+
const labelField2 = "optName";
|
|
39
|
+
const keyField2 = "optCode";
|
|
40
|
+
const options2 = dictItems.map((item) => ({
|
|
41
|
+
label: item[labelField2],
|
|
42
|
+
value: item[keyField2],
|
|
43
|
+
disabled: item.disabled || false
|
|
44
|
+
}));
|
|
45
|
+
resolve(options2);
|
|
30
46
|
} else {
|
|
31
|
-
|
|
32
|
-
const option = dicListToOption(data[dicKey]);
|
|
33
|
-
resolve(option);
|
|
34
|
-
});
|
|
47
|
+
resolve([]);
|
|
35
48
|
}
|
|
36
49
|
break;
|
|
37
|
-
case "
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
value: item[optionsFieldNames.value] + ""
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
resolve(option);
|
|
49
|
-
}).catch((err) => {
|
|
50
|
-
console.error(err);
|
|
50
|
+
case "dataSource":
|
|
51
|
+
const dsManager = createDataSource({
|
|
52
|
+
http: ctx.$http,
|
|
53
|
+
dataSources,
|
|
54
|
+
currentDataSourceId: dataSourceValue,
|
|
55
|
+
data: formData,
|
|
56
|
+
// fields: [...fieldsData.value, ...hiddenFields.value],
|
|
57
|
+
fields
|
|
51
58
|
});
|
|
59
|
+
const data = await dsManager.fetch();
|
|
60
|
+
let options = [];
|
|
61
|
+
if (Array.isArray(data)) {
|
|
62
|
+
options = data;
|
|
63
|
+
} else if (typeof data === "object") {
|
|
64
|
+
options = Array.isArray(data.data) ? data.data : ((_a = data.data) == null ? void 0 : _a.records) || ((_b = data.data) == null ? void 0 : _b.list) || [];
|
|
65
|
+
}
|
|
66
|
+
const labelField = displayField || "label";
|
|
67
|
+
const keyField = valueField || "value";
|
|
68
|
+
options = options.map((item) => ({
|
|
69
|
+
label: item[labelField],
|
|
70
|
+
value: item[keyField],
|
|
71
|
+
disabled: item.disabled || false,
|
|
72
|
+
...item
|
|
73
|
+
}));
|
|
74
|
+
resolve(options);
|
|
52
75
|
break;
|
|
53
76
|
}
|
|
54
77
|
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { removeEmptyValues } from "./common.mjs";
|
|
2
|
+
function parseSingleParamValue(value, data, fields) {
|
|
3
|
+
if (typeof value !== "object" || value === null) {
|
|
4
|
+
return value;
|
|
5
|
+
}
|
|
6
|
+
if (Array.isArray(value)) {
|
|
7
|
+
return value.map((item) => parseSingleParamValue(item, data, fields));
|
|
8
|
+
}
|
|
9
|
+
const type = value.type;
|
|
10
|
+
if (type === "field") {
|
|
11
|
+
const field = fields.find((f) => f.id == value.value);
|
|
12
|
+
if (field) {
|
|
13
|
+
return data[field.fieldName];
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
} else if (type === "userInfo") {
|
|
17
|
+
console.warn("[parseRouteParams] userInfo 类型暂未实现");
|
|
18
|
+
return {};
|
|
19
|
+
} else if (type === "urlParam") {
|
|
20
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
21
|
+
return urlParams.get(value.value) || null;
|
|
22
|
+
} else {
|
|
23
|
+
return value.value !== void 0 ? value.value : value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function parseRouteParams(routeParams, data, fields) {
|
|
27
|
+
if (!routeParams || !Array.isArray(routeParams)) {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
const params = {};
|
|
31
|
+
routeParams.forEach((param) => {
|
|
32
|
+
const key = param.key;
|
|
33
|
+
if (!key) return;
|
|
34
|
+
params[key] = parseSingleParamValue(param.value, data, fields);
|
|
35
|
+
});
|
|
36
|
+
return removeEmptyValues(params);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
parseRouteParams,
|
|
40
|
+
parseSingleParamValue
|
|
41
|
+
};
|
|
@@ -7,9 +7,9 @@ import { ref, computed, watch, resolveComponent, createBlock, openBlock, resolve
|
|
|
7
7
|
import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
|
|
8
8
|
import { calculate } from "../../utils/formulajs/calculate.mjs";
|
|
9
9
|
import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
10
|
-
/* empty css */
|
|
11
10
|
/* empty css */
|
|
12
11
|
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
13
|
import { loadComponentByPath } from "../../utils/common.mjs";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -3,9 +3,9 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
6
|
-
/* empty css */
|
|
7
6
|
/* empty css */
|
|
8
7
|
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
@@ -7,10 +7,10 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
|
7
7
|
import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
8
8
|
import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
|
|
9
9
|
import { removeEmptyValues } from "../../utils/common.mjs";
|
|
10
|
-
/* empty css */
|
|
11
10
|
/* empty css */
|
|
12
11
|
/* empty css */
|
|
13
12
|
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "../../utils/formulajs/functionCore.mjs";
|
|
16
16
|
import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
@@ -2,9 +2,9 @@ import { reactive } from "vue";
|
|
|
2
2
|
import { parseRouteParams } from "./parseRouteParams.mjs";
|
|
3
3
|
import "../../../../node_modules/element-plus/es/index.mjs";
|
|
4
4
|
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
7
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
8
|
import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
|
|
9
9
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
10
10
|
class DataSourceManager {
|
|
@@ -1,71 +1,70 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("../axios/index.js");
|
|
4
3
|
const api = {
|
|
5
|
-
login4dev: () => {
|
|
6
|
-
return
|
|
4
|
+
login4dev: ($http) => {
|
|
5
|
+
return $http.post(`${$servers.base}/login4dev`);
|
|
7
6
|
},
|
|
8
|
-
getById: (id, showLoading = true) => {
|
|
9
|
-
return
|
|
7
|
+
getById: ($http, id, showLoading = true) => {
|
|
8
|
+
return $http.get(`${$servers.base}/design/getById/${id}`, showLoading);
|
|
10
9
|
},
|
|
11
|
-
updateById: (data) => {
|
|
12
|
-
return
|
|
10
|
+
updateById: ($http, data) => {
|
|
11
|
+
return $http.post(
|
|
13
12
|
`${$servers.base}/template/sysTemplate/update4DesignerV5`,
|
|
14
13
|
data
|
|
15
14
|
);
|
|
16
15
|
},
|
|
17
|
-
findAllDic: () => {
|
|
18
|
-
return
|
|
16
|
+
findAllDic: ($http) => {
|
|
17
|
+
return $http.post(`${$servers.base}/parm/sysParmDic/findAllDic`);
|
|
19
18
|
},
|
|
20
|
-
getDicDataByKey: (keyName) => {
|
|
21
|
-
return
|
|
19
|
+
getDicDataByKey: ($http, keyName) => {
|
|
20
|
+
return $http.postForm(
|
|
22
21
|
`${$servers.base}/parm/sysParmDic/getDicListByKeyFromCache`,
|
|
23
22
|
{ keyName }
|
|
24
23
|
);
|
|
25
24
|
},
|
|
26
|
-
findTemplateByPagePop: (data) => {
|
|
27
|
-
return
|
|
25
|
+
findTemplateByPagePop: ($http, data) => {
|
|
26
|
+
return $http.post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
|
|
28
27
|
},
|
|
29
|
-
getDataDicArea4Cascader: () => {
|
|
30
|
-
return
|
|
28
|
+
getDataDicArea4Cascader: ($http) => {
|
|
29
|
+
return $http.post(
|
|
31
30
|
`${$servers.base}/parm/sysParmDic/getDataDicArea4Cascader`,
|
|
32
31
|
null,
|
|
33
32
|
false
|
|
34
33
|
);
|
|
35
34
|
},
|
|
36
|
-
getDataDicTrade4Cascader: () => {
|
|
37
|
-
return
|
|
35
|
+
getDataDicTrade4Cascader: ($http) => {
|
|
36
|
+
return $http.post(
|
|
38
37
|
`${$servers.base}/parm/sysParmDic/getDataDicTrade4Cascader`,
|
|
39
38
|
null,
|
|
40
39
|
false
|
|
41
40
|
);
|
|
42
41
|
},
|
|
43
|
-
saveTemplateDialog: (data) => {
|
|
44
|
-
return
|
|
42
|
+
saveTemplateDialog: ($http, data) => {
|
|
43
|
+
return $http.post(`${$servers.base}/template/sysTemplateDialog/save`, data);
|
|
45
44
|
},
|
|
46
|
-
getAllTemplateDialog: () => {
|
|
47
|
-
return
|
|
45
|
+
getAllTemplateDialog: ($http) => {
|
|
46
|
+
return $http.post(
|
|
48
47
|
`${$servers.base}/template/sysTemplateDialog/getAllTemplate`,
|
|
49
48
|
null,
|
|
50
49
|
false
|
|
51
50
|
);
|
|
52
51
|
},
|
|
53
|
-
deleteTemplateDialog: (id) => {
|
|
54
|
-
return
|
|
52
|
+
deleteTemplateDialog: ($http, id) => {
|
|
53
|
+
return $http.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
|
|
55
54
|
id
|
|
56
55
|
});
|
|
57
56
|
},
|
|
58
|
-
getProductConfig: () => {
|
|
59
|
-
return
|
|
57
|
+
getProductConfig: ($http) => {
|
|
58
|
+
return $http.postForm(`${$servers.base}/design/getProductConfig`);
|
|
60
59
|
},
|
|
61
|
-
getModeNoList4Doc: () => {
|
|
62
|
-
return
|
|
60
|
+
getModeNoList4Doc: ($http) => {
|
|
61
|
+
return $http.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
|
|
63
62
|
},
|
|
64
|
-
getModeNoList4Cont: () => {
|
|
65
|
-
return
|
|
63
|
+
getModeNoList4Cont: ($http) => {
|
|
64
|
+
return $http.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
|
|
66
65
|
},
|
|
67
|
-
findRiskSchByPopPage4Designer: (data) => {
|
|
68
|
-
return
|
|
66
|
+
findRiskSchByPopPage4Designer: ($http, data) => {
|
|
67
|
+
return $http.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
70
|
exports.default = api;
|
|
@@ -37,6 +37,8 @@ const _sfc_main = {
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:modelValue"],
|
|
39
39
|
setup(__props, { emit: __emit }) {
|
|
40
|
+
const currentInstance = vue.getCurrentInstance();
|
|
41
|
+
const ctx = currentInstance.proxy;
|
|
40
42
|
const props = __props;
|
|
41
43
|
const emit = __emit;
|
|
42
44
|
const params = vue.computed({
|
|
@@ -44,7 +46,7 @@ const _sfc_main = {
|
|
|
44
46
|
set: (val) => emit("update:modelValue", val)
|
|
45
47
|
});
|
|
46
48
|
const scenarioOptions = vue.ref([]);
|
|
47
|
-
index.default.getModeNoList4Doc().then((data) => {
|
|
49
|
+
index.default.getModeNoList4Doc(ctx.$http).then((data) => {
|
|
48
50
|
scenarioOptions.value = data.map((item) => ({
|
|
49
51
|
label: item.modeName,
|
|
50
52
|
value: item.modeNo
|
|
@@ -152,5 +154,5 @@ const _sfc_main = {
|
|
|
152
154
|
};
|
|
153
155
|
}
|
|
154
156
|
};
|
|
155
|
-
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
157
|
+
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fef622ca"]]);
|
|
156
158
|
exports.default = DocumentParam;
|
|
@@ -48,6 +48,8 @@ const _sfc_main = {
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["update:modelValue", "confirm", "close"],
|
|
50
50
|
setup(__props, { emit: __emit }) {
|
|
51
|
+
const currentInstance = vue.getCurrentInstance();
|
|
52
|
+
const ctx = currentInstance.proxy;
|
|
51
53
|
const props = __props;
|
|
52
54
|
const emit = __emit;
|
|
53
55
|
const dialogVisible = vue.computed({
|
|
@@ -86,7 +88,7 @@ const _sfc_main = {
|
|
|
86
88
|
if (searchText.value) {
|
|
87
89
|
params.dynamicQuery = searchText.value;
|
|
88
90
|
}
|
|
89
|
-
const data = await index.default.findRiskSchByPopPage4Designer(params);
|
|
91
|
+
const data = await index.default.findRiskSchByPopPage4Designer(ctx.$http, params);
|
|
90
92
|
schemeList.value = data.records || data.list || [];
|
|
91
93
|
total.value = schemeList.value.length;
|
|
92
94
|
} catch (error) {
|
|
@@ -237,5 +239,5 @@ const _sfc_main = {
|
|
|
237
239
|
};
|
|
238
240
|
}
|
|
239
241
|
};
|
|
240
|
-
const RiskSchemeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
242
|
+
const RiskSchemeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b943b417"]]);
|
|
241
243
|
exports.default = RiskSchemeDialog;
|
|
@@ -68,6 +68,8 @@ const _sfc_main = {
|
|
|
68
68
|
},
|
|
69
69
|
emits: ["update:modelValue", "confirm", "close"],
|
|
70
70
|
setup(__props, { emit: __emit }) {
|
|
71
|
+
const currentInstance = vue.getCurrentInstance();
|
|
72
|
+
const ctx = currentInstance.proxy;
|
|
71
73
|
const props = __props;
|
|
72
74
|
const emit = __emit;
|
|
73
75
|
const dialogVisible = vue.computed({
|
|
@@ -108,7 +110,7 @@ const _sfc_main = {
|
|
|
108
110
|
if (searchText.value) {
|
|
109
111
|
params.dynamicQuery = searchText.value;
|
|
110
112
|
}
|
|
111
|
-
const data = await index.default.findTemplateByPagePop(params);
|
|
113
|
+
const data = await index.default.findTemplateByPagePop(ctx.$http, params);
|
|
112
114
|
templateList.value = data.records || data.list || [];
|
|
113
115
|
total.value = data.total || 0;
|
|
114
116
|
} catch (error) {
|
|
@@ -251,5 +253,5 @@ const _sfc_main = {
|
|
|
251
253
|
};
|
|
252
254
|
}
|
|
253
255
|
};
|
|
254
|
-
const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
256
|
+
const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ea3685a4"]]);
|
|
255
257
|
exports.default = TemplateDialog;
|
|
@@ -41,6 +41,8 @@ const _hoisted_9 = { class: "dialog-footer" };
|
|
|
41
41
|
const _sfc_main = {
|
|
42
42
|
__name: "index",
|
|
43
43
|
setup(__props) {
|
|
44
|
+
const currentInstance = vue.getCurrentInstance();
|
|
45
|
+
const ctx = currentInstance.proxy;
|
|
44
46
|
const editingHeaderBtn = vue.computed(() => {
|
|
45
47
|
switch (index.default.getters.editingType) {
|
|
46
48
|
case "table":
|
|
@@ -103,7 +105,7 @@ const _sfc_main = {
|
|
|
103
105
|
templateName: data.templateName,
|
|
104
106
|
context: JSON.stringify(data)
|
|
105
107
|
};
|
|
106
|
-
index$8.default.updateById(templateData).then(() => {
|
|
108
|
+
index$8.default.updateById(ctx.$http, templateData).then(() => {
|
|
107
109
|
index$9.ElMessage.success("保存成功");
|
|
108
110
|
});
|
|
109
111
|
}
|
|
@@ -33,16 +33,18 @@ const _hoisted_1 = {
|
|
|
33
33
|
const _sfc_main = {
|
|
34
34
|
__name: "index",
|
|
35
35
|
setup(__props) {
|
|
36
|
+
const currentInstance = vue.getCurrentInstance();
|
|
37
|
+
const ctx = currentInstance.proxy;
|
|
36
38
|
const pkId = getUrlParam("pkId");
|
|
37
39
|
const isInitd = vue.ref(0);
|
|
38
40
|
const compRef = vue.ref(null);
|
|
39
41
|
if (!pkId) {
|
|
40
42
|
isInitd.value = -1;
|
|
41
43
|
} else {
|
|
42
|
-
index.default.login4dev().then((data) => {
|
|
44
|
+
index.default.login4dev(ctx.$http).then((data) => {
|
|
43
45
|
index$1.default.commit("set_token", data.token);
|
|
44
46
|
index$1.default.commit("set_refreshToken", data.refreshToken);
|
|
45
|
-
index.default.getById(pkId).then((data2) => {
|
|
47
|
+
index.default.getById(ctx.$http, pkId).then((data2) => {
|
|
46
48
|
const templateName = data2.templateName;
|
|
47
49
|
const templateKey = data2.templateKey;
|
|
48
50
|
document.title = templateName || "表单设计器";
|
|
@@ -144,5 +146,5 @@ const _sfc_main = {
|
|
|
144
146
|
};
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
|
-
const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
149
|
+
const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
|
|
148
150
|
exports.default = layout;
|
|
@@ -65,6 +65,8 @@ const _sfc_main = {
|
|
|
65
65
|
"update:showText"
|
|
66
66
|
],
|
|
67
67
|
setup(__props, { emit: __emit }) {
|
|
68
|
+
const currentInstance = vue.getCurrentInstance();
|
|
69
|
+
const ctx = currentInstance.proxy;
|
|
68
70
|
const $props = __props;
|
|
69
71
|
const $emits = __emit;
|
|
70
72
|
const data = vue.computed({
|
|
@@ -206,6 +208,7 @@ const _sfc_main = {
|
|
|
206
208
|
if (optionSource === "dataSource" && dataSourceValue) {
|
|
207
209
|
try {
|
|
208
210
|
const dsManager = datasource.createDataSource({
|
|
211
|
+
http: ctx.$http,
|
|
209
212
|
dataSources: dataSources.value,
|
|
210
213
|
currentDataSourceId: dataSourceValue
|
|
211
214
|
});
|
|
@@ -228,7 +231,7 @@ const _sfc_main = {
|
|
|
228
231
|
console.error(`Failed to load data source ${dataSourceId}:`, error);
|
|
229
232
|
}
|
|
230
233
|
} else if (optionSource === "dictionary" && dictionaryValue) {
|
|
231
|
-
index$1.default.getDicDataByKey(dictionaryValue).then((data2) => {
|
|
234
|
+
index$1.default.getDicDataByKey(ctx.$http, dictionaryValue).then((data2) => {
|
|
232
235
|
const result = [];
|
|
233
236
|
for (const key in data2) {
|
|
234
237
|
result.push({ label: data2[key], value: key });
|
|
@@ -427,5 +430,5 @@ const _sfc_main = {
|
|
|
427
430
|
};
|
|
428
431
|
}
|
|
429
432
|
};
|
|
430
|
-
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
433
|
+
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-eddee3ea"]]);
|
|
431
434
|
exports.default = ValueInput;
|
|
@@ -34,9 +34,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
|
|
|
34
34
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
35
35
|
;/* empty css */
|
|
36
36
|
require("../../axios/config.js");
|
|
37
|
-
require("../../../../_virtual/FileSaver.min.js");
|
|
38
|
-
require("../../../../_virtual/index.js");
|
|
39
|
-
;/* empty css */
|
|
40
37
|
;/* empty css */
|
|
41
38
|
;/* empty css */
|
|
42
39
|
;/* empty css */
|
|
@@ -94,6 +94,8 @@ const _sfc_main = {
|
|
|
94
94
|
},
|
|
95
95
|
emits: ["update:modelValue"],
|
|
96
96
|
setup(__props) {
|
|
97
|
+
const currentInstance = vue.getCurrentInstance();
|
|
98
|
+
const ctx = currentInstance.proxy;
|
|
97
99
|
const editConfigData = vue.computed(() => {
|
|
98
100
|
return common.getEditConfigData();
|
|
99
101
|
});
|
|
@@ -197,14 +199,14 @@ const _sfc_main = {
|
|
|
197
199
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
198
200
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
199
201
|
if (pkId) {
|
|
200
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
202
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
201
203
|
tableOptions.value = JSON.parse(data2.context);
|
|
202
204
|
});
|
|
203
205
|
}
|
|
204
206
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
205
207
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
206
208
|
if (pkId) {
|
|
207
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
209
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
208
210
|
formOptions.value = JSON.parse(data2.context);
|
|
209
211
|
});
|
|
210
212
|
}
|
|
@@ -984,5 +986,5 @@ const _sfc_main = {
|
|
|
984
986
|
};
|
|
985
987
|
}
|
|
986
988
|
};
|
|
987
|
-
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
989
|
+
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
|
|
988
990
|
exports.default = DialogDialog;
|
|
@@ -94,6 +94,8 @@ const _sfc_main = {
|
|
|
94
94
|
},
|
|
95
95
|
emits: ["update:modelValue"],
|
|
96
96
|
setup(__props) {
|
|
97
|
+
const currentInstance = vue.getCurrentInstance();
|
|
98
|
+
const ctx = currentInstance.proxy;
|
|
97
99
|
const editConfigData = vue.computed(() => {
|
|
98
100
|
return common.getEditConfigData();
|
|
99
101
|
});
|
|
@@ -197,14 +199,14 @@ const _sfc_main = {
|
|
|
197
199
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
198
200
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
199
201
|
if (pkId) {
|
|
200
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
202
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
201
203
|
tableOptions.value = JSON.parse(data2.context);
|
|
202
204
|
});
|
|
203
205
|
}
|
|
204
206
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
205
207
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
206
208
|
if (pkId) {
|
|
207
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
209
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
208
210
|
formOptions.value = JSON.parse(data2.context);
|
|
209
211
|
});
|
|
210
212
|
}
|
|
@@ -984,5 +986,5 @@ const _sfc_main = {
|
|
|
984
986
|
};
|
|
985
987
|
}
|
|
986
988
|
};
|
|
987
|
-
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
989
|
+
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
|
|
988
990
|
exports.default = DialogDialog;
|
|
@@ -159,6 +159,8 @@ const _sfc_main = {
|
|
|
159
159
|
},
|
|
160
160
|
emits: ["update:modelValue"],
|
|
161
161
|
setup(__props) {
|
|
162
|
+
const currentInstance = vue.getCurrentInstance();
|
|
163
|
+
const ctx = currentInstance.proxy;
|
|
162
164
|
const editConfigData = vue.computed(() => {
|
|
163
165
|
return common.getEditConfigData();
|
|
164
166
|
});
|
|
@@ -173,7 +175,7 @@ const _sfc_main = {
|
|
|
173
175
|
editingDialogIndex.value = -1;
|
|
174
176
|
loading.value = true;
|
|
175
177
|
try {
|
|
176
|
-
const response = await index.default.getAllTemplateDialog();
|
|
178
|
+
const response = await index.default.getAllTemplateDialog(ctx.$http);
|
|
177
179
|
selectedDialogs.value = [];
|
|
178
180
|
for (let dialog of response) {
|
|
179
181
|
selectedDialogs.value.push({
|
|
@@ -242,7 +244,7 @@ const _sfc_main = {
|
|
|
242
244
|
const handleRemoveDialog = async (index$22) => {
|
|
243
245
|
const dialogToRemove = selectedDialogs.value[index$22];
|
|
244
246
|
try {
|
|
245
|
-
await index.default.deleteTemplateDialog(dialogToRemove.id);
|
|
247
|
+
await index.default.deleteTemplateDialog(ctx.$http, dialogToRemove.id);
|
|
246
248
|
} catch (error) {
|
|
247
249
|
console.error("🚀 ~ 删除弹层失败:", error);
|
|
248
250
|
index$1.ElMessage.error("删除弹层失败");
|
|
@@ -286,7 +288,7 @@ const _sfc_main = {
|
|
|
286
288
|
config: JSON.stringify(data)
|
|
287
289
|
};
|
|
288
290
|
});
|
|
289
|
-
const response = await index.default.saveTemplateDialog(dialogArr);
|
|
291
|
+
const response = await index.default.saveTemplateDialog(ctx.$http, dialogArr);
|
|
290
292
|
index$1.ElMessage.success("弹层配置保存成功");
|
|
291
293
|
dialogVisible.value = false;
|
|
292
294
|
} catch (error) {
|
|
@@ -314,14 +316,14 @@ const _sfc_main = {
|
|
|
314
316
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
315
317
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
316
318
|
if (pkId) {
|
|
317
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
319
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
318
320
|
tableOptions.value = JSON.parse(data2.context);
|
|
319
321
|
});
|
|
320
322
|
}
|
|
321
323
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
322
324
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
323
325
|
if (pkId) {
|
|
324
|
-
index.default.getById(pkId, false).then((data2) => {
|
|
326
|
+
index.default.getById(ctx.$http, pkId, false).then((data2) => {
|
|
325
327
|
formOptions.value = JSON.parse(data2.context);
|
|
326
328
|
});
|
|
327
329
|
}
|
|
@@ -1031,5 +1033,5 @@ const _sfc_main = {
|
|
|
1031
1033
|
};
|
|
1032
1034
|
}
|
|
1033
1035
|
};
|
|
1034
|
-
const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1036
|
+
const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-6b9e1841"]]);
|
|
1035
1037
|
exports.default = DialogGlobalDialog;
|