企微助手 ,仓库名 短剧

customerServiceCorpV3.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <div class="common-screen-item" v-loading="loading">
  3. <label class="common-screen-label" v-if="title&&title!=''" :style="labelWidth ? 'width:' + labelWidth : ''">{{title}}</label>
  4. <el-popover append-to-body placement="bottom" trigger="click" v-model="visible" :disabled="disabled">
  5. <div :style="width?'width:'+width:''" :class="['common-screen-self-box',
  6. 'common-input-select',
  7. final_result&&final_result.length!=0&&clearable&&!disabled?'common-input-select-hover':'',
  8. disabled?'pointer-drop':'']" slot="reference">
  9. <div :class="['common-screen-self-con',
  10. !final_result||final_result.length==0?'common-screen-self-placeholder':'']">
  11. <div class="common-screen-self-con-div">
  12. <span v-if="!final_result||final_result.length==0">{{placeholder || '请选择'}}</span>
  13. <template v-else>
  14. <span v-for="(item,idx) in rtSelectedCorpList" :key="item.corpid + '-' + idx">{{item.corp_name}}{{idx==rtSelectedCorpList.length-1?'':','}}</span>
  15. <span v-if="rtSelectedCorpList.length && rtSelectedUserList.length">,</span>
  16. <span v-for="(item,index) in rtSelectedUserList" :key="item.corpid + '-' + index">{{item.user_name}}{{index==rtSelectedUserList.length-1?'':','}}</span>
  17. </template>
  18. </div>
  19. <i class="el-icon-circle-close other-icon" @click.stop="clear"></i>
  20. </div>
  21. <div class="common-screen-self-icon" :style="!icon_arrow_bg?'background: none;border: none;color:#c2c6cd':''">
  22. <i class="el-icon-arrow-down"></i>
  23. </div>
  24. </div>
  25. <div class="flex" style="padding:10px">
  26. <div class="propoverItem">
  27. <selfInput :reset='resetFlag' :hasLabel="false" :inputFlag='true' @inputChange='(val)=>{input_keyword = val;userSearch()}' width="270px" style="margin-top:0;margin-bottom:4px" :label_name="source == 'chatGroup' ? '企微主体或群主昵称' : '企微主体或成员昵称'" />
  28. <div style="font-size:12px;color:#f9a527;">添加 空格 可进行多成员搜索</div>
  29. <div class="allMember">全部企微主体({{corpTotal}}):</div>
  30. <div class="memberBoxBig self-scrollbar-3">
  31. <template v-for="(item,index) in userList">
  32. <div class="memberBox" :key="index + 'userList1' + item.corpid">
  33. <i :class="['el-icon-caret-bottom',item.is_open?'reversalAnimation':'']" @click="openEvent(index)"></i>
  34. <div class="meberList">
  35. <div class="department">
  36. <div class="flex" style="align-items: flex-start;">
  37. <i class="el-icon-s-cooperation" style="margin-top:3px"></i>
  38. <span>{{item.corp_name?item.corp_name:'主体'+(index+1)}}</span>
  39. </div>
  40. <div v-if="!input_keyword" :class="['checkbox',item.is_select?'checkbox_active':'']" @click="selectUserEvent('all',index)"><i class="el-icon-check"></i></div>
  41. </div>
  42. <div class="memberItem" :style="item.is_open?'display:none':''" v-for="(item1,user_index) in item.user_list" :key="item1.user_id+'-'+user_index" @click="selectUserEvent('user',index,user_index)">
  43. <div class="flex" style="flex:1">
  44. <img class="memberImg" :src="item1.avatar" alt="">
  45. <div class="memberInfo">
  46. <div class="name">
  47. {{item1.name}}
  48. <span :class="['status-tag', item1.is_active == 0 ? 'disabled' : '']">{{ item1.is_active == 1 ? '已激活' : '未激活' }}</span>
  49. </div>
  50. <div class="other">部门:{{ item1.corp_name }}</div>
  51. <div v-if="item1.active_desc === '即将过期'" class="other">
  52. <span>{{ item1.active_desc }}</span>
  53. <span v-if="item1.expire_time">({{ item1.expire_time.slice(0, 10) }})</span>
  54. </div>
  55. </div>
  56. </div>
  57. <div :class="['checkbox',item1.is_select?'checkbox_active':'']"><i class="el-icon-check"></i></div>
  58. </div>
  59. </div>
  60. </div>
  61. </template>
  62. </div>
  63. </div>
  64. <div class="line"></div>
  65. <div class="propoverItem" style="padding-left:20px">
  66. <div class="title">已选择的{{source == 'chatGroup' ? '群主' : '成员'}}</div>
  67. <div class="choice_result_top">
  68. <div class="clear" @click="closeUser(-1)">全部清空</div>
  69. <div class="result_num">已选择<span>{{rtSelectedCorpList&&rtSelectedCorpList.length}}</span>个主体和<span>{{rtSelectedUserList&&rtSelectedUserList.length}}</span>名{{source == 'chatGroup' ? '群主' : '成员'}}</div>
  70. </div>
  71. <div class="member_result self-scrollbar-3">
  72. <!-- S 全选企微数据 -->
  73. <div v-for='(corp, corpIdx) in rtSelectedCorpList' :key="corp.corpid">
  74. <div class="corp-wrap">
  75. <div class="corp-info">
  76. <i class="el-icon-s-cooperation c-46a7ff"></i>
  77. <span>{{corp.corp_name}}</span>
  78. </div>
  79. <i class="el-icon-close pointer" @click="onClickDelSelectedCorp(corp)"></i>
  80. </div>
  81. </div>
  82. <!-- E 全选企微数据 -->
  83. <!-- S 非全选企微状态下的客服 -->
  84. <div class="memberItem" v-for="(item,index) in rtSelectedUserList" :key="item.user_id+'-'+item.corpid">
  85. <div class="flex" style="flex:1">
  86. <img class="memberImg" :src="item.avatar" alt="">
  87. <div class="memberInfo">
  88. <div class="name">
  89. {{item.user_name}}
  90. <span :class="['status-tag', item.is_active == 0 ? 'disabled' : '']">{{ item.is_active == 1 ? '已激活' : '未激活' }}</span>
  91. </div>
  92. <div class="other">部门:{{item.corp_name}}</div>
  93. <div v-if="item.active_desc === '即将过期'" class="other">
  94. <span>{{ item.active_desc }}</span>
  95. <span v-if="item.expire_time">({{ item.expire_time.slice(0, 10) }})</span>
  96. </div>
  97. </div>
  98. </div>
  99. <i class="el-icon-close" style="margin-left:10px" @click="closeUser(item)"></i>
  100. </div>
  101. <!-- E 非全选企微状态下的客服 -->
  102. </div>
  103. <div class="buttons">
  104. <el-button type="primary" plain size="mini" @click="visible = false">取消</el-button>
  105. <el-button type="primary" size="mini" @click="defineEvent">确定</el-button>
  106. </div>
  107. </div>
  108. </div>
  109. </el-popover>
  110. </div>
  111. </template>
  112. <script>
  113. // 此组件是按照企业
  114. import selfInput from '@/components/assembly/screen/input.vue'
  115. import _lodash from 'lodash'
  116. export default {
  117. components: { selfInput },
  118. props: {
  119. title: {
  120. type: String,
  121. default: '所属客服'
  122. },
  123. clearable: {
  124. type: Boolean,
  125. default: true
  126. },
  127. reset: {
  128. type: Boolean,
  129. default: false
  130. },
  131. width: {
  132. type: String
  133. },
  134. labelWidth: {
  135. type: String
  136. },
  137. afferent_users: {//传入格式 [{ user_id: xxx, corpid: xxx }]
  138. type: Array
  139. },
  140. disabled: {
  141. type: Boolean,
  142. default: false
  143. },
  144. icon_arrow_bg: {
  145. type: Boolean,
  146. default: true
  147. },
  148. isRequired: {
  149. type: Boolean,
  150. default: () => true,
  151. },
  152. placeholder: {
  153. type: String,
  154. default: () => '请选择'
  155. },
  156. source: {
  157. type: String,
  158. default: () => 'operation' // operation 客服 chatGroup 群主
  159. },
  160. },
  161. watch: {
  162. reset () {
  163. this.selectUser = [];
  164. this.final_result = [];
  165. this.changeSelect()
  166. },
  167. afferent_users () {
  168. this.page_init()
  169. }
  170. },
  171. data () {
  172. return {
  173. input_keyword: '',
  174. visible: false,
  175. resetFlag: false,
  176. loading: false,
  177. userList: [],
  178. old_user_list: [],
  179. userTotal: 0,
  180. selectUser: [],
  181. final_result: []
  182. }
  183. },
  184. computed: {
  185. corpTotal() { // 企微主体数量
  186. return (this.userList && this.userList.length) ? this.userList.length : 0
  187. },
  188. selectedCorpList() { // 已选成员 数据格式化
  189. let res = []
  190. if (this.selectUser && this.selectUser.length) {
  191. this.selectUser.forEach(currentUser => {
  192. const userInfo = {
  193. user_id: currentUser.user_id,
  194. user_name: currentUser.name,
  195. avatar: currentUser.avatar,
  196. corp_name: currentUser.corp_name,
  197. corpid: currentUser.corpid,
  198. active_desc: currentUser.active_desc,
  199. expire_time: currentUser.expire_time,
  200. is_active: currentUser.is_active,
  201. }
  202. if (res && !res.length) { // 构造第一条数据 => 插入res中
  203. res.push({
  204. corpid: currentUser.corpid,
  205. corp_name: currentUser.corp_name,
  206. user_list: [userInfo]
  207. })
  208. } else { // 查询当前用户的企微在res中是否已存在
  209. const isFoundIdx = res.findIndex(r => r.corpid === currentUser.corpid)
  210. if (isFoundIdx === -1) { // 不存在 => 写入企微&用户列表
  211. res.push({
  212. corpid: currentUser.corpid,
  213. corp_name: currentUser.corp_name,
  214. user_list: [userInfo]
  215. })
  216. } else { // 已存在 => 插入用户信息
  217. res[isFoundIdx].user_list.push(userInfo)
  218. }
  219. }
  220. })
  221. }
  222. return res
  223. },
  224. rtSelectedCorpList() {
  225. let res = []
  226. if (this.selectedCorpList && this.selectedCorpList.length) {
  227. this.selectedCorpList.forEach(s => {
  228. const crtCorpOptions = this.old_user_list.find(o => o.corpid === s.corpid)
  229. if (crtCorpOptions && crtCorpOptions.user_list.length === s.user_list.length) {
  230. res.push({
  231. corp_name: crtCorpOptions.corp_name,
  232. corpid: crtCorpOptions.corpid,
  233. })
  234. }
  235. })
  236. }
  237. return res
  238. },
  239. rtSelectedUserList() {
  240. let res = []
  241. if (this.selectedCorpList && this.selectedCorpList.length) {
  242. this.selectedCorpList.forEach(s => {
  243. const crtCorpOptions = this.old_user_list.find(o => o.corpid === s.corpid)
  244. if (crtCorpOptions && crtCorpOptions.user_list.length !== s.user_list.length) {
  245. res = [...res, ...s.user_list]
  246. }
  247. })
  248. }
  249. return res
  250. },
  251. },
  252. created () {
  253. this.page_init()
  254. },
  255. methods: {
  256. page_init () {
  257. if (this.userList.length == 0) {
  258. this.init()
  259. } else {
  260. this.selectUser = JSON.parse(JSON.stringify(this.final_result));
  261. this.changeSelect()
  262. this.afferent_init()
  263. }
  264. },
  265. afferent_init () {//从外面传入
  266. let selectUser = [];
  267. if (this.afferent_users && this.afferent_users.length >= 0) {
  268. let self_afferent_users = this.afferent_users.map((v) => {
  269. return v.corpid + '-' + v.user_id
  270. })
  271. this.userList.forEach((item1) => {
  272. item1.user_list.forEach((item) => {
  273. let of_str = item.corpid + '-' + item.user_id
  274. if (self_afferent_users.indexOf(of_str) != -1) {
  275. selectUser.push(item)
  276. }
  277. })
  278. })
  279. this.selectUser = selectUser;
  280. //去重
  281. let final_result = JSON.parse(JSON.stringify(selectUser))
  282. let tmp = {};
  283. final_result = final_result.reduce((list, item) => {
  284. tmp[item.user_id] ? '' : (tmp[item.user_id] = list.push(item));
  285. return list
  286. }, []);
  287. this.final_result = final_result
  288. this.changeSelect()
  289. }
  290. },
  291. clear () {
  292. if (this.disabled) return
  293. if (!this.selectUser || this.selectUser.length == 0) {
  294. this.visible = !this.visible
  295. return
  296. } else {
  297. this.selectUser = [];
  298. this.final_result = []
  299. this.changeSelect()
  300. this.$emit('customerDefine', {})
  301. if (this.input_keyword != '') {
  302. this.input_keyword = '';
  303. this.resetFlag = !this.resetFlag
  304. this.init()
  305. }
  306. }
  307. },
  308. defineEvent () {
  309. this.final_result = JSON.parse(JSON.stringify(this.selectUser))
  310. // let arr = this.selectUser.map((v) => {
  311. // return v.user_id
  312. // })
  313. if (this.isRequired && this.selectUser.length == 0) {
  314. this.$message({
  315. message: `请选择${this.source == 'chatGroup' ? '群主' : '成员'}`,
  316. type: "warning"
  317. })
  318. return
  319. }
  320. this.visible = false
  321. this.$emit('customerDefine', { // 3种数据格式都传给父组件 不同场景选择使用
  322. res_format_1: this.selectUser,
  323. res_format_2: this.selectedCorpList,
  324. res_format_3: {
  325. corpList: [...this.rtSelectedCorpList],
  326. userList: [...this.rtSelectedUserList],
  327. },
  328. })
  329. },
  330. userSearch () {//模糊搜索 空格 可搜索多个结果
  331. let input_keyword_arr = this.input_keyword.split(' ');
  332. input_keyword_arr = input_keyword_arr.filter((v)=>{
  333. return v != ''
  334. })
  335. let search_user_list = []
  336. input_keyword_arr.length == 0 ? input_keyword_arr = [''] : ''
  337. this.old_user_list.forEach((item) => {
  338. let arr = item.user_list.filter((v) => {
  339. let flag = false
  340. input_keyword_arr.forEach((s_info)=>{
  341. if (!flag) {
  342. flag = (v.name && v.name.indexOf(s_info) != -1) || (v.corp_name && v.corp_name.indexOf(s_info) != -1)
  343. }
  344. })
  345. return flag
  346. })
  347. if (arr && arr.length > 0) {
  348. let self_item = JSON.parse(JSON.stringify(item))
  349. self_item.user_list = arr;
  350. search_user_list.push(self_item)
  351. }
  352. })
  353. this.userList = search_user_list;
  354. let userTotal = 0;
  355. this.userList.forEach((item) => {
  356. if (this.input_keyword === '') {
  357. item.is_open = true//是否折叠
  358. } else {
  359. item.is_open = false//是否折叠
  360. }
  361. item.is_select = false//是否选中
  362. item.user_list.forEach((item1) => {
  363. item1.is_select = false
  364. })
  365. userTotal += item.user_list.length
  366. });
  367. this.changeSelect()
  368. this.userTotal = userTotal
  369. },
  370. init (type) {
  371. this.loading = true
  372. let url = this.URL.BASEURL + this.URL.warn_djuserList
  373. let params = {
  374. sys_group_id: this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : '',
  375. }
  376. // if (this.source == 'chatGroup') {//群主
  377. // url = this.URL.BASEURL + this.URL.inviteRule_ownerListOfCompany
  378. // params = {}
  379. // }
  380. this.$axios.get(url, {
  381. params: params
  382. }).then((res) => {
  383. var res = res.data
  384. this.loading = false
  385. if (res && res.errno == 0) {
  386. let arr = res.rst;
  387. arr.forEach((item) => {
  388. item.user_list.forEach((item1) => {
  389. item1.corp_name = item.corp_name;
  390. })
  391. });
  392. // if (this.source == 'chatGroup') {//群主
  393. // arr.forEach((item) => {
  394. // item.user_list.forEach(user => {
  395. // user.corpid = item.corpid;
  396. // })
  397. // });
  398. // }
  399. this.userList = arr;
  400. this.old_user_list = JSON.parse(JSON.stringify(arr))
  401. let userTotal = 0;
  402. this.userList.forEach((item) => {
  403. userTotal += item.user_list.length;
  404. item.is_open = true//是否折叠 默认收起
  405. item.is_select = false//是否选中
  406. item.user_list.forEach((item1) => {
  407. item1.is_select = false
  408. })
  409. });
  410. if (type != 'userSearch') {//非搜索
  411. this.selectUser = JSON.parse(JSON.stringify(this.final_result));
  412. this.afferent_init()
  413. }
  414. this.changeSelect()
  415. this.userTotal = userTotal
  416. } else if (res.errno != 4002) {
  417. this.$message({
  418. message: res.err,
  419. type: "warning"
  420. })
  421. }
  422. }).catch((err) => {
  423. this.loading = false
  424. });
  425. },
  426. openEvent (index) {
  427. let arr = this.userList[index]
  428. arr.is_open = !arr.is_open
  429. this.$set(this.userList, index, arr)
  430. },
  431. selectUserEvent (type, main_index, user_index) {
  432. let selectUser = this.selectUser
  433. let user_arr = this.userList[main_index];
  434. if (type == 'all') {//点击部门全选时
  435. if (!user_arr.is_select) {
  436. selectUser = selectUser.concat(user_arr.user_list)
  437. } else {
  438. let arr = user_arr.user_list.map((v) => {
  439. return v.user_id
  440. })
  441. selectUser = selectUser.filter((v) => {
  442. return arr.indexOf(v.user_id) == -1
  443. })
  444. }
  445. } else {//点击单个客服时
  446. let brr = user_arr.user_list[user_index]
  447. if (brr.is_select) {
  448. selectUser = selectUser.filter((v) => {
  449. return `${v.corpid}&&&${v.user_id}` != `${brr.corpid}&&&${brr.user_id}`
  450. })
  451. } else {
  452. selectUser.push(brr)
  453. }
  454. }
  455. this.$set(this.userList, main_index, user_arr)
  456. // 去重
  457. let tmp = {};
  458. selectUser = selectUser.reduce((list, item) => {
  459. // 根据corpid和user_id去重(之前版本只判断user_id去重)
  460. tmp[`${item.corpid}&&&${item.user_id}`] ? '' : (tmp[`${item.corpid}&&&${item.user_id}`] = list.push(item));
  461. return list
  462. }, []);
  463. this.selectUser = selectUser
  464. this.changeSelect()
  465. },
  466. changeSelect () {//客服选择发生变化时,部门全选跟着相应的改变
  467. let self_userList = JSON.parse(JSON.stringify(this.userList))
  468. let arr_selectUser = this.selectUser.map((v) => { return (v.corpid + '-' + v.user_id) })
  469. // 全选的改变
  470. self_userList.forEach((item) => {
  471. item.user_list = item.user_list.filter((v) => {
  472. let of_str = v.corpid + '-' + v.user_id
  473. return arr_selectUser.indexOf(of_str) != -1
  474. })
  475. this.userList.forEach((main) => {
  476. if (main.corpid == item.corpid) {
  477. if ((item.user_list.length == main.user_list.length) && (item.user_list.length !== 0)) {
  478. main.is_select = true
  479. } else {
  480. main.is_select = false
  481. }
  482. }
  483. })
  484. })
  485. // 单个用户的改变
  486. this.userList.forEach((item) => {
  487. item.user_list.forEach((item1) => {
  488. let of_str = item1.corpid + '-' + item1.user_id
  489. if (arr_selectUser.indexOf(of_str) == -1) {
  490. item1.is_select = false
  491. } else {
  492. item1.is_select = true
  493. }
  494. })
  495. })
  496. },
  497. closeUser (item) {
  498. if (item == -1) {
  499. this.selectUser = []
  500. } else {
  501. const idx = this.selectUser.findIndex(s => (s.corpid === item.corpid) && (s.user_id === item.user_id))
  502. if (idx !== -1) {
  503. this.selectUser.splice(idx, 1)
  504. }
  505. }
  506. this.changeSelect()
  507. },
  508. onClickDelSelectedCorp(currentCorp) {
  509. const res = []
  510. this.selectUser.forEach(s => {
  511. if (s.corpid !== currentCorp.corpid) res.push(s)
  512. })
  513. this.selectUser = [...res]
  514. this.changeSelect()
  515. },
  516. handleCloseAllOpen() {
  517. this.userList.forEach((item) => {
  518. item.is_open = true
  519. });
  520. },
  521. }
  522. }
  523. </script>
  524. <style lang="scss" scoped>
  525. .propoverItem {
  526. width: 330px;
  527. flex: 1;
  528. height: 100%;
  529. .allMember {
  530. color: #666666;
  531. font-size: 14px;
  532. line-height: 20px;
  533. margin-top: 10px;
  534. }
  535. .title {
  536. color: #383e47;
  537. font-size: 14px;
  538. line-height: 20px;
  539. font-weight: bold;
  540. }
  541. .choice_result_top {
  542. display: flex;
  543. align-items: center;
  544. justify-content: space-between;
  545. margin: 7px 0;
  546. .clear {
  547. color: #00b38a;
  548. font-size: 13px;
  549. line-height: 18px;
  550. cursor: pointer;
  551. font-weight: bold;
  552. }
  553. .result_num {
  554. color: #333333;
  555. font-size: 13px;
  556. line-height: 18px;
  557. span {
  558. color: #00b38a;
  559. font-weight: bold;
  560. }
  561. }
  562. }
  563. .member_result {
  564. height: 380px;
  565. overflow-y: auto;
  566. padding-right: 15px;
  567. }
  568. }
  569. .line {
  570. width: 0.5px;
  571. background: #c3cbd6;
  572. }
  573. .propoverItem,
  574. .line {
  575. height: 478px;
  576. }
  577. .memberBoxBig {
  578. height: 400px;
  579. overflow-y: auto;
  580. }
  581. .memberBox {
  582. display: flex;
  583. margin-top: 10px;
  584. .el-icon-caret-bottom {
  585. color: #46a7ff;
  586. cursor: pointer;
  587. margin-right: 7px;
  588. margin-top: 2px;
  589. transition: all 0.3s;
  590. display: block;
  591. height: 14px;
  592. }
  593. .meberList {
  594. flex: 1;
  595. margin-right: 15px;
  596. .department {
  597. i {
  598. color: #46a7ff;
  599. }
  600. span {
  601. color: #383e47;
  602. font-size: 14px;
  603. line-height: 20px;
  604. margin-left: 5px;
  605. font-weight: bold;
  606. }
  607. }
  608. .checkbox {
  609. width: 15px;
  610. height: 15px;
  611. border: 1px solid #979797;
  612. border-radius: 50%;
  613. display: flex;
  614. align-items: center;
  615. justify-content: center;
  616. font-size: 12px;
  617. margin-left: 10px;
  618. i {
  619. color: transparent;
  620. }
  621. &.checkbox_active {
  622. i {
  623. color: #ffffff;
  624. }
  625. background: #00b38a;
  626. border-color: #00b38a;
  627. }
  628. }
  629. }
  630. }
  631. .memberItem,
  632. .department {
  633. display: flex;
  634. align-items: center;
  635. justify-content: space-between;
  636. cursor: pointer;
  637. }
  638. .memberItem {
  639. margin: 14px 0;
  640. .memberImg {
  641. width: 38px;
  642. height: 38px;
  643. border-radius: 4px;
  644. }
  645. .memberInfo {
  646. margin-left: 7px;
  647. flex: 1;
  648. .name {
  649. color: #333333;
  650. font-size: 13px;
  651. line-height: 18px;
  652. .status-tag {
  653. background-color: #00B38A;
  654. color: #fff;
  655. border-radius: 4px;
  656. font-size: 12px;
  657. padding: 0 1px;
  658. &.disabled {
  659. background-color: #B3B2B2;
  660. }
  661. }
  662. }
  663. .other {
  664. color: #898d92;
  665. font-size: 12px;
  666. line-height: 18px;
  667. }
  668. }
  669. }
  670. .reversalAnimation {
  671. transform: rotate(-90deg);
  672. }
  673. .buttons {
  674. text-align: right;
  675. padding: 20px 0 10px;
  676. }
  677. .corp-wrap {
  678. margin-top: 14px;
  679. display: flex;
  680. justify-content: space-between;
  681. align-items: center;
  682. .corp-info {
  683. color: #383e47;
  684. font-size: 14px;
  685. line-height: 20px;
  686. font-weight: bold;
  687. }
  688. }
  689. </style>