bug修复
This commit is contained in:
parent
cb965ce550
commit
da5dd1e76e
|
|
@ -577,9 +577,6 @@ export default {
|
|||
wholeTypeItemsList: [],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.GetDeviceTypeTree()
|
||||
},
|
||||
async mounted() {
|
||||
await this.GetUserInfo()
|
||||
|
||||
|
|
@ -591,7 +588,7 @@ export default {
|
|||
|
||||
await this.getHoldingPoleSelListData()
|
||||
|
||||
// this.GetDeviceTypeTree()
|
||||
await this.GetDeviceTypeTree()
|
||||
// this.getList();
|
||||
if (this.$route.query.taskId && !this.$route.query.isBack) {
|
||||
console.log('查看')
|
||||
|
|
@ -670,10 +667,18 @@ export default {
|
|||
const params = {
|
||||
level: 4,
|
||||
}
|
||||
getDeviceTypeTree(params).then((res) => {
|
||||
this.deviceTypeTree = res.data
|
||||
console.log('🚀 ~ getDeviceTypeTree ~ this.deviceTypeTree:', this.deviceTypeTree)
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '加载中...',
|
||||
})
|
||||
try {
|
||||
const res = await getDeviceTypeTree(params)
|
||||
this.deviceTypeTree = res.data
|
||||
loading.close()
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ GetDeviceTypeTree ~ error:', error)
|
||||
loading.close()
|
||||
}
|
||||
},
|
||||
getParentsById(list, id) {
|
||||
for (let i in list) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue