select.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <template>
  2. <div style="display: inline-block;">
  3. <div tabindex="0" @blur="selectClihide()" style="display: inline-block;" v-if="!wxCope">
  4. <!-- <div :style="'width:' + selectWidth + 'px;height:' + selectHeight + 'px'" :class="classDiv ? 'select selectDiv' : 'select'" @click="selectCli" :ref="disabled ? '' : 'selectDiv'"> -->
  5. <div :class="disabled ? 'disabledTrue' : 'disabledFalse'" @mouseenter="moveIonDiv" @mouseleave="outIonDiv">
  6. <div :style="`width:${selectWidth}px;height:${selectHeight}px`" :class="classDiv ? 'select selectDiv' : 'select'" @click="selectCli" :ref="disabled ? '' : 'selectDiv'">
  7. <div v-if="!multiSelect" :style="'line-height: '+selectHeight+'px;font-size: '+selectFontSize+'px;'" :class="selectName == $t('defaultText.pleaseChoose') ? 'selecttex selecttexXuan' : 'selecttex'">
  8. <TranslationOpenDataText type='userName' :openid='selectName'></TranslationOpenDataText>
  9. <!-- {{selectName}} -->
  10. </div>
  11. <div v-if="multiSelect" :style="'line-height: '+selectHeight+'px;margin-left: -10px'" :class="selectName == $t('defaultText.pleaseChoose') ? 'selecttex selecttexXuan' : 'selecttex'">
  12. <span v-if="multiSelectList.length > 0">
  13. <span v-if="!tile" style="width: 100%">
  14. <span class="all">
  15. <TranslationOpenDataText type='userName' :openid='multiSelectList[0].name'></TranslationOpenDataText>
  16. <!-- {{multiSelectList[0].name}} -->
  17. <i class="el-icon-error" v-if="!disabled" @click.stop="deleteMultiSelectList('-1')"></i>
  18. </span>
  19. <span class="all" v-if="multiSelectList.length > 1"> + {{multiSelectList.length - 1}}</span>
  20. </span>
  21. <span v-if="tile" style="width: 100%">
  22. <span class="all" style="margin-right: 6px" v-for="(items, indexs) in multiSelectList" :key="indexs">
  23. <TranslationOpenDataText type='userName' :openid='items.name'></TranslationOpenDataText>
  24. <!-- {{items.name}} -->
  25. <span v-if="items.jobNumber" class="spanFllat">{{items.jobNumber}}</span>
  26. <i class="el-icon-error" @click.stop="deleteMultiSelectList(indexs)" v-if="!disabled"></i>
  27. </span>
  28. </span>
  29. </span>
  30. <span v-else class="allTwo">{{$t('defaultText.pleaseChoose')}}</span>
  31. </div>
  32. <i :class=" move ? 'el-icon-arrow-down iostu iostuHover' : 'el-icon-arrow-down iostu'" v-if="!moveIon"></i>
  33. <i v-if="moveIon" class="el-icon-circle-close iostu" @click.stop="clearDelete"></i>
  34. </div>
  35. </div>
  36. <div ref="selectRefs"></div>
  37. <transition name="el-zoom-in-top">
  38. <!-- <div v-show="show" style="position: relative;z-index: 999;"> -->
  39. <div v-show="show" class="selectBox" :style="`width:${selecsWths}px;top:${selectTop}px;left:${selectLeft}px;`">
  40. <!-- 搜索框 -->
  41. <div class="searchBox" v-if="filterable" :style="`top: ${searchBoxTop}px`">
  42. <el-input placeholder="请输入名称搜索" size="mini" v-model="searchTex" style="width: 100%" @input="searchLick()" @focus="selectCli()"></el-input>
  43. </div>
  44. <div class="transitionBox" :style="filterable ? 'margin: 30px 0;' : ''">
  45. <ul class="transitionBoxUl">
  46. <li :class="transitionBoxLiIdx == index ? 'liHover' : ''" v-for="(item, index) in options" :key="index" @mouseover="liMouseOver(index)" @click="liClick(item, index)">
  47. <span v-if="!multiSelect" style="width: 100%">
  48. <span v-if="item.name">
  49. <TranslationOpenDataText type='userName' :openid='item.name'></TranslationOpenDataText>
  50. </span>
  51. <span v-if="item.auditorName">
  52. <TranslationOpenDataText type='userName' :openid='item.auditorName'></TranslationOpenDataText>
  53. </span>
  54. <!-- {{item.name || item.auditorName}} -->
  55. <span v-if="item.jobNumber" class="spanFllat">{{item.jobNumber}}</span>
  56. </span>
  57. <span v-if="multiSelect" style="width: 100%">
  58. <span :class="item.flg ? 'hoverSpan hoverSpanHover' : 'hoverSpan'">
  59. <span style="width: 100%;display: inline-block;">
  60. <TranslationOpenDataText type='userName' :openid='item.name'></TranslationOpenDataText>
  61. <!-- {{item.name}} -->
  62. <span v-if="item.jobNumber" class="spanFllat">{{item.jobNumber}}</span>
  63. </span>
  64. <span v-if="item.flg"><i class="el-icon-check"></i></span>
  65. </span>
  66. </span>
  67. </li>
  68. </ul>
  69. </div>
  70. </div>
  71. </transition>
  72. </div>
  73. <div v-if="wxCope" class="waihez">
  74. <!-- <div @click="dianjis()">点击</div> -->
  75. <div :style="`width:${selectWidth}px;height:${selectHeight}px;line-height:${selectHeight}px;background:#fff`" class="select selectDandu" @click="dianjis()">
  76. <span v-if="!multiSelect"><TranslationOpenDataText type='userName' :openid='selectName'></TranslationOpenDataText></span>
  77. <!-- <span>你好</span> -->
  78. </div>
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. export default {
  84. props: {
  85. subject:{
  86. type: Array
  87. },
  88. size: {
  89. type: String,
  90. },
  91. subjectId: {
  92. type: [String, Number, Array]
  93. },
  94. wxCope: {
  95. type: Boolean,
  96. default: false,
  97. },
  98. // 是否支持多选
  99. multiSelect: {
  100. type: Boolean,
  101. default: false
  102. },
  103. // 是否平铺 (需要 multiSelect 为 true)
  104. tile: {
  105. type: Boolean,
  106. default: false
  107. },
  108. // 当前页面用到的第几个
  109. distinction: {
  110. type: String,
  111. default: '1',
  112. },
  113. // 真对填写日报单独处理
  114. idx: {
  115. type: String
  116. },
  117. flg: {
  118. type: Boolean,
  119. default: false, // 默认值,不是填写日报
  120. },
  121. // 宽度
  122. widthStr: {
  123. type: String,
  124. default: false
  125. },
  126. // 剩下统一索引
  127. index: {
  128. type: String
  129. },
  130. // 是否禁用
  131. disabled: {
  132. type: Boolean,
  133. default: false
  134. },
  135. // 是否可清空
  136. clearable: {
  137. type: Boolean,
  138. default: false
  139. },
  140. // 是否可搜索
  141. filterable: {
  142. type: Boolean,
  143. default: false
  144. },
  145. // 其他数据
  146. other: {
  147. type: [String, Number, Boolean],
  148. default: false
  149. },
  150. // 是否执行到日报单独的函数
  151. flgs: {
  152. type: Boolean,
  153. default: false
  154. },
  155. // searchBoxTop 搜索框距离顶部的距离
  156. searchBoxTop: {
  157. type: String,
  158. default: '-9'
  159. }
  160. },
  161. components: {
  162. selectWidth: '150',
  163. selectHeight: '28'
  164. },
  165. data() {
  166. return {
  167. selectWidth: '150',
  168. selectHeight: '28',
  169. selectFontSize: '12',
  170. show: false, // 下拉框
  171. options: [], // 列表数据
  172. optionsCopy: [], // 列表数据复制
  173. transitionBoxLiIdx: '', // hover 背景色
  174. selectName: this.$t('defaultText.pleaseChoose'), // 显示的文字
  175. classDiv: false, // 获得焦点样式
  176. optionsOId: '', // 选中人的id
  177. dailyListObj: null, // 填写日报的数据
  178. dailyListIndex: null, // 日报点的索引
  179. move: false,
  180. moveIon: false,
  181. multiSelectList: [],
  182. searchTex: '', // 搜索文字
  183. cursor: '', // 搜索的标记(需传给后端)
  184. time: null,//防抖
  185. fistArrList: [], // 第一次进来的人员数组
  186. fistArrListOne: [], // 第一次进来的人员初始数组
  187. selectTop: 0,
  188. selectLeft: 0,
  189. selecsWths: 0,
  190. };
  191. },
  192. computed: {},
  193. watch: {
  194. subject: {
  195. handler(newValue, oldValue) {
  196. this.options = newValue
  197. this.optionsCopy = JSON.parse(JSON.stringify(newValue))
  198. if(this.flg) {
  199. if(newValue) {
  200. this.selectName = newValue[0].auditorName || newValue[0].name
  201. this.optionsOId = newValue[0].auditorId || newValue[0].id
  202. }
  203. }
  204. },
  205. },
  206. // 日报点的索引, 真对填写的日报
  207. idx: {
  208. handler(newValue, oldValue) {
  209. console.log(newValue, oldValue)
  210. this.dailyListIndex = newValue
  211. },
  212. },
  213. subjectId: {
  214. handler(newValue, oldValue) {
  215. console.log(newValue, oldValue)
  216. this.optionsOId = newValue
  217. this.multiSelectList = []
  218. if(!this.multiSelect) {
  219. if(this.optionsOId) {
  220. for(let i in this.options) {
  221. if(this.options[i].userId == this.optionsOId || this.options[i].auditorId == this.optionsOId || this.options[i].id == this.optionsOId) {
  222. this.selectName = this.options[i].name || this.options[i].auditorName
  223. }
  224. }
  225. } else {
  226. this.selectName = this.$t('defaultText.pleaseChoose')
  227. }
  228. }
  229. if(this.multiSelect) {
  230. for(var i in this.options) {
  231. for(var j in this.optionsOId) {
  232. if(this.options[i].userId == this.optionsOId || this.options[i].auditorId == this.optionsOId[j] || this.options[i].id == this.optionsOId[j]) {
  233. this.multiSelectList.push(this.options[i])
  234. this.options[i].flg = true
  235. }
  236. }
  237. }
  238. }
  239. },
  240. },
  241. widthStr: {
  242. handler(newValue, oldValue) {
  243. this.selectWidth = newValue
  244. },
  245. }
  246. },
  247. created() {},
  248. mounted() {
  249. if(this.size == 'mini') {
  250. this.selectWidth = '150'
  251. this.selectHeight = '28'
  252. } else if(this.size == 'small') {
  253. this.selectWidth = '191'
  254. this.selectHeight = '32'
  255. } else if(this.size == 'medium') {
  256. this.selectWidth = '205'
  257. this.selectHeight = '40'
  258. this.selectFontSize = '14'
  259. }
  260. if(this.widthStr) {
  261. this.selectWidth = this.widthStr
  262. }
  263. if(this.subject) {
  264. this.options = JSON.parse(JSON.stringify(this.subject))
  265. }
  266. if(this.subjectId) {
  267. this.multiSelectList = []
  268. if(!this.multiSelect) {
  269. this.optionsOId = JSON.parse(JSON.stringify(this.subjectId))
  270. for(let i in this.options) {
  271. if(this.options[i].userId == this.optionsOId || this.options[i].auditorId == this.optionsOId || this.options[i].id == this.optionsOId) {
  272. this.selectName = this.options[i].auditorName || this.options[i].name
  273. }
  274. }
  275. }
  276. console.log(this.options, this.subjectId)
  277. if(this.multiSelect) {
  278. for(var i in this.options) {
  279. for(var j in this.subjectId) {
  280. if(this.options[i].id == this.subjectId[j] || this.options[i].auditorId == this.subjectId[j]) {
  281. this.multiSelectList.push(this.options[i])
  282. this.options[i].flg = true
  283. }
  284. }
  285. }
  286. }
  287. }
  288. console.log(this.subject, this.subjectId)
  289. var thats = this
  290. var phoneArr = []
  291. setTimeout(()=>{
  292. for(var s in thats.subject) {
  293. phoneArr.push(thats.subject[s].optionsOId || thats.subject[s].auditorId || thats.subject[s].id)
  294. }
  295. thats.fistArrListOne = thats.subject
  296. }, 500)
  297. thats.fistArrList = phoneArr
  298. console.log(thats.fistArrList)
  299. this.dailyListIndex = this.idx
  300. },
  301. methods: {
  302. dianjis() {
  303. if(!this.disabled) {
  304. let modes = this.multiSelect ? 'multi' : 'single'
  305. let that = this
  306. wx.invoke("selectEnterpriseContact", {
  307. "fromDepartmentId": 0,// 必填,表示打开的通讯录从指定的部门开始展示,-1表示自己所在部门开始, 0表示从最上层开始
  308. "mode": modes,// 必填,选择模式,single表示单选,multi表示多选
  309. "type": ["user"],// 必填,选择限制类型,指定department、user中的一个或者多个
  310. "selectedDepartmentIds": [],// 非必填,已选部门ID列表。用于多次选人时可重入,single模式下请勿填入多个id
  311. "selectedUserIds": []// 非必填,已选用户ID列表。用于多次选人时可重入,single模式下请勿填入多个id
  312. },function(res){
  313. console.log(res)
  314. if (res.err_msg == "selectEnterpriseContact:ok"){
  315. console.log(res, '数据来源')
  316. if(typeof res.result == 'string'){
  317. res.result = JSON.parse(res.result) //由于目前各个终端尚未完全兼容,需要开发者额外判断result类型以保证在各个终端的兼容性
  318. }
  319. var selectedUserList = res.result.userList; // 已选的成员列表
  320. var userId = ''
  321. var userName = ''
  322. for (var i = 0; i < selectedUserList.length; i++) {
  323. var user = selectedUserList[i];
  324. userId = user.id; // 已选的单个成员ID
  325. userName = user.name;// 已选的单个成员名称
  326. console.log(userId, userName)
  327. }
  328. for(var s in that.options) {
  329. if(that.options[s].name == userId) {
  330. that.selectName = userId
  331. that.wxCoper(that.options[s].id)
  332. }
  333. }
  334. }
  335. }
  336. );
  337. }
  338. },
  339. wxCoper(id) {
  340. let obj = {
  341. id: id,
  342. distinction: this.distinction,
  343. index: this.index, // 选中的索引
  344. other: this.other,
  345. name: this.selectName
  346. }
  347. console.log(obj)
  348. this.$emit("selectCal", obj)
  349. },
  350. selectCli() {
  351. if(!this.disabled) {
  352. this.$refs.selectDiv.focus()
  353. this.classDiv = !this.classDiv
  354. this.show = !this.show
  355. this.move = !this.move
  356. this.searchTex = ''
  357. if(this.optionsCopy.length > 0) {
  358. this.$set(this, 'options', JSON.parse(JSON.stringify(this.optionsCopy)))
  359. }
  360. }
  361. if(this.show) {
  362. this.setSelectlocation()
  363. }
  364. },
  365. setSelectlocation() {
  366. let witdhs = this.$refs.selectRefs.offsetWidth
  367. let tops = this.$refs.selectRefs.getBoundingClientRect().top
  368. let lefts = this.$refs.selectRefs.getBoundingClientRect().left
  369. this.selecsWths = witdhs
  370. this.selectTop = tops + 4
  371. this.selectLeft = lefts
  372. },
  373. selectClihide() {
  374. if(this.classDiv) {
  375. this.transitionBoxLiIdx = ''
  376. this.show = !this.show
  377. this.classDiv = false
  378. this.move = false
  379. if(this.multiSelect) {
  380. let obj = {
  381. // id: nameId,
  382. distinction: this.distinction,
  383. index: this.index, // 选中的索引
  384. other: this.other,
  385. arrUserList: this.multiSelectList,
  386. name: this.selectName
  387. }
  388. this.$emit("selectCal", obj)
  389. this.options = this.fistArrListOne
  390. }
  391. }
  392. },
  393. liMouseOver(index) {
  394. this.transitionBoxLiIdx = index
  395. },
  396. liClick(item, itemIndex) {
  397. console.log(item, '进来的')
  398. let nameId = item.auditorId || item.id
  399. this.selectName = item.auditorName || item.name
  400. if(!this.multiSelect) {
  401. console.log('我进来了', this.flg)
  402. if(this.flgs) {
  403. let obj = {
  404. id: nameId,
  405. idx: this.dailyListIndex
  406. }
  407. this.$emit("selectCatCli", obj);
  408. this.options = this.fistArrListOne
  409. } else {
  410. let obj = {
  411. id: nameId,
  412. distinction: this.distinction,
  413. index: this.index, // 选中的索引
  414. other: this.other,
  415. name: this.selectName
  416. }
  417. this.$emit("selectCal", obj)
  418. this.options = this.fistArrListOne
  419. }
  420. this.transitionBoxLiIdx = ''
  421. this.show = false
  422. this.classDiv = false
  423. this.move = false
  424. }
  425. if(this.multiSelect) {
  426. if(this.options[itemIndex].flg) {
  427. this.options[itemIndex].flg = !this.options[itemIndex].flg
  428. for(var i in this.multiSelectList) {
  429. if(this.multiSelectList[i].id == item.id) {
  430. this.multiSelectList.splice(i, 1)
  431. }
  432. }
  433. } else {
  434. this.options[itemIndex].flg = false
  435. this.options[itemIndex].flg = !this.options[itemIndex].flg
  436. this.multiSelectList.push(item)
  437. }
  438. }
  439. },
  440. moveIonDiv() {
  441. if(this.clearable) {
  442. this.moveIon = true
  443. }
  444. },
  445. outIonDiv() {
  446. if(this.clearable) {
  447. this.moveIon = false
  448. }
  449. },
  450. clearDelete() {
  451. if(!this.multiSelect) {
  452. this.selectName = this.$t('defaultText.pleaseChoose')
  453. let obj = {
  454. name: this.$t('defaultText.pleaseChoose'),
  455. id: ''
  456. }
  457. this.liClick(obj)
  458. }
  459. if(this.multiSelect) {
  460. this.multiSelectList = []
  461. let obj = {
  462. distinction: this.distinction,
  463. index: this.index, // 选中的索引
  464. other: this.other,
  465. arrUserList: []
  466. }
  467. for(var i in this.options) {
  468. if(this.options[i].flg) {
  469. this.options[i].flg = false
  470. }
  471. }
  472. this.$emit("selectCal", obj)
  473. this.options = this.fistArrListOne
  474. }
  475. },
  476. deleteMultiSelectList(str) {
  477. let userId
  478. if(str == '-1') {
  479. userId = this.multiSelectList[0].id
  480. this.multiSelectList.splice(0, 1)
  481. } else {
  482. userId = this.multiSelectList[str].id
  483. this.multiSelectList.splice(str, 1)
  484. }
  485. for(var i in this.options) {
  486. if(this.options[i].id == userId) {
  487. if(this.options[i].flg) {
  488. this.options[i].flg = false
  489. }
  490. }
  491. }
  492. let obj = {
  493. distinction: this.distinction,
  494. index: this.index, // 选中的索引
  495. other: this.other,
  496. arrUserList: this.multiSelectList,
  497. name: this.selectName
  498. }
  499. this.$emit("selectCal", obj)
  500. this.options = this.fistArrListOne
  501. },
  502. // searchBox() {
  503. // this.selectCli()
  504. // },
  505. // // 搜索
  506. searchLick() {
  507. if (this.time != null) {
  508. clearTimeout(this.time)
  509. }
  510. var that = this
  511. this.time = setTimeout(() => {
  512. that.getSimpleActiveUserList()
  513. }, 500)
  514. },
  515. // 针对 getSimpleActiveUserList 获取所有人员接口
  516. getSimpleActiveUserList() {
  517. this.http.post('/user/getEmployeeList', {
  518. departmentId: -1,
  519. pageIndex: 1,
  520. pageSize: 200,
  521. keyword: this.searchTex,
  522. status: 1,
  523. roleId: '',
  524. cursor: '',
  525. onlyDirect: 0,
  526. },
  527. res => {
  528. if (res.code == "ok") {
  529. var arr = res.data.records.filter((item) => {
  530. if (this.fistArrList.indexOf(item.id) != '-1') {
  531. return item;
  532. }
  533. })
  534. // this.options = arr
  535. console.log('将要赋值')
  536. var newArr = arr.length > 0 ? arr : res.data.records
  537. this.$set(this, 'options', newArr)
  538. this.cursor = res.data.nextCursor
  539. } else {
  540. this.$message({
  541. message: res.msg,
  542. type: "error"
  543. });
  544. }
  545. },
  546. error => {
  547. this.$message({
  548. message: error,
  549. type: "error"
  550. });
  551. });
  552. }
  553. },
  554. triggerOption(){
  555. },
  556. choose(item,value){
  557. },
  558. };
  559. </script>
  560. <style scoped lang="scss">
  561. .selectBox {
  562. position: fixed;
  563. z-index: 999;
  564. }
  565. .selectDandu {
  566. font-size: 16px;
  567. }
  568. .waihez {
  569. // padding-top: 7px;
  570. // box-sizing: border-box;
  571. // background: #FFF;
  572. display: inline-block;
  573. }
  574. .selectDiv {
  575. border-color: #409EFF !important;
  576. }
  577. .disabledTrue {
  578. background: #F5F7FA !important;
  579. border-radius: 4px;
  580. cursor: not-allowed !important;
  581. position: relative;
  582. }
  583. .disabledFalse .select {
  584. background: #FFF !important;
  585. border-radius: 4px;
  586. }
  587. .select {
  588. -webkit-appearance: none;
  589. // background-color: #FFF;
  590. background-image: none;
  591. border-radius: 4px;
  592. border: 1px solid #DCDFE6;
  593. -webkit-box-sizing: border-box;
  594. box-sizing: border-box;
  595. color: #606266;
  596. display: inline-block;
  597. font-size: inherit;
  598. height: 40px;
  599. line-height: 40px;
  600. outline: 0;
  601. padding: 0 15px;
  602. -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  603. transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  604. width: 100%;
  605. position: relative;
  606. cursor: pointer;
  607. }
  608. .selecttex {
  609. height: 28px;
  610. line-height: 28px;
  611. text-overflow: ellipsis;
  612. font-size: 12px;
  613. }
  614. .iostu {
  615. position: absolute;
  616. top: 50%;
  617. margin-top: -4px;
  618. right: 8px;
  619. color: #C0C4CC;
  620. transition: All 0.2s ease-in-out;
  621. }
  622. .iostuHover {
  623. transform: rotate(-180deg);
  624. }
  625. .searchBox {
  626. position: absolute;
  627. width: 100%;
  628. top: -9px;
  629. // top: 0px;
  630. }
  631. .transitionBox {
  632. background: #FFF;
  633. position: absolute;
  634. width: 100%;
  635. border-radius: 2em;
  636. border: 1px solid #E4E7ED;
  637. border-radius: 4px;
  638. background-color: #FFF;
  639. box-sizing: border-box;
  640. margin: 5px 0;
  641. box-shadow: 0 2px 12px #dfdfdf;
  642. max-height: 274px;
  643. overflow: auto;
  644. z-index: 500 !important;
  645. }
  646. .transitionBoxUl {
  647. list-style: none;
  648. padding: 6px 0;
  649. margin: 0;
  650. -webkit-box-sizing: border-box;
  651. box-sizing: border-box;
  652. }
  653. .transitionBoxUl li {
  654. font-size: 14px;
  655. padding: 0 20px;
  656. position: relative;
  657. white-space: nowrap;
  658. overflow: hidden;
  659. text-overflow: ellipsis;
  660. color: #606266;
  661. height: 34px;
  662. line-height: 34px;
  663. -webkit-box-sizing: border-box;
  664. box-sizing: border-box;
  665. cursor: pointer;
  666. }
  667. .liHover {
  668. background-color: #F5F7FA;
  669. }
  670. .selecttexXuan {
  671. color: #C0C4CC;;
  672. }
  673. .all {
  674. display: inline-block;
  675. font-size: 10px;
  676. background: #f4f4f5;
  677. height: 20px;
  678. line-height: 24px;
  679. padding: 0px 8px;
  680. color: #909399;
  681. }
  682. .allTwo {
  683. display: inline-block;
  684. margin-left: 10px;
  685. }
  686. .hoverSpan {
  687. display: flex;
  688. width: 100%;
  689. justify-content: space-between;
  690. }
  691. .hoverSpanHover {
  692. color: #409eff;
  693. font-weight: 700;
  694. }
  695. .spanFllat {
  696. display: inline-block;
  697. float: right;
  698. }
  699. </style>