Commit 46b31c01 authored by zhengke's avatar zhengke

修复线路系列渲染

parent 182c5d90
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<div class="row wrap q-mt-md"> <div class="row wrap q-mt-md">
<el-select v-model="queryObj.LineId" class="m-2" <el-select v-model="queryObj.LineId" class="m-2"
filterable placeholder="请选择线路" filterable placeholder="请选择线路"
@change="onLineChangeHandler"> @change="onLineChangeHandler(1)">
<el-option <el-option
v-for="item in lines" v-for="item in lines"
:key="item.LineID" :key="item.LineID"
...@@ -277,11 +277,11 @@ ...@@ -277,11 +277,11 @@
/** /**
* 获取系列列表 * 获取系列列表
*/ */
const onLineChangeHandler = async () =>{ const onLineChangeHandler = async (type) =>{
let obj = lines.value.find(x=>{ let obj = lines.value.find(x=>{
return x.LineID == queryObj.value.LineId return x.LineID == queryObj.value.LineId
}) })
if(queryObj.value.LtId){ if(type){
queryObj.value.LtId = null queryObj.value.LtId = null
} }
queryObj.value.LineName = obj.LineName queryObj.value.LineName = obj.LineName
......
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