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
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<modal-table ref="table" :static="true" :setting-enable="false" :footer-enable="true" :draggable="true" :sticky="true" @on-drag-drop="dragDrop" v-if="active">
|
|
4
4
|
<template #command="{ row, index }">
|
|
5
|
-
<Button size="small" :title="$('Front_Btn_Edit')" type="primary" ghost custom-icon="fa fa-edit" @click="edit(row, index)"></Button>
|
|
6
|
-
<Button size="small" :title="$('Front_Btn_Up')" type="primary" ghost custom-icon="fa fa-chevron-up" @click="up(row, index)"></Button>
|
|
7
|
-
<Button size="small" :title="$('Front_Btn_Down')" type="primary" ghost custom-icon="fa fa-chevron-down" @click="down(row, index)"></Button>
|
|
8
|
-
<Button size="small" :title="$('Front_Btn_Remove')" type="primary" ghost custom-icon="fa fa-times" @click="remove(row, index)"></Button>
|
|
5
|
+
<Button size="small" :title="$t('Front_Btn_Edit')" type="primary" ghost custom-icon="fa fa-edit" @click="edit(row, index)"></Button>
|
|
6
|
+
<Button size="small" :title="$t('Front_Btn_Up')" type="primary" ghost custom-icon="fa fa-chevron-up" @click="up(row, index)"></Button>
|
|
7
|
+
<Button size="small" :title="$t('Front_Btn_Down')" type="primary" ghost custom-icon="fa fa-chevron-down" @click="down(row, index)"></Button>
|
|
8
|
+
<Button size="small" :title="$t('Front_Btn_Remove')" type="primary" ghost custom-icon="fa fa-times" @click="remove(row, index)"></Button>
|
|
9
9
|
</template>
|
|
10
10
|
<template #footer>
|
|
11
11
|
<Button type="primary" ghost custom-icon="fa fa-eye" @click="layoutMode">{{ $t('Front_Btn_Preview_Mode') }}</Button>
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
:on-search="onSearch"
|
|
47
47
|
:summary-method="summaryMethod"
|
|
48
48
|
:page-size-opts="pageSizeOpts"
|
|
49
|
+
:span-method="spanMethod"
|
|
49
50
|
@create="create"
|
|
50
51
|
@edit="edit"
|
|
51
52
|
@on-ready="onReady"
|
|
@@ -305,6 +306,12 @@
|
|
|
305
306
|
*/
|
|
306
307
|
beforeClose: {
|
|
307
308
|
type: Function
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* 合并单元格的配置
|
|
312
|
+
*/
|
|
313
|
+
spanMethod: {
|
|
314
|
+
type: Function
|
|
308
315
|
}
|
|
309
316
|
},
|
|
310
317
|
computed: {
|
|
@@ -772,6 +772,12 @@
|
|
|
772
772
|
*/
|
|
773
773
|
pageSizeOpts: {
|
|
774
774
|
type: Array
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* 合并单元格的配置
|
|
778
|
+
*/
|
|
779
|
+
spanMethod: {
|
|
780
|
+
type: Function
|
|
775
781
|
}
|
|
776
782
|
},
|
|
777
783
|
computed: {
|
|
@@ -2195,7 +2201,11 @@
|
|
|
2195
2201
|
this.preview = true;
|
|
2196
2202
|
},
|
|
2197
2203
|
// 合并单元格方法
|
|
2198
|
-
handleSpan({ row, column, rowIndex }) {
|
|
2204
|
+
handleSpan({ row, column, rowIndex, columnIndex }) {
|
|
2205
|
+
if (this.spanMethod != null) {
|
|
2206
|
+
return this.spanMethod(row, column, rowIndex, columnIndex);
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2199
2209
|
if (column.mergeSame) {
|
|
2200
2210
|
if (rowIndex != 0 && this.parseData(row, column.code) == this.parseData(this.data[rowIndex - 1], column.code)) {
|
|
2201
2211
|
return [0, 0];
|
package/src/mixins/page.js
CHANGED
|
@@ -521,7 +521,9 @@ export default {
|
|
|
521
521
|
} else if (operator == 'LessThanOrEqual') {
|
|
522
522
|
result = data <= value;
|
|
523
523
|
} else if (operator == 'NotEqual') {
|
|
524
|
-
result =
|
|
524
|
+
result = value.split(',').every(item => {
|
|
525
|
+
return String(data) != item;
|
|
526
|
+
});
|
|
525
527
|
}
|
|
526
528
|
|
|
527
529
|
if (!result) {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
7
|
<view-table ref="table" view-code="ApiLog">
|
|
8
8
|
<template #command="{ row }">
|
|
9
|
-
<Button size="small" :title="$('Front_Btn_Request')" type="info" custom-icon="fa fa-cloud-upload-alt" @click="openRequest(row)"></Button>
|
|
10
|
-
<Button size="small" :title="$('Front_Btn_Response')" type="info" custom-icon="fa fa-cloud-download-alt" @click="openResponse(row)"></Button>
|
|
9
|
+
<Button size="small" :title="$t('Front_Btn_Request')" type="info" custom-icon="fa fa-cloud-upload-alt" @click="openRequest(row)"></Button>
|
|
10
|
+
<Button size="small" :title="$t('Front_Btn_Response')" type="info" custom-icon="fa fa-cloud-download-alt" @click="openResponse(row)"></Button>
|
|
11
11
|
</template>
|
|
12
12
|
</view-table>
|
|
13
13
|
</Card>
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
copy() {
|
|
105
105
|
this.confirmInput(
|
|
106
106
|
'Front_Msg_Sure_To_Copy_Create_View',
|
|
107
|
-
'Front_Label_View_Code',
|
|
107
|
+
this.$t('Front_Label_View_Code'),
|
|
108
108
|
async () => {
|
|
109
109
|
let dataView = await dataViewApi.copy(this.$refs.form.data.id, this.newCode);
|
|
110
110
|
this.$refs.form.open(dataView);
|