userselect选择 ,checkStrictly: true
This commit is contained in:
parent
6b9625a741
commit
7e8643ea4a
|
@ -35,7 +35,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<!-- <el-col :md="8" :sm="24">
|
<!-- <el-col :md="8" :sm="24">
|
||||||
<el-cascader style="width:90%" v-model="query.depts" :options="deptdata" clearable placeholder="部门/单位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
<el-cascader style="width:90%" v-model="query.depts" :options="deptdata" clearable placeholder="部门/单位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false,checkStrictly: true}"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="8" :sm="24">
|
<el-col :md="8" :sm="24">
|
||||||
<el-cascader style="width:90%" v-model="query.posts" :options="postdata" clearable placeholder="岗位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
<el-cascader style="width:90%" v-model="query.posts" :options="postdata" clearable placeholder="岗位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="6" :sm="24">
|
<el-col :md="6" :sm="24">
|
||||||
<el-cascader style="width:90%" v-model="query.depts" :options="deptdata" clearable placeholder="部门/单位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
<el-cascader style="width:90%" v-model="query.depts" :options="deptdata" clearable placeholder="部门/单位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false,checkStrictly: true}"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="6" :sm="24">
|
<el-col :md="6" :sm="24">
|
||||||
<el-cascader style="width:90%" v-model="query.posts" :options="postdata" clearable placeholder="岗位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
<el-cascader style="width:90%" v-model="query.posts" :options="postdata" clearable placeholder="岗位" @change="handleQuery" :show-all-levels="false" :props="{emitPath:false}"/>
|
||||||
|
@ -291,7 +291,7 @@ export default {
|
||||||
},
|
},
|
||||||
//加载部门树数据
|
//加载部门树数据
|
||||||
async getDept() {
|
async getDept() {
|
||||||
let res = await this.$API.system.dept.list.req({ page: 0 });
|
let res = await this.$API.system.dept.list.req({ page: 0, type__in:'dept, rparty' });
|
||||||
this.deptdata = genTree(res);
|
this.deptdata = genTree(res);
|
||||||
},
|
},
|
||||||
//加载岗位树数据
|
//加载岗位树数据
|
||||||
|
|
Loading…
Reference in New Issue