mooho-base-admin-plus 0.4.9 → 0.4.12
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/mooho-base-admin-plus.min.esm.js +43 -38
- package/dist/mooho-base-admin-plus.min.js +37 -37
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/condition-edit.vue +1 -1
- package/src/components/view/modal-form.vue +1 -1
- package/src/components/view/table-setting.vue +3 -2
- package/src/components/view/view-form-draggable.vue +1 -1
- package/src/components/view/view-form.vue +6 -6
- package/src/components/view/view-table.vue +12 -7
- package/src/layouts/basic-layout/header-user/index.vue +3 -3
- package/src/pages/common/task-form.vue +1 -1
- package/src/pages/system/rolePropertyEdit.vue +9 -9
- package/src/pages/template/processPage.vue +1 -1
|
@@ -21309,7 +21309,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21309
21309
|
prop: "message",
|
|
21310
21310
|
rules: {
|
|
21311
21311
|
required: true,
|
|
21312
|
-
message: this
|
|
21312
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
21313
21313
|
trigger: "blur,change"
|
|
21314
21314
|
}
|
|
21315
21315
|
}, {
|
|
@@ -25124,43 +25124,43 @@ const _sfc_main$X = {
|
|
|
25124
25124
|
propertyName: {
|
|
25125
25125
|
type: "string",
|
|
25126
25126
|
required: true,
|
|
25127
|
-
message: this
|
|
25127
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25128
25128
|
trigger: "blur"
|
|
25129
25129
|
},
|
|
25130
25130
|
propertyCode: {
|
|
25131
25131
|
type: "string",
|
|
25132
25132
|
required: true,
|
|
25133
|
-
message: this
|
|
25133
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25134
25134
|
trigger: "blur"
|
|
25135
25135
|
},
|
|
25136
25136
|
dataType: {
|
|
25137
25137
|
type: "string",
|
|
25138
25138
|
required: true,
|
|
25139
|
-
message: this
|
|
25139
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25140
25140
|
trigger: "blur"
|
|
25141
25141
|
},
|
|
25142
25142
|
controlType: {
|
|
25143
25143
|
type: "string",
|
|
25144
25144
|
required: true,
|
|
25145
|
-
message: this
|
|
25145
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25146
25146
|
trigger: "blur"
|
|
25147
25147
|
},
|
|
25148
25148
|
source: {
|
|
25149
25149
|
type: "string",
|
|
25150
25150
|
required: true,
|
|
25151
|
-
message: this
|
|
25151
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25152
25152
|
trigger: "blur"
|
|
25153
25153
|
},
|
|
25154
25154
|
sourceDataCode: {
|
|
25155
25155
|
type: "string",
|
|
25156
25156
|
required: true,
|
|
25157
|
-
message: this
|
|
25157
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25158
25158
|
trigger: "blur"
|
|
25159
25159
|
},
|
|
25160
25160
|
sourceDisplayCode: {
|
|
25161
25161
|
type: "string",
|
|
25162
25162
|
required: true,
|
|
25163
|
-
message: this
|
|
25163
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25164
25164
|
trigger: "blur"
|
|
25165
25165
|
}
|
|
25166
25166
|
};
|
|
@@ -25177,13 +25177,13 @@ const _sfc_main$X = {
|
|
|
25177
25177
|
code: {
|
|
25178
25178
|
type: "string",
|
|
25179
25179
|
required: true,
|
|
25180
|
-
message: this
|
|
25180
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25181
25181
|
trigger: "blur,change"
|
|
25182
25182
|
},
|
|
25183
25183
|
val: {
|
|
25184
25184
|
type: "string",
|
|
25185
25185
|
required: true,
|
|
25186
|
-
message: this
|
|
25186
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
25187
25187
|
trigger: "blur,change"
|
|
25188
25188
|
}
|
|
25189
25189
|
};
|
|
@@ -28511,7 +28511,7 @@ const _sfc_main$O = {
|
|
|
28511
28511
|
expression: {
|
|
28512
28512
|
type: "string",
|
|
28513
28513
|
required: true,
|
|
28514
|
-
message: this
|
|
28514
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
28515
28515
|
trigger: "blur,change"
|
|
28516
28516
|
}
|
|
28517
28517
|
}
|
|
@@ -30085,7 +30085,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30085
30085
|
prop: "message",
|
|
30086
30086
|
rules: {
|
|
30087
30087
|
required: true,
|
|
30088
|
-
message: this
|
|
30088
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
30089
30089
|
trigger: "blur,change"
|
|
30090
30090
|
}
|
|
30091
30091
|
}, {
|
|
@@ -32645,14 +32645,14 @@ const _sfc_main$w = {
|
|
|
32645
32645
|
rules.push({
|
|
32646
32646
|
pattern: /.+/,
|
|
32647
32647
|
required: true,
|
|
32648
|
-
message: this
|
|
32648
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
32649
32649
|
trigger: this.getTrigger(column)
|
|
32650
32650
|
});
|
|
32651
32651
|
} else {
|
|
32652
32652
|
rules.push({
|
|
32653
32653
|
type: this.getDataType(column),
|
|
32654
32654
|
required: true,
|
|
32655
|
-
message: this
|
|
32655
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
32656
32656
|
trigger: this.getTrigger(column)
|
|
32657
32657
|
});
|
|
32658
32658
|
}
|
|
@@ -32661,7 +32661,7 @@ const _sfc_main$w = {
|
|
|
32661
32661
|
rules.push({
|
|
32662
32662
|
type: this.getDataType(column),
|
|
32663
32663
|
pattern: column.pattern,
|
|
32664
|
-
message: this.$t("Front_Msg_Validation_Pattern
|
|
32664
|
+
message: this.$t("Front_Msg_Validation_Pattern"),
|
|
32665
32665
|
trigger: this.getTrigger(column)
|
|
32666
32666
|
});
|
|
32667
32667
|
}
|
|
@@ -32669,7 +32669,7 @@ const _sfc_main$w = {
|
|
|
32669
32669
|
rules.push({
|
|
32670
32670
|
type: this.getDataType(column),
|
|
32671
32671
|
max: column.maxValue,
|
|
32672
|
-
message: this.$t("Front_Msg_Validation_Max_Value|" +
|
|
32672
|
+
message: this.$t("Front_Msg_Validation_Max_Value|" + column.maxValue),
|
|
32673
32673
|
trigger: this.getTrigger(column)
|
|
32674
32674
|
});
|
|
32675
32675
|
}
|
|
@@ -32677,7 +32677,7 @@ const _sfc_main$w = {
|
|
|
32677
32677
|
rules.push({
|
|
32678
32678
|
type: this.getDataType(column),
|
|
32679
32679
|
min: column.minValue,
|
|
32680
|
-
message: this.$t("Front_Msg_Validation_Min_Value|" +
|
|
32680
|
+
message: this.$t("Front_Msg_Validation_Min_Value|" + column.minValue),
|
|
32681
32681
|
trigger: this.getTrigger(column)
|
|
32682
32682
|
});
|
|
32683
32683
|
}
|
|
@@ -32685,7 +32685,7 @@ const _sfc_main$w = {
|
|
|
32685
32685
|
rules.push({
|
|
32686
32686
|
type: this.getDataType(column),
|
|
32687
32687
|
length: column.maxLength,
|
|
32688
|
-
message: this.$t("Front_Msg_Validation_Max_Length|" +
|
|
32688
|
+
message: this.$t("Front_Msg_Validation_Max_Length|" + column.maxLength),
|
|
32689
32689
|
trigger: this.getTrigger(column)
|
|
32690
32690
|
});
|
|
32691
32691
|
}
|
|
@@ -36434,8 +36434,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36434
36434
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.sort = $event),
|
|
36435
36435
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$refs.modal_sort.open())
|
|
36436
36436
|
}, {
|
|
36437
|
-
prepend: withCtx(() => [
|
|
36438
|
-
default: withCtx(() => [
|
|
36437
|
+
prepend: withCtx(() => [
|
|
36439
36438
|
createVNode$1(_component_Button, {
|
|
36440
36439
|
"custom-icon": "fa fa-edit",
|
|
36441
36440
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$refs.modal_sort.open())
|
|
@@ -37358,7 +37357,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37358
37357
|
]);
|
|
37359
37358
|
}
|
|
37360
37359
|
var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
|
|
37361
|
-
var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-
|
|
37360
|
+
var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-08df1208]{display:flex}.image-group .image[data-v-08df1208]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-08df1208]{width:75px;height:75px}\n")();
|
|
37362
37361
|
var getColumns = (view, item) => {
|
|
37363
37362
|
let children = view.viewColumns.filter((i2) => {
|
|
37364
37363
|
return i2.parentCode == item.code;
|
|
@@ -37424,7 +37423,8 @@ const _sfc_main$q = {
|
|
|
37424
37423
|
commandButtons: [],
|
|
37425
37424
|
preview: false,
|
|
37426
37425
|
imageUrl: null,
|
|
37427
|
-
isFullScreen: false
|
|
37426
|
+
isFullScreen: false,
|
|
37427
|
+
commandButtonParams: null
|
|
37428
37428
|
};
|
|
37429
37429
|
},
|
|
37430
37430
|
async created() {
|
|
@@ -38487,18 +38487,21 @@ const _sfc_main$q = {
|
|
|
38487
38487
|
clickCommandButton(row, commandButton) {
|
|
38488
38488
|
if (commandButton.viewType == "TableView") {
|
|
38489
38489
|
this.$refs.modalTable.init(commandButton.viewCode, async () => {
|
|
38490
|
-
|
|
38490
|
+
if (!!(commandButton.formViewCode || "").trim()) {
|
|
38491
|
+
this.$refs.modalForm.init(commandButton.formViewCode);
|
|
38492
|
+
}
|
|
38493
|
+
this.commandButtonParams = {};
|
|
38491
38494
|
if (!!(commandButton.params || "").trim()) {
|
|
38492
38495
|
let commandButtonParams = JSON.parse(commandButton.params);
|
|
38493
38496
|
for (let i2 = 0; i2 < commandButtonParams.length; i2++) {
|
|
38494
38497
|
let value = this.parseData(row, commandButtonParams[i2].value);
|
|
38495
|
-
|
|
38498
|
+
this.commandButtonParams[commandButtonParams[i2].param] = value;
|
|
38496
38499
|
}
|
|
38497
38500
|
}
|
|
38498
|
-
this.$refs.modalTable.open(
|
|
38501
|
+
this.$refs.modalTable.open(this.commandButtonParams);
|
|
38499
38502
|
});
|
|
38500
38503
|
} else {
|
|
38501
|
-
this.$refs.modalForm.init(commandButton.
|
|
38504
|
+
this.$refs.modalForm.init(commandButton.formViewCode, async () => {
|
|
38502
38505
|
this.$refs.modalForm.open(row);
|
|
38503
38506
|
});
|
|
38504
38507
|
}
|
|
@@ -39246,12 +39249,14 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39246
39249
|
}, null, 8, ["onSave"])) : createCommentVNode("", true),
|
|
39247
39250
|
$data.inited ? (openBlock(), createBlock(_component_modal_table, {
|
|
39248
39251
|
key: 4,
|
|
39249
|
-
ref: "modalTable"
|
|
39252
|
+
ref: "modalTable",
|
|
39253
|
+
onCreate: _cache[8] || (_cache[8] = ($event) => _ctx.$refs.modalForm.openDefault($data.commandButtonParams)),
|
|
39254
|
+
onEdit: _cache[9] || (_cache[9] = ({ row, index: index2 }) => _ctx.$refs.modalForm.open(row))
|
|
39250
39255
|
}, null, 512)) : createCommentVNode("", true),
|
|
39251
39256
|
$data.inited ? (openBlock(), createBlock(_component_modal_form, {
|
|
39252
39257
|
key: 5,
|
|
39253
39258
|
ref: "modalForm",
|
|
39254
|
-
|
|
39259
|
+
onOnAfterSave: _cache[10] || (_cache[10] = ($event) => _ctx.$refs.modalTable.loadData())
|
|
39255
39260
|
}, null, 512)) : createCommentVNode("", true),
|
|
39256
39261
|
$data.inited ? (openBlock(), createBlock(_component_modal_table, {
|
|
39257
39262
|
key: 6,
|
|
@@ -39264,7 +39269,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39264
39269
|
createVNode$1(_component_Button, {
|
|
39265
39270
|
type: "primary",
|
|
39266
39271
|
"custom-icon": "fa fa-save",
|
|
39267
|
-
onClick: _cache[
|
|
39272
|
+
onClick: _cache[11] || (_cache[11] = ($event) => $options.batchSave())
|
|
39268
39273
|
}, {
|
|
39269
39274
|
default: withCtx(() => [
|
|
39270
39275
|
createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Save")), 1)
|
|
@@ -39274,7 +39279,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39274
39279
|
createVNode$1(_component_Button, {
|
|
39275
39280
|
type: "default",
|
|
39276
39281
|
"custom-icon": "fa fa-times",
|
|
39277
|
-
onClick: _cache[
|
|
39282
|
+
onClick: _cache[12] || (_cache[12] = ($event) => _ctx.$refs.batchEditTable.close())
|
|
39278
39283
|
}, {
|
|
39279
39284
|
default: withCtx(() => [
|
|
39280
39285
|
createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Close")), 1)
|
|
@@ -39287,7 +39292,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39287
39292
|
createVNode$1(_component_Modal, {
|
|
39288
39293
|
title: _ctx.$t("Front_Label_Preview"),
|
|
39289
39294
|
modelValue: $data.preview,
|
|
39290
|
-
"onUpdate:modelValue": _cache[
|
|
39295
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.preview = $event),
|
|
39291
39296
|
scrollable: "",
|
|
39292
39297
|
"mask-closable": _ctx.layout.maskClosable,
|
|
39293
39298
|
draggable: _ctx.layout.draggable,
|
|
@@ -39299,7 +39304,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39299
39304
|
createVNode$1(_component_Button, {
|
|
39300
39305
|
type: "default",
|
|
39301
39306
|
"custom-icon": "fa fa-times",
|
|
39302
|
-
onClick: _cache[
|
|
39307
|
+
onClick: _cache[13] || (_cache[13] = ($event) => $data.preview = false)
|
|
39303
39308
|
}, {
|
|
39304
39309
|
default: withCtx(() => [
|
|
39305
39310
|
createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Close")), 1)
|
|
@@ -39327,7 +39332,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39327
39332
|
], 2)
|
|
39328
39333
|
], 2);
|
|
39329
39334
|
}
|
|
39330
|
-
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
39335
|
+
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-08df1208"]]);
|
|
39331
39336
|
const _sfc_main$p = {
|
|
39332
39337
|
mixins: [mixinPage],
|
|
39333
39338
|
components: { columnSelect, columnEdit },
|
|
@@ -46132,7 +46137,7 @@ const _sfc_main$o = {
|
|
|
46132
46137
|
return result2;
|
|
46133
46138
|
},
|
|
46134
46139
|
getDataSource(data2, column) {
|
|
46135
|
-
if (column.
|
|
46140
|
+
if (!column.isStaticItem && column.dataType.indexOf("Enum:") === 0) {
|
|
46136
46141
|
return this.getEnumList(column.dataType.split(":")[1]);
|
|
46137
46142
|
} else {
|
|
46138
46143
|
return column.dataSource == null ? [] : column.dataSource;
|
|
@@ -47479,7 +47484,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47479
47484
|
footer: withCtx(() => [
|
|
47480
47485
|
createElementVNode("div", null, [
|
|
47481
47486
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
47482
|
-
$options.canSave() && $props.saveEnable ? (openBlock(), createBlock(_component_Button, {
|
|
47487
|
+
$options.canSave() && $props.saveEnable && !$data.formView.editEnable ? (openBlock(), createBlock(_component_Button, {
|
|
47483
47488
|
key: 0,
|
|
47484
47489
|
type: "primary",
|
|
47485
47490
|
"custom-icon": "fa fa-save",
|
|
@@ -49336,19 +49341,19 @@ const _sfc_main$5 = {
|
|
|
49336
49341
|
oldPwd: {
|
|
49337
49342
|
type: "string",
|
|
49338
49343
|
required: true,
|
|
49339
|
-
message: this
|
|
49344
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
49340
49345
|
trigger: "blur,change"
|
|
49341
49346
|
},
|
|
49342
49347
|
newPwd: {
|
|
49343
49348
|
type: "string",
|
|
49344
49349
|
required: true,
|
|
49345
|
-
message: this
|
|
49350
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
49346
49351
|
trigger: "blur,change"
|
|
49347
49352
|
},
|
|
49348
49353
|
checkPwd: {
|
|
49349
49354
|
type: "string",
|
|
49350
49355
|
required: true,
|
|
49351
|
-
message: this
|
|
49356
|
+
message: this.$t("Front_Msg_Please_Input"),
|
|
49352
49357
|
trigger: "blur,change"
|
|
49353
49358
|
}
|
|
49354
49359
|
}
|