super-page-designer 2.1.61 → 2.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/design/utils/assemblys-config.js +22 -11
- package/dist/es/components/design/utils/page-table-util.js +2 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +1 -3
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -0
- package/dist/es/components/design/views/design/page-event/config.vue.js +7 -1
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue3.js +13 -3
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +27 -8
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.d.ts +40 -0
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +219 -0
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/style.css +85 -85
- package/package.json +3 -3
|
@@ -1840,7 +1840,8 @@ const assemblyGroups = [
|
|
|
1840
1840
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
1841
1841
|
setValueList: [{ combination: "[]" }],
|
|
1842
1842
|
showCondition: "[]",
|
|
1843
|
-
type: "primary"
|
|
1843
|
+
type: "primary",
|
|
1844
|
+
isEnableRequired: false
|
|
1844
1845
|
},
|
|
1845
1846
|
verification: [],
|
|
1846
1847
|
preSuffix: {}
|
|
@@ -1971,7 +1972,8 @@ const assemblyGroups = [
|
|
|
1971
1972
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
1972
1973
|
setValueList: [{ combination: "[]" }],
|
|
1973
1974
|
showCondition: "[]",
|
|
1974
|
-
type: "primary"
|
|
1975
|
+
type: "primary",
|
|
1976
|
+
isEnableRequired: false
|
|
1975
1977
|
},
|
|
1976
1978
|
verification: [],
|
|
1977
1979
|
scan: {},
|
|
@@ -2016,7 +2018,8 @@ const assemblyGroups = [
|
|
|
2016
2018
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2017
2019
|
setValueList: [{ combination: "[]" }],
|
|
2018
2020
|
showCondition: "[]",
|
|
2019
|
-
type: "primary"
|
|
2021
|
+
type: "primary",
|
|
2022
|
+
isEnableRequired: false
|
|
2020
2023
|
},
|
|
2021
2024
|
verification: [],
|
|
2022
2025
|
scan: {},
|
|
@@ -2327,7 +2330,8 @@ const assemblyGroups = [
|
|
|
2327
2330
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2328
2331
|
setValueList: [{ combination: "[]" }],
|
|
2329
2332
|
showCondition: "[]",
|
|
2330
|
-
type: "primary"
|
|
2333
|
+
type: "primary",
|
|
2334
|
+
isEnableRequired: false
|
|
2331
2335
|
},
|
|
2332
2336
|
verification: [],
|
|
2333
2337
|
scan: {},
|
|
@@ -2371,7 +2375,8 @@ const assemblyGroups = [
|
|
|
2371
2375
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2372
2376
|
setValueList: [{ combination: "[]" }],
|
|
2373
2377
|
showCondition: "[]",
|
|
2374
|
-
type: "primary"
|
|
2378
|
+
type: "primary",
|
|
2379
|
+
isEnableRequired: false
|
|
2375
2380
|
},
|
|
2376
2381
|
verification: [],
|
|
2377
2382
|
scan: {},
|
|
@@ -2415,7 +2420,8 @@ const assemblyGroups = [
|
|
|
2415
2420
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2416
2421
|
setValueList: [{ combination: "[]" }],
|
|
2417
2422
|
showCondition: "[]",
|
|
2418
|
-
type: "primary"
|
|
2423
|
+
type: "primary",
|
|
2424
|
+
isEnableRequired: false
|
|
2419
2425
|
},
|
|
2420
2426
|
verification: [],
|
|
2421
2427
|
scan: {},
|
|
@@ -2459,7 +2465,8 @@ const assemblyGroups = [
|
|
|
2459
2465
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2460
2466
|
setValueList: [{ combination: "[]" }],
|
|
2461
2467
|
showCondition: "[]",
|
|
2462
|
-
type: "primary"
|
|
2468
|
+
type: "primary",
|
|
2469
|
+
isEnableRequired: false
|
|
2463
2470
|
},
|
|
2464
2471
|
verification: [],
|
|
2465
2472
|
scan: {},
|
|
@@ -2503,7 +2510,8 @@ const assemblyGroups = [
|
|
|
2503
2510
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2504
2511
|
setValueList: [{ combination: "[]" }],
|
|
2505
2512
|
showCondition: "[]",
|
|
2506
|
-
type: "primary"
|
|
2513
|
+
type: "primary",
|
|
2514
|
+
isEnableRequired: false
|
|
2507
2515
|
},
|
|
2508
2516
|
verification: [],
|
|
2509
2517
|
scan: {},
|
|
@@ -2547,7 +2555,8 @@ const assemblyGroups = [
|
|
|
2547
2555
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2548
2556
|
setValueList: [{ combination: "[]" }],
|
|
2549
2557
|
showCondition: "[]",
|
|
2550
|
-
type: "primary"
|
|
2558
|
+
type: "primary",
|
|
2559
|
+
isEnableRequired: false
|
|
2551
2560
|
},
|
|
2552
2561
|
verification: [],
|
|
2553
2562
|
scan: {},
|
|
@@ -2591,7 +2600,8 @@ const assemblyGroups = [
|
|
|
2591
2600
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2592
2601
|
setValueList: [{ combination: "[]" }],
|
|
2593
2602
|
showCondition: "[]",
|
|
2594
|
-
type: "primary"
|
|
2603
|
+
type: "primary",
|
|
2604
|
+
isEnableRequired: false
|
|
2595
2605
|
},
|
|
2596
2606
|
verification: [],
|
|
2597
2607
|
scan: {},
|
|
@@ -2635,7 +2645,8 @@ const assemblyGroups = [
|
|
|
2635
2645
|
condition: [{ sqlFilterCondition: "[]" }],
|
|
2636
2646
|
setValueList: [{ combination: "[]" }],
|
|
2637
2647
|
showCondition: "[]",
|
|
2638
|
-
type: "primary"
|
|
2648
|
+
type: "primary",
|
|
2649
|
+
isEnableRequired: false
|
|
2639
2650
|
},
|
|
2640
2651
|
verification: [],
|
|
2641
2652
|
scan: {},
|
|
@@ -104,7 +104,6 @@ function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
|
104
104
|
// groupHeader groupHeaders: any
|
|
105
105
|
};
|
|
106
106
|
listView.items = getListColumns(configureCopy, pageDesign);
|
|
107
|
-
console.log(listView.items, "listView.lListColumns", configureCopy.items);
|
|
108
107
|
listView.groupHeaders = getGroupHeaders(configureCopy);
|
|
109
108
|
return listView;
|
|
110
109
|
}
|
|
@@ -199,11 +198,9 @@ function getGroupHeaders(configure) {
|
|
|
199
198
|
titleText: item.titleText,
|
|
200
199
|
parentCode: item.parentUuid,
|
|
201
200
|
displayOrder: item.displayOrder,
|
|
201
|
+
prop: item.prop,
|
|
202
202
|
uuid: item.uuid
|
|
203
203
|
};
|
|
204
|
-
if (item.props && item.props.base && item.props.base.prop) {
|
|
205
|
-
header.prop = getNameFromProp(item.props.base.prop);
|
|
206
|
-
}
|
|
207
204
|
result.push(header);
|
|
208
205
|
});
|
|
209
206
|
}
|
|
@@ -399,7 +396,7 @@ function getFileSet(item) {
|
|
|
399
396
|
function getControlConfig(item) {
|
|
400
397
|
var _a, _b, _c, _d;
|
|
401
398
|
let controlConfig;
|
|
402
|
-
if (item.name === "select"
|
|
399
|
+
if (item.name === "select") {
|
|
403
400
|
const baseProps = item.props.base;
|
|
404
401
|
const allowCreate = baseProps.allowCreate;
|
|
405
402
|
const clearable = baseProps.clearable;
|
|
@@ -54,9 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
watch(
|
|
55
55
|
() => tableData.value,
|
|
56
56
|
(newVal) => {
|
|
57
|
-
|
|
58
|
-
emit("dataChange", tableData.value);
|
|
59
|
-
}
|
|
57
|
+
emit("dataChange", tableData.value);
|
|
60
58
|
},
|
|
61
59
|
{ deep: true }
|
|
62
60
|
);
|
|
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const props = __props;
|
|
16
16
|
function cellStyleChange(tableData) {
|
|
17
|
+
console.log("cellStyleChange-----", tableData);
|
|
17
18
|
props.configure.style.cellStyle = tableData;
|
|
18
19
|
}
|
|
19
20
|
function cellTitleStyleChange(tableData) {
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import _sfc_main from "./config.vue3.js";
|
|
2
|
+
import "./config.vue2.js";
|
|
3
|
+
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bc0d50cd"]]);
|
|
5
|
+
export {
|
|
6
|
+
config as default
|
|
7
|
+
};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./config.vue.js";
|
|
3
|
-
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39d5d5cf"]]);
|
|
5
|
-
export {
|
|
6
|
-
config as default
|
|
7
|
-
};
|
|
1
|
+
|
|
@@ -8,7 +8,7 @@ import "@codemirror/autocomplete";
|
|
|
8
8
|
import "@codemirror/language";
|
|
9
9
|
import { openSearchPanel } from "@codemirror/search";
|
|
10
10
|
import beautify from "js-beautify";
|
|
11
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
11
|
+
const _withScopeId = (n) => (pushScopeId("data-v-bc0d50cd"), n = n(), popScopeId(), n);
|
|
12
12
|
const _hoisted_1 = {
|
|
13
13
|
style: { "padding": "8px 16px", "margin": "10px 0px", "background-color": "#f4f4f5" },
|
|
14
14
|
class: "pppp"
|
|
@@ -129,11 +129,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
return {
|
|
130
130
|
from: word.from,
|
|
131
131
|
options: [
|
|
132
|
-
{ label: "window.$PageUtil
|
|
133
|
-
{ label: "window.$message
|
|
132
|
+
{ label: "window.$PageUtil", type: "property", info: "页面工具方法" },
|
|
133
|
+
{ label: "window.$message", type: "property", info: "提示信息" },
|
|
134
134
|
{ label: "window.$http()", type: "property", info: "接口调用" }
|
|
135
135
|
]
|
|
136
136
|
};
|
|
137
|
+
} else if ((word == null ? void 0 : word.text) === "window.$message.") {
|
|
138
|
+
return {
|
|
139
|
+
form: word.from,
|
|
140
|
+
options: [
|
|
141
|
+
{ label: "window.$message.info()", type: "function", info: "提示消息" },
|
|
142
|
+
{ label: "window.$message.success()", type: "function", info: "成功消息" },
|
|
143
|
+
{ label: "window.$message.warning()", type: "function", info: "警告消息" },
|
|
144
|
+
{ label: "window.$message.error()", type: "function", info: "错误消息" }
|
|
145
|
+
]
|
|
146
|
+
};
|
|
137
147
|
} else if ((word == null ? void 0 : word.text) === "window.$PageUtil.") {
|
|
138
148
|
return {
|
|
139
149
|
from: word.from,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, withDirectives, vShow, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import { ElMessageBox, ElMessage } from "element-plus";
|
|
3
|
-
import config from "./config.
|
|
3
|
+
import config from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations } from "../../../utils/assemblys-config.js";
|
|
5
5
|
import { findDesignItemByUuid, getUuidv4, deepCopy } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore } from "../../../../../stores/page-store.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./i18n-setting-page.vue2.js";
|
|
2
2
|
import "./i18n-setting-page.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i18nSettingPage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const i18nSettingPage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e6fbc57"]]);
|
|
5
5
|
export {
|
|
6
6
|
i18nSettingPage as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, computed,
|
|
1
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, resolveDirective, openBlock, createElementBlock, Fragment, createElementVNode, withDirectives, createBlock, unref, withCtx, createTextVNode, createVNode, renderList, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { Plus, Reading, Refresh } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox, ElMessage } from "element-plus";
|
|
4
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import _sfc_main$1 from "./translate-error-dialog.vue.js";
|
|
5
6
|
const _hoisted_1 = {
|
|
6
7
|
style: { "padding": "0 0 10px 0" },
|
|
7
8
|
class: "amb-design-attr-item-inline"
|
|
@@ -28,6 +29,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
const editingIndex = ref(-1);
|
|
29
30
|
const search = ref("");
|
|
30
31
|
const multipleSelection = ref([]);
|
|
32
|
+
const showErrorTranslateDialog = ref(false);
|
|
33
|
+
const errorTranslateData = ref([]);
|
|
31
34
|
const innerVisible = ref(false);
|
|
32
35
|
const addForm = ref({
|
|
33
36
|
CODE: "",
|
|
@@ -54,9 +57,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
57
|
http.post(
|
|
55
58
|
window["$vueApp"].config.globalProperties.baseAPI + `/bs/language-package/translate/by-codes/${props.pageDesign.systemCode}`,
|
|
56
59
|
needTanslateCodes
|
|
57
|
-
).then(() => {
|
|
60
|
+
).then((res) => {
|
|
61
|
+
if (res) {
|
|
62
|
+
errorTranslateData.value = res;
|
|
63
|
+
showErrorTranslateDialog.value = true;
|
|
64
|
+
ElMessage.error({
|
|
65
|
+
message: "翻译错误,请检查翻译结果后自行保存",
|
|
66
|
+
showClose: true
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
fetchData();
|
|
70
|
+
}
|
|
58
71
|
loading.value = false;
|
|
59
|
-
fetchData();
|
|
60
72
|
}).catch((err) => {
|
|
61
73
|
console.log("翻译失败", err);
|
|
62
74
|
loading.value = false;
|
|
@@ -190,8 +202,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
190
202
|
const cancelAdd = () => {
|
|
191
203
|
innerVisible.value = false;
|
|
192
204
|
};
|
|
193
|
-
|
|
194
|
-
|
|
205
|
+
const closeErrorTranslateDialog = () => {
|
|
206
|
+
showErrorTranslateDialog.value = false;
|
|
207
|
+
fetchData();
|
|
208
|
+
};
|
|
195
209
|
__expose({});
|
|
196
210
|
return (_ctx, _cache) => {
|
|
197
211
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -207,7 +221,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
207
221
|
withDirectives((openBlock(), createBlock(_component_el_button, {
|
|
208
222
|
align: "left",
|
|
209
223
|
type: "primary",
|
|
210
|
-
class: "button--default",
|
|
211
224
|
icon: unref(Plus),
|
|
212
225
|
onClick: add
|
|
213
226
|
}, {
|
|
@@ -221,7 +234,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
234
|
withDirectives((openBlock(), createBlock(_component_el_button, {
|
|
222
235
|
align: "left",
|
|
223
236
|
type: "primary",
|
|
224
|
-
class: "button--default",
|
|
225
237
|
icon: unref(Reading),
|
|
226
238
|
onClick: translateCodes
|
|
227
239
|
}, {
|
|
@@ -396,8 +408,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
396
408
|
[_directive_loading, loading.value]
|
|
397
409
|
]),
|
|
398
410
|
createElementVNode("span", null, "总条数:" + toDisplayString(filterTableData.value.length), 1),
|
|
399
|
-
|
|
411
|
+
showErrorTranslateDialog.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
400
412
|
key: 0,
|
|
413
|
+
systemCode: __props.pageDesign.systemCode,
|
|
414
|
+
languages: languages.value,
|
|
415
|
+
errorTranslateData: errorTranslateData.value,
|
|
416
|
+
onClose: closeErrorTranslateDialog
|
|
417
|
+
}, null, 8, ["systemCode", "languages", "errorTranslateData"])) : createCommentVNode("", true),
|
|
418
|
+
innerVisible.value ? (openBlock(), createBlock(_component_el_dialog, {
|
|
419
|
+
key: 1,
|
|
401
420
|
modelValue: innerVisible.value,
|
|
402
421
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => innerVisible.value = $event),
|
|
403
422
|
width: "500",
|
package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface Language {
|
|
2
|
+
value: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{
|
|
6
|
+
systemCode: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
languages: {
|
|
11
|
+
type: () => Language[];
|
|
12
|
+
default: any[];
|
|
13
|
+
};
|
|
14
|
+
errorTranslateData: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
close: (...args: any[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
systemCode: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
languages: {
|
|
26
|
+
type: () => Language[];
|
|
27
|
+
default: any[];
|
|
28
|
+
};
|
|
29
|
+
errorTranslateData: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
}>> & {
|
|
34
|
+
onClose?: (...args: any[]) => any;
|
|
35
|
+
}, {
|
|
36
|
+
systemCode: string;
|
|
37
|
+
languages: Language[];
|
|
38
|
+
errorTranslateData: Record<string, any>;
|
|
39
|
+
}, {}>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementBlock, Fragment } from "vue";
|
|
2
|
+
import { ElMessage } from "element-plus";
|
|
3
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
4
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
|
|
5
|
+
const _hoisted_2 = { class: "dialog-footer" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "translate-error-dialog",
|
|
8
|
+
props: {
|
|
9
|
+
systemCode: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
languages: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: []
|
|
16
|
+
},
|
|
17
|
+
errorTranslateData: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["close"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emits = __emit;
|
|
28
|
+
const show = ref(true);
|
|
29
|
+
const tableData = ref([]);
|
|
30
|
+
const multipleSelection = ref([]);
|
|
31
|
+
const lang = ref("");
|
|
32
|
+
const editRowIndex = ref(null);
|
|
33
|
+
onMounted(() => {
|
|
34
|
+
var _a;
|
|
35
|
+
lang.value = (_a = props.languages.find((item) => item.value === props.errorTranslateData.lang)) == null ? void 0 : _a.name;
|
|
36
|
+
props.errorTranslateData.codes.forEach((code, index) => {
|
|
37
|
+
const data = {
|
|
38
|
+
code,
|
|
39
|
+
value: null
|
|
40
|
+
};
|
|
41
|
+
if (props.errorTranslateData.values[index]) {
|
|
42
|
+
data.value = props.errorTranslateData.values[index];
|
|
43
|
+
}
|
|
44
|
+
tableData.value.push(data);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function save(index, row) {
|
|
48
|
+
const param = { [row.code]: row.value };
|
|
49
|
+
saveWithLang(param);
|
|
50
|
+
}
|
|
51
|
+
function saveAll() {
|
|
52
|
+
const languageValues = {};
|
|
53
|
+
multipleSelection.value.forEach((item) => {
|
|
54
|
+
languageValues[item.code] = item.value;
|
|
55
|
+
});
|
|
56
|
+
saveWithLang(languageValues);
|
|
57
|
+
}
|
|
58
|
+
function deleteRow(index) {
|
|
59
|
+
tableData.value.splice(index, 1);
|
|
60
|
+
}
|
|
61
|
+
function edit(index, row) {
|
|
62
|
+
editRowIndex.value = index;
|
|
63
|
+
}
|
|
64
|
+
function rowClick(row, column, event) {
|
|
65
|
+
editRowIndex.value = tableData.value.findIndex((item) => item.code === row.code);
|
|
66
|
+
}
|
|
67
|
+
const handleSelectionChange = (val) => {
|
|
68
|
+
multipleSelection.value = val;
|
|
69
|
+
};
|
|
70
|
+
function saveWithLang(languageValues) {
|
|
71
|
+
const params = {
|
|
72
|
+
lang: props.errorTranslateData.lang,
|
|
73
|
+
systemCode: props.systemCode,
|
|
74
|
+
languageValues
|
|
75
|
+
};
|
|
76
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + `/bs/language-value/save-with-lang`, params).then(() => {
|
|
77
|
+
editRowIndex.value = null;
|
|
78
|
+
ElMessage.success({
|
|
79
|
+
message: "保存成功",
|
|
80
|
+
showClose: true
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function emitClose() {
|
|
85
|
+
emits("close");
|
|
86
|
+
}
|
|
87
|
+
return (_ctx, _cache) => {
|
|
88
|
+
const _component_el_alert = resolveComponent("el-alert");
|
|
89
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
90
|
+
const _component_el_input = resolveComponent("el-input");
|
|
91
|
+
const _component_el_button = resolveComponent("el-button");
|
|
92
|
+
const _component_el_table = resolveComponent("el-table");
|
|
93
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
94
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
95
|
+
title: "翻译结果参照",
|
|
96
|
+
width: "700",
|
|
97
|
+
modelValue: show.value,
|
|
98
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => show.value = $event),
|
|
99
|
+
onClose: emitClose,
|
|
100
|
+
"destroy-on-close": "",
|
|
101
|
+
"apped-to-body": "",
|
|
102
|
+
"close-on-click-modal": ""
|
|
103
|
+
}, {
|
|
104
|
+
footer: withCtx(() => [
|
|
105
|
+
createElementVNode("div", _hoisted_2, [
|
|
106
|
+
multipleSelection.value.length > 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
107
|
+
key: 0,
|
|
108
|
+
type: "primary",
|
|
109
|
+
onClick: saveAll
|
|
110
|
+
}, {
|
|
111
|
+
default: withCtx(() => [
|
|
112
|
+
createTextVNode(" 保存选中行(" + toDisplayString(multipleSelection.value.length) + ")条 ", 1)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})) : createCommentVNode("", true),
|
|
116
|
+
createVNode(_component_el_button, { onClick: emitClose }, {
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
createTextVNode(" 返回 ")
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
})
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createVNode(_component_el_alert, {
|
|
126
|
+
title: "语言类型:" + lang.value,
|
|
127
|
+
type: "warning",
|
|
128
|
+
closable: false
|
|
129
|
+
}, null, 8, ["title"]),
|
|
130
|
+
_hoisted_1,
|
|
131
|
+
createVNode(_component_el_table, {
|
|
132
|
+
data: tableData.value,
|
|
133
|
+
style: { "width": "100%" },
|
|
134
|
+
height: "500",
|
|
135
|
+
onRowClick: rowClick,
|
|
136
|
+
ref: "multipleTableRef",
|
|
137
|
+
onSelectionChange: handleSelectionChange
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [
|
|
140
|
+
createVNode(_component_el_table_column, {
|
|
141
|
+
type: "selection",
|
|
142
|
+
width: "55"
|
|
143
|
+
}),
|
|
144
|
+
createVNode(_component_el_table_column, {
|
|
145
|
+
type: "index",
|
|
146
|
+
width: "50"
|
|
147
|
+
}),
|
|
148
|
+
createVNode(_component_el_table_column, {
|
|
149
|
+
prop: "code",
|
|
150
|
+
label: "编码",
|
|
151
|
+
width: "180"
|
|
152
|
+
}),
|
|
153
|
+
createVNode(_component_el_table_column, {
|
|
154
|
+
prop: "value",
|
|
155
|
+
label: "翻译结果",
|
|
156
|
+
width: "180"
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx((scope) => [
|
|
159
|
+
editRowIndex.value === scope.$index ? (openBlock(), createBlock(_component_el_input, {
|
|
160
|
+
key: 0,
|
|
161
|
+
modelValue: scope.row.value,
|
|
162
|
+
"onUpdate:modelValue": ($event) => scope.row.value = $event
|
|
163
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
164
|
+
createTextVNode(toDisplayString(scope.row.value), 1)
|
|
165
|
+
], 64))
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
createVNode(_component_el_table_column, {
|
|
170
|
+
align: "center",
|
|
171
|
+
label: "操作"
|
|
172
|
+
}, {
|
|
173
|
+
default: withCtx((scope) => [
|
|
174
|
+
editRowIndex.value === scope.$index ? (openBlock(), createBlock(_component_el_button, {
|
|
175
|
+
key: 0,
|
|
176
|
+
type: "primary",
|
|
177
|
+
size: "small",
|
|
178
|
+
onClick: ($event) => save(scope.$index, scope.row)
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [
|
|
181
|
+
createTextVNode(" 保存 ")
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
185
|
+
createVNode(_component_el_button, {
|
|
186
|
+
size: "small",
|
|
187
|
+
onClick: ($event) => edit(scope.$index, scope.row)
|
|
188
|
+
}, {
|
|
189
|
+
default: withCtx(() => [
|
|
190
|
+
createTextVNode(" 编辑 ")
|
|
191
|
+
]),
|
|
192
|
+
_: 2
|
|
193
|
+
}, 1032, ["onClick"]),
|
|
194
|
+
createVNode(_component_el_button, {
|
|
195
|
+
size: "small",
|
|
196
|
+
type: "danger",
|
|
197
|
+
onClick: ($event) => deleteRow(scope.$index)
|
|
198
|
+
}, {
|
|
199
|
+
default: withCtx(() => [
|
|
200
|
+
createTextVNode(" 移除 ")
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["onClick"])
|
|
204
|
+
], 64))
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["data"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}, 8, ["modelValue"]);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
export {
|
|
218
|
+
_sfc_main as default
|
|
219
|
+
};
|
|
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
|
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
18
|
import "js-beautify";
|
|
19
|
-
import "../page-event/config.
|
|
19
|
+
import "../page-event/config.vue2.js";
|
|
20
20
|
import "../../../utils/assemblys-config.js";
|
|
21
21
|
import "../../../../../stores/page-store.js";
|
|
22
22
|
import "../../../../../stores/event-undo-redo-store.js";
|
package/dist/es/style.css
CHANGED
|
@@ -1292,10 +1292,6 @@ fieldset.amb-design-item-selected {
|
|
|
1292
1292
|
padding: 10px;
|
|
1293
1293
|
font-weight: bold;
|
|
1294
1294
|
}
|
|
1295
|
-
|
|
1296
|
-
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
1297
|
-
cursor: default;
|
|
1298
|
-
}
|
|
1299
1295
|
.el-tree-node__content {
|
|
1300
1296
|
height: 34px !important;
|
|
1301
1297
|
}
|
|
@@ -2532,6 +2528,10 @@ fieldset.amb-design-item-selected {
|
|
|
2532
2528
|
padding: 10px;
|
|
2533
2529
|
font-weight: bold;
|
|
2534
2530
|
}
|
|
2531
|
+
|
|
2532
|
+
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
2533
|
+
cursor: default;
|
|
2534
|
+
}
|
|
2535
2535
|
.el-tree-node__content {
|
|
2536
2536
|
height: 34px !important;
|
|
2537
2537
|
}
|
|
@@ -3150,6 +3150,10 @@ fieldset.amb-design-item-selected {
|
|
|
3150
3150
|
padding: 10px;
|
|
3151
3151
|
font-weight: bold;
|
|
3152
3152
|
}
|
|
3153
|
+
|
|
3154
|
+
.el-select__wrapper.is-disabled{
|
|
3155
|
+
cursor: default;
|
|
3156
|
+
}
|
|
3153
3157
|
.el-tree-node__content {
|
|
3154
3158
|
height: 34px !important;
|
|
3155
3159
|
}
|
|
@@ -5622,10 +5626,6 @@ fieldset.amb-design-item-selected {
|
|
|
5622
5626
|
padding: 10px;
|
|
5623
5627
|
font-weight: bold;
|
|
5624
5628
|
}
|
|
5625
|
-
|
|
5626
|
-
.el-select__wrapper.is-disabled{
|
|
5627
|
-
cursor: default;
|
|
5628
|
-
}
|
|
5629
5629
|
.el-tree-node__content {
|
|
5630
5630
|
height: 34px !important;
|
|
5631
5631
|
}
|
|
@@ -9334,6 +9334,56 @@ fieldset.amb-design-item-selected {
|
|
|
9334
9334
|
padding: 10px;
|
|
9335
9335
|
font-weight: bold;
|
|
9336
9336
|
}
|
|
9337
|
+
|
|
9338
|
+
/*不显示列样式*/
|
|
9339
|
+
.hiddenBorder {
|
|
9340
|
+
border-right: solid 1px #ebebeb !important;
|
|
9341
|
+
border-left: solid 1px #ebebeb !important;
|
|
9342
|
+
background-color: #ebebeb !important;
|
|
9343
|
+
}
|
|
9344
|
+
/*选中列样式*/
|
|
9345
|
+
.addBorder {
|
|
9346
|
+
border-right: solid 1px #5893ef !important;
|
|
9347
|
+
border-left: solid 1px #5893ef !important;
|
|
9348
|
+
background-color: #5893ef !important;
|
|
9349
|
+
color: #ffffff;
|
|
9350
|
+
}
|
|
9351
|
+
.ghost {
|
|
9352
|
+
opacity: 0.5;
|
|
9353
|
+
background: #c8ebfb;
|
|
9354
|
+
}
|
|
9355
|
+
|
|
9356
|
+
li[data-v-5581ec9f] {
|
|
9357
|
+
color: #333;
|
|
9358
|
+
}
|
|
9359
|
+
.context-menu[data-v-5581ec9f] {
|
|
9360
|
+
position: fixed;
|
|
9361
|
+
background: #fff;
|
|
9362
|
+
z-index: 999;
|
|
9363
|
+
padding: 5px;
|
|
9364
|
+
margin: 0;
|
|
9365
|
+
margin-top: 30px;
|
|
9366
|
+
}
|
|
9367
|
+
.context-menu li[data-v-5581ec9f] {
|
|
9368
|
+
min-width: 75px;
|
|
9369
|
+
height: 28px;
|
|
9370
|
+
line-height: 28px;
|
|
9371
|
+
text-align: left;
|
|
9372
|
+
color: #1a1a1a;
|
|
9373
|
+
cursor: pointer;
|
|
9374
|
+
}
|
|
9375
|
+
.context-menu li[data-v-5581ec9f]:hover {
|
|
9376
|
+
background: #5893ef;
|
|
9377
|
+
color: #fff;
|
|
9378
|
+
}
|
|
9379
|
+
.context-menu[data-v-5581ec9f] {
|
|
9380
|
+
border: 1px solid #eee;
|
|
9381
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
9382
|
+
border-radius: 5px;
|
|
9383
|
+
}
|
|
9384
|
+
li[data-v-5581ec9f] {
|
|
9385
|
+
list-style-type: none;
|
|
9386
|
+
}
|
|
9337
9387
|
.el-tree-node__content {
|
|
9338
9388
|
height: 34px !important;
|
|
9339
9389
|
}
|
|
@@ -9952,56 +10002,6 @@ fieldset.amb-design-item-selected {
|
|
|
9952
10002
|
padding: 10px;
|
|
9953
10003
|
font-weight: bold;
|
|
9954
10004
|
}
|
|
9955
|
-
|
|
9956
|
-
/*不显示列样式*/
|
|
9957
|
-
.hiddenBorder {
|
|
9958
|
-
border-right: solid 1px #ebebeb !important;
|
|
9959
|
-
border-left: solid 1px #ebebeb !important;
|
|
9960
|
-
background-color: #ebebeb !important;
|
|
9961
|
-
}
|
|
9962
|
-
/*选中列样式*/
|
|
9963
|
-
.addBorder {
|
|
9964
|
-
border-right: solid 1px #5893ef !important;
|
|
9965
|
-
border-left: solid 1px #5893ef !important;
|
|
9966
|
-
background-color: #5893ef !important;
|
|
9967
|
-
color: #ffffff;
|
|
9968
|
-
}
|
|
9969
|
-
.ghost {
|
|
9970
|
-
opacity: 0.5;
|
|
9971
|
-
background: #c8ebfb;
|
|
9972
|
-
}
|
|
9973
|
-
|
|
9974
|
-
li[data-v-5581ec9f] {
|
|
9975
|
-
color: #333;
|
|
9976
|
-
}
|
|
9977
|
-
.context-menu[data-v-5581ec9f] {
|
|
9978
|
-
position: fixed;
|
|
9979
|
-
background: #fff;
|
|
9980
|
-
z-index: 999;
|
|
9981
|
-
padding: 5px;
|
|
9982
|
-
margin: 0;
|
|
9983
|
-
margin-top: 30px;
|
|
9984
|
-
}
|
|
9985
|
-
.context-menu li[data-v-5581ec9f] {
|
|
9986
|
-
min-width: 75px;
|
|
9987
|
-
height: 28px;
|
|
9988
|
-
line-height: 28px;
|
|
9989
|
-
text-align: left;
|
|
9990
|
-
color: #1a1a1a;
|
|
9991
|
-
cursor: pointer;
|
|
9992
|
-
}
|
|
9993
|
-
.context-menu li[data-v-5581ec9f]:hover {
|
|
9994
|
-
background: #5893ef;
|
|
9995
|
-
color: #fff;
|
|
9996
|
-
}
|
|
9997
|
-
.context-menu[data-v-5581ec9f] {
|
|
9998
|
-
border: 1px solid #eee;
|
|
9999
|
-
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
10000
|
-
border-radius: 5px;
|
|
10001
|
-
}
|
|
10002
|
-
li[data-v-5581ec9f] {
|
|
10003
|
-
list-style-type: none;
|
|
10004
|
-
}
|
|
10005
10005
|
.el-tree-node__content {
|
|
10006
10006
|
height: 34px !important;
|
|
10007
10007
|
}
|
|
@@ -17418,6 +17418,10 @@ fieldset.amb-design-item-selected {
|
|
|
17418
17418
|
padding: 10px;
|
|
17419
17419
|
font-weight: bold;
|
|
17420
17420
|
}
|
|
17421
|
+
|
|
17422
|
+
[data-v-bab42532] .el-form-item__label {
|
|
17423
|
+
padding: 0;
|
|
17424
|
+
}
|
|
17421
17425
|
|
|
17422
17426
|
/*不显示列样式*/
|
|
17423
17427
|
.hiddenBorder {
|
|
@@ -17469,10 +17473,6 @@ li[data-v-a555cba7] {
|
|
|
17469
17473
|
list-style-type: none;
|
|
17470
17474
|
}
|
|
17471
17475
|
|
|
17472
|
-
[data-v-bab42532] .el-form-item__label {
|
|
17473
|
-
padding: 0;
|
|
17474
|
-
}
|
|
17475
|
-
|
|
17476
17476
|
.amb-design-attr-header[data-v-226997f7] {
|
|
17477
17477
|
position: sticky;
|
|
17478
17478
|
position: -webkit-sticky;
|
|
@@ -17515,6 +17515,24 @@ li[data-v-a555cba7] {
|
|
|
17515
17515
|
min-width: 120px !important;
|
|
17516
17516
|
}
|
|
17517
17517
|
|
|
17518
|
+
.editorTool[data-v-bc0d50cd] {
|
|
17519
|
+
margin-left: auto;
|
|
17520
|
+
}
|
|
17521
|
+
.editorOption[data-v-bc0d50cd] {
|
|
17522
|
+
margin-right: 10px;
|
|
17523
|
+
cursor: pointer;
|
|
17524
|
+
}
|
|
17525
|
+
.pppp[data-v-bc0d50cd] {
|
|
17526
|
+
display: flex; /* 使用Flex布局 */
|
|
17527
|
+
justify-content: flex-start;
|
|
17528
|
+
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
17529
|
+
}
|
|
17530
|
+
|
|
17531
|
+
.seleteSort[data-v-8aacbe0c] {
|
|
17532
|
+
border-radius: 5px;
|
|
17533
|
+
border: 1px solid rgba(88, 147, 239);
|
|
17534
|
+
}
|
|
17535
|
+
|
|
17518
17536
|
.icon-set-center-body[data-v-181d1ce8]{
|
|
17519
17537
|
display: grid;
|
|
17520
17538
|
grid-template-columns:repeat(5,1fr);
|
|
@@ -17552,24 +17570,6 @@ li[data-v-a555cba7] {
|
|
|
17552
17570
|
margin-bottom: 20px;
|
|
17553
17571
|
}
|
|
17554
17572
|
|
|
17555
|
-
.editorTool[data-v-39d5d5cf] {
|
|
17556
|
-
margin-left: auto;
|
|
17557
|
-
}
|
|
17558
|
-
.editorOption[data-v-39d5d5cf] {
|
|
17559
|
-
margin-right: 10px;
|
|
17560
|
-
cursor: pointer;
|
|
17561
|
-
}
|
|
17562
|
-
.pppp[data-v-39d5d5cf] {
|
|
17563
|
-
display: flex; /* 使用Flex布局 */
|
|
17564
|
-
justify-content: flex-start;
|
|
17565
|
-
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
17566
|
-
}
|
|
17567
|
-
|
|
17568
|
-
.seleteSort[data-v-8aacbe0c] {
|
|
17569
|
-
border-radius: 5px;
|
|
17570
|
-
border: 1px solid rgba(88, 147, 239);
|
|
17571
|
-
}
|
|
17572
|
-
|
|
17573
17573
|
.seleteSort[data-v-1dada466] {
|
|
17574
17574
|
border-radius: 5px;
|
|
17575
17575
|
border: 1px solid rgba(88, 147, 239);
|
|
@@ -17637,10 +17637,14 @@ li[data-v-4fd4369c] {
|
|
|
17637
17637
|
border: 1px solid rgba(88, 147, 239);
|
|
17638
17638
|
}
|
|
17639
17639
|
|
|
17640
|
-
[data-v-
|
|
17640
|
+
[data-v-8e6fbc57] .centered-input .el-input__inner {
|
|
17641
17641
|
text-align: center;
|
|
17642
17642
|
}
|
|
17643
17643
|
|
|
17644
|
+
.input-with-select .el-input-group__append {
|
|
17645
|
+
background-color: var(--el-fill-color-blank);
|
|
17646
|
+
}
|
|
17647
|
+
|
|
17644
17648
|
.row-backgroud-header-tittle[data-v-b203475d]{
|
|
17645
17649
|
display: flex;
|
|
17646
17650
|
justify-content: space-between;
|
|
@@ -17649,7 +17653,3 @@ li[data-v-4fd4369c] {
|
|
|
17649
17653
|
.row-backgroud-header-tittle > div[data-v-b203475d]{
|
|
17650
17654
|
width: 100%
|
|
17651
17655
|
}
|
|
17652
|
-
|
|
17653
|
-
.input-with-select .el-input-group__append {
|
|
17654
|
-
background-color: var(--el-fill-color-blank);
|
|
17655
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.66",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.0.
|
|
32
|
+
"agilebuilder-ui": "1.0.91",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.1.59",
|
|
44
|
-
"super-page-runtime": "2.1.
|
|
44
|
+
"super-page-runtime": "2.1.65",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|