mooho-base-admin-plus 0.4.83 → 2.0.0
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/index.html +0 -38
- package/package/mooho-base-admin-plus.min.esm.js +209 -61
- package/package/mooho-base-admin-plus.min.js +8 -8
- package/package.json +1 -2
- package/src/components/input/check-group.vue +101 -0
- package/src/components/view/column-edit.vue +55 -5
- package/src/components/view/filter-edit.vue +58 -1
- package/src/components/view/view-form-draggable.vue +213 -36
- package/src/components/view/view-form.vue +297 -249
- package/src/index.js +1 -1
- package/src/styles/css/default.css +4 -0
package/index.html
CHANGED
|
@@ -11,44 +11,6 @@
|
|
|
11
11
|
<noscript>
|
|
12
12
|
<strong>请开启 JavaScript 功能。</strong>
|
|
13
13
|
</noscript>
|
|
14
|
-
<!-- <div id="preloader" class="page-loader-wrapper">
|
|
15
|
-
<div class="loader">
|
|
16
|
-
<img class="zmdi-hc-spin" src="static/images/logo.svg" width="64" height="64" />
|
|
17
|
-
</div>
|
|
18
|
-
<style>
|
|
19
|
-
/* 遮罩层 */
|
|
20
|
-
.page-loader-wrapper {
|
|
21
|
-
z-index: 99999999;
|
|
22
|
-
position: fixed;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
right: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
text-align: center;
|
|
31
|
-
opacity: 0.5;
|
|
32
|
-
background: #000;
|
|
33
|
-
/* display: none; */
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.page-loader-wrapper .loader {
|
|
37
|
-
position: relative;
|
|
38
|
-
top: 40%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.zmdi-hc-spin {
|
|
42
|
-
-webkit-animation: zmdi-spin 1.5s infinite linear;
|
|
43
|
-
animation: zmdi-spin 1.5s infinite linear;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.zmdi-hc-spin-reverse {
|
|
47
|
-
-webkit-animation: zmdi-spin-reverse 1.5s infinite linear;
|
|
48
|
-
animation: zmdi-spin-reverse 1.5s infinite linear;
|
|
49
|
-
}
|
|
50
|
-
</style>
|
|
51
|
-
</div> -->
|
|
52
14
|
<div id="app"></div>
|
|
53
15
|
<script type="module" src="/test/main.js"></script>
|
|
54
16
|
</body>
|
|
@@ -22828,7 +22828,7 @@ const _hoisted_7$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
22828
22828
|
const _hoisted_8$a = { class: "stat" };
|
|
22829
22829
|
const _hoisted_9$8 = { class: "icon" };
|
|
22830
22830
|
const _hoisted_10$4 = { class: "content" };
|
|
22831
|
-
const _hoisted_11$
|
|
22831
|
+
const _hoisted_11$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value1" }, "\u5F85\u5206\u6D3E", -1));
|
|
22832
22832
|
const _hoisted_12$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value2" }, "\u5DF2\u5206\u6D3E", -1));
|
|
22833
22833
|
const _hoisted_13$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
|
|
22834
22834
|
/* @__PURE__ */ createElementVNode("span", null, "\u68C0\u6D4B\u62A5\u544A")
|
|
@@ -22943,7 +22943,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22943
22943
|
}, null, 512), [
|
|
22944
22944
|
[_directive_font, 30]
|
|
22945
22945
|
]),
|
|
22946
|
-
_hoisted_11$
|
|
22946
|
+
_hoisted_11$3
|
|
22947
22947
|
]),
|
|
22948
22948
|
createElementVNode("div", null, [
|
|
22949
22949
|
withDirectives(createVNode$1(_component_Numeral, {
|
|
@@ -26980,7 +26980,7 @@ const _hoisted_7$a = /* @__PURE__ */ createElementVNode("marker", {
|
|
|
26980
26980
|
const _hoisted_8$9 = ["id", "d"];
|
|
26981
26981
|
const _hoisted_9$7 = ["width"];
|
|
26982
26982
|
const _hoisted_10$3 = ["x", "y", "width", "height"];
|
|
26983
|
-
const _hoisted_11$
|
|
26983
|
+
const _hoisted_11$2 = ["x", "y", "font-size"];
|
|
26984
26984
|
const _hoisted_12$2 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"];
|
|
26985
26985
|
const _hoisted_13$2 = ["x", "y", "width", "height"];
|
|
26986
26986
|
const _hoisted_14$1 = ["x", "y", "font-size"];
|
|
@@ -27127,7 +27127,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27127
27127
|
"font-size": $data.setting.rectFontSize,
|
|
27128
27128
|
"text-anchor": "middle",
|
|
27129
27129
|
"dominant-baseline": "middle"
|
|
27130
|
-
}, toDisplayString$1(item.name), 9, _hoisted_11$
|
|
27130
|
+
}, toDisplayString$1(item.name), 9, _hoisted_11$2),
|
|
27131
27131
|
createElementVNode("rect", {
|
|
27132
27132
|
opacity: "0",
|
|
27133
27133
|
rx: "25",
|
|
@@ -35524,14 +35524,14 @@ const _sfc_main$w = {
|
|
|
35524
35524
|
pattern: /.+/,
|
|
35525
35525
|
required: true,
|
|
35526
35526
|
message: this.$t("Front_Msg_Please_Input"),
|
|
35527
|
-
trigger:
|
|
35527
|
+
trigger: "blur,change"
|
|
35528
35528
|
});
|
|
35529
35529
|
} else {
|
|
35530
35530
|
rules.push({
|
|
35531
35531
|
type: this.getDataType(column),
|
|
35532
35532
|
required: true,
|
|
35533
35533
|
message: this.$t("Front_Msg_Please_Input"),
|
|
35534
|
-
trigger:
|
|
35534
|
+
trigger: "blur,change"
|
|
35535
35535
|
});
|
|
35536
35536
|
}
|
|
35537
35537
|
}
|
|
@@ -35540,7 +35540,7 @@ const _sfc_main$w = {
|
|
|
35540
35540
|
type: this.getDataType(column),
|
|
35541
35541
|
pattern: column.pattern,
|
|
35542
35542
|
message: this.$t("Front_Msg_Validation_Pattern"),
|
|
35543
|
-
trigger:
|
|
35543
|
+
trigger: "blur,change"
|
|
35544
35544
|
});
|
|
35545
35545
|
}
|
|
35546
35546
|
if (column.maxValue != null) {
|
|
@@ -35548,7 +35548,7 @@ const _sfc_main$w = {
|
|
|
35548
35548
|
type: this.getDataType(column),
|
|
35549
35549
|
max: column.maxValue,
|
|
35550
35550
|
message: this.$t("Front_Msg_Validation_Max_Value|" + column.maxValue),
|
|
35551
|
-
trigger:
|
|
35551
|
+
trigger: "blur,change"
|
|
35552
35552
|
});
|
|
35553
35553
|
}
|
|
35554
35554
|
if (column.minValue != null) {
|
|
@@ -35556,7 +35556,7 @@ const _sfc_main$w = {
|
|
|
35556
35556
|
type: this.getDataType(column),
|
|
35557
35557
|
min: column.minValue,
|
|
35558
35558
|
message: this.$t("Front_Msg_Validation_Min_Value|" + column.minValue),
|
|
35559
|
-
trigger:
|
|
35559
|
+
trigger: "blur,change"
|
|
35560
35560
|
});
|
|
35561
35561
|
}
|
|
35562
35562
|
if (column.maxLength != null) {
|
|
@@ -35564,7 +35564,7 @@ const _sfc_main$w = {
|
|
|
35564
35564
|
type: this.getDataType(column),
|
|
35565
35565
|
length: column.maxLength,
|
|
35566
35566
|
message: this.$t("Front_Msg_Validation_Max_Length|" + column.maxLength),
|
|
35567
|
-
trigger:
|
|
35567
|
+
trigger: "blur,change"
|
|
35568
35568
|
});
|
|
35569
35569
|
}
|
|
35570
35570
|
return rules;
|
|
@@ -35886,13 +35886,6 @@ const _sfc_main$w = {
|
|
|
35886
35886
|
return "integer";
|
|
35887
35887
|
}
|
|
35888
35888
|
},
|
|
35889
|
-
getTrigger(column) {
|
|
35890
|
-
if (column.controlType === "TextInput" || column.controlType === "NumberInput") {
|
|
35891
|
-
return "blur,change";
|
|
35892
|
-
} else {
|
|
35893
|
-
return "blur,change";
|
|
35894
|
-
}
|
|
35895
|
-
},
|
|
35896
35889
|
parseDataWithOther(model2, column) {
|
|
35897
35890
|
let expression2 = column.code;
|
|
35898
35891
|
let selectValue = this.parseData(model2, expression2 + "_o");
|
|
@@ -41678,7 +41671,7 @@ const _hoisted_7$3 = ["href"];
|
|
|
41678
41671
|
const _hoisted_8$3 = { style: { "margin": "auto 4px" } };
|
|
41679
41672
|
const _hoisted_9$2 = ["onClick", "src"];
|
|
41680
41673
|
const _hoisted_10$2 = { class: "ivu-mt ivu-text-right" };
|
|
41681
|
-
const _hoisted_11$
|
|
41674
|
+
const _hoisted_11$1 = { style: { "text-align": "center" } };
|
|
41682
41675
|
const _hoisted_12$1 = ["download"];
|
|
41683
41676
|
const _hoisted_13$1 = ["src"];
|
|
41684
41677
|
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -42473,7 +42466,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42473
42466
|
})
|
|
42474
42467
|
]),
|
|
42475
42468
|
default: withCtx(() => [
|
|
42476
|
-
createElementVNode("div", _hoisted_11$
|
|
42469
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
42477
42470
|
createElementVNode("a", {
|
|
42478
42471
|
href: "#",
|
|
42479
42472
|
download: $data.imageUrl,
|
|
@@ -49139,7 +49132,9 @@ const _sfc_main$o = {
|
|
|
49139
49132
|
tabName: "",
|
|
49140
49133
|
rules: {},
|
|
49141
49134
|
data: null,
|
|
49142
|
-
compareData: null
|
|
49135
|
+
compareData: null,
|
|
49136
|
+
dragging: false,
|
|
49137
|
+
draggingColumn: null
|
|
49143
49138
|
};
|
|
49144
49139
|
},
|
|
49145
49140
|
async created() {
|
|
@@ -49166,6 +49161,86 @@ const _sfc_main$o = {
|
|
|
49166
49161
|
return 100 * 4 / 24;
|
|
49167
49162
|
}
|
|
49168
49163
|
},
|
|
49164
|
+
getRules(column) {
|
|
49165
|
+
if (!column.isShow) {
|
|
49166
|
+
return [];
|
|
49167
|
+
}
|
|
49168
|
+
let rules = [];
|
|
49169
|
+
if (column.isRequired) {
|
|
49170
|
+
if (column.controlType == "Date" || column.controlType == "DateTime" || column.controlType == "Year" || column.controlType == "Month" || column.controlType == "DateRange") {
|
|
49171
|
+
rules.push({
|
|
49172
|
+
pattern: /.+/,
|
|
49173
|
+
required: true,
|
|
49174
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
49175
|
+
trigger: "blur,change"
|
|
49176
|
+
});
|
|
49177
|
+
} else {
|
|
49178
|
+
rules.push({
|
|
49179
|
+
type: this.getDataType(column),
|
|
49180
|
+
required: true,
|
|
49181
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
49182
|
+
trigger: "blur,change"
|
|
49183
|
+
});
|
|
49184
|
+
}
|
|
49185
|
+
}
|
|
49186
|
+
if (column.pattern && column.controlType == "TextInput") {
|
|
49187
|
+
rules.push({
|
|
49188
|
+
type: this.getDataType(column),
|
|
49189
|
+
pattern: column.pattern,
|
|
49190
|
+
message: this.$t("Front_Msg_Validation_Pattern"),
|
|
49191
|
+
trigger: "blur,change"
|
|
49192
|
+
});
|
|
49193
|
+
}
|
|
49194
|
+
if (column.maxValue != null) {
|
|
49195
|
+
rules.push({
|
|
49196
|
+
type: this.getDataType(column),
|
|
49197
|
+
max: column.maxValue,
|
|
49198
|
+
message: this.$t("Front_Msg_Validation_Max_Value|" + column.maxValue),
|
|
49199
|
+
trigger: "blur,change"
|
|
49200
|
+
});
|
|
49201
|
+
}
|
|
49202
|
+
if (column.minValue != null) {
|
|
49203
|
+
rules.push({
|
|
49204
|
+
type: this.getDataType(column),
|
|
49205
|
+
min: column.minValue,
|
|
49206
|
+
message: this.$t("Front_Msg_Validation_Min_Value|" + column.minValue),
|
|
49207
|
+
trigger: "blur,change"
|
|
49208
|
+
});
|
|
49209
|
+
}
|
|
49210
|
+
if (column.maxLength != null) {
|
|
49211
|
+
rules.push({
|
|
49212
|
+
type: this.getDataType(column),
|
|
49213
|
+
length: column.maxLength,
|
|
49214
|
+
message: this.$t("Front_Msg_Validation_Max_Length|" + column.maxLength),
|
|
49215
|
+
trigger: "blur,change"
|
|
49216
|
+
});
|
|
49217
|
+
}
|
|
49218
|
+
return rules;
|
|
49219
|
+
},
|
|
49220
|
+
getDataType(column) {
|
|
49221
|
+
if (!(column.dataType || "").trim()) {
|
|
49222
|
+
return null;
|
|
49223
|
+
}
|
|
49224
|
+
if (column.dataType.indexOf("Enum:") === 0) {
|
|
49225
|
+
return "string";
|
|
49226
|
+
}
|
|
49227
|
+
switch (column.dataType) {
|
|
49228
|
+
case "String":
|
|
49229
|
+
case "BigInteger":
|
|
49230
|
+
return "string";
|
|
49231
|
+
case "Boolean":
|
|
49232
|
+
return "boolean";
|
|
49233
|
+
case "DateTime":
|
|
49234
|
+
return "date";
|
|
49235
|
+
case "Float":
|
|
49236
|
+
case "Double":
|
|
49237
|
+
case "Decimal":
|
|
49238
|
+
return "number";
|
|
49239
|
+
case "Short":
|
|
49240
|
+
case "Integer":
|
|
49241
|
+
return "integer";
|
|
49242
|
+
}
|
|
49243
|
+
},
|
|
49169
49244
|
tabColumns(index2) {
|
|
49170
49245
|
return this.columns.filter((item) => {
|
|
49171
49246
|
return item.tabIndex === index2 || item.tabIndex == null;
|
|
@@ -49301,7 +49376,7 @@ const _sfc_main$o = {
|
|
|
49301
49376
|
return result2;
|
|
49302
49377
|
},
|
|
49303
49378
|
getDataSource(data2, column) {
|
|
49304
|
-
if (!column.isStaticItem && column.dataType.indexOf("Enum:") === 0) {
|
|
49379
|
+
if (!column.isStaticItem && column.dataType && column.dataType.indexOf("Enum:") === 0) {
|
|
49305
49380
|
return this.getEnumList(column.dataType.split(":")[1]);
|
|
49306
49381
|
} else {
|
|
49307
49382
|
return column.dataSource == null ? [] : column.dataSource;
|
|
@@ -49406,12 +49481,6 @@ const _sfc_main$o = {
|
|
|
49406
49481
|
}
|
|
49407
49482
|
return data2;
|
|
49408
49483
|
},
|
|
49409
|
-
mouseover(column) {
|
|
49410
|
-
column.showButton = true;
|
|
49411
|
-
},
|
|
49412
|
-
mouseleave(column) {
|
|
49413
|
-
column.showButton = false;
|
|
49414
|
-
},
|
|
49415
49484
|
edit(column, index2) {
|
|
49416
49485
|
this.$emit("edit", { column, index: index2 });
|
|
49417
49486
|
},
|
|
@@ -49450,20 +49519,95 @@ const _sfc_main$o = {
|
|
|
49450
49519
|
} else {
|
|
49451
49520
|
return value;
|
|
49452
49521
|
}
|
|
49522
|
+
},
|
|
49523
|
+
getNameI18n(column) {
|
|
49524
|
+
if (this.layout.showI18n) {
|
|
49525
|
+
if (column.code) {
|
|
49526
|
+
let key = "DataView_" + this.formView.code + "_" + column.code;
|
|
49527
|
+
let text2 = this.$t(key);
|
|
49528
|
+
if (text2 == key) {
|
|
49529
|
+
return column.name;
|
|
49530
|
+
} else {
|
|
49531
|
+
return text2;
|
|
49532
|
+
}
|
|
49533
|
+
} else {
|
|
49534
|
+
return column.name;
|
|
49535
|
+
}
|
|
49536
|
+
} else {
|
|
49537
|
+
return column.name;
|
|
49538
|
+
}
|
|
49539
|
+
},
|
|
49540
|
+
getRightWidth(index2) {
|
|
49541
|
+
let current = 0;
|
|
49542
|
+
for (let i3 = 0; i3 <= index2; i3++) {
|
|
49543
|
+
let width = 0;
|
|
49544
|
+
switch (this.columns[i3].columnWidth) {
|
|
49545
|
+
case "Column12":
|
|
49546
|
+
width = 24;
|
|
49547
|
+
break;
|
|
49548
|
+
case "Column9":
|
|
49549
|
+
width = 18;
|
|
49550
|
+
break;
|
|
49551
|
+
case "Column8":
|
|
49552
|
+
width = 16;
|
|
49553
|
+
break;
|
|
49554
|
+
case "Column6":
|
|
49555
|
+
width = 12;
|
|
49556
|
+
break;
|
|
49557
|
+
case "Column4":
|
|
49558
|
+
width = 8;
|
|
49559
|
+
break;
|
|
49560
|
+
case "Column3":
|
|
49561
|
+
width = 6;
|
|
49562
|
+
break;
|
|
49563
|
+
case "Column2":
|
|
49564
|
+
width = 4;
|
|
49565
|
+
break;
|
|
49566
|
+
}
|
|
49567
|
+
if (width == 24) {
|
|
49568
|
+
current = 0;
|
|
49569
|
+
} else if (this.columns[i3].newLine || current + width > 24) {
|
|
49570
|
+
current = width;
|
|
49571
|
+
} else if (current + width == 24) {
|
|
49572
|
+
current = 0;
|
|
49573
|
+
} else {
|
|
49574
|
+
current = current + width;
|
|
49575
|
+
}
|
|
49576
|
+
}
|
|
49577
|
+
return current == 0 ? 0 : 100 * (24 - current) / 24;
|
|
49578
|
+
},
|
|
49579
|
+
mouseover(column) {
|
|
49580
|
+
if (!this.dragging) {
|
|
49581
|
+
column._editable = true;
|
|
49582
|
+
}
|
|
49583
|
+
},
|
|
49584
|
+
mouseleave(column) {
|
|
49585
|
+
if (!this.dragging) {
|
|
49586
|
+
column._editable = false;
|
|
49587
|
+
}
|
|
49588
|
+
},
|
|
49589
|
+
start(evt) {
|
|
49590
|
+
this.draggingColumn = this.columns[evt.oldIndex];
|
|
49591
|
+
this.draggingColumn._actived = true;
|
|
49592
|
+
this.draggingColumn._editable = false;
|
|
49593
|
+
this.dragging = true;
|
|
49594
|
+
},
|
|
49595
|
+
end(evt) {
|
|
49596
|
+
this.draggingColumn._actived = false;
|
|
49597
|
+
this.dragging = false;
|
|
49453
49598
|
}
|
|
49454
49599
|
}
|
|
49455
49600
|
};
|
|
49456
49601
|
const _hoisted_1$f = ["onMouseover", "onMouseleave"];
|
|
49457
|
-
const _hoisted_2$d = { style: { "
|
|
49458
|
-
const _hoisted_3$b =
|
|
49459
|
-
const _hoisted_4$4 = {
|
|
49460
|
-
const _hoisted_5$3 = {
|
|
49461
|
-
const _hoisted_6$2 = {
|
|
49462
|
-
const _hoisted_7$2 =
|
|
49463
|
-
const _hoisted_8$2 = ["
|
|
49464
|
-
const _hoisted_9$1 = ["
|
|
49465
|
-
const _hoisted_10$1 = ["
|
|
49466
|
-
const _hoisted_11$1 = ["innerHTML"];
|
|
49602
|
+
const _hoisted_2$d = { style: { "position": "absolute", "z-index": "100", "top": "4px", "right": "4px" } };
|
|
49603
|
+
const _hoisted_3$b = { key: 2 };
|
|
49604
|
+
const _hoisted_4$4 = { class: "title" };
|
|
49605
|
+
const _hoisted_5$3 = { key: 3 };
|
|
49606
|
+
const _hoisted_6$2 = { class: "title" };
|
|
49607
|
+
const _hoisted_7$2 = ["title"];
|
|
49608
|
+
const _hoisted_8$2 = ["innerHTML"];
|
|
49609
|
+
const _hoisted_9$1 = ["target"];
|
|
49610
|
+
const _hoisted_10$1 = ["innerHTML"];
|
|
49467
49611
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49468
49612
|
const _component_Button = resolveComponent("Button");
|
|
49469
49613
|
const _component_Divider = resolveComponent("Divider");
|
|
@@ -49503,32 +49647,36 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49503
49647
|
animation: 500,
|
|
49504
49648
|
scroll: true,
|
|
49505
49649
|
group: "sort",
|
|
49506
|
-
|
|
49650
|
+
onStart: $options.start,
|
|
49651
|
+
onEnd: $options.end,
|
|
49652
|
+
style: { "display": "flex", "flex-flow": "row wrap" }
|
|
49507
49653
|
}, {
|
|
49508
49654
|
item: withCtx(({ element: column, index: index2 }) => [
|
|
49509
49655
|
createElementVNode("div", {
|
|
49510
|
-
style: normalizeStyle$1(
|
|
49656
|
+
style: normalizeStyle$1([
|
|
49657
|
+
{ "position": "relative", "min-height": "1px" },
|
|
49658
|
+
"flex: 0 0 " + $options.getWidth(column) + "%; max-width:" + $options.getWidth(column) + "%;" + (column._actived ? "border: dashed #ddd 1px; background-color: #ffefd5;" : "") + (index2 < $data.columns.length - 1 && $data.columns[index2 + 1].newLine ? "margin-right: " + $options.getRightWidth(index2) + "%" : "")
|
|
49659
|
+
]),
|
|
49511
49660
|
onMouseover: ($event) => $options.mouseover(column),
|
|
49512
49661
|
onMouseleave: ($event) => $options.mouseleave(column)
|
|
49513
49662
|
}, [
|
|
49514
49663
|
createElementVNode("div", _hoisted_2$d, [
|
|
49515
|
-
|
|
49664
|
+
column._editable ? (openBlock(), createBlock(_component_Button, {
|
|
49665
|
+
key: 0,
|
|
49516
49666
|
size: "small",
|
|
49517
49667
|
onClick: ($event) => $options.edit(column, index2),
|
|
49518
49668
|
icon: "md-cog",
|
|
49519
49669
|
type: "primary",
|
|
49520
49670
|
style: { "margin-right": "4px", "width": "22px", "height": "22px" }
|
|
49521
|
-
}, null, 8, ["onClick"]),
|
|
49522
|
-
[vShow, column.showButton]
|
|
49523
|
-
]),
|
|
49671
|
+
}, null, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
49524
49672
|
withDirectives(createVNode$1(_component_Button, {
|
|
49525
49673
|
size: "small",
|
|
49526
49674
|
onClick: ($event) => $options.remove(column, index2),
|
|
49527
49675
|
icon: "md-close",
|
|
49528
49676
|
type: "warning",
|
|
49529
|
-
style: { "
|
|
49677
|
+
style: { "width": "22px", "height": "22px" }
|
|
49530
49678
|
}, null, 8, ["onClick"]), [
|
|
49531
|
-
[vShow, column.
|
|
49679
|
+
[vShow, column._editable]
|
|
49532
49680
|
])
|
|
49533
49681
|
]),
|
|
49534
49682
|
column.controlType === "Placeholder" ? (openBlock(), createElementBlock("div", {
|
|
@@ -49540,11 +49688,10 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49540
49688
|
}, [
|
|
49541
49689
|
createElementVNode("div", {
|
|
49542
49690
|
class: "form-title",
|
|
49543
|
-
style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" })
|
|
49544
|
-
|
|
49545
|
-
}, null, 12, _hoisted_3$b)
|
|
49691
|
+
style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" })
|
|
49692
|
+
}, toDisplayString$1($options.getNameI18n(column)) + " " + toDisplayString$1(_ctx.showData($data.data, column)), 5)
|
|
49546
49693
|
])) : createCommentVNode("v-if", true),
|
|
49547
|
-
column.controlType === "Table" ? (openBlock(), createElementBlock("div",
|
|
49694
|
+
column.controlType === "Table" ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
49548
49695
|
createVNode$1(_component_Divider, {
|
|
49549
49696
|
plain: true,
|
|
49550
49697
|
dashed: "",
|
|
@@ -49552,7 +49699,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49552
49699
|
size: "small"
|
|
49553
49700
|
}, {
|
|
49554
49701
|
default: withCtx(() => [
|
|
49555
|
-
createElementVNode("span",
|
|
49702
|
+
createElementVNode("span", _hoisted_4$4, toDisplayString$1($options.getNameI18n(column)), 1)
|
|
49556
49703
|
]),
|
|
49557
49704
|
_: 2
|
|
49558
49705
|
}, 1024),
|
|
@@ -49563,7 +49710,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49563
49710
|
embedded: true
|
|
49564
49711
|
}, null, 8, ["view-code", "readonly"])
|
|
49565
49712
|
])) : createCommentVNode("v-if", true),
|
|
49566
|
-
column.controlType === "List" ? (openBlock(), createElementBlock("div",
|
|
49713
|
+
column.controlType === "List" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
49567
49714
|
createVNode$1(_component_Divider, {
|
|
49568
49715
|
plain: true,
|
|
49569
49716
|
dashed: "",
|
|
@@ -49571,7 +49718,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49571
49718
|
size: "small"
|
|
49572
49719
|
}, {
|
|
49573
49720
|
default: withCtx(() => [
|
|
49574
|
-
createElementVNode("span",
|
|
49721
|
+
createElementVNode("span", _hoisted_6$2, toDisplayString$1($options.getNameI18n(column)), 1)
|
|
49575
49722
|
]),
|
|
49576
49723
|
_: 2
|
|
49577
49724
|
}, 1024),
|
|
@@ -49583,9 +49730,10 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49583
49730
|
}, null, 8, ["view-code"])
|
|
49584
49731
|
])) : createCommentVNode("v-if", true),
|
|
49585
49732
|
column.controlType !== "Placeholder" && column.controlType !== "Title" && column.controlType !== "Table" && column.controlType !== "List" ? (openBlock(), createBlock(_component_FormItem, {
|
|
49586
|
-
label: column
|
|
49733
|
+
label: $options.getNameI18n(column),
|
|
49587
49734
|
prop: column.code,
|
|
49588
49735
|
key: column.code,
|
|
49736
|
+
rules: $options.getRules(column),
|
|
49589
49737
|
error: column.code == null ? _ctx.$t("Front_Label_Column_Not_Bind") : null
|
|
49590
49738
|
}, {
|
|
49591
49739
|
default: withCtx(() => [
|
|
@@ -49597,17 +49745,17 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49597
49745
|
createElementVNode("div", {
|
|
49598
49746
|
class: normalizeClass({ error: $data.compareData != null && _ctx.parseData($data.data, column.code) != _ctx.parseData($data.compareData, column.code) }),
|
|
49599
49747
|
innerHTML: _ctx.showData($data.data, column)
|
|
49600
|
-
}, null, 10,
|
|
49601
|
-
], 8,
|
|
49748
|
+
}, null, 10, _hoisted_8$2)
|
|
49749
|
+
], 8, _hoisted_7$2)) : createCommentVNode("v-if", true),
|
|
49602
49750
|
column.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
|
|
49603
49751
|
key: 2,
|
|
49604
|
-
href:
|
|
49752
|
+
href: "#",
|
|
49605
49753
|
target: column.isNewWindow ? "_blank" : ""
|
|
49606
49754
|
}, [
|
|
49607
49755
|
createElementVNode("span", {
|
|
49608
49756
|
innerHTML: _ctx.showData($data.data, column)
|
|
49609
|
-
}, null, 8,
|
|
49610
|
-
], 8,
|
|
49757
|
+
}, null, 8, _hoisted_10$1)
|
|
49758
|
+
], 8, _hoisted_9$1)) : column.controlType === "TextInput" ? (openBlock(), createBlock(_component_Input, {
|
|
49611
49759
|
key: 3,
|
|
49612
49760
|
type: "text",
|
|
49613
49761
|
"model-value": _ctx.parseData($data.data, column.code),
|
|
@@ -49958,11 +50106,11 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49958
50106
|
], 64)) : createCommentVNode("v-if", true)
|
|
49959
50107
|
]),
|
|
49960
50108
|
_: 2
|
|
49961
|
-
}, 1032, ["label", "prop", "error"])) : createCommentVNode("v-if", true)
|
|
50109
|
+
}, 1032, ["label", "prop", "rules", "error"])) : createCommentVNode("v-if", true)
|
|
49962
50110
|
], 44, _hoisted_1$f)
|
|
49963
50111
|
]),
|
|
49964
50112
|
_: 1
|
|
49965
|
-
}, 8, ["modelValue"])
|
|
50113
|
+
}, 8, ["modelValue", "onStart", "onEnd"])
|
|
49966
50114
|
]),
|
|
49967
50115
|
_: 1
|
|
49968
50116
|
}, 8, ["model"]),
|
|
@@ -125810,7 +125958,7 @@ const created = async (app) => {
|
|
|
125810
125958
|
window.$app.$Message = app.config.globalProperties.$Message;
|
|
125811
125959
|
window.$app.$Notice = app.config.globalProperties.$Notice;
|
|
125812
125960
|
}
|
|
125813
|
-
|
|
125961
|
+
store.dispatch("admin/i18n/load", app);
|
|
125814
125962
|
store.commit("admin/menu/setHeader", menuHeader);
|
|
125815
125963
|
store.dispatch("admin/account/load");
|
|
125816
125964
|
store.dispatch("admin/layout/listenFullscreen");
|