上报库自定义表头修改

This commit is contained in:
zyx.net
2023-04-07 14:00:14 +08:00
parent 043a5e09b8
commit 43e39f810d
2 changed files with 17 additions and 7 deletions
@@ -587,7 +587,10 @@
this.content = [] this.content = []
let checkedList = [] let checkedList = []
jsonHead.forEach((res, index) => { jsonHead.forEach((res, index) => {
checkedList.push(res.dataIndex) if(res.headFieldCn == '操作'){
res.field = 'operation'
}
checkedList.push(res.field)
// 配置列 // 配置列
if (res.type) { if (res.type) {
this.columns.push({ this.columns.push({
@@ -674,7 +677,10 @@
this.content = [] this.content = []
let checkedList = [] let checkedList = []
jsonHead.forEach((res, index) => { jsonHead.forEach((res, index) => {
checkedList.push(res.dataIndex) if(res.headFieldCn == '操作'){
res.field = 'operation'
}
checkedList.push(res.field)
// 配置列 // 配置列
if (res.type) { if (res.type) {
this.columns.push({ this.columns.push({
@@ -389,15 +389,14 @@
getcustomizeList(item){ getcustomizeList(item){
let params = { let params = {
paramsManifestId: this.$route.query.id, paramsManifestId: this.$route.query.id,
projectName:this.$route.query.projectName, flag: '8'
flag: '7'
} }
getAction('params/collectManifest/getHeader', params).then((res) => { getAction('report/detail/getHeader', params).then((res) => {
if (res.success) { if (res.success) {
let List = [] let List = []
let sList = [] let sList = []
res.result.forEach((item,index) => { res.result.forEach((item,index) => {
if(!item.isLock){ if(!item.type){
if(item.headFieldCn == '操作'){ if(item.headFieldCn == '操作'){
item.field = 'operation' item.field = 'operation'
item.disabled = true item.disabled = true
@@ -406,7 +405,7 @@
} }
List.push(item) List.push(item)
} }
if(item.isLock) { if(item.type) {
sList.push(item) sList.push(item)
} }
}) })
@@ -929,4 +928,9 @@ popconfirmmize {
::v-deep .ant-popover-buttons { ::v-deep .ant-popover-buttons {
display: none !important; display: none !important;
} }
</style>
<style lang='less'>
.popconfirm .ant-popover-message-title {
margin-bottom: 50px;
}
</style> </style>