mooho-base-admin-plus 0.4.12 → 0.4.13
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 +24 -12
- package/dist/mooho-base-admin-plus.min.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/form-setting.vue +4 -4
- package/src/components/view/modal-table.vue +7 -0
- package/src/components/view/view-table.vue +11 -1
- package/src/mixins/page.js +3 -1
- package/src/pages/system/apiLog.vue +2 -2
- package/src/pages/system/formView.vue +1 -1
|
@@ -19724,7 +19724,9 @@ var mixinPage = {
|
|
|
19724
19724
|
} else if (operator == "LessThanOrEqual") {
|
|
19725
19725
|
result2 = data2 <= value;
|
|
19726
19726
|
} else if (operator == "NotEqual") {
|
|
19727
|
-
result2 =
|
|
19727
|
+
result2 = value.split(",").every((item) => {
|
|
19728
|
+
return String(data2) != item;
|
|
19729
|
+
});
|
|
19728
19730
|
}
|
|
19729
19731
|
if (!result2) {
|
|
19730
19732
|
return false;
|
|
@@ -21468,14 +21470,14 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21468
21470
|
command: withCtx(({ row }) => [
|
|
21469
21471
|
createVNode$1(_component_Button, {
|
|
21470
21472
|
size: "small",
|
|
21471
|
-
title: _ctx.$("Front_Btn_Request"),
|
|
21473
|
+
title: _ctx.$t("Front_Btn_Request"),
|
|
21472
21474
|
type: "info",
|
|
21473
21475
|
"custom-icon": "fa fa-cloud-upload-alt",
|
|
21474
21476
|
onClick: ($event) => $options.openRequest(row)
|
|
21475
21477
|
}, null, 8, ["title", "onClick"]),
|
|
21476
21478
|
createVNode$1(_component_Button, {
|
|
21477
21479
|
size: "small",
|
|
21478
|
-
title: _ctx.$("Front_Btn_Response"),
|
|
21480
|
+
title: _ctx.$t("Front_Btn_Response"),
|
|
21479
21481
|
type: "info",
|
|
21480
21482
|
"custom-icon": "fa fa-cloud-download-alt",
|
|
21481
21483
|
onClick: ($event) => $options.openResponse(row)
|
|
@@ -22641,7 +22643,7 @@ const _sfc_main$19 = {
|
|
|
22641
22643
|
}
|
|
22642
22644
|
},
|
|
22643
22645
|
copy() {
|
|
22644
|
-
this.confirmInput("Front_Msg_Sure_To_Copy_Create_View", "Front_Label_View_Code", async () => {
|
|
22646
|
+
this.confirmInput("Front_Msg_Sure_To_Copy_Create_View", this.$t("Front_Label_View_Code"), async () => {
|
|
22645
22647
|
let dataView2 = await dataViewApi.copy(this.$refs.form.data.id, this.newCode);
|
|
22646
22648
|
this.$refs.form.open(dataView2);
|
|
22647
22649
|
this.$refs.table.loadData();
|
|
@@ -37357,7 +37359,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37357
37359
|
]);
|
|
37358
37360
|
}
|
|
37359
37361
|
var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
|
|
37360
|
-
var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-
|
|
37362
|
+
var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-66ecadb3]{display:flex}.image-group .image[data-v-66ecadb3]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-66ecadb3]{width:75px;height:75px}\n")();
|
|
37361
37363
|
var getColumns = (view, item) => {
|
|
37362
37364
|
let children = view.viewColumns.filter((i2) => {
|
|
37363
37365
|
return i2.parentCode == item.code;
|
|
@@ -37543,6 +37545,9 @@ const _sfc_main$q = {
|
|
|
37543
37545
|
},
|
|
37544
37546
|
pageSizeOpts: {
|
|
37545
37547
|
type: Array
|
|
37548
|
+
},
|
|
37549
|
+
spanMethod: {
|
|
37550
|
+
type: Function
|
|
37546
37551
|
}
|
|
37547
37552
|
},
|
|
37548
37553
|
computed: {
|
|
@@ -38510,7 +38515,10 @@ const _sfc_main$q = {
|
|
|
38510
38515
|
this.imageUrl = item;
|
|
38511
38516
|
this.preview = true;
|
|
38512
38517
|
},
|
|
38513
|
-
handleSpan({ row, column, rowIndex }) {
|
|
38518
|
+
handleSpan({ row, column, rowIndex, columnIndex }) {
|
|
38519
|
+
if (this.spanMethod != null) {
|
|
38520
|
+
return this.spanMethod(row, column, rowIndex, columnIndex);
|
|
38521
|
+
}
|
|
38514
38522
|
if (column.mergeSame) {
|
|
38515
38523
|
if (rowIndex != 0 && this.parseData(row, column.code) == this.parseData(this.data[rowIndex - 1], column.code)) {
|
|
38516
38524
|
return [0, 0];
|
|
@@ -39332,7 +39340,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39332
39340
|
], 2)
|
|
39333
39341
|
], 2);
|
|
39334
39342
|
}
|
|
39335
|
-
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
39343
|
+
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-66ecadb3"]]);
|
|
39336
39344
|
const _sfc_main$p = {
|
|
39337
39345
|
mixins: [mixinPage],
|
|
39338
39346
|
components: { columnSelect, columnEdit },
|
|
@@ -39528,7 +39536,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39528
39536
|
command: withCtx(({ row, index: index2 }) => [
|
|
39529
39537
|
createVNode$1(_component_Button, {
|
|
39530
39538
|
size: "small",
|
|
39531
|
-
title: _ctx.$("Front_Btn_Edit"),
|
|
39539
|
+
title: _ctx.$t("Front_Btn_Edit"),
|
|
39532
39540
|
type: "primary",
|
|
39533
39541
|
ghost: "",
|
|
39534
39542
|
"custom-icon": "fa fa-edit",
|
|
@@ -39536,7 +39544,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39536
39544
|
}, null, 8, ["title", "onClick"]),
|
|
39537
39545
|
createVNode$1(_component_Button, {
|
|
39538
39546
|
size: "small",
|
|
39539
|
-
title: _ctx.$("Front_Btn_Up"),
|
|
39547
|
+
title: _ctx.$t("Front_Btn_Up"),
|
|
39540
39548
|
type: "primary",
|
|
39541
39549
|
ghost: "",
|
|
39542
39550
|
"custom-icon": "fa fa-chevron-up",
|
|
@@ -39544,7 +39552,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39544
39552
|
}, null, 8, ["title", "onClick"]),
|
|
39545
39553
|
createVNode$1(_component_Button, {
|
|
39546
39554
|
size: "small",
|
|
39547
|
-
title: _ctx.$("Front_Btn_Down"),
|
|
39555
|
+
title: _ctx.$t("Front_Btn_Down"),
|
|
39548
39556
|
type: "primary",
|
|
39549
39557
|
ghost: "",
|
|
39550
39558
|
"custom-icon": "fa fa-chevron-down",
|
|
@@ -39552,7 +39560,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39552
39560
|
}, null, 8, ["title", "onClick"]),
|
|
39553
39561
|
createVNode$1(_component_Button, {
|
|
39554
39562
|
size: "small",
|
|
39555
|
-
title: _ctx.$("Front_Btn_Remove"),
|
|
39563
|
+
title: _ctx.$t("Front_Btn_Remove"),
|
|
39556
39564
|
type: "primary",
|
|
39557
39565
|
ghost: "",
|
|
39558
39566
|
"custom-icon": "fa fa-times",
|
|
@@ -47677,6 +47685,9 @@ const _sfc_main$l = {
|
|
|
47677
47685
|
},
|
|
47678
47686
|
beforeClose: {
|
|
47679
47687
|
type: Function
|
|
47688
|
+
},
|
|
47689
|
+
spanMethod: {
|
|
47690
|
+
type: Function
|
|
47680
47691
|
}
|
|
47681
47692
|
},
|
|
47682
47693
|
computed: {
|
|
@@ -47851,6 +47862,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47851
47862
|
"on-search": $props.onSearch,
|
|
47852
47863
|
"summary-method": $props.summaryMethod,
|
|
47853
47864
|
"page-size-opts": $props.pageSizeOpts,
|
|
47865
|
+
"span-method": $props.spanMethod,
|
|
47854
47866
|
onCreate: $options.create,
|
|
47855
47867
|
onEdit: $options.edit,
|
|
47856
47868
|
onOnReady: $options.onReady,
|
|
@@ -47902,7 +47914,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47902
47914
|
})
|
|
47903
47915
|
]),
|
|
47904
47916
|
_: 3
|
|
47905
|
-
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
47917
|
+
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
47906
47918
|
])
|
|
47907
47919
|
]),
|
|
47908
47920
|
_: 3
|