[update] 调文档库的搜索,表头,新增

This commit is contained in:
lideqin
2023-08-25 17:53:44 +08:00
parent 59e68f795b
commit c4caed0e3f
9 changed files with 596 additions and 592 deletions
+6 -5
View File
@@ -3,6 +3,7 @@
*/
import { getAction, postAction } from '@api/manage'
import { isHasPermission } from '../utils/hasPermission'
import { getTableHeader } from '@api/api'
// 模拟接口返回的表头数据
const TempApiReturnColumns = [
@@ -57,7 +58,7 @@ export const ConfigurableTableMixin = {
fixed: 'right',
scopedSlots: { customRender: 'operation' }
},
type: '', // 这个字段不知道什么含义
// type: '', // 这个字段不知道什么含义
filters: {}, // 固定的搜索条件
needFilterTableBtn: true // 是否需要过滤没有权限的按钮
}
@@ -99,7 +100,7 @@ export const ConfigurableTableMixin = {
this.columns = this.dealColumns(TempApiReturnColumns)
return
}
const params = { flag: this.flag }
const params = { module: this.flag }
getAction(this.url.tableHeader, params).then(res => {
if (res.success) {
this.columns = this.dealColumns(res.result || [])
@@ -131,8 +132,8 @@ export const ConfigurableTableMixin = {
// 是否可排序
item.sorter = item.sort === 'true'
item.width = 215
item.title = item.db_field_txt
item.dataIndex = item.db_field_name
item.title = item.dbFieldTxt
item.dataIndex = item.dbFieldName
item.align = 'left'
tempColumns.push(item)
})
@@ -170,7 +171,7 @@ export const ConfigurableTableMixin = {
...this.searchParams,
orderBy: this.orderBy,
orderByField: this.orderByField,
type: this.type,
module: this.flag,
pageNo: pageNo,
pageSize: pageSize
}