[update] 调文档库的搜索,表头,新增
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user