update 文档拆分详情修改

This commit is contained in:
赵霄
2023-09-15 18:04:00 +08:00
parent acfc345cd0
commit 838bf6d651
5 changed files with 191 additions and 506 deletions
+17 -2
View File
@@ -30,6 +30,7 @@ export const ConfigurableTableMixin = {
},
columns: [],
selectedRowKeys: [],
selectionRows: [],
dataSource: [],
isTrue: false, // 是否显示
searchParams: {},
@@ -209,8 +210,9 @@ export const ConfigurableTableMixin = {
this.ipagination = pagination
this.loadData(1)
},
onSelectChange (selectedRowKeys) {
onSelectChange (selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys
this.selectionRows = selectionRows
},
/* 导入 */
handleImportExcel (info) {
@@ -384,7 +386,7 @@ export const ConfigurableTableMixin = {
content: this.$t('deleteAData'),
onOk: () => {
this.loading = true
postAction(this.url.delete, { ids: ids }).then((res) => {
postAction(this.url.deleteBatch, { ids: ids }).then((res) => {
if (res.success) {
// 重新计算分页问题
this.reCalculatePage(this.selectedRowKeys.length)
@@ -458,9 +460,22 @@ export const ConfigurableTableMixin = {
},
onClearSelected () {
this.selectedRowKeys = []
this.selectionRows = []
},
handleImportByFileId (fileId) {
// TODO 完善通过文件id上传文件的方法
},
/**
* 循环操作按钮的操作
* @param operation
* @param record
*/
operationClick (operation, record) {
if (operation.clickEvent === 'handleDelete') {
this.handleDelete(record.id)
} else {
this[operation.clickEvent](record)
}
}
}
}