待办中心-项目参数任务

This commit is contained in:
zyn
2023-02-07 16:09:15 +08:00
parent 48ba42af7f
commit babe670441
@@ -3,7 +3,7 @@
<div class="box"> <div class="box">
<!-- --> <!-- -->
<a-table <a-table
:components="drag(columns,'columns',JSON.parse(JSON.stringify([[columns[3],500]])))" :components="drag(columns,'columns',JSON.parse(JSON.stringify(minWidthColumns)))"
class="table" class="table"
rowKey="id" rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -352,6 +352,8 @@
// } // }
// } // }
return { return {
colIndexs:[],
minWidthColumns:[],
token: Vue.ls.get(ACCESS_TOKEN), token: Vue.ls.get(ACCESS_TOKEN),
jsonBody: [], jsonBody: [],
checkboxList: [], checkboxList: [],
@@ -841,8 +843,15 @@
} }
} }
} }
if(res.isLock && res.isLock === '0'){
this.colIndexs.push(index)
}
}) })
this.columns = [...this.columns] this.columns = [...this.columns]
this.colIndexs.forEach((item)=>{
this.minWidthColumns.push([this.columns[item],500])
})
this.$forceUpdate() this.$forceUpdate()
} }
}) })