index.vue 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  1. <template>
  2. <div class="box-container">
  3. <div class="box-container-top">
  4. <el-card class="card-cell middle-cell">
  5. <div slot="header" class="clearfix">
  6. <span>数据概览</span>
  7. </div>
  8. <div class="card-cell-content">
  9. <div
  10. class="card-cell-value"
  11. @click="handelRouterTo('/page-pro/project-initiation')"
  12. >
  13. <div class="img-box img1-url"></div>
  14. <div class="text-box">
  15. <span>{{ projectNum }}</span>
  16. <span>我的项目</span>
  17. </div>
  18. </div>
  19. <div
  20. class="card-cell-value"
  21. @click="handelRouterTo('/page-pro/task-manage')"
  22. >
  23. <div class="img-box img2-url"></div>
  24. <div class="text-box">
  25. <span>{{ taskNum }}</span>
  26. <span>我的任务</span>
  27. </div>
  28. </div>
  29. <div
  30. class="card-cell-value"
  31. @click="handelRouterTo('/page-wt/tickets')"
  32. >
  33. <div class="img-box img3-url"></div>
  34. <div class="text-box">
  35. <span>{{ workOrderNum }}</span>
  36. <span>我的工单</span>
  37. </div>
  38. </div>
  39. <div class="card-cell-value">
  40. <div class="img-box img4-url"></div>
  41. <div class="text-box">
  42. <span>1000</span>
  43. <span>我的绩效</span>
  44. </div>
  45. </div>
  46. </div>
  47. </el-card>
  48. <el-card class="card-cell middle-cell">
  49. <div slot="header" class="clearfix">
  50. <span>个人信息</span>
  51. </div>
  52. <div class="card-cell-info">
  53. <div class="card-cell-value">
  54. <div>
  55. <el-avatar
  56. shape="square"
  57. :size="80"
  58. src="https://empty"
  59. @error="errorHandler"
  60. >
  61. <img :src="user.info.avatarAddress" />
  62. </el-avatar>
  63. </div>
  64. <div class="text-box">
  65. <span>{{ user.info.name }}</span>
  66. <el-tooltip class="item" effect="dark" placement="top-start">
  67. <div slot="content">{{ user.info.groupNameList && user.info.groupNameList.join('/') }}</div>
  68. <span>{{ user.info.groupName }}</span>
  69. </el-tooltip>
  70. <span>{{ getRoleName( user.info.loginChangeGroupVOList)}}</span>
  71. </div>
  72. </div>
  73. <div class="card-cell-date">
  74. <span>{{ date }}</span>
  75. <span>{{ week }} </span>
  76. <span>{{ time }}</span>
  77. </div>
  78. </div>
  79. </el-card>
  80. </div>
  81. <div class="box-container-middle">
  82. <div class="box-container-middl_left">
  83. <el-card class="card-cell middle-cell">
  84. <div slot="header" class="clearfix">
  85. <span>流程待办</span>
  86. </div>
  87. <div style="height: 100%; width: 100%">
  88. <ele-pro-table
  89. ref="table"
  90. class="table-box"
  91. :columns="columns"
  92. :toolkit="[]"
  93. :datasource="datasource"
  94. cache-key="systemHomeTable5"
  95. >
  96. <template v-slot:status="{ row }">
  97. <el-tag type="success" v-if="row.suspensionState === 1"
  98. >激活</el-tag
  99. >
  100. <el-tag type="warning" v-if="row.suspensionState === 2"
  101. >挂起</el-tag
  102. >
  103. </template>
  104. <template v-slot:name="{ row }">
  105. <el-link
  106. type="primary"
  107. :underline="false"
  108. @click="handleAudit('', row)"
  109. >
  110. {{ row.name }}
  111. </el-link>
  112. </template>
  113. <!-- 操作列 -->
  114. <template v-slot:action="{ row }">
  115. <el-button
  116. size="mini"
  117. type="text"
  118. icon="el-icon-edit"
  119. @click="handleAudit('audit', row)"
  120. >处理
  121. </el-button>
  122. <!-- <el-button
  123. size="mini"
  124. type="text"
  125. icon="el-icon-edit"
  126. @click="openEdit('upDate', row)"
  127. >待办详情</el-button
  128. > -->
  129. </template>
  130. </ele-pro-table>
  131. </div>
  132. </el-card>
  133. <el-card class="card-cell middle-cell">
  134. <div slot="header" class="clearfix">
  135. <span>常用功能</span>
  136. </div>
  137. <draggable v-model="commonList" class="card-cell-content">
  138. <div
  139. v-for="(item, index) in commonList"
  140. :key="item.id"
  141. class="card-cell-content-box"
  142. @click="handleAdd(item, index)"
  143. :title="
  144. !['-999', '-1'].includes(item.id) && isDelFlag ? '点击删除' : ''
  145. "
  146. :class="
  147. !['-999', '-1'].includes(item.id) && isDelFlag ? 'div-del' : ''
  148. "
  149. >
  150. <!-- <el-popover-->
  151. <!-- v-if="item.id !=='-1'"-->
  152. <!-- placement="top-start"-->
  153. <!-- title=""-->
  154. <!-- width="10px"-->
  155. <!-- trigger="click"-->
  156. <!-- content="">-->
  157. <!-- <i style="color: red" class="el-icon-delete"></i>-->
  158. <!-- <div class="card-cell-content-div" slot="reference">-->
  159. <!-- <i :class="item.icon||'el-icon-menu'"></i>-->
  160. <!-- <span>{{ item.name }}</span>-->
  161. <!-- </div>-->
  162. <!-- </el-popover>-->
  163. <!-- <el-tooltip placement="top" effect="light" v-if="item.id !=='-1'">-->
  164. <!-- <div slot="content">-->
  165. <!-- <i style="color: red;cursor: pointer;font-size: 18px" class="el-icon-delete"-->
  166. <!-- @click="handleCommonListDel(item,index)"></i>-->
  167. <!-- </div>-->
  168. <!-- <div class="card-cell-content-div">-->
  169. <!-- <i :class="item.icon||'el-icon-s-opportunity'"></i>-->
  170. <!-- <span>{{ item.name }}</span>-->
  171. <!-- </div>-->
  172. <!-- </el-tooltip>-->
  173. <div class="card-cell-content-div">
  174. <i :class="item.icon || 'el-icon-s-opportunity'"></i>
  175. <span>{{ item.name }}</span>
  176. </div>
  177. </div>
  178. </draggable>
  179. </el-card>
  180. </div>
  181. <div class="box-container-middl_right">
  182. <el-card
  183. v-if="list.length > 0"
  184. class="card-cell middle-cell card-cell_top"
  185. >
  186. <div slot="header" class="clearfix">
  187. <span>统一门户</span>
  188. </div>
  189. <div class="list">
  190. <div
  191. v-for="(item, index) in list"
  192. :class="[(index + 1) % 3 == 0 ? 'item margin_0' : 'item']"
  193. @click="openUrl(item)"
  194. >
  195. <div><img :src="item.img" /></div>
  196. <div>{{ item.name }}</div>
  197. </div>
  198. </div>
  199. </el-card>
  200. <el-card class="card-cell middle-cell card-cell_bottom">
  201. <div slot="header" class="clearfix">
  202. <span>消息提醒</span>
  203. </div>
  204. <div>
  205. <vue-seamless-scroll
  206. class="scroll-box"
  207. v-if="messageScrollList.length"
  208. :data="messageScrollList"
  209. :class-option="defineScroll"
  210. >
  211. <el-timeline class="scroll-box-content">
  212. <el-timeline-item
  213. :hide-timestamp="false"
  214. v-for="o in messageScrollList"
  215. :key="o.id"
  216. >
  217. <template slot="dot">
  218. <span class="scroll-box-content-dot"></span>
  219. </template>
  220. <div class="scroll-box-content-item">
  221. <span class="item-date">{{ o.createTime }}</span>
  222. <span
  223. class="item-text"
  224. :title="`${o.templateNickname + ':' + o.templateContent}`"
  225. >
  226. <span style="font-size: 0.8vw">{{
  227. o.templateNickname + ':'
  228. }}</span>
  229. {{ o.templateContent }}</span
  230. >
  231. </div>
  232. </el-timeline-item>
  233. </el-timeline>
  234. </vue-seamless-scroll>
  235. <el-empty v-else description="暂无"></el-empty>
  236. </div>
  237. </el-card>
  238. </div>
  239. </div>
  240. <!-- <div class="box-container-bottom">
  241. </div> -->
  242. <handleTask ref="handleTaskRef" @reload="reload"></handleTask>
  243. <detail ref="detailRef"></detail>
  244. <commonDialog
  245. ref="commonDialogRef"
  246. v-if="commonDialogFlag"
  247. :common-dialog-flag.sync="commonDialogFlag"
  248. @reload="getUserResourceList"
  249. ></commonDialog>
  250. <handleFormParserTask
  251. v-if="formParserDialogFlag"
  252. @reload="reload"
  253. :formParserDialogFlag.sync="formParserDialogFlag"
  254. ref="formParserDialogRef"
  255. ></handleFormParserTask>
  256. </div>
  257. </template>
  258. <script>
  259. import { getTodoTaskPage, notifyMessagePageAPI } from '@/api/bpm/task';
  260. import { mapGetters } from 'vuex';
  261. import detail from '@/views/bpm/processInstance/detail.vue';
  262. import handleTask from '@/views/bpm/handleTask/index.vue';
  263. import { deepClone } from 'ele-admin/lib/utils/core';
  264. import vueSeamlessScroll from 'vue-seamless-scroll';
  265. import {
  266. projectsPageAPI,
  267. projectsTaskPageAPI,
  268. userResourceDeleteAPI,
  269. userResourceListAPI,
  270. getList
  271. } from '@/api/home';
  272. import { getWorkOrderPage } from '@/api/tickets';
  273. import { statistics } from '@/api/bpm/components/inspectionManage';
  274. import commonDialog from '@/views/home/common-dialog.vue';
  275. import xyy from '@/assets/xyy.jpg';
  276. import draggable from 'vuedraggable';
  277. import handleFormParserTask from '@/views/bpm/handleTask/formParser/formParserDialog.vue';
  278. export default {
  279. name: 'index',
  280. components: {
  281. handleFormParserTask,
  282. handleTask,
  283. detail,
  284. vueSeamlessScroll,
  285. commonDialog,
  286. draggable
  287. },
  288. data() {
  289. return {
  290. xyy,
  291. list: [],
  292. time: '',
  293. date: '',
  294. week: '',
  295. commonDialogFlag: false,
  296. formParserDialogFlag: false,
  297. updateTimer: null,
  298. projectNum: 0,
  299. taskNum: 0,
  300. workOrderNum: 0,
  301. messageScrollList: [],
  302. defineScroll: {
  303. step: 0.2, // 数值越大速度滚动越快
  304. limitMoveNum: 5, // 开始无缝滚动的数据量 this.dataList.length
  305. hoverStop: true, // 是否开启鼠标悬停stop
  306. direction: 1, // 0向下 1向上 2向左 3向右
  307. openWatch: true, // 开启数据实时监控刷新dom
  308. singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
  309. singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
  310. waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
  311. },
  312. commonList: [],
  313. isDelFlag: false,
  314. columns: [
  315. {
  316. columnKey: 'index',
  317. label: '序号',
  318. type: 'index',
  319. width: 55,
  320. align: 'center',
  321. showOverflowTooltip: true
  322. },
  323. {
  324. prop: 'processInstance.processTypeName',
  325. label: '流程分类',
  326. align: 'center',
  327. showOverflowTooltip: true,
  328. minWidth: 120
  329. },
  330. {
  331. prop: 'processInstance.name',
  332. label: '流程名称',
  333. align: 'center',
  334. showOverflowTooltip: true,
  335. minWidth: 200
  336. },
  337. {
  338. prop: 'name',
  339. label: '任务名称',
  340. align: 'center',
  341. slot: 'name',
  342. showOverflowTooltip: true,
  343. minWidth: 200
  344. },
  345. {
  346. prop: 'businessCode',
  347. label: '单据编码',
  348. align: 'center',
  349. showOverflowTooltip: true,
  350. minWidth: 120
  351. },
  352. {
  353. prop: 'processInstance.startUserNickname',
  354. label: '流程发起人',
  355. align: 'center',
  356. showOverflowTooltip: true,
  357. minWidth: 120
  358. },
  359. // {
  360. // prop: 'suspensionState',
  361. // slot: 'suspensionState',
  362. // label: '状态',
  363. // align: 'center',
  364. // showOverflowTooltip: true,
  365. // minWidth: 200
  366. // },
  367. {
  368. prop: 'createTime',
  369. label: '创建时间',
  370. align: 'center',
  371. showOverflowTooltip: true,
  372. minWidth: 180
  373. },
  374. {
  375. columnKey: 'action',
  376. label: '操作',
  377. width: 200,
  378. align: 'center',
  379. resizable: false,
  380. slot: 'action',
  381. showOverflowTooltip: true
  382. }
  383. ]
  384. };
  385. },
  386. computed: {
  387. ...mapGetters(['user']),
  388. getRoleName(){
  389. return (list=[])=>{
  390. return list.map(item=>item.loginChangeRoleVOList.map(i=>i.roleName))?.join('/') || '';
  391. }
  392. },
  393. },
  394. created() {
  395. // window.isFullscreen = false
  396. this.updateTimer = setInterval(this.updateTime, 1000);
  397. this.getMessageList();
  398. this.getProjectNum();
  399. this.getTaskNum();
  400. this.getWorkOrderNum();
  401. this.getUserResourceList();
  402. this.getPages();
  403. console.log(this.user);
  404. },
  405. methods: {
  406. openUrl(item) {
  407. window.open('https://' + item.linkUrl, '_blank');
  408. },
  409. async getPages() {
  410. let { list } = await getList({ pageNum: 1, size: 9999 });
  411. this.list = list.map((item) => {
  412. return {
  413. ...item,
  414. img:
  415. window.location.origin +
  416. '/api/main/file/getFile?objectName=' +
  417. item.iconPath
  418. };
  419. });
  420. },
  421. async getProjectNum() {
  422. const { count } = await projectsPageAPI({
  423. size: 1,
  424. pageNum: 1,
  425. parentId: '0'
  426. });
  427. this.projectNum = count;
  428. },
  429. async getTaskNum() {
  430. const { count } = await projectsTaskPageAPI({ size: 1, pageNum: 1 });
  431. this.taskNum = count;
  432. },
  433. async getWorkOrderNum() {
  434. const { total } = await statistics();
  435. this.workOrderNum = total;
  436. },
  437. async getUserResourceList() {
  438. this.commonList = await userResourceListAPI();
  439. this.commonList.unshift({
  440. name: '添加',
  441. id: '-1',
  442. icon: 'el-icon-edit'
  443. });
  444. this.commonList.push({
  445. name: '删除',
  446. id: '-999',
  447. icon: 'el-icon-delete'
  448. });
  449. },
  450. handelRouterTo(path) {
  451. window.history.pushState(null, '', path);
  452. // this.$router.push(path);
  453. },
  454. handleAdd(item, index) {
  455. if (item.id == -1) {
  456. this.commonDialogFlag = true;
  457. this.$nextTick(() => {
  458. this.$refs.commonDialogRef.init();
  459. });
  460. } else if (item.id == -999) {
  461. this.isDelFlag = !this.isDelFlag;
  462. this.commonList.pop();
  463. this.commonList.push({
  464. name: `${this.isDelFlag ? '取消删除' : '删除'}`,
  465. id: '-999',
  466. icon: 'el-icon-delete'
  467. });
  468. } else {
  469. if (this.isDelFlag) return this.handleCommonListDel(item, index);
  470. let urlPath = item.topUrl + item.url;
  471. this.handelRouterTo(urlPath);
  472. }
  473. },
  474. async handleCommonListDel(item, index) {
  475. await userResourceDeleteAPI([item.id]);
  476. this.commonList.splice(index, 1);
  477. },
  478. /* 表格数据源 */
  479. datasource({ page, limit, where, order }) {
  480. return getTodoTaskPage({
  481. pageNo: page,
  482. pageSize: limit,
  483. ...this.params
  484. });
  485. },
  486. async getMessageList() {
  487. const { list } = await notifyMessagePageAPI({
  488. pageNum: 1,
  489. size: 9999,
  490. userId: this.user.info.userId
  491. });
  492. this.messageScrollList = deepClone(list);
  493. },
  494. errorHandler(err, vm) {
  495. console.log('图片加载失败');
  496. },
  497. //实时更新日期
  498. updateTime() {
  499. let now = new Date();
  500. let hours = now.getHours();
  501. let minutes = now.getMinutes();
  502. let seconds = now.getSeconds();
  503. this.time =
  504. hours.toString().padStart(2, '0') +
  505. ':' +
  506. minutes.toString().padStart(2, '0') +
  507. ':' +
  508. seconds.toString().padStart(2, '0');
  509. let year = now.getFullYear();
  510. let month = now.getMonth() + 1;
  511. let day = now.getDate();
  512. this.date = year + '年' + month + '月' + day + '日';
  513. let weekInfo = {
  514. 1: '一',
  515. 2: '二',
  516. 3: '三',
  517. 4: '四',
  518. 5: '五',
  519. 6: '六',
  520. 0: '日'
  521. };
  522. this.week = '星期' + weekInfo[now.getDay()];
  523. },
  524. /** 处理审批按钮 */
  525. handleAudit(type, row) {
  526. if (Object.keys(row.formJson).length) {
  527. this.formParserDialogFlag = true;
  528. this.$nextTick(() => {
  529. this.$refs.formParserDialogRef.open({
  530. // id: row.processInstance.id,
  531. // taskId: row.id,
  532. // taskDefinitionKey: row.taskDefinitionKey,
  533. // formJson:row.formJson,
  534. // valueJsom:row.formJson,
  535. ...row
  536. });
  537. });
  538. } else if (type == 'audit') {
  539. this.$refs.handleTaskRef.open({
  540. id: row.processInstance.id,
  541. businessId: row.businessId,
  542. taskId: row.id,
  543. taskDefinitionKey: row.taskDefinitionKey,
  544. pcHandleRouter: row.pcHandleRouter,
  545. pcViewRouter: row.pcViewRouter
  546. });
  547. } else {
  548. this.$refs.detailRef.open(row.processInstance.id);
  549. }
  550. },
  551. /* 刷新表格 */
  552. reload(where) {
  553. this.$refs.table.reload({ page: 1, where });
  554. }
  555. },
  556. deactivated() {
  557. clearInterval(this.updateTimer);
  558. }
  559. };
  560. </script>
  561. <style scoped lang="scss">
  562. .box-container {
  563. // height: 100%;
  564. width: 100%;
  565. padding: 10px;
  566. box-sizing: border-box;
  567. display: flex;
  568. flex-direction: column;
  569. height: calc(100vh - 96px);
  570. // width: calc(100%);
  571. .box-container-top {
  572. height: 22%;
  573. width: 100%;
  574. min-height: 180px;
  575. display: flex;
  576. justify-content: space-between;
  577. .middle-cell:nth-child(1) {
  578. flex: 0 0 75%;
  579. .card-cell-content {
  580. padding: 0;
  581. height: 100%;
  582. background: #2e80ee;
  583. display: flex;
  584. align-items: center;
  585. :hover {
  586. background: #79aef5;
  587. }
  588. .card-cell-value {
  589. cursor: pointer;
  590. height: 100%;
  591. display: flex;
  592. flex: 0 0 25%;
  593. align-items: center;
  594. justify-content: center;
  595. .img1-url {
  596. background-image: url('@/assets/home-logo-1.png');
  597. }
  598. .img2-url {
  599. background-image: url('@/assets/home-logo-2.png');
  600. }
  601. .img3-url {
  602. background-image: url('@/assets/home-logo-3.png');
  603. }
  604. .img4-url {
  605. background-image: url('@/assets/home-logo-4.png');
  606. }
  607. .img-box {
  608. width: 60px;
  609. height: 60px;
  610. position: relative;
  611. background-size: contain;
  612. background-repeat: no-repeat;
  613. }
  614. .text-box {
  615. height: 70px;
  616. display: flex;
  617. flex-direction: column;
  618. justify-content: space-around;
  619. color: #ffffff;
  620. padding: 0 10px;
  621. :nth-child(1) {
  622. font-size: 1.5vw;
  623. font-family: fantasy;
  624. }
  625. :nth-child(2) {
  626. font-size: 1vw;
  627. }
  628. }
  629. }
  630. }
  631. }
  632. .middle-cell:nth-child(2) {
  633. flex: 0 0 24.2%;
  634. .card-cell-info {
  635. padding: 0 10px;
  636. height: 100%;
  637. display: flex;
  638. align-items: center;
  639. justify-content: space-between;
  640. font-weight: bold;
  641. .card-cell-value {
  642. display: flex;
  643. height: 80px;
  644. .text-box {
  645. margin: 0 10px;
  646. display: flex;
  647. flex-direction: column;
  648. justify-content: space-around;
  649. font-size: 0.7vw;
  650. color: #000000;
  651. }
  652. }
  653. .card-cell-date {
  654. height: 80px;
  655. display: flex;
  656. flex-direction: column;
  657. justify-content: space-around;
  658. align-items: flex-end;
  659. color: #000000;
  660. font-size: 0.7vw;
  661. margin: 0 10px;
  662. }
  663. }
  664. }
  665. }
  666. .box-container-middle {
  667. flex: 1 0 auto;
  668. height: 0;
  669. overflow: hidden;
  670. margin: 10px 0;
  671. display: flex;
  672. min-height: 280px;
  673. justify-content: space-between;
  674. .box-container-middl_left {
  675. flex: 0 0 75%;
  676. display: flex;
  677. flex-direction: column;
  678. min-width: 0;
  679. .middle-cell:nth-child(1) {
  680. flex: 1;
  681. margin-bottom: 10px;
  682. .table-box {
  683. height: 100%;
  684. display: flex;
  685. flex-direction: column;
  686. :deep(.el-table) {
  687. flex: 1;
  688. display: flex;
  689. flex-direction: column;
  690. .el-table__body-wrapper {
  691. flex: 1;
  692. overflow-y: auto;
  693. }
  694. }
  695. }
  696. }
  697. .middle-cell:nth-child(2) {
  698. flex: 0 0 130px;
  699. .card-cell-content {
  700. display: flex;
  701. align-items: center;
  702. justify-content: flex-start;
  703. flex-wrap: nowrap;
  704. align-content: center;
  705. height: 100%;
  706. overflow-x: auto;
  707. padding: 0 10px;
  708. .card-cell-content-box {
  709. display: flex;
  710. flex-direction: column;
  711. align-items: center;
  712. height: 80%;
  713. width: 100%;
  714. border: 1px solid #e3e5e4;
  715. justify-content: space-evenly;
  716. flex: 0 0 5.5%;
  717. padding: 8px 0;
  718. border-radius: 5px;
  719. margin-right: 10px;
  720. cursor: pointer;
  721. &:hover {
  722. background: #dee4e9;
  723. }
  724. }
  725. .card-cell-content-div {
  726. height: 100%;
  727. width: 100%;
  728. display: flex;
  729. flex-direction: column;
  730. align-items: center;
  731. justify-content: space-evenly;
  732. }
  733. .card-cell-content-div i {
  734. font-size: 2vw;
  735. }
  736. .card-cell-content-div span {
  737. letter-spacing: 2px;
  738. font-weight: 600;
  739. }
  740. }
  741. .middle-cell {
  742. flex: 0 0 100%;
  743. }
  744. }
  745. :deep(.el-card__body) {
  746. overflow: hidden;
  747. }
  748. }
  749. .box-container-middl_right {
  750. flex: 0 0 24.2%;
  751. display: flex;
  752. flex-direction: column;
  753. min-width: 0;
  754. .middle-cell:nth-child(1) {
  755. flex: 4;
  756. }
  757. .middle-cell:nth-child(2) {
  758. flex: 3;
  759. }
  760. .card-cell_top {
  761. margin-bottom: 10px;
  762. }
  763. :deep(.el-card__body) {
  764. overflow: auto;
  765. .list {
  766. flex: 1;
  767. padding: 10px;
  768. box-sizing: border-box;
  769. .item {
  770. background: url('@/assets/bg.png');
  771. background-repeat: no-repeat;
  772. background-size: 100% 100%;
  773. display: inline-block;
  774. width: 32%;
  775. margin-right: 2%;
  776. aspect-ratio: 16/19;
  777. padding: 10px;
  778. box-sizing: border-box;
  779. margin-bottom: 10px;
  780. border-radius: 5px;
  781. cursor: pointer;
  782. > div:first-child {
  783. flex: 1;
  784. display: flex;
  785. align-items: center;
  786. justify-content: center;
  787. > img {
  788. width: 100%;
  789. aspect-ratio: 16/16;
  790. }
  791. }
  792. > div:last-child {
  793. color: #1383f1;
  794. font-weight: bold;
  795. font-size: 12px;
  796. display: flex;
  797. align-items: center;
  798. justify-content: center;
  799. }
  800. }
  801. .margin_0 {
  802. margin-right: 0;
  803. }
  804. }
  805. }
  806. }
  807. .middle-cell:nth-child(1) {
  808. flex: 0 0 70%;
  809. }
  810. .middle-cell:nth-child(2) {
  811. flex: 0 0 29.2%;
  812. :deep(.el-card__body) {
  813. overflow: auto;
  814. .list {
  815. flex: 1;
  816. padding: 10px;
  817. box-sizing: border-box;
  818. .item {
  819. background: url('@/assets/bg.png');
  820. background-repeat: no-repeat;
  821. background-size: 100% 100%;
  822. display: inline-block;
  823. width: 32%;
  824. margin-right: 2%;
  825. aspect-ratio: 16/20;
  826. padding: 10px;
  827. box-sizing: border-box;
  828. margin-bottom: 10px;
  829. border-radius: 5px;
  830. cursor: pointer;
  831. > div:first-child {
  832. flex: 1;
  833. display: flex;
  834. align-items: center;
  835. justify-content: center;
  836. > img {
  837. width: 100%;
  838. aspect-ratio: 16/16;
  839. }
  840. }
  841. > div:last-child {
  842. color: #1383f1;
  843. font-weight: bold;
  844. padding: 10px;
  845. font-size: 12px;
  846. display: flex;
  847. align-items: center;
  848. justify-content: center;
  849. }
  850. }
  851. .margin_0 {
  852. margin-right: 0;
  853. }
  854. }
  855. }
  856. }
  857. // > div:first-child {
  858. // flex: 0 0 70%;
  859. // display: flex;
  860. // flex-direction: column;
  861. // .table-box {
  862. // height: 100%;
  863. // padding: 10px;
  864. // box-sizing: border-box;
  865. // display: flex;
  866. // flex-direction: column;
  867. // }
  868. // .middle-cell:nth-child(1) {
  869. // flex: 1;
  870. // margin-bottom: 10px;
  871. // }
  872. // .middle-cell:nth-child(2) {
  873. // width: 100%;
  874. // display: flex;
  875. // flex-direction: column;
  876. // height: 200px;
  877. // // min-height: 100px;
  878. // // min-width: 400px;
  879. // .card-cell-content {
  880. // display: flex;
  881. // align-items: center;
  882. // justify-content: flex-start;
  883. // flex-wrap: nowrap;
  884. // align-content: center;
  885. // height: 100%;
  886. // overflow-x: auto;
  887. // padding: 0 10px;
  888. // .card-cell-content-box {
  889. // display: flex;
  890. // flex-direction: column;
  891. // align-items: center;
  892. // height: 80%;
  893. // width: 100%;
  894. // border: 1px solid #e3e5e4;
  895. // justify-content: space-evenly;
  896. // flex: 0 0 5.5%;
  897. // padding: 8px 0;
  898. // border-radius: 5px;
  899. // margin-right: 10px;
  900. // cursor: pointer;
  901. // &:hover {
  902. // background: #dee4e9;
  903. // }
  904. // }
  905. // .card-cell-content-div {
  906. // height: 100%;
  907. // width: 100%;
  908. // display: flex;
  909. // flex-direction: column;
  910. // align-items: center;
  911. // justify-content: space-evenly;
  912. // }
  913. // .card-cell-content-div i {
  914. // font-size: 2vw;
  915. // }
  916. // .card-cell-content-div span {
  917. // letter-spacing: 2px;
  918. // font-weight: 600;
  919. // }
  920. // }
  921. // .middle-cell {
  922. // flex: 0 0 100%;
  923. // }
  924. // }
  925. // }
  926. // > div:nth-child(2) {
  927. // flex: 0 0 29.2%;
  928. // display: flex;
  929. // flex-direction: column;
  930. // .middle-cell:nth-child(1) {
  931. // flex: 1;
  932. // margin-bottom: 10px;
  933. // display: flex;
  934. // flex-direction: column;
  935. // .list {
  936. // flex: 1;
  937. // padding: 10px;
  938. // box-sizing: border-box;
  939. // .item {
  940. // display: inline-block;
  941. // width: 32%;
  942. // margin-right: 2%;
  943. // padding: 5px;
  944. // box-sizing: border-box;
  945. // margin-bottom: 10px;
  946. // border-radius: 5px;
  947. // border: 1px solid #ddd;
  948. // cursor: pointer;
  949. // > div:first-child {
  950. // flex: 1;
  951. // display: flex;
  952. // align-items: center;
  953. // justify-content: center;
  954. // > img {
  955. // height: 60px;
  956. // width: 60px;
  957. // }
  958. // }
  959. // > div:last-child {
  960. // height: 30px;
  961. // font-size: 16px;
  962. // display: flex;
  963. // align-items: center;
  964. // justify-content: center;
  965. // }
  966. // }
  967. // .margin_0 {
  968. // margin-right: 0;
  969. // }
  970. // }
  971. // }
  972. // .middle-cell:nth-child(2) {
  973. // width: 100%;
  974. // display: flex;
  975. // flex-direction: column;
  976. // height: 250px;
  977. // }
  978. // }
  979. }
  980. .box-container-bottom {
  981. width: 100%;
  982. display: flex;
  983. height: 300px;
  984. justify-content: space-between;
  985. .middle-cell:nth-child(1) {
  986. flex: 0 0 70%;
  987. }
  988. .middle-cell:nth-child(2) {
  989. flex: 0 0 29.2%;
  990. }
  991. .card-cell-content {
  992. display: flex;
  993. align-items: center;
  994. justify-content: flex-start;
  995. flex-wrap: nowrap;
  996. align-content: center;
  997. height: 100%;
  998. overflow-x: auto;
  999. padding: 0 10px;
  1000. .card-cell-content-box {
  1001. display: flex;
  1002. flex-direction: column;
  1003. align-items: center;
  1004. height: 80%;
  1005. width: 100%;
  1006. border: 1px solid #e3e5e4;
  1007. justify-content: space-evenly;
  1008. flex: 0 0 5.5%;
  1009. padding: 8px 0;
  1010. border-radius: 5px;
  1011. margin-right: 10px;
  1012. cursor: pointer;
  1013. &:hover {
  1014. background: #dee4e9;
  1015. }
  1016. }
  1017. .card-cell-content-div {
  1018. height: 100%;
  1019. width: 100%;
  1020. display: flex;
  1021. flex-direction: column;
  1022. align-items: center;
  1023. justify-content: space-evenly;
  1024. }
  1025. .card-cell-content-div i {
  1026. font-size: 2vw;
  1027. }
  1028. .card-cell-content-div span {
  1029. letter-spacing: 2px;
  1030. font-weight: 600;
  1031. }
  1032. }
  1033. .middle-cell {
  1034. flex: 0 0 100%;
  1035. }
  1036. }
  1037. }
  1038. .el-card + .el-card {
  1039. margin-top: 0;
  1040. }
  1041. ::v-deep .el-card__header {
  1042. padding: 10px !important;
  1043. span {
  1044. font-weight: bold;
  1045. }
  1046. }
  1047. ::v-deep .el-card__body {
  1048. height: calc(100% - 40px);
  1049. padding: 0;
  1050. }
  1051. .scroll-box {
  1052. height: 80%;
  1053. width: 100%;
  1054. padding: 25px 0 0 0;
  1055. overflow: hidden;
  1056. .scroll-box-content {
  1057. height: 80%;
  1058. width: 100%;
  1059. position: relative;
  1060. left: 10px;
  1061. .scroll-box-content-dot {
  1062. width: 10px;
  1063. height: 10px;
  1064. background: #ffffff;
  1065. border-radius: 15px;
  1066. border: 2px solid #2d80ee;
  1067. }
  1068. .scroll-box-content-item {
  1069. margin-top: 5px;
  1070. width: 100%;
  1071. display: flex;
  1072. flex-direction: column;
  1073. align-items: flex-start;
  1074. justify-content: flex-start;
  1075. .item-date {
  1076. width: 30%;
  1077. color: #979c9e;
  1078. font-size: 0.7vw;
  1079. line-height: 16px;
  1080. display: inline-block;
  1081. white-space: nowrap;
  1082. overflow: hidden;
  1083. text-overflow: ellipsis;
  1084. }
  1085. .item-text {
  1086. width: 80%;
  1087. color: #555555;
  1088. font-size: 0.7vw;
  1089. line-height: 16px;
  1090. white-space: nowrap;
  1091. overflow: hidden;
  1092. text-overflow: ellipsis;
  1093. margin: 5px 0 0 0px;
  1094. }
  1095. }
  1096. }
  1097. }
  1098. .el-timeline-item {
  1099. list-style-type: none;
  1100. line-height: 19px;
  1101. }
  1102. .el-timeline-item__wrapper {
  1103. padding-left: 17px;
  1104. }
  1105. .el-empty {
  1106. padding: 0;
  1107. }
  1108. .div-del {
  1109. background: #cccccc !important;
  1110. position: relative;
  1111. }
  1112. .div-del::after {
  1113. content: '—';
  1114. position: absolute;
  1115. padding: 5px; /* 按钮的内边距 */
  1116. background-color: rgba(255, 0, 0, 0.91);
  1117. color: white;
  1118. border-radius: 50%;
  1119. }
  1120. </style>