提交 34e126e5 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复表头开关显示错误的问题

上级 9e4d2038
......@@ -210,7 +210,7 @@ export default {
},
// 当前列表项
currentColumns() {
if (this.hasColumnsOptions && this.customColumns.length) {
if (this.hasColumnsOptions) {
return this.columns.map(column => {
const found = this.customColumns.find(item => item.prop === column.prop)
return { ...column, visible: found ? found.visible : true }
......@@ -235,7 +235,7 @@ export default {
let params = this.params
// 翻页参数设置
if (this.hasPagination) {
params.page = (this.page.currentPage).toString()
params.page = this.page.currentPage.toString()
params['per-page'] = this.page.size.toString()
}
// 接口请求之前
......
......@@ -42,7 +42,7 @@ export default {
{
name: '项目列表',
path: '/project',
icon: 'el-icon-box'
icon: 'el-icon-folder'
}
]
}
......
......@@ -59,23 +59,20 @@ export default {
{ label: '线下', value: '2' }
],
placeholder: '渠道类型'
}
],
moreFilters: [
},
{
label: '合同编码',
type: 'input',
prop: 'contract_code',
placeholder: '合同编码'
},
{
label: '合同状态',
type: 'select',
prop: 'contract_status',
options: [
{ label: '未上传', value: '1' },
{ label: '已上传', value: '2' }
]
],
placeholder: '合同状态'
}
],
columns: [
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论