Commit 90487594 authored by zhengke's avatar zhengke

优化页面

parent 7db6598c
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option> </el-option>
</el-select> </el-select>
<el-select class='w120' v-model="subItem.LineTeamId" filterable :placeholder="$t('pub.pleaseSel')"> <el-select class='w120' v-model="subItem.LineTeamId" @visible-change="getLineTeamListTwo($event,subItem)" filterable :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value='commonSelect'></el-option> <el-option label="不限" :value='commonSelect'></el-option>
<el-option v-for="sitem in subItem.LineTeamList" :label='sitem.LtName' :value='sitem.LtID' :key='sitem.LtID'> <el-option v-for="sitem in subItem.LineTeamList" :label='sitem.LtName' :value='sitem.LtID' :key='sitem.LtID'>
</el-option> </el-option>
...@@ -209,7 +209,14 @@ ...@@ -209,7 +209,14 @@
var data = res.data.data; var data = res.data.data;
data.forEach(x=>{ data.forEach(x=>{
x.LessPriceList.forEach(y=>{ x.LessPriceList.forEach(y=>{
that.getLineTeamList(y); if(y.LineTeamId>0){
y.LineTeamList=[
{
LtName:y.lineTeamName,
LtID:y.LineTeamId
}
]
}
}) })
}) })
that.dataList=data; that.dataList=data;
...@@ -266,6 +273,18 @@ ...@@ -266,6 +273,18 @@
} }
}); });
}, },
getLineTeamListTwo(event,subItem){
if(event&&subItem.LineId>0){
this.apipost("team_post_GetList", {
lineID: subItem.LineId,
isTOOP: 1
}, res => {
if (res.data.resultCode == 1) {
subItem.LineTeamList = res.data.data;
}
});
}
},
//系列重置默认不限 //系列重置默认不限
resetLineTeamId(subItem){ resetLineTeamId(subItem){
subItem.LineTeamId = 0; subItem.LineTeamId = 0;
......
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