Commit 8c1fd267 by 张杰

修复bug

1 parent a0490def
......@@ -29,8 +29,17 @@ export default {
return {
activeTabs: "1",
userId: "",
randomKey:''
};
},
watch:{
id:{
handler:function(){
console.log('key:',Math.random())
this.randomKey = Math.random()
}
}
},
mounted() {
this.userId = this.id;
},
......
......@@ -57,9 +57,9 @@
</div>
<!-- 指定数据弹框 开始 -->
<glsx-dialog :show="showDialog" title="指定数据" @close="closeDialog()">
<glsx-dialog :show="showDialog" title="指定数据" @close="closeDialog()" width="900px">
<div>
<assign-info ref="assignInfo" :key="currentUserId" :id="currentUserId"></assign-info>
<assign-info ref="assignInfo" v-if="showDialog" :id="currentUserId"></assign-info>
</div>
<template slot="footer">
<el-button type="default" size="small" @click="closeDialog">取消</el-button>
......
......@@ -144,6 +144,7 @@ export default {
// 异步加载树
loadNode(node, resolve) {
console.log(node);
let _this = this;
let _cur = node.data;
let child = _cur.children || [];
let origin = _cur.origin;
......@@ -153,7 +154,7 @@ export default {
// 用户层级,查询该用户下面的车辆
if (origin && origin.type === "u") {
GET_USER_VEHICLE_LIST({ uIds: _cur.id }).then((res) => {
GET_USER_VEHICLE_LIST({ uIds: _cur.id,receiverId:_this.id }).then((res) => {
let list = res.data || [];
list.map((k) => {
k.leaf = true;
......@@ -221,7 +222,7 @@ export default {
_this.setList(data, [], checked);
return false;
}
GET_ORGANIZATION_VEHICLE_LIST({ oIds: data.id })
GET_ORGANIZATION_VEHICLE_LIST({ oIds: data.id,receiverId:_this.id })
.then((res) => {
_this.ajaxloding = false;
_this.setList(data, res.data, checked);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!