This commit is contained in:
parent
71b66ac8c5
commit
b35aad7a51
|
|
@ -258,10 +258,12 @@ export default {
|
||||||
});
|
});
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/equipment/codeToolsLedger',
|
path: '/equipment/codeToolsLedger',
|
||||||
|
query: { parentId: rowData.parentId, deptId: rowData.companyId }
|
||||||
});
|
});
|
||||||
} else if (type === 'toolNum') {
|
} else if (type === 'toolNum') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/equipment/toolsLedger',
|
path: '/equipment/toolsLedger',
|
||||||
|
query: { parentId: rowData.parentId, deptId: rowData.companyId }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -515,8 +515,18 @@ export default {
|
||||||
number: 0, // 上传文件计数
|
number: 0, // 上传文件计数
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
async created() {
|
||||||
this.getDeptTreeSelect()
|
await this.getDeptTreeSelect()
|
||||||
|
const params = this.$route.query
|
||||||
|
this.queryParams.propertyUnitId = params?.deptId || ''
|
||||||
|
const ids = []
|
||||||
|
if (params?.parentId) {
|
||||||
|
ids.push(params.parentId)
|
||||||
|
}
|
||||||
|
if (params?.deptId) {
|
||||||
|
ids.push(params.deptId)
|
||||||
|
}
|
||||||
|
this.queryParams.propertyUnitIds = [...ids.map(Number)]
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getSelectList()
|
this.getSelectList()
|
||||||
},
|
},
|
||||||
|
|
@ -529,10 +539,9 @@ export default {
|
||||||
this.queryParams.propertyUnitId = value[value.length - 1]
|
this.queryParams.propertyUnitId = value[value.length - 1]
|
||||||
},
|
},
|
||||||
// 获取产权单位
|
// 获取产权单位
|
||||||
getDeptTreeSelect() {
|
async getDeptTreeSelect() {
|
||||||
deptTreeSelect().then((res) => {
|
const res = await deptTreeSelect()
|
||||||
this.propertyUnitList = this.filterTree(res.data)
|
this.propertyUnitList = this.filterTree(res.data)
|
||||||
})
|
|
||||||
},
|
},
|
||||||
filterTree(nodes) {
|
filterTree(nodes) {
|
||||||
return nodes
|
return nodes
|
||||||
|
|
|
||||||
|
|
@ -395,8 +395,18 @@ export default {
|
||||||
dialogList: []
|
dialogList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
async created() {
|
||||||
this.getDeptTreeSelect()
|
await this.getDeptTreeSelect()
|
||||||
|
const params = this.$route.query
|
||||||
|
this.queryParams.propertyUnitId = params?.deptId || ''
|
||||||
|
const ids = []
|
||||||
|
if (params?.parentId) {
|
||||||
|
ids.push(params.parentId)
|
||||||
|
}
|
||||||
|
if (params?.deptId) {
|
||||||
|
ids.push(params.deptId)
|
||||||
|
}
|
||||||
|
this.queryParams.propertyUnitIds = [...ids.map(Number)]
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getSelectList()
|
this.getSelectList()
|
||||||
this.getToolTree()
|
this.getToolTree()
|
||||||
|
|
@ -410,10 +420,9 @@ export default {
|
||||||
this.queryParams.propertyUnitId = value[value.length - 1]
|
this.queryParams.propertyUnitId = value[value.length - 1]
|
||||||
},
|
},
|
||||||
// 获取产权单位
|
// 获取产权单位
|
||||||
getDeptTreeSelect() {
|
async getDeptTreeSelect() {
|
||||||
deptTreeSelect().then((res) => {
|
const res = await deptTreeSelect()
|
||||||
this.propertyUnitList = this.filterTree(res.data)
|
this.propertyUnitList = this.filterTree(res.data)
|
||||||
})
|
|
||||||
},
|
},
|
||||||
filterTree(nodes) {
|
filterTree(nodes) {
|
||||||
return nodes
|
return nodes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue