参数收集自定义表头

This commit is contained in:
zyx.net
2023-04-06 13:52:45 +08:00
parent d187f79452
commit a24233cb76
2 changed files with 149 additions and 106 deletions
@@ -768,7 +768,7 @@
if (this.$route.query.it === undefined) {
// 页面跳转
paramsManifestid = this.$route.query.id
url = this.url.tableHeader
url = 'head/headCustomEO/list'
} else {
// 历史版本
paramsManifestid = this.$route.query.it
@@ -779,9 +779,18 @@
projectName:this.$route.query.projectName,
flag: '7'
}
var jsonHead = []
getAction(url, params).then((res) => {
if (res.success) {
var jsonHead = res.result
if(res.result && res.result.length > 0){
jsonHead = res.result
}else{
getAction(url, params).then((val) => {
if (val.success) {
jsonHead = val.result
}
})
}
this.columns = []
let num = 0
this.content = []
@@ -863,6 +872,11 @@
this.colIndexs.forEach((item)=>{
this.minWidthColumns.push([this.columns[item],500])
})
let checkedList = []
this.columns.forEach((item) => {
checkedList.push(item.dataIndex)
})
this.$emit('getcustomizeList',checkedList)
this.$forceUpdate()
}
})