参数收集自定义表头
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user