bug修复
This commit is contained in:
parent
0b52be1b32
commit
cb965ce550
|
|
@ -577,6 +577,9 @@ export default {
|
||||||
wholeTypeItemsList: [],
|
wholeTypeItemsList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.GetDeviceTypeTree()
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
await this.GetUserInfo()
|
await this.GetUserInfo()
|
||||||
|
|
||||||
|
|
@ -620,7 +623,7 @@ export default {
|
||||||
await this.GetTaskDetail(this.taskId)
|
await this.GetTaskDetail(this.taskId)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
await this.GetDeviceTypeTree()
|
// await this.GetDeviceTypeTree()
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(typeof(this.isEdit))
|
// console.log(typeof(this.isEdit))
|
||||||
|
|
@ -669,6 +672,7 @@ export default {
|
||||||
}
|
}
|
||||||
getDeviceTypeTree(params).then((res) => {
|
getDeviceTypeTree(params).then((res) => {
|
||||||
this.deviceTypeTree = res.data
|
this.deviceTypeTree = res.data
|
||||||
|
console.log('🚀 ~ getDeviceTypeTree ~ this.deviceTypeTree:', this.deviceTypeTree)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getParentsById(list, id) {
|
getParentsById(list, id) {
|
||||||
|
|
@ -730,7 +734,7 @@ export default {
|
||||||
|
|
||||||
// 获取 任务详情数据
|
// 获取 任务详情数据
|
||||||
async GetTaskDetail(taskId) {
|
async GetTaskDetail(taskId) {
|
||||||
await this.GetDeviceTypeTree()
|
// await this.GetDeviceTypeTree()
|
||||||
await getLeaseApplyListAll({ taskId }).then((res) => {
|
await getLeaseApplyListAll({ taskId }).then((res) => {
|
||||||
const data = res.rows[0]
|
const data = res.rows[0]
|
||||||
|
|
||||||
|
|
@ -764,9 +768,12 @@ export default {
|
||||||
// selectList.push(this.getParentsById(this.deviceTypeTree, e.typeId))
|
// selectList.push(this.getParentsById(this.deviceTypeTree, e.typeId))
|
||||||
// })
|
// })
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
console.log('🚀 ~ this.$nextTick ~ this.deviceTypeTree:', this.deviceTypeTree)
|
||||||
let selectList = []
|
let selectList = []
|
||||||
for (let i = 0; i < this.leaseApplyDetails.length; i++) {
|
for (let i = 0; i < this.leaseApplyDetails.length; i++) {
|
||||||
selectList.push(this.getParentsById(this.deviceTypeTree, this.leaseApplyDetails[i].typeId))
|
const node = this.getParentsById(this.deviceTypeTree, this.leaseApplyDetails[i].typeId)
|
||||||
|
console.log('🚀 ~ this.$nextTick ~ node:', node)
|
||||||
|
selectList.push(node)
|
||||||
|
|
||||||
}
|
}
|
||||||
this.deviceType = selectList
|
this.deviceType = selectList
|
||||||
|
|
@ -780,7 +787,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 驳回提交 任务详情数据
|
// 驳回提交 任务详情数据
|
||||||
async GetTaskDetail2(taskId) {
|
async GetTaskDetail2(taskId) {
|
||||||
await this.GetDeviceTypeTree()
|
// await this.GetDeviceTypeTree()
|
||||||
const res = await getLeaseApplyAuditListAll({ taskId })
|
const res = await getLeaseApplyAuditListAll({ taskId })
|
||||||
|
|
||||||
const data = res.rows[0]
|
const data = res.rows[0]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue