|
@@ -36,11 +36,9 @@
|
|
<transition name="el-zoom-in-top">
|
|
<transition name="el-zoom-in-top">
|
|
<div v-show="show" style="position: relative;z-index: 999;">
|
|
<div v-show="show" style="position: relative;z-index: 999;">
|
|
<!-- 搜索框 -->
|
|
<!-- 搜索框 -->
|
|
- <!-- <div class="searchBox">
|
|
|
|
- <el-input :placeholder="$t('peaseenterthe')" size="mini" v-model="searchTex" style="width: 150px" @focus="searchBox()">
|
|
|
|
- <el-button slot="append" icon="el-icon-search" size="mini" @click="searchLick()"></el-button>
|
|
|
|
- </el-input>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <div class="searchBox" v-if="filterable">
|
|
|
|
+ <el-input placeholder="请输入名称搜索" size="mini" v-model="searchTex" style="width: 100%" @input="searchLick()" @focus="selectCli()"></el-input>
|
|
|
|
+ </div>
|
|
<div class="transitionBox" :style="filterable ? 'margin: 30px 0;' : ''">
|
|
<div class="transitionBox" :style="filterable ? 'margin: 30px 0;' : ''">
|
|
<ul class="transitionBoxUl">
|
|
<ul class="transitionBoxUl">
|
|
<li :class="transitionBoxLiIdx == index ? 'liHover' : ''" v-for="(item, index) in options" :key="index" @mouseover="liMouseOver(index)" @click="liClick(item, index)">
|
|
<li :class="transitionBoxLiIdx == index ? 'liHover' : ''" v-for="(item, index) in options" :key="index" @mouseover="liMouseOver(index)" @click="liClick(item, index)">
|
|
@@ -178,6 +176,8 @@ export default {
|
|
multiSelectList: [],
|
|
multiSelectList: [],
|
|
searchTex: '', // 搜索文字
|
|
searchTex: '', // 搜索文字
|
|
cursor: '', // 搜索的标记(需传给后端)
|
|
cursor: '', // 搜索的标记(需传给后端)
|
|
|
|
+ time: null,//防抖
|
|
|
|
+ fistArrList: [], // 第一次进来的人员数组
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -277,6 +277,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
console.log(this.subject, this.subjectId)
|
|
console.log(this.subject, this.subjectId)
|
|
|
|
+
|
|
|
|
+ let phoneArr = []
|
|
|
|
+ for(var s in this.subject) {
|
|
|
|
+ phoneArr.push(this.subject[s].optionsOId || this.subject[s].auditorId || this.subject[s].id)
|
|
|
|
+ }
|
|
|
|
+ this.fistArrList = phoneArr
|
|
|
|
+ console.log(this.fistArrList)
|
|
this.dailyListIndex = this.idx
|
|
this.dailyListIndex = this.idx
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -462,24 +469,40 @@ export default {
|
|
}
|
|
}
|
|
this.$emit("selectCal", obj)
|
|
this.$emit("selectCal", obj)
|
|
},
|
|
},
|
|
- searchBox() {
|
|
|
|
- this.selectCli()
|
|
|
|
- },
|
|
|
|
- // 搜索
|
|
|
|
|
|
+ // searchBox() {
|
|
|
|
+ // this.selectCli()
|
|
|
|
+ // },
|
|
|
|
+ // // 搜索
|
|
searchLick() {
|
|
searchLick() {
|
|
- console.log('文字')
|
|
|
|
- this.getSimpleActiveUserList()
|
|
|
|
|
|
+ if (this.time != null) {
|
|
|
|
+ clearTimeout(this.time)
|
|
|
|
+ }
|
|
|
|
+ var that = this
|
|
|
|
+ this.time = setTimeout(() => {
|
|
|
|
+ that.getSimpleActiveUserList()
|
|
|
|
+ }, 500)
|
|
|
|
+
|
|
},
|
|
},
|
|
// 针对 getSimpleActiveUserList 获取所有人员接口
|
|
// 针对 getSimpleActiveUserList 获取所有人员接口
|
|
getSimpleActiveUserList() {
|
|
getSimpleActiveUserList() {
|
|
- this.http.post('/user/getSimpleActiveUserList', {
|
|
|
|
|
|
+ this.http.post('/user/getEmployeeList', {
|
|
|
|
+ departmentId: -1,
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 200,
|
|
keyword: this.searchTex,
|
|
keyword: this.searchTex,
|
|
- cursor: this.cursor
|
|
|
|
|
|
+ status: 1,
|
|
|
|
+ roleId: '',
|
|
|
|
+ cursor: '',
|
|
|
|
+ onlyDirect: 0,
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log('数据')
|
|
|
|
- this.options = res.data.retUser
|
|
|
|
|
|
+ var arr = res.data.records.filter((item) => {
|
|
|
|
+ if (this.fistArrList.indexOf(item.id) != '-1') {
|
|
|
|
+ return item;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.options = arr
|
|
this.cursor = res.data.nextCursor
|
|
this.cursor = res.data.nextCursor
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -570,6 +593,7 @@ export default {
|
|
.searchBox {
|
|
.searchBox {
|
|
position: absolute;
|
|
position: absolute;
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
+ top: -9px;
|
|
}
|
|
}
|
|
.transitionBox {
|
|
.transitionBox {
|
|
background: #FFF;
|
|
background: #FFF;
|