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

部门人员选择器---fix4

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