Commit 01ab56b8 authored by 黄媛媛's avatar 黄媛媛

目的地赋值

parent 5eec94ad
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
stateShow:true, stateShow:true,
tips:'', tips:'',
PlaceList:[], PlaceList:[],
PlaceShow:true, PlaceShow:false,
} }
}, },
created(){ created(){
...@@ -285,6 +285,8 @@ export default { ...@@ -285,6 +285,8 @@ export default {
} }
}, },
SetRules(item){ SetRules(item){
console.log("item",item.LtIdList)
this.ruleVisible=true; this.ruleVisible=true;
this.form={ this.form={
Id:item.Id, Id:item.Id,
...@@ -302,6 +304,9 @@ export default { ...@@ -302,6 +304,9 @@ export default {
FManagerMoney:item.FManagerMoney, FManagerMoney:item.FManagerMoney,
FInternMoney:item.FInternMoney, FInternMoney:item.FInternMoney,
} }
this.form.LtIdList=item.LtIdList;
this.PlaceShow=true;
console.log("this.form",this.form)
this.departmentMsg.RB_Branch_Id=item.BranchId; this.departmentMsg.RB_Branch_Id=item.BranchId;
this.getLineTeamList(); this.getLineTeamList();
...@@ -375,7 +380,7 @@ export default { ...@@ -375,7 +380,7 @@ export default {
}, },
//获取系列列表 //获取系列列表
getLineTeamList() { getLineTeamList() {
this.PlaceList =[]; this.PlaceList =[];
if(this.form.LineIdList.indexOf(-1)!=-1){ if(this.form.LineIdList.indexOf(-1)!=-1){
this.form.LineIdList=[-1]; this.form.LineIdList=[-1];
this.form.LtIdList = []; this.form.LtIdList = [];
...@@ -387,8 +392,6 @@ export default { ...@@ -387,8 +392,6 @@ export default {
} }
if(this.form.LineIdList.indexOf(-1)==-1 && this.form.LineIdList.length==1){ if(this.form.LineIdList.indexOf(-1)==-1 && this.form.LineIdList.length==1){
let id= this.form.LineIdList[0]; let id= this.form.LineIdList[0];
console.log("id=",id)
this.getLinePlaceList(id); this.getLinePlaceList(id);
} }
let msg = { let msg = {
...@@ -402,7 +405,9 @@ export default { ...@@ -402,7 +405,9 @@ export default {
}, },
//获取目的地 //获取目的地
getLinePlaceList(id) { getLinePlaceList(id) {
this.form.LtIdList=[]; if(!this.PlaceShow){
this.form.LtIdList=[];
}
let msg = { let msg = {
lineID: id, lineID: id,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment