index.vue 33 KB

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