detail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <!--
  2. * @Author: wanglj 471442253@qq.com
  3. * @Date: 2022-12-26 09:30:47
  4. * @LastEditors: wanglj
  5. * @LastEditTime: 2023-01-05 11:50:51
  6. * @Description: file content
  7. * @FilePath: \opms_frontend\src\views\customer\detail.vue
  8. -->
  9. <template>
  10. <div class="detail">
  11. <el-row :gutter="10">
  12. <el-col :span="16">
  13. <div class="title">
  14. <p>客户</p>
  15. <h3>
  16. {{ detail.custName }}
  17. <span>
  18. <template v-if="privateCus == 1">
  19. <el-button @click="handleShift">转移客户</el-button>
  20. <el-button @click="handleToOpen">移入公海</el-button>
  21. <el-button>创建项目</el-button>
  22. </template>
  23. <template v-else>
  24. <el-button @click="handleReceive">领取客户</el-button>
  25. <el-button @click="handleAllocate">分配客户</el-button>
  26. </template>
  27. </span>
  28. </h3>
  29. </div>
  30. <header>
  31. <el-descriptions :colon="false" :column="6" direction="vertical">
  32. <el-descriptions-item content-class-name="my-content" label="客户编码" label-class-name="my-label">
  33. {{ detail.custCode }}
  34. </el-descriptions-item>
  35. <el-descriptions-item content-class-name="my-content" label="助记名" label-class-name="my-label">
  36. {{ detail.abbrName }}
  37. </el-descriptions-item>
  38. <el-descriptions-item content-class-name="my-content" label="客户级别" label-class-name="my-label">
  39. {{ detail.custLevel }}
  40. </el-descriptions-item>
  41. <el-descriptions-item content-class-name="my-content" label="客户行业" label-class-name="my-label">
  42. {{ detail.custIndustry }}
  43. </el-descriptions-item>
  44. <el-descriptions-item content-class-name="my-content" label="客户状态" label-class-name="my-label">
  45. {{ detail.custStatus == 10 ? '正常' : '异常' }}
  46. </el-descriptions-item>
  47. <el-descriptions-item content-class-name="my-content" label="最后跟进时间" label-class-name="my-label">
  48. {{ detail.followUpDate }}
  49. </el-descriptions-item>
  50. </el-descriptions>
  51. </header>
  52. <el-tabs v-model="activeName" @tab-click="handleClick">
  53. <el-tab-pane label="跟进记录" name="follow">
  54. <ul v-if="followList.length" class="follow">
  55. <li v-for="(date, index) in followList" :key="index">
  56. <div class="date">
  57. <h2>{{ date.followDay.split('-')[2] }}</h2>
  58. <h3>
  59. {{ date.followDay.split('-').splice(0, 2).join('.') }}
  60. </h3>
  61. </div>
  62. <ul class="content">
  63. <li v-for="(item, idx) in date.followupList" :key="idx">
  64. <!-- <el-avatar class="user-avatar"
  65. :src="avatar" />-->
  66. <div class="text-container">
  67. <vab-icon class="user-avatar" icon="account-circle-fill" />
  68. <div class="text">
  69. <p class="action">
  70. <span>{{ item.contactsName }} 跟进({{ formatType(item.followType) }})</span>
  71. <span>
  72. <vab-icon icon="time-line" />
  73. {{ item.followDate }}
  74. </span>
  75. </p>
  76. <p>{{ item.followContent }}</p>
  77. <div class="footer">
  78. <p>
  79. 来自客户:
  80. <span>{{ item.custName }}</span>
  81. </p>
  82. <div>
  83. <el-button size="mini" @click="showDetail(item)">
  84. <vab-icon icon="arrow-right-circle-fill" />
  85. 详情
  86. </el-button>
  87. <el-button size="mini" @click="showComment(item)">评论({{ item.commentNumber }})</el-button>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <transition name="height">
  93. <ul v-if="item.showComment" class="comments">
  94. <li v-for="comment in item.comments" :key="comment.id">
  95. <vab-icon class="user-avatar" icon="account-circle-fill" />
  96. <div class="text">
  97. <p>{{ comment.createdName }}</p>
  98. <p>{{ comment.content }}</p>
  99. <p>{{ comment.createdTime }}</p>
  100. </div>
  101. </li>
  102. </ul>
  103. </transition>
  104. </li>
  105. </ul>
  106. </li>
  107. </ul>
  108. <div v-else class="no-follow">暂无跟进记录</div>
  109. </el-tab-pane>
  110. <el-tab-pane label="详细信息" name="detail">
  111. <el-descriptions border :column="2" size="medium">
  112. <el-descriptions-item label="客户级别">
  113. {{ detail.custLevel }}
  114. </el-descriptions-item>
  115. <el-descriptions-item label="下次联系时间">
  116. {{ detail.followUpDate }}
  117. </el-descriptions-item>
  118. <el-descriptions-item label="所在地区">
  119. {{ detail.custLocation }}
  120. </el-descriptions-item>
  121. <el-descriptions-item label="详细地址">
  122. {{ detail.custAddress }}
  123. </el-descriptions-item>
  124. <el-descriptions-item label="创建人">
  125. {{ detail.createdName }}
  126. </el-descriptions-item>
  127. <el-descriptions-item label="创建时间">
  128. {{ detail.createdTime }}
  129. </el-descriptions-item>
  130. <el-descriptions-item label="跟进次数">
  131. {{ abstract.followContent }}
  132. </el-descriptions-item>
  133. <el-descriptions-item label="未跟进时长">
  134. {{ abstract.notFollowDay }}
  135. </el-descriptions-item>
  136. <el-descriptions-item label="商机数量">
  137. {{ abstract.business }}
  138. </el-descriptions-item>
  139. <el-descriptions-item label="商机总额">
  140. {{ formatPrice(abstract.businessTotal) }}
  141. </el-descriptions-item>
  142. <el-descriptions-item label="成交次数">
  143. {{ abstract.dealCotal }}
  144. </el-descriptions-item>
  145. <el-descriptions-item label="成交总额">
  146. {{ formatPrice(abstract.dealTotal) }}
  147. </el-descriptions-item>
  148. <el-descriptions-item label="回款总额">
  149. {{ formatPrice(abstract.paymentTotal) }}
  150. </el-descriptions-item>
  151. <el-descriptions-item label="未回款总额">
  152. {{ formatPrice(abstract.notPaymentTotal) }}
  153. </el-descriptions-item>
  154. <el-descriptions-item label="开票总额" :span="24">
  155. {{ formatPrice(abstract.drawTotal) }}
  156. </el-descriptions-item>
  157. <el-descriptions-item label="备注" :span="24">
  158. {{ detail.remark }}
  159. </el-descriptions-item>
  160. </el-descriptions>
  161. </el-tab-pane>
  162. <el-tab-pane label="联系人" name="contact">
  163. <vab-query-form>
  164. <vab-query-form-left-panel :span="12">
  165. <el-input placeholder="请输入单据名称/编号" prefix-icon="el-icon-search" style="width: 50%" />
  166. </vab-query-form-left-panel>
  167. <vab-query-form-right-panel :span="12">
  168. <el-button icon="el-icon-plus" @click="addContact">新建联系人</el-button>
  169. </vab-query-form-right-panel>
  170. </vab-query-form>
  171. <el-table
  172. v-loading="listLoading"
  173. border
  174. :data="contactList"
  175. height="calc(100% - 42px)"
  176. @selection-change="setSelectRows">
  177. <el-table-column align="center" type="selection" />
  178. <el-table-column align="center" label="姓名" prop="cuctName" />
  179. <el-table-column align="center" label="岗位" prop="postion" />
  180. <el-table-column align="center" label="电话" prop="telephone" />
  181. <el-table-column align="center" label="微信" prop="wechat" />
  182. <el-table-column align="center" label="邮箱" prop="email" />
  183. <el-table-column align="center" label="是否决策人">
  184. <template slot-scope="scope">
  185. <el-switch v-model="scope.row.policy" :active-value="1" disabled :inactive-value="0" />
  186. </template>
  187. </el-table-column>
  188. <el-table-column align="center" label="操作">
  189. <template slot-scope="scope">
  190. <el-button type="text" @click="contactEdit(scope.row)">编辑</el-button>
  191. <el-button type="text" @click="contactDel(scope.row)">删除</el-button>
  192. </template>
  193. </el-table-column>
  194. </el-table>
  195. </el-tab-pane>
  196. <el-tab-pane label="项目记录" name="item">项目记录</el-tab-pane>
  197. <el-tab-pane label="合同记录" name="contract">合同记录</el-tab-pane>
  198. <el-tab-pane label="工单记录" name="worksheet">工单记录</el-tab-pane>
  199. <el-tab-pane label="归属记录" name="belong">
  200. <el-table v-loading="listLoading" border :data="belongs" height="calc(100% - 42px)">
  201. <el-table-column align="center" label="归属销售" prop="saleName" />
  202. <el-table-column align="center" label="原来归属" prop="origSaleName" />
  203. <el-table-column align="center" label="操作方式" prop="opnType">
  204. <template slot-scope="scope">
  205. <el-tag v-if="scope.row.opnType == 10">分配</el-tag>
  206. <el-tag v-else-if="scope.row.opnType == 20">转移</el-tag>
  207. <el-tag v-else-if="scope.row.opnType == 30">领取</el-tag>
  208. </template>
  209. </el-table-column>
  210. <el-table-column align="center" label="操作人" prop="createdName" />
  211. <el-table-column align="center" label="操作时间" min-width="160px" prop="opnDatetime" />
  212. <el-table-column align="center" label="备注" prop="remark" />
  213. </el-table>
  214. </el-tab-pane>
  215. </el-tabs>
  216. </el-col>
  217. <el-col :span="8">
  218. <div class="buttons">
  219. <el-button type="primary" @click="handleEdit">编辑</el-button>
  220. <el-button @click="handleDelete">删除</el-button>
  221. </div>
  222. <ul class="records">
  223. <li v-for="(value, key) in records" :key="key">
  224. <div class="date">
  225. <h2>{{ key.split('-')[2] }}</h2>
  226. <h3>{{ key.split('-').splice(0, 2).join('.') }}</h3>
  227. </div>
  228. <ul class="content">
  229. <li v-for="(item, index) in records[key]" :key="index">
  230. <!-- <el-avatar class="user-avatar"
  231. :src="avatar" /> -->
  232. <vab-icon class="user-avatar" icon="account-circle-fill" />
  233. <div class="text">
  234. <p class="action">{{ item.opnPeople }} {{ item.opnType }}</p>
  235. <p>{{ item.opnDate }}</p>
  236. <p v-if="item.opnContent.custName">
  237. 客户名称:
  238. <span>{{ item.opnContent.custName }}</span>
  239. </p>
  240. <template v-else-if="item.opnContent.cuctName">
  241. <p>
  242. 联系人名称:
  243. <span>{{ item.opnContent.cuctName }}</span>
  244. </p>
  245. <p>职务:{{ item.opnContent.postion }}</p>
  246. <p>手机:{{ item.opnContent.telephone }}</p>
  247. </template>
  248. </div>
  249. </li>
  250. </ul>
  251. </li>
  252. </ul>
  253. </el-col>
  254. </el-row>
  255. <Contact ref="contact" @contactSave="contactSave" />
  256. <Edit ref="edit" @customerSave="customerSave" />
  257. <!-- 分配客户 -->
  258. <Allocate ref="allocate" @refresh="back" />
  259. <!-- 转移客户 -->
  260. <Shift ref="shift" @refresh="back" />
  261. <!-- 移入公海 -->
  262. <ToOpen ref="toOpen" @refresh="backToOpen" />
  263. <!-- 跟进详情 -->
  264. <FollowDetail ref="followDetail" />
  265. </div>
  266. </template>
  267. <script>
  268. import { mapGetters } from 'vuex'
  269. import api from '@/api/customer'
  270. import follow from '@/api/customer/follow'
  271. import to from 'await-to-js'
  272. import Contact from './components/Contact'
  273. import Edit from './components/Edit'
  274. import Allocate from './components/Allocate'
  275. import Shift from './components/Shift'
  276. import ToOpen from './components/ToOpen'
  277. import FollowDetail from './components/FollowDetail.vue'
  278. export default {
  279. name: 'CustomerDetail',
  280. components: {
  281. Edit,
  282. Contact,
  283. Allocate,
  284. Shift,
  285. ToOpen,
  286. FollowDetail,
  287. },
  288. data() {
  289. return {
  290. id: '',
  291. privateCus: '',
  292. detail: {
  293. custCode: '', //客户编码
  294. abbrName: '', //助记名
  295. level: '', //客户级别
  296. indusTry: '', //客户行业
  297. custStatus: '', //客户状态
  298. followUpDate: '', //最后跟进时间
  299. },
  300. abstract: {
  301. followContent: '', //跟进次数
  302. notFollowDay: '', //未跟进天数
  303. business: '', //商机数量
  304. businessTotal: '', //商机总额
  305. dealCotal: '', //成交次数
  306. dealTotal: '', //成交总额
  307. paymentTotal: '', //回款总额
  308. notPaymentTotal: '', //未回款总额
  309. drawTotal: '', //开票总额
  310. },
  311. activeName: 'follow',
  312. listLoading: false,
  313. contactList: [],
  314. selectRows: [],
  315. records: [], //操作记录
  316. followList: [], //跟进记录
  317. belongs: [],
  318. }
  319. },
  320. computed: {
  321. ...mapGetters({
  322. avatar: 'user/avatar',
  323. username: 'user/username',
  324. }),
  325. },
  326. mounted() {
  327. this.id = this.$route.query.id
  328. this.privateCus = this.$route.query.privateCus
  329. this.init()
  330. this.getDynamics()
  331. this.handleClick({ name: 'follow' })
  332. },
  333. methods: {
  334. async init() {
  335. Promise.all([api.getDetail({ ids: [parseInt(this.id)] }), api.getAbstract({ id: parseInt(this.id) })]).then(
  336. ([detail, abstract]) => {
  337. if (detail.data.list[0]) this.detail = detail.data.list[0]
  338. if (abstract.data.list) this.abstract = abstract.data.list
  339. }
  340. )
  341. },
  342. async getDynamics() {
  343. const [err, res] = await to(api.dynamicsList({ custId: parseInt(this.id) }))
  344. if (err) return
  345. if (res.data.list[0]) {
  346. let obj = res.data.list[0]
  347. const keys = Object.keys(obj).reverse()
  348. let records = {}
  349. for (const item of keys) {
  350. records[item] = obj[item]
  351. }
  352. this.records = records
  353. }
  354. },
  355. setSelectRows(val) {
  356. this.selectRows = val
  357. },
  358. async handleClick(tab) {
  359. let err, res
  360. if (tab.name == 'contact') {
  361. ;[err, res] = await to(api.getContact({ custId: parseInt(this.id) }))
  362. if (err) return
  363. this.contactList = res.data.list || []
  364. } else if (tab.name == 'follow') {
  365. let params = {
  366. custId: this.id,
  367. DaysBeforeToday: 9999,
  368. }
  369. ;[err, res] = await to(follow.getListByDay(params))
  370. if (err) return
  371. this.followList = res.data.list || []
  372. } else if (tab.name == 'belong' && this.belongs.length == 0) {
  373. ;[err, res] = await to(api.getBelongs({ custId: parseInt(this.id) }))
  374. if (err) return
  375. this.belongs = res.data.list || []
  376. }
  377. },
  378. // 添加联系人
  379. addContact() {
  380. this.$refs.contact.contactForm.custId = this.detail.id
  381. this.$refs.contact.contactForm.custName = this.detail.custName
  382. this.$refs.contact.contactVisible = true
  383. },
  384. // 保存联系人
  385. contactSave() {
  386. this.handleClick({ name: 'contact' })
  387. this.getDynamics()
  388. },
  389. // 编辑客户
  390. handleEdit() {
  391. this.$refs.edit.title = '编辑客户'
  392. this.$refs.edit.editForm = { ...this.detail }
  393. this.$refs.edit.editVisible = true
  394. this.$refs.edit.showLocation()
  395. },
  396. // 编辑联系人
  397. contactEdit(row) {
  398. this.$refs.contact.contactForm = { ...row }
  399. this.$refs.contact.contactVisible = true
  400. },
  401. // 删除联系人
  402. contactDel(row) {
  403. this.$confirm('确认删除?', '提示', {
  404. confirmButtonText: '确定',
  405. cancelButtonText: '取消',
  406. type: 'warning',
  407. })
  408. .then(async () => {
  409. const [err, res] = await to(api.deleteContact({ Id: row.id, custId: parseInt(this.id) }))
  410. if (err) return
  411. if (res.code == 200) {
  412. this.$message({
  413. type: 'success',
  414. message: '删除成功!',
  415. })
  416. this.contactSave()
  417. }
  418. })
  419. .catch(() => {})
  420. },
  421. // 转移客户
  422. handleShift() {
  423. this.$refs.shift.form.Ids = [parseInt(this.id)]
  424. this.$refs.shift.visible = true
  425. },
  426. // 移入公海
  427. handleToOpen() {
  428. this.$refs.toOpen.form.ids = [parseInt(this.id)]
  429. this.$refs.toOpen.visible = true
  430. },
  431. // 客户删除
  432. handleDelete() {
  433. this.$confirm('确认删除?', '提示', {
  434. confirmButtonText: '确定',
  435. cancelButtonText: '取消',
  436. type: 'warning',
  437. })
  438. .then(async () => {
  439. const [err, res] = await to(api.deleteCustomer({ Id: parseInt(this.id) }))
  440. if (err) return
  441. if (res.code == 200) {
  442. this.$message({
  443. type: 'success',
  444. message: '删除成功!',
  445. })
  446. this.$router.go(-1)
  447. }
  448. })
  449. .catch(() => {})
  450. },
  451. backToOpen() {
  452. this.$router.push('/customer/openSea')
  453. },
  454. back() {
  455. this.$router.go(-1)
  456. },
  457. // 领取
  458. handleReceive() {
  459. this.$confirm('确认领取客户?', '提示', {
  460. confirmButtonText: '确定',
  461. cancelButtonText: '取消',
  462. type: 'warning',
  463. })
  464. .then(async () => {
  465. const [err, res] = await to(
  466. api.receiveCustomer({
  467. ids: [parseInt(this.id)],
  468. salesId: this.$store.state.user.id,
  469. salesName: this.$store.state.user.username,
  470. receive: '1',
  471. })
  472. )
  473. if (err) return
  474. if (res.code == 200) {
  475. this.$message({
  476. type: 'success',
  477. message: '领取成功!',
  478. })
  479. this.$router.push('/customer/list')
  480. }
  481. })
  482. .catch(() => {})
  483. },
  484. handleAllocate() {
  485. this.$refs.allocate.ids = [parseInt(this.id)]
  486. this.$refs.allocate.visible = true
  487. },
  488. customerSave() {
  489. this.init()
  490. this.getDynamics()
  491. },
  492. formatType(val) {
  493. let str = ''
  494. if (val == 10) str = '电话'
  495. else if (val == 20) str = '邮件'
  496. else if (val == 30) str = '拜访'
  497. return str
  498. },
  499. // 跟进记录详情
  500. showDetail(row) {
  501. this.$refs.followDetail.init({ ...row })
  502. },
  503. // 展开评论
  504. showComment(row) {
  505. if (!row.comments.length) return this.$message.warning('暂无评论')
  506. row.showComment = !row.showComment
  507. this.$forceUpdate()
  508. },
  509. },
  510. }
  511. </script>
  512. <style lang="scss" scoped>
  513. $base: '.detail';
  514. #{$base} {
  515. height: calc(100vh - 60px - 50px - 12px * 2 - 40px);
  516. display: flex;
  517. padding: 20px 40px;
  518. > .el-row {
  519. flex: 1;
  520. > .el-col {
  521. height: 100%;
  522. }
  523. }
  524. .title {
  525. p,
  526. h3 {
  527. margin: 0;
  528. }
  529. p {
  530. font-size: 14px;
  531. font-weight: 400;
  532. line-height: 22px;
  533. }
  534. h3 {
  535. font-size: 24px;
  536. font-weight: 500;
  537. line-height: 36px;
  538. color: #333;
  539. display: flex;
  540. justify-content: space-between;
  541. }
  542. }
  543. header {
  544. height: 74px;
  545. background: rgba(196, 196, 196, 0.5);
  546. border-radius: 4px;
  547. display: flex;
  548. align-items: center;
  549. padding: 0 20px;
  550. margin-top: 16px;
  551. ::v-deep .el-descriptions__body {
  552. background: transparent;
  553. }
  554. ::v-deep .my-label {
  555. font-size: 14px;
  556. font-weight: 600;
  557. color: #1d66dc;
  558. }
  559. ::v-deep .my-content {
  560. font-size: 14px;
  561. font-weight: 600;
  562. color: #333;
  563. }
  564. }
  565. .el-tabs {
  566. height: calc(100% - 148px);
  567. display: flex;
  568. flex-direction: column;
  569. ::v-deep .el-tabs__content {
  570. flex: 1;
  571. .el-tab-pane {
  572. height: 100%;
  573. }
  574. }
  575. }
  576. .buttons {
  577. padding-top: 28px;
  578. text-align: right;
  579. }
  580. .records {
  581. margin: 0;
  582. padding: 10px 20px;
  583. list-style: none;
  584. height: calc(100% - 60px);
  585. overflow-y: auto;
  586. > li {
  587. display: flex;
  588. & + li {
  589. margin-top: 10px;
  590. }
  591. }
  592. .date {
  593. width: 100px;
  594. display: flex;
  595. flex-direction: column;
  596. align-items: center;
  597. h2,
  598. h3 {
  599. margin: 0;
  600. }
  601. h2 {
  602. font-size: 26px;
  603. line-height: 32px;
  604. }
  605. }
  606. .content {
  607. flex: 1;
  608. list-style: none;
  609. li {
  610. display: flex;
  611. & + li {
  612. margin-top: 10px;
  613. }
  614. }
  615. .user-avatar {
  616. font-size: 40px;
  617. }
  618. .text {
  619. flex: 1;
  620. padding-left: 20px;
  621. p {
  622. font-weight: 500;
  623. margin: 0;
  624. line-height: 20px;
  625. span {
  626. color: #1d66dc;
  627. }
  628. }
  629. p:nth-child(2) {
  630. margin-bottom: 10px;
  631. }
  632. .action {
  633. font-weight: bold;
  634. color: #333;
  635. }
  636. }
  637. }
  638. }
  639. .follow {
  640. height: 100%;
  641. padding: 10px 20px;
  642. overflow: auto;
  643. > li {
  644. display: flex;
  645. + li {
  646. margin-top: 10px;
  647. }
  648. }
  649. .date {
  650. width: 100px;
  651. display: flex;
  652. flex-direction: column;
  653. align-items: center;
  654. h2,
  655. h3 {
  656. margin: 0;
  657. }
  658. h2 {
  659. font-size: 26px;
  660. line-height: 32px;
  661. }
  662. }
  663. .content {
  664. flex: 1;
  665. list-style: none;
  666. > li {
  667. border: 1px solid rgb(215, 232, 244);
  668. background: rgb(247, 251, 254);
  669. border-radius: 4px;
  670. padding: 8px;
  671. overflow: hidden;
  672. .text-container {
  673. display: flex;
  674. }
  675. .comments {
  676. padding-left: 60px;
  677. margin-top: 10px;
  678. max-height: 190px;
  679. overflow: auto;
  680. li {
  681. display: flex;
  682. border-top: 1px solid #e3e5e7;
  683. .text {
  684. flex: 1;
  685. padding: 0 10px;
  686. p {
  687. font-weight: 500;
  688. margin: 0;
  689. line-height: 32px;
  690. }
  691. p:first-child {
  692. line-height: 30px;
  693. font-weight: bold;
  694. }
  695. p:last-child {
  696. font-size: 12px;
  697. color: #9499a0;
  698. text-align: right;
  699. }
  700. }
  701. }
  702. }
  703. + li {
  704. margin-top: 10px;
  705. }
  706. }
  707. .user-avatar {
  708. font-size: 40px;
  709. }
  710. .text {
  711. flex: 1;
  712. padding-left: 20px;
  713. padding-right: 10px;
  714. p {
  715. font-weight: 500;
  716. margin: 0;
  717. line-height: 32px;
  718. span {
  719. color: #1d66dc;
  720. }
  721. }
  722. .action {
  723. display: flex;
  724. justify-content: space-between;
  725. span:first-child {
  726. font-weight: bold;
  727. color: #333;
  728. }
  729. }
  730. .footer {
  731. display: flex;
  732. justify-content: space-between;
  733. align-items: center;
  734. }
  735. }
  736. }
  737. }
  738. .no-follow {
  739. height: 100%;
  740. width: 100%;
  741. display: flex;
  742. align-items: center;
  743. justify-content: center;
  744. font-size: 12px;
  745. color: rgba(0, 0, 0, 0.65);
  746. }
  747. }
  748. .height-enter-active,
  749. .height-leave-active {
  750. transition: all 0.5s;
  751. }
  752. .height-enter-to,
  753. .height-leave {
  754. height: 190px;
  755. }
  756. .height-enter, .height-leave-to /* .fade-leave-active below version 2.1.8 */ {
  757. height: 0;
  758. }
  759. ::v-deep .el-descriptions__table tbody {
  760. td,
  761. th {
  762. width: 25%;
  763. }
  764. }
  765. </style>