Commit 23f0b138 by chenwq

跳转到sop后,人群和标签的显示

1 parent 8c91c993
...@@ -301,6 +301,8 @@ export default { ...@@ -301,6 +301,8 @@ export default {
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
if (this.routeInfo.addOrEdit == 'edit') { if (this.routeInfo.addOrEdit == 'edit') {
this.getInfo() this.getInfo()
} else if (this.routeInfo.info) {
this.setCustomer()
} }
}, },
...@@ -394,6 +396,15 @@ export default { ...@@ -394,6 +396,15 @@ export default {
} }
}, },
setCustomer() {
this.editForm.customerOptType = this.routeInfo.info.customerOptType
if (this.routeInfo.info.customerOptType) {
this.currentCustomerIdx = this.customerDataList.findIndex(item => item.confId == this.editForm.customerOptType)
this.editForm[this.customerDataList[this.currentCustomerIdx].reqListName] = this.routeInfo.info[this.customerDataList[this.currentCustomerIdx].reqListName]
this.recoverCustomerList()
}
},
getInfo() { getInfo() {
this.$apis.sop.getSopInfoDetailApi({ sopId: this.routeInfo.id }).then(res => { this.$apis.sop.getSopInfoDetailApi({ sopId: this.routeInfo.id }).then(res => {
// console.log(res) // console.log(res)
......
...@@ -127,17 +127,14 @@ export default { ...@@ -127,17 +127,14 @@ export default {
this.crowdList.forEach((item, index) => { this.crowdList.forEach((item, index) => {
item.idx = index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1 item.idx = index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1
}) })
this.selectedCrowdList.length && (this.selectedCrowdId = this.selectedCrowdList[0].crowdId) this.selectedCrowdList.length && (this.selectedCrowdId = +this.selectedCrowdList[0].crowdId)
// this.recoverySelected()
this.$refs.crowdRef.tableHeightValues = '460px' this.$refs.crowdRef.tableHeightValues = '460px'
}) })
}, },
setTableFinishFun() { setTableFinishFun() {
this.crowdList = this.$refs.crowdRef.data this.crowdList = this.$refs.crowdRef.data
// this.recoverySelected()
//接收到的数据为空 //接收到的数据为空
// this.$refs.crowdRef.tableHeightValues = this.$refs.crowdRef.data.length ? '' : '400px'
this.$refs.crowdRef.tableHeightValues = '460px' this.$refs.crowdRef.tableHeightValues = '460px'
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!