车辆,司机管理下拉刷新,车辆管理->服务种类预期:支持多选

This commit is contained in:
2023-08-24 13:07:58 +08:00
parent 620944b6e2
commit 3742c2f3a1
3 changed files with 74 additions and 66 deletions

View File

@ -62,24 +62,9 @@
<span class="service">{{ item.name }}:</span>
<span class="line"></span>
</div>
<van-radio-group v-model="trailerService" @change="change" class="radioWrap">
<van-radio :name="item2.name" class="item" v-for="(item2,index2) in item.children" :key="index2">
{{item2.name }}
<img
slot="icon"
slot-scope="props"
:src="props.checked ? activeIcon : inactiveIcon"
>
</van-radio>
<!-- <van-radio name=" 事故——平板拖车" class="item">-->
<!-- 事故平板拖车-->
<!-- <img-->
<!-- slot="icon"-->
<!-- slot-scope="props"-->
<!-- :src="props.checked ? activeIcon : inactiveIcon"-->
<!-- >-->
<!-- </van-radio>-->
</van-radio-group>
<van-checkbox-group v-model="serviceIds" v-for="(item2,index2) in item.children" :key="index2" class="radioWrap" @change="change">
<van-checkbox class="item" :name="item2.id">{{item2.name }}</van-checkbox>
</van-checkbox-group>
</div>
</div>
<two-common-btn class="btn" @cancelClick="cancelBtn" @submitClick="submitBtn" />
@ -102,11 +87,13 @@ export default {
isJoin:'',//是否参与
activeIcon: require('@/assets/check.png'),
inactiveIcon: require('@/assets/uncheck.png'),
// result: [],
checked: true,
carNum:"",//车牌号
typeList:[],//车辆类型列表
selectedOption:'1',//车辆类型
id:'',//车辆Id
serviceIds:'',//车辆服务种类,
serviceIds:[],//车辆服务种类,
supplierServiceList:[]
}
},
@ -145,8 +132,8 @@ export default {
this.serviceIds=result.serviceIds
},
change(e) {
this.trailerService=e
console.log(" this.trailerService", this.trailerService)
// this.trailerService=e
console.log(" this.trailerService",e, this.result)
},
change2(e) {
this.smallRepairService=e