This commit is contained in:
zhutianqi
2022-02-16 17:53:55 +08:00
parent b7cbe25fff
commit 2d89e9b707
2 changed files with 6 additions and 3 deletions
@@ -207,7 +207,9 @@
}) })
}, },
loadTreeData(resolve) { loadTreeData(resolve) {
// 获取loadtreeData 就是父节点数据,getChildByList就是异步获取子节点数据 console.log(this.url);
console.log(this.type);
// 获取loadtreeData 就是父节点数据,getChildByList就是异步获取子节点数据
this.$http.get(this.url, {type : this.type}, { this.$http.get(this.url, {type : this.type}, {
_this: this _this: this
}, res => { }, res => {
@@ -612,7 +612,7 @@
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new>
</el-form-item> </el-form-item>
<el-form-item label="模块结构单元变型号" prop="dybxh" class="add-form-item form-item-disabled"> <el-form-item label="模块结构单元变型号(卡车)" prop="dybxh" class="add-form-item form-item-disabled">
<el-input v-model="form.dybxh" placeholder="选择模块结构单元变型号" clearable @click.native="choiceZRR4('dybxh', '模块结构单元', form.dybxh)"></el-input> <el-input v-model="form.dybxh" placeholder="选择模块结构单元变型号" clearable @click.native="choiceZRR4('dybxh', '模块结构单元', form.dybxh)"></el-input>
<tree-select-module <tree-select-module
width="800" width="800"
@@ -623,6 +623,7 @@
:modalShowFlag="modalShowFlag4" :modalShowFlag="modalShowFlag4"
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="'TRUCK'"
:show-checkBox="showCheckBox" :show-checkBox="showCheckBox"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
@@ -2454,7 +2455,7 @@ export default {
this.modalShowFlag4 = true this.modalShowFlag4 = true
this.url = '' this.url = ''
this.urlChild = '' this.urlChild = ''
this.url = "sarModelTree/list" this.url = "sarModelTree/listByType"
this.urlChild = "sarModelTree/childByList" this.urlChild = "sarModelTree/childByList"
this.key3++ this.key3++
}, },