Commit 816d1c28 authored by wangxl's avatar wangxl

444

parent 317d1feb
......@@ -92,7 +92,7 @@ export default {
{ title: '单位', dataIndex: 'unitName', align: 'center' },
{ title: '用户名', dataIndex: 'username', align: 'center' },
{ title: '密码', dataIndex: 'password', align: 'center' },
{ title: '状态', scopedSlots: { customRender: 'stateSwitch' }, align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: '180px', },
],
excelCol: [
......@@ -121,9 +121,10 @@ export default {
if (user && user.roles) {
if (user.roles.indexOf("0") != -1) {
this.isTopGov = true
this.columns.splice(7, 0, { title: '状态', scopedSlots: { customRender: 'stateSwitch' }, align: 'center' },)
}
else {
this.columns.splice(8, 0, { title: '上报状态', scopedSlots: { customRender: 'reportState' }, align: 'center' })
this.columns.splice(7, 0, { title: '上报状态', scopedSlots: { customRender: 'reportState' }, align: 'center' })
}
}
this.getListByPage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment