提交 05d00fed 编写于 作者: Shine-zwj's avatar Shine-zwj

部门人员选择器---fix4

上级 a8d2b01c
<template>
<div class="app-department-personnel">
<i-select v-if="!treeurl" :multiple="multiple" :transfer="true" transfer-class-name="app-department-personnel-select" v-model="selectsLabel" :disabled="disabled" :clearable="true" @on-open-change="onClick" @on-change="change">
<i-select :multiple="multiple" :transfer="true" transfer-class-name="app-department-personnel-select" v-model="selectsLabel" :disabled="disabled" :clearable="true" @on-open-change="onClick" @on-change="change">
<i-option v-for="(item, index) in items" :key="index" :value="item.label" :label="item.label">
{{item.label}}
</i-option>
</i-select>
<ibiz-select-tree v-if="treeurl" class="tree-department-personnel-select" :disabled="disabled" :NodesData="items" v-model="selectsLabel" :multiple="multiple"></ibiz-select-tree>
<template>
<i v-if="!disabled" class="el-icon-search" @click="openView"></i>
</template>
......@@ -187,12 +186,7 @@ export default class AppDepartmentPersonnel extends Vue {
this.items = items;
}else{
this.getDepertmentId();
let tempUrl = "";
if(this.treeurl){
tempUrl = this.treeurl.replace('{deptId}',this.filtervalue);
}else{
tempUrl = this.url.replace('{deptId}',this.filtervalue);
}
let tempUrl = this.url.replace('{deptId}',this.filtervalue);
let get = Http.getInstance().get(tempUrl, true);
get.then((response: any) => {
if(response.status === 200) {
......@@ -406,14 +400,6 @@ export default class AppDepartmentPersonnel extends Vue {
<style lang="less">
.app-department-personnel{
position: relative;
.tree-department-personnel-select{
.el-input__inner{
height: 32px;
}
.el-input__suffix{
top: 5px;
}
}
.el-icon-search{
position: absolute;
top: 10px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册