Commit 9ce7ab24 by 史敦盼

Merge branch 'sdp-v1'

2 parents 41fac1ab 4a3ff68b
Showing with 7 additions and 3 deletions
......@@ -1011,7 +1011,7 @@ export default {
this.addDialog = true
this.is_add_edit = 'add'
this.disabled1 = false
this.getShangJiJieDianSelect();
// this.getShangJiJieDianSelect();
this.getZuJianLeiXingSelect(null).then((res) => {
this.zuJianLeiXingSelect = res
})
......@@ -1098,6 +1098,7 @@ export default {
this.ruleForm.let1 = row.assetName
this.ruleForm.let2 = row.parentAssetName
this.ruleForm.let3 = row.archiEleId
this.getShangJiJieDianSelect(row)
this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '')
this.ruleForm.assetNumber = row.assetNumber
this.ruleForm.let4 = row.sort
......@@ -1219,7 +1220,7 @@ export default {
this.$refs.treeSelect2.setCheckedKeys([]) // 删除所有选中节点
this.$refs.treeSelect2.setCheckedNodes([data])
},
loadTreeSelect(node, resolve) {
loadTreeSelect(node, resolve) {console.log('node', node)
//加载上级节点
if (node.level === 0) {
resolve([])
......@@ -1229,6 +1230,7 @@ export default {
parentAssetId: node.data.assetId,
archiAssetState: this.searchParams.archiAssetState,
archiStage: this.searchParams.archiStage,
// eleName:
// archiAssetTypeId: this.archiAssetTypeId,
}
getQryByTree(params).then((res) => {
......@@ -1239,12 +1241,13 @@ export default {
}
},
getShangJiJieDianSelect() {
getShangJiJieDianSelect(item) {console.log('item',item)
//上级节点下拉框值
const params = {
archiType: this.archiType,
archiAssetState: this.searchParams.archiAssetState,
archiStage: this.searchParams.archiStage,
eleName: item?.elementName
// parentAssetId: this.archiBelongId,
// archiAssetTypeId: this.archiAssetTypeId,
}
......@@ -1286,6 +1289,7 @@ export default {
const currentItem = this.zuJianLeiXingSelect.find(
(item) => item.elementId == data,
)
this.getShangJiJieDianSelect(currentItem)
this.getPreArc(currentItem)
if (currentItem?.eaLevel == 1) {
this.disabled1 = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!