mooho-base-admin-plus 2.0.49 → 2.0.50
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/package/mooho-base-admin-plus.min.esm.js +32 -6
- package/package/mooho-base-admin-plus.min.js +48 -48
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +8 -2
- package/src/components/view/modal-table.vue +6 -3
- package/src/components/view/view-form.vue +12 -0
- package/src/components/view/view-table.vue +16 -0
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<Button :size="size" custom-icon="fa fa-search" @click="dialogSelectOpen()"></Button>
|
|
15
15
|
</template>
|
|
16
16
|
</Input>
|
|
17
|
-
<modal-table ref="dialogTable" :view-code="source" :selectEnable="multi" check-cross-page="true" :footer-enable="multi" v-if="dialogActive">
|
|
17
|
+
<modal-table ref="dialogTable" :view-code="source" :selectEnable="multi" :check-cross-page="true" :footer-enable="multi" v-if="dialogActive">
|
|
18
18
|
<template #command="{ row }">
|
|
19
19
|
<Button size="small" v-if="!multi" type="primary" custom-icon="fa fa-check" @click="dialogCheck(row)">{{ $t('Front_Btn_Select') }}</Button>
|
|
20
20
|
</template>
|
|
@@ -225,7 +225,13 @@
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
if (this.param) {
|
|
229
|
+
this.$refs.dialogTable.open(this.param);
|
|
230
|
+
} else {
|
|
231
|
+
// 参数不完整
|
|
232
|
+
this.$refs.dialogTable.clear();
|
|
233
|
+
this.$refs.dialogTable.opened = true;
|
|
234
|
+
}
|
|
229
235
|
});
|
|
230
236
|
}
|
|
231
237
|
},
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
:static="this.static"
|
|
31
31
|
:filter="tableFilter"
|
|
32
32
|
:setting-enable="settingEnable"
|
|
33
|
+
:auto-load="false"
|
|
33
34
|
:select-enable="selectEnable"
|
|
34
|
-
:
|
|
35
|
-
:selectEnable="selectEnable"
|
|
36
|
-
:checkCrossPage="checkCrossPage"
|
|
35
|
+
:check-cross-page="checkCrossPage"
|
|
37
36
|
:tree-enable="treeEnable"
|
|
38
37
|
:tree-load="treeLoad"
|
|
39
38
|
:has-children="hasChildren"
|
|
@@ -481,6 +480,10 @@
|
|
|
481
480
|
selectAllCancel() {
|
|
482
481
|
this.setSelected([]);
|
|
483
482
|
},
|
|
483
|
+
// 清空数据
|
|
484
|
+
clear() {
|
|
485
|
+
this.$refs.table.clear();
|
|
486
|
+
},
|
|
484
487
|
// 拖拽完成
|
|
485
488
|
dragDrop(args) {
|
|
486
489
|
/**
|
|
@@ -1361,6 +1361,18 @@
|
|
|
1361
1361
|
this.setData(this.data, column.code, null);
|
|
1362
1362
|
// column.displayValue = null;
|
|
1363
1363
|
|
|
1364
|
+
// 触发
|
|
1365
|
+
column.triggers.forEach(item => {
|
|
1366
|
+
item.needClear = true;
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
} else if (column.controlType === 'DialogSelect' || column.controlType === 'MultiDialogSelect') {
|
|
1370
|
+
if (param == null) {
|
|
1371
|
+
// 参数不完整,清空数据
|
|
1372
|
+
column.dataSource = [];
|
|
1373
|
+
this.setData(this.data, column.code, null);
|
|
1374
|
+
// column.displayValue = null;
|
|
1375
|
+
|
|
1364
1376
|
// 触发
|
|
1365
1377
|
column.triggers.forEach(item => {
|
|
1366
1378
|
item.needClear = true;
|
|
@@ -1918,6 +1918,17 @@
|
|
|
1918
1918
|
this.setData(data, column.code, null);
|
|
1919
1919
|
// column.displayValue = null;
|
|
1920
1920
|
|
|
1921
|
+
// 触发
|
|
1922
|
+
column.triggers.forEach(item => {
|
|
1923
|
+
data._needClear[item.code] = true;
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
} else if (column.controlType === 'DialogSelect' || column.controlType === 'MultiDialogSelect') {
|
|
1927
|
+
if (param == null) {
|
|
1928
|
+
// 参数不完整,清空数据
|
|
1929
|
+
this.setData(data, column.code, null);
|
|
1930
|
+
// column.displayValue = null;
|
|
1931
|
+
|
|
1921
1932
|
// 触发
|
|
1922
1933
|
column.triggers.forEach(item => {
|
|
1923
1934
|
data._needClear[item.code] = true;
|
|
@@ -2468,6 +2479,11 @@
|
|
|
2468
2479
|
this.loadData(data);
|
|
2469
2480
|
}
|
|
2470
2481
|
},
|
|
2482
|
+
// 清空数据
|
|
2483
|
+
clear() {
|
|
2484
|
+
this.staticData = [];
|
|
2485
|
+
this.data = [];
|
|
2486
|
+
},
|
|
2471
2487
|
// 根据表达式取值(带其他)
|
|
2472
2488
|
parseDataWithOther(model, column) {
|
|
2473
2489
|
let expression = column.code;
|