detail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  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. <el-tag v-else-if="scope.row.opnType == 40">合并</el-tag>
  209. </template>
  210. </el-table-column>
  211. <el-table-column align="center" label="操作人" prop="createdName" />
  212. <el-table-column align="center" label="操作时间" min-width="160px" prop="opnDatetime" />
  213. <el-table-column align="center" label="备注" prop="remark" />
  214. </el-table>
  215. </el-tab-pane>
  216. </el-tabs>
  217. </el-col>
  218. <el-col :span="8">
  219. <div class="buttons">
  220. <el-button type="primary" @click="handleEdit">编辑</el-button>
  221. <el-button @click="handleDelete">删除</el-button>
  222. </div>
  223. <ul class="records">
  224. <li v-for="(value, key) in records" :key="key">
  225. <div class="date">
  226. <h2>{{ key.split('-')[2] }}</h2>
  227. <h3>{{ key.split('-').splice(0, 2).join('.') }}</h3>
  228. </div>
  229. <ul class="content">
  230. <li v-for="(item, index) in records[key]" :key="index">
  231. <!-- <el-avatar class="user-avatar"
  232. :src="avatar" /> -->
  233. <vab-icon class="user-avatar" icon="account-circle-fill" />
  234. <div class="text">
  235. <p class="action">{{ item.opnPeople }} {{ item.opnType }}</p>
  236. <p>{{ item.opnDate }}</p>
  237. <p v-if="item.opnContent.custName">
  238. 客户名称:
  239. <span>{{ item.opnContent.custName }}</span>
  240. </p>
  241. <template v-else-if="item.opnContent.cuctName">
  242. <p>
  243. 联系人名称:
  244. <span>{{ item.opnContent.cuctName }}</span>
  245. </p>
  246. <p>职务:{{ item.opnContent.postion }}</p>
  247. <p>手机:{{ item.opnContent.telephone }}</p>
  248. </template>
  249. </div>
  250. </li>
  251. </ul>
  252. </li>
  253. </ul>
  254. </el-col>
  255. </el-row>
  256. <Contact ref="contact" @contactSave="contactSave" />
  257. <Edit ref="edit" @customerSave="customerSave" />
  258. <!-- 分配客户 -->
  259. <Allocate ref="allocate" @refresh="back" />
  260. <!-- 转移客户 -->
  261. <Shift ref="shift" @refresh="back" />
  262. <!-- 移入公海 -->
  263. <ToOpen ref="toOpen" @refresh="backToOpen" />
  264. <!-- 跟进详情 -->
  265. <FollowDetail ref="followDetail" />
  266. </div>
  267. </template>
  268. <script>
  269. import { mapGetters } from 'vuex'
  270. import api from '@/api/customer'
  271. import follow from '@/api/customer/follow'
  272. import to from 'await-to-js'
  273. import Contact from './components/Contact'
  274. import Edit from './components/Edit'
  275. import Allocate from './components/Allocate'
  276. import Shift from './components/Shift'
  277. import ToOpen from './components/ToOpen'
  278. import FollowDetail from './components/FollowDetail.vue'
  279. export default {
  280. name: 'CustomerDetail',
  281. components: {
  282. Edit,
  283. Contact,
  284. Allocate,
  285. Shift,
  286. ToOpen,
  287. FollowDetail,
  288. },
  289. data() {
  290. return {
  291. id: '',
  292. privateCus: '',
  293. detail: {
  294. custCode: '', //客户编码
  295. abbrName: '', //助记名
  296. level: '', //客户级别
  297. indusTry: '', //客户行业
  298. custStatus: '', //客户状态
  299. followUpDate: '', //最后跟进时间
  300. },
  301. abstract: {
  302. followContent: '', //跟进次数
  303. notFollowDay: '', //未跟进天数
  304. business: '', //商机数量
  305. businessTotal: '', //商机总额
  306. dealCotal: '', //成交次数
  307. dealTotal: '', //成交总额
  308. paymentTotal: '', //回款总额
  309. notPaymentTotal: '', //未回款总额
  310. drawTotal: '', //开票总额
  311. },
  312. activeName: 'follow',
  313. listLoading: false,
  314. contactList: [],
  315. selectRows: [],
  316. records: [], //操作记录
  317. followList: [], //跟进记录
  318. belongs: [],
  319. }
  320. },
  321. computed: {
  322. ...mapGetters({
  323. avatar: 'user/avatar',
  324. username: 'user/username',
  325. }),
  326. },
  327. mounted() {
  328. this.id = this.$route.query.id
  329. this.privateCus = this.$route.query.privateCus
  330. this.init()
  331. this.getDynamics()
  332. this.handleClick({ name: 'follow' })
  333. },
  334. methods: {
  335. async init() {
  336. Promise.all([api.getDetail({ ids: [parseInt(this.id)] }), api.getAbstract({ id: parseInt(this.id) })]).then(
  337. ([detail, abstract]) => {
  338. if (detail.data.list[0]) this.detail = detail.data.list[0]
  339. if (abstract.data.list) this.abstract = abstract.data.list
  340. }
  341. )
  342. },
  343. async getDynamics() {
  344. const [err, res] = await to(api.dynamicsList({ custId: parseInt(this.id) }))
  345. if (err) return
  346. if (res.data.list[0]) {
  347. let obj = res.data.list[0]
  348. const keys = Object.keys(obj).reverse()
  349. let records = {}
  350. for (const item of keys) {
  351. records[item] = obj[item]
  352. }
  353. this.records = records
  354. }
  355. },
  356. setSelectRows(val) {
  357. this.selectRows = val
  358. },
  359. async handleClick(tab) {
  360. let err, res
  361. if (tab.name == 'contact') {
  362. ;[err, res] = await to(api.getContact({ custId: parseInt(this.id) }))
  363. if (err) return
  364. this.contactList = res.data.list || []
  365. } else if (tab.name == 'follow') {
  366. let params = {
  367. custId: this.id,
  368. DaysBeforeToday: 9999,
  369. }
  370. ;[err, res] = await to(follow.getListByDay(params))
  371. if (err) return
  372. this.followList = res.data.list || []
  373. } else if (tab.name == 'belong' && this.belongs.length == 0) {
  374. ;[err, res] = await to(api.getBelongs({ custId: parseInt(this.id) }))
  375. if (err) return
  376. this.belongs = res.data.list || []
  377. }
  378. },
  379. // 添加联系人
  380. addContact() {
  381. this.$refs.contact.contactForm.custId = this.detail.id
  382. this.$refs.contact.contactForm.custName = this.detail.custName
  383. this.$refs.contact.contactVisible = true
  384. },
  385. // 保存联系人
  386. contactSave() {
  387. this.handleClick({ name: 'contact' })
  388. this.getDynamics()
  389. },
  390. // 编辑客户
  391. handleEdit() {
  392. this.$refs.edit.title = '编辑客户'
  393. this.$refs.edit.editForm = { ...this.detail }
  394. this.$refs.edit.editVisible = true
  395. this.$refs.edit.showLocation()
  396. },
  397. // 编辑联系人
  398. contactEdit(row) {
  399. this.$refs.contact.contactForm = { ...row }
  400. this.$refs.contact.contactVisible = true
  401. },
  402. // 删除联系人
  403. contactDel(row) {
  404. this.$confirm('确认删除?', '提示', {
  405. confirmButtonText: '确定',
  406. cancelButtonText: '取消',
  407. type: 'warning',
  408. })
  409. .then(async () => {
  410. const [err, res] = await to(api.deleteContact({ Id: row.id, custId: parseInt(this.id) }))
  411. if (err) return
  412. if (res.code == 200) {
  413. this.$message({
  414. type: 'success',
  415. message: '删除成功!',
  416. })
  417. this.contactSave()
  418. }
  419. })
  420. .catch(() => {})
  421. },
  422. // 转移客户
  423. handleShift() {
  424. this.$refs.shift.form.Ids = [parseInt(this.id)]
  425. this.$refs.shift.visible = true
  426. },
  427. // 移入公海
  428. handleToOpen() {
  429. this.$refs.toOpen.form.ids = [parseInt(this.id)]
  430. this.$refs.toOpen.visible = true
  431. },
  432. // 客户删除
  433. handleDelete() {
  434. this.$confirm('确认删除?', '提示', {
  435. confirmButtonText: '确定',
  436. cancelButtonText: '取消',
  437. type: 'warning',
  438. })
  439. .then(async () => {
  440. const [err, res] = await to(api.deleteCustomer({ Id: parseInt(this.id) }))
  441. if (err) return
  442. if (res.code == 200) {
  443. this.$message({
  444. type: 'success',
  445. message: '删除成功!',
  446. })
  447. this.$router.go(-1)
  448. }
  449. })
  450. .catch(() => {})
  451. },
  452. backToOpen() {
  453. this.$router.push('/customer/openSea')
  454. },
  455. back() {
  456. this.$router.go(-1)
  457. },
  458. // 领取
  459. handleReceive() {
  460. this.$confirm('确认领取客户?', '提示', {
  461. confirmButtonText: '确定',
  462. cancelButtonText: '取消',
  463. type: 'warning',
  464. })
  465. .then(async () => {
  466. const [err, res] = await to(
  467. api.receiveCustomer({
  468. ids: [parseInt(this.id)],
  469. salesId: this.$store.state.user.id,
  470. salesName: this.$store.state.user.username,
  471. receive: '1',
  472. })
  473. )
  474. if (err) return
  475. if (res.code == 200) {
  476. this.$message({
  477. type: 'success',
  478. message: '领取成功!',
  479. })
  480. this.$router.push('/customer/list')
  481. }
  482. })
  483. .catch(() => {})
  484. },
  485. handleAllocate() {
  486. this.$refs.allocate.ids = [parseInt(this.id)]
  487. this.$refs.allocate.visible = true
  488. },
  489. customerSave() {
  490. this.init()
  491. this.getDynamics()
  492. },
  493. formatType(val) {
  494. let str = ''
  495. if (val == 10) str = '电话'
  496. else if (val == 20) str = '邮件'
  497. else if (val == 30) str = '拜访'
  498. return str
  499. },
  500. // 跟进记录详情
  501. showDetail(row) {
  502. this.$refs.followDetail.init({ ...row })
  503. },
  504. // 展开评论
  505. showComment(row) {
  506. if (!row.comments.length) return this.$message.warning('暂无评论')
  507. row.showComment = !row.showComment
  508. this.$forceUpdate()
  509. },
  510. },
  511. }
  512. </script>
  513. <style lang="scss" scoped>
  514. $base: '.detail';
  515. #{$base} {
  516. height: calc(100vh - 60px - 50px - 12px * 2 - 40px);
  517. display: flex;
  518. padding: 20px 40px;
  519. > .el-row {
  520. flex: 1;
  521. > .el-col {
  522. height: 100%;
  523. }
  524. }
  525. .title {
  526. p,
  527. h3 {
  528. margin: 0;
  529. }
  530. p {
  531. font-size: 14px;
  532. font-weight: 400;
  533. line-height: 22px;
  534. }
  535. h3 {
  536. font-size: 24px;
  537. font-weight: 500;
  538. line-height: 36px;
  539. color: #333;
  540. display: flex;
  541. justify-content: space-between;
  542. }
  543. }
  544. header {
  545. height: 74px;
  546. background: rgba(196, 196, 196, 0.5);
  547. border-radius: 4px;
  548. display: flex;
  549. align-items: center;
  550. padding: 0 20px;
  551. margin-top: 16px;
  552. ::v-deep .el-descriptions__body {
  553. background: transparent;
  554. }
  555. ::v-deep .my-label {
  556. font-size: 14px;
  557. font-weight: 600;
  558. color: #1d66dc;
  559. }
  560. ::v-deep .my-content {
  561. font-size: 14px;
  562. font-weight: 600;
  563. color: #333;
  564. }
  565. }
  566. .el-tabs {
  567. height: calc(100% - 148px);
  568. display: flex;
  569. flex-direction: column;
  570. ::v-deep .el-tabs__content {
  571. flex: 1;
  572. .el-tab-pane {
  573. height: 100%;
  574. }
  575. }
  576. }
  577. .buttons {
  578. padding-top: 28px;
  579. text-align: right;
  580. }
  581. .records {
  582. margin: 0;
  583. padding: 10px 20px;
  584. list-style: none;
  585. height: calc(100% - 60px);
  586. overflow-y: auto;
  587. > li {
  588. display: flex;
  589. & + li {
  590. margin-top: 10px;
  591. }
  592. }
  593. .date {
  594. width: 100px;
  595. display: flex;
  596. flex-direction: column;
  597. align-items: center;
  598. h2,
  599. h3 {
  600. margin: 0;
  601. }
  602. h2 {
  603. font-size: 26px;
  604. line-height: 32px;
  605. }
  606. }
  607. .content {
  608. flex: 1;
  609. list-style: none;
  610. li {
  611. display: flex;
  612. & + li {
  613. margin-top: 10px;
  614. }
  615. }
  616. .user-avatar {
  617. font-size: 40px;
  618. }
  619. .text {
  620. flex: 1;
  621. padding-left: 20px;
  622. p {
  623. font-weight: 500;
  624. margin: 0;
  625. line-height: 20px;
  626. span {
  627. color: #1d66dc;
  628. }
  629. }
  630. p:nth-child(2) {
  631. margin-bottom: 10px;
  632. }
  633. .action {
  634. font-weight: bold;
  635. color: #333;
  636. }
  637. }
  638. }
  639. }
  640. .follow {
  641. height: 100%;
  642. padding: 10px 20px;
  643. overflow: auto;
  644. > li {
  645. display: flex;
  646. + li {
  647. margin-top: 10px;
  648. }
  649. }
  650. .date {
  651. width: 100px;
  652. display: flex;
  653. flex-direction: column;
  654. align-items: center;
  655. h2,
  656. h3 {
  657. margin: 0;
  658. }
  659. h2 {
  660. font-size: 26px;
  661. line-height: 32px;
  662. }
  663. }
  664. .content {
  665. flex: 1;
  666. list-style: none;
  667. > li {
  668. border: 1px solid rgb(215, 232, 244);
  669. background: rgb(247, 251, 254);
  670. border-radius: 4px;
  671. padding: 8px;
  672. overflow: hidden;
  673. .text-container {
  674. display: flex;
  675. }
  676. .comments {
  677. padding-left: 60px;
  678. margin-top: 10px;
  679. max-height: 190px;
  680. overflow: auto;
  681. li {
  682. display: flex;
  683. border-top: 1px solid #e3e5e7;
  684. .text {
  685. flex: 1;
  686. padding: 0 10px;
  687. p {
  688. font-weight: 500;
  689. margin: 0;
  690. line-height: 32px;
  691. }
  692. p:first-child {
  693. line-height: 30px;
  694. font-weight: bold;
  695. }
  696. p:last-child {
  697. font-size: 12px;
  698. color: #9499a0;
  699. text-align: right;
  700. }
  701. }
  702. }
  703. }
  704. + li {
  705. margin-top: 10px;
  706. }
  707. }
  708. .user-avatar {
  709. font-size: 40px;
  710. }
  711. .text {
  712. flex: 1;
  713. padding-left: 20px;
  714. padding-right: 10px;
  715. p {
  716. font-weight: 500;
  717. margin: 0;
  718. line-height: 32px;
  719. span {
  720. color: #1d66dc;
  721. }
  722. }
  723. .action {
  724. display: flex;
  725. justify-content: space-between;
  726. span:first-child {
  727. font-weight: bold;
  728. color: #333;
  729. }
  730. }
  731. .footer {
  732. display: flex;
  733. justify-content: space-between;
  734. align-items: center;
  735. }
  736. }
  737. }
  738. }
  739. .no-follow {
  740. height: 100%;
  741. width: 100%;
  742. display: flex;
  743. align-items: center;
  744. justify-content: center;
  745. font-size: 12px;
  746. color: rgba(0, 0, 0, 0.65);
  747. }
  748. }
  749. .height-enter-active,
  750. .height-leave-active {
  751. transition: all 0.5s;
  752. }
  753. .height-enter-to,
  754. .height-leave {
  755. height: 190px;
  756. }
  757. .height-enter, .height-leave-to /* .fade-leave-active below version 2.1.8 */ {
  758. height: 0;
  759. }
  760. ::v-deep .el-descriptions__table tbody {
  761. td,
  762. th {
  763. width: 25%;
  764. }
  765. }
  766. </style>