Commit 8c1fd267 by 张杰

修复bug

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