super-page-designer 2.1.63 → 2.1.69
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/common/common-variable-bind.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -738
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/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 +29 -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 +32 -32
- package/package.json +3 -3
|
@@ -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.vue.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
|
@@ -3146,6 +3146,14 @@ fieldset.amb-design-item-selected {
|
|
|
3146
3146
|
padding: 10px;
|
|
3147
3147
|
font-weight: bold;
|
|
3148
3148
|
}
|
|
3149
|
+
|
|
3150
|
+
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
3151
|
+
cursor: default;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
.el-select__wrapper.is-disabled{
|
|
3155
|
+
cursor: default;
|
|
3156
|
+
}
|
|
3149
3157
|
.el-tree-node__content {
|
|
3150
3158
|
height: 34px !important;
|
|
3151
3159
|
}
|
|
@@ -5618,14 +5626,6 @@ fieldset.amb-design-item-selected {
|
|
|
5618
5626
|
padding: 10px;
|
|
5619
5627
|
font-weight: bold;
|
|
5620
5628
|
}
|
|
5621
|
-
|
|
5622
|
-
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
5623
|
-
cursor: default;
|
|
5624
|
-
}
|
|
5625
|
-
|
|
5626
|
-
.el-select__wrapper.is-disabled{
|
|
5627
|
-
cursor: default;
|
|
5628
|
-
}
|
|
5629
5629
|
.el-tree-node__content {
|
|
5630
5630
|
height: 34px !important;
|
|
5631
5631
|
}
|
|
@@ -17520,19 +17520,31 @@ li[data-v-a555cba7] {
|
|
|
17520
17520
|
border: 1px solid rgba(88, 147, 239);
|
|
17521
17521
|
}
|
|
17522
17522
|
|
|
17523
|
-
.
|
|
17523
|
+
.el-tag[data-v-665d3bf4]{
|
|
17524
|
+
margin-left: 10px;
|
|
17525
|
+
}
|
|
17526
|
+
|
|
17527
|
+
.editorTool[data-v-bc0d50cd] {
|
|
17524
17528
|
margin-left: auto;
|
|
17525
17529
|
}
|
|
17526
|
-
.editorOption[data-v-
|
|
17530
|
+
.editorOption[data-v-bc0d50cd] {
|
|
17527
17531
|
margin-right: 10px;
|
|
17528
17532
|
cursor: pointer;
|
|
17529
17533
|
}
|
|
17530
|
-
.pppp[data-v-
|
|
17534
|
+
.pppp[data-v-bc0d50cd] {
|
|
17531
17535
|
display: flex; /* 使用Flex布局 */
|
|
17532
17536
|
justify-content: flex-start;
|
|
17533
17537
|
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
17534
17538
|
}
|
|
17535
17539
|
|
|
17540
|
+
.seleteSort[data-v-1dada466] {
|
|
17541
|
+
border-radius: 5px;
|
|
17542
|
+
border: 1px solid rgba(88, 147, 239);
|
|
17543
|
+
}
|
|
17544
|
+
[data-v-1dada466] .el-select__selection{
|
|
17545
|
+
display: inline-block;
|
|
17546
|
+
}
|
|
17547
|
+
|
|
17536
17548
|
.icon-set-center-body[data-v-181d1ce8]{
|
|
17537
17549
|
display: grid;
|
|
17538
17550
|
grid-template-columns:repeat(5,1fr);
|
|
@@ -17575,12 +17587,12 @@ li[data-v-a555cba7] {
|
|
|
17575
17587
|
border: 1px solid rgba(88, 147, 239);
|
|
17576
17588
|
}
|
|
17577
17589
|
|
|
17578
|
-
.
|
|
17579
|
-
|
|
17580
|
-
border: 1px solid rgba(88, 147, 239);
|
|
17590
|
+
.stateBtn[data-v-ae2798fb]{
|
|
17591
|
+
display: flex;
|
|
17581
17592
|
}
|
|
17582
|
-
[data-v-
|
|
17583
|
-
|
|
17593
|
+
.stateText[data-v-ae2798fb]{
|
|
17594
|
+
margin-left: 10px;
|
|
17595
|
+
color: #7b7b7b;
|
|
17584
17596
|
}
|
|
17585
17597
|
|
|
17586
17598
|
li[data-v-4fd4369c] {
|
|
@@ -17620,23 +17632,15 @@ li[data-v-4fd4369c] {
|
|
|
17620
17632
|
list-style-type: none;
|
|
17621
17633
|
}
|
|
17622
17634
|
|
|
17623
|
-
.stateBtn[data-v-ae2798fb]{
|
|
17624
|
-
display: flex;
|
|
17625
|
-
}
|
|
17626
|
-
.stateText[data-v-ae2798fb]{
|
|
17627
|
-
margin-left: 10px;
|
|
17628
|
-
color: #7b7b7b;
|
|
17629
|
-
}
|
|
17630
|
-
|
|
17631
|
-
.el-tag[data-v-665d3bf4]{
|
|
17632
|
-
margin-left: 10px;
|
|
17633
|
-
}
|
|
17634
|
-
|
|
17635
17635
|
.seleteSort[data-v-a62867e0] {
|
|
17636
17636
|
border-radius: 5px;
|
|
17637
17637
|
border: 1px solid rgba(88, 147, 239);
|
|
17638
17638
|
}
|
|
17639
17639
|
|
|
17640
|
+
[data-v-8e6fbc57] .centered-input .el-input__inner {
|
|
17641
|
+
text-align: center;
|
|
17642
|
+
}
|
|
17643
|
+
|
|
17640
17644
|
.row-backgroud-header-tittle[data-v-b203475d]{
|
|
17641
17645
|
display: flex;
|
|
17642
17646
|
justify-content: space-between;
|
|
@@ -17646,10 +17650,6 @@ li[data-v-4fd4369c] {
|
|
|
17646
17650
|
width: 100%
|
|
17647
17651
|
}
|
|
17648
17652
|
|
|
17649
|
-
[data-v-3c4dc496] .centered-input .el-input__inner {
|
|
17650
|
-
text-align: center;
|
|
17651
|
-
}
|
|
17652
|
-
|
|
17653
17653
|
.input-with-select .el-input-group__append {
|
|
17654
17654
|
background-color: var(--el-fill-color-blank);
|
|
17655
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.69",
|
|
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.68",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|