vue2-client 1.8.445 → 1.8.447
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.json +1 -1
- package/src/base-client/components/common/XAddReport/XAddReport.vue +16 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +7 -0
- package/src/base-client/components/common/XTree/XTreePro.vue +3 -0
- package/src/base-client/components/layout/XTreeView/XTreeView.vue +3 -0
package/package.json
CHANGED
|
@@ -110,7 +110,22 @@ export default {
|
|
|
110
110
|
console.info('执行自定义确认逻辑')
|
|
111
111
|
const result = executeStrFunctionByContext(this, this.$refs.main?.config?.confirmFunction, [])
|
|
112
112
|
if (result instanceof Promise) {
|
|
113
|
-
result.then(() => {
|
|
113
|
+
result.then((res) => {
|
|
114
|
+
let message = '操作成功'
|
|
115
|
+
let messageType = 'success'
|
|
116
|
+
// 如果传递了组件名字 自动调用刷新
|
|
117
|
+
if (res?.name) {
|
|
118
|
+
this.getComponentByName(res.name).refresh()
|
|
119
|
+
}
|
|
120
|
+
// 如果传递了提示信息自动调用提示
|
|
121
|
+
if (res?.message) {
|
|
122
|
+
message = res.message
|
|
123
|
+
}
|
|
124
|
+
// 如果传递消息类型 自动调用消息
|
|
125
|
+
if (res?.messageType) {
|
|
126
|
+
messageType = res.messageType
|
|
127
|
+
}
|
|
128
|
+
this.$message[messageType](message)
|
|
114
129
|
this.close()
|
|
115
130
|
})
|
|
116
131
|
} else {
|
|
@@ -571,6 +571,13 @@ export default {
|
|
|
571
571
|
refreshTable (toFirstPage = true) {
|
|
572
572
|
this.$refs.xTable.refresh(toFirstPage)
|
|
573
573
|
},
|
|
574
|
+
/**
|
|
575
|
+
* 刷新表格
|
|
576
|
+
* @param toFirstPage 是否到第一页
|
|
577
|
+
*/
|
|
578
|
+
refresh (toFirstPage = true) {
|
|
579
|
+
this.$refs.xTable.refresh(toFirstPage)
|
|
580
|
+
},
|
|
574
581
|
/**
|
|
575
582
|
* 获取表格数据
|
|
576
583
|
*/
|
|
@@ -306,6 +306,9 @@ export default {
|
|
|
306
306
|
// console.log(deepestNodes, checkedKeys)
|
|
307
307
|
this.$emit('treeOnChecked', checkedKeys, checkedNodes, checkedKeys)
|
|
308
308
|
},
|
|
309
|
+
refresh () {
|
|
310
|
+
this.getData(this.searchInfo)
|
|
311
|
+
},
|
|
309
312
|
reLoad () {
|
|
310
313
|
this.getData(this.searchInfo)
|
|
311
314
|
},
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
action (record, id, actionType, fun = 'action') {
|
|
94
94
|
this.$emit(fun, record, id, actionType)
|
|
95
95
|
},
|
|
96
|
+
refresh () {
|
|
97
|
+
this.$refs.xtree.refresh()
|
|
98
|
+
},
|
|
96
99
|
treeOnChecked (checkedKeys, deepNodes, deepKeys) {
|
|
97
100
|
this.$emit('treeOnChecked', checkedKeys, deepNodes, deepKeys)
|
|
98
101
|
},
|