Browse Source

fix:修改组织机构级联选择器

shibei_master
123456 3 years ago
parent
commit
1a22013d13
  1. 19
      src/views/modules/plugins/stats/factagencyuserhousedaily.vue

19
src/views/modules/plugins/stats/factagencyuserhousedaily.vue

@ -4,7 +4,7 @@
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item label="组织机构" label-width="100px"
prop="agencyId">
<el-select
<!-- <el-select
v-model.trim="dataForm.agencyId"
placeholder="请选择"
clearable
@ -16,7 +16,14 @@
:value="item.agencyId"
>
</el-option>
</el-select>
</el-select> -->
<el-cascader
v-model.trim="dataForm.agencyId"
:options="optionsA"
:props="{ expandTrigger: 'hover',children:'subAgencyList',label:'agencyName',value:'agencyId' }"
@change="handleChange"
clearable>
</el-cascader>
</el-form-item>
<el-form-item label="入黑名单时间"
prop="startTime">
@ -104,6 +111,14 @@ export default {
}
},
methods: {
handleChange(value){
console.log(value[1])
if(Array.isArray(value) && value.length > 0){
this.dataForm.agencyId = value[1]
}else{
this.dataForm.agencyId = null
}
},
getGridList() {
const { user } = this.$store.state
this.$http

Loading…
Cancel
Save