select.vue 25 KB

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