riskMaterials.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450
  1. <template>
  2. <div class="flex-box">
  3. <div :span="24" class="flex-header">
  4. <Tabs :tabList="tabListTop" @status="clickTabTops">
  5. </Tabs>
  6. </div>
  7. <div v-if="this.clickTagNameTop == 'Two'" :span="24" class="flex-header">
  8. <Tabs :tabList="tabListMain" @status="clickTabMains">
  9. </Tabs>
  10. </div>
  11. <div class="flex-count">
  12. <Table v-loading="loading" @clickDemand="clickDemand" :list="lableTable" ref="TableList"
  13. @changeNum="changeNum" @changeSize="changeSize">
  14. <!-- <template v-slot:first>
  15. <Export :num="num" ref="export" :exportStatusList="exportStatus" @seachExportList="seachExportList"
  16. @export="batchExport" @clickApproval="clickApproval"></Export>
  17. </template> -->
  18. <template v-slot:first>
  19. <Seach :list="filterData" @seachList="seachList"></Seach>
  20. </template>
  21. </Table>
  22. </div>
  23. <el-dialog :title="dialogTitle" :visible.sync="dialogStatus" width="100%" :before-close="handleClose"
  24. :modal="false" v-if="dialogStatus" :destroy-on-close="true">
  25. <!-- 后期维护 -->
  26. <div style="position: fixed; z-index: 10000">
  27. <el-button type="primary" v-if="startStatus" @click="clickHandles">处理</el-button>
  28. <el-button type="primary" v-if="closeStatus" @click="handleClose">关闭</el-button>
  29. <el-button type="primary" v-if="saveStatus" @click="clickSave">保存</el-button>
  30. </div>
  31. <el-form ref="form" :model="fromList" :rules="rule" label-width="130px" style="margin-top: 30px">
  32. <div class="flex-header">
  33. <el-form-item label="待办事项名称:">
  34. <el-input v-model="fromList.needName" disabled></el-input>
  35. </el-form-item>
  36. </div>
  37. <div class="flex-header">
  38. <el-form-item label="待办事项类型:" label-width="130px">
  39. <el-select v-model="fromList.backlogType" placeholder="请选择待办事项类型" disabled size="medium">
  40. <el-option v-for="item in backlogTypeoptions" :key="item.code" :label="item.name"
  41. :value="item.code" />
  42. </el-select>
  43. </el-form-item>
  44. <el-form-item label="结束时间:" label-width="130px">
  45. <el-date-picker type="date" placeholder="选择日期" disabled v-model="fromList.finishTime"
  46. value-format="yyyy-MM-dd" style="width: 100%"></el-date-picker>
  47. </el-form-item>
  48. </div>
  49. <div class="flex-header">
  50. <el-form-item label="待办事项说明:" prop="backlogExplain">
  51. <el-input type="textarea" v-model="fromList.backlogExplain" disabled></el-input>
  52. </el-form-item>
  53. </div>
  54. <div class="flex-load" style="display: flex; flex-direction: column">
  55. <el-form-item label="附件:">
  56. <div v-for="(item, index) in fromList.adminAccessoryList" :key="index">
  57. <span style="color: blue;cursor: pointer;" @click="downloadOne(item)">{{ item.fileName
  58. }}</span>
  59. </div>
  60. </el-form-item>
  61. </div>
  62. <div class="flex-input-tare flex-header">
  63. <el-form-item label="回复内容" label-width="120px" prop="replyContent">
  64. <el-input type="textarea" v-model="fromList.replyContent" :disabled="disabled"></el-input>
  65. </el-form-item>
  66. </div>
  67. <div class="flex-load" style="display: flex; flex-direction: column">
  68. <el-form-item label="回复附件:" :disabled="disabled" prop="mkFileShareAttachList">
  69. <my-upload v-if="!disabled" @uploadBack="uploadBack" @delloadBack="delloadBack"
  70. @clickDownload="download" :fileInfo="fileInfo" :fileList="fromList.mkFileShareAttachList"
  71. style="width: 30% !important"></my-upload>
  72. <div v-if="fromList.taskName != '办理人员提交'">
  73. <div v-for="(item, index) in fromList.processAccessoryList" :key="index">
  74. <span style="color: blue;cursor: pointer;" @click="downloadOne(item)">{{ item.fileName
  75. }}</span>
  76. </div>
  77. </div>
  78. </el-form-item>
  79. <!-- <div @click="downExcel" class="el-upload__tip" slot="tip">
  80. 备注内容:PPT(非市场部需求以及市场部非框架内需求需要通过市场决策会决议,请上传ppt)、《业务需求模板.xlsx》《后评估模板.xlsx》
  81. 《敏感信息范围说明.xlsx》填写并上传。
  82. </div> -->
  83. </div>
  84. </el-form>
  85. <div>
  86. <div class="table-title">流程追踪</div>
  87. <Table :list="lables"></Table>
  88. </div>
  89. </el-dialog>
  90. <div v-if="destroy">
  91. <el-dialog title="处理操作" width="100%" :visible.sync="handleStatus" :before-close="handleCloses"
  92. :modal="false" v-if="handleStatus" :destroy-on-close="true">
  93. <Workflow :list="fromList" @updateForm="updateForm" :requestForm="requestForm" :request_formTitle="request_form.title"/>
  94. <!-- 后期维护 -->
  95. </el-dialog>
  96. </div>
  97. </div>
  98. </template>
  99. <script>
  100. import Tabs from "../../../../components/el-tabs";
  101. import Table from "../../../../components/el-form";
  102. import Seach from "../../../../components/el-search";
  103. import myUpload from "../../../../components/workflowUpload";
  104. import Workflow from "../../../../components/workflowBase";
  105. // import FormTable from "../../../../components/el-formTable";
  106. import {
  107. getTodoBase,
  108. getDoneBase,
  109. getInitiateBase,
  110. } from "../../../../http/api.js";//../../../http/api.js
  111. import getConfig from '../../../../config/dev.js'
  112. export default {
  113. components: {
  114. Table,
  115. Tabs,
  116. myUpload,
  117. Workflow,
  118. // FormTable,
  119. Seach
  120. },
  121. data() {
  122. let _self = this
  123. return {
  124. loading: false,
  125. rule: {
  126. replyContent: [
  127. { required: true, message: "请添加回复内容", trigger: "blur" },
  128. ],
  129. // mkFileShareAttachList: [
  130. // { required: true, message: "请添加附件", trigger: "blur" },
  131. // ],
  132. },
  133. form: {
  134. needName: '147258369'
  135. }, //表单数据
  136. fromList: {
  137. needName: '147258369'
  138. }, //表单数据
  139. fileInfo: {
  140. type: "bt1n",
  141. typename: "上传文件",
  142. // limit: 5,
  143. url: "/market/waf/upload",
  144. fileList: [],
  145. },
  146. list: {},
  147. backlogTypeoptions: [{
  148. name: '风控问题反馈',
  149. code: '风控问题反馈'
  150. },
  151. {
  152. name: '自查评估材料收集',
  153. code: '自查评估材料收集'
  154. }],
  155. disabled: false,
  156. pageNo: 1,//页码
  157. destroy: false,//处理
  158. handleStatus: false,//处理
  159. tableName: "fxfk_process",
  160. request_form: {
  161. userId: "",
  162. userName: "",
  163. path: this.$router.currentRoute.name,
  164. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
  165. // path:this.$roter.options.routers,
  166. // nextDealMan:'',
  167. title: "title",
  168. businessKey: "288",
  169. processDefinitionKey: "fxfk_process",//流程key
  170. },
  171. requestForm: {
  172. // fresourceId: "c9104902-6575-11ed-8e1e-d6cd97160e00", // 本地环境
  173. // fresourceId: "canvas", // 生产环境
  174. // fresourceId: "3124a2d4-7209-11ed-8d6f-00505687dcd3", //测试91环境
  175. fresourceId: getConfig().riskMaterialsfresourceId,
  176. processDefinitionKey: "fxfk_process",
  177. },
  178. dialogStatus: false, //dialog显示
  179. clickTagNameTop: 'First',//头部tab
  180. clickTagName: 'first',
  181. dialogTitle: '',//dialogtit
  182. startStatus: false,//处理状态按钮
  183. closeStatus: false, //关闭按钮状态
  184. saveStatus: false, //保存按钮状态
  185. tabListTop: [
  186. {
  187. index: "First",
  188. label: "风控材料学习",
  189. },
  190. {
  191. index: "Two",
  192. label: "风险点自查评估及问题反馈",
  193. },
  194. ],
  195. lables: {
  196. height: "400",
  197. titledata: [
  198. {
  199. label: "环节名称",
  200. prop: "taskName",
  201. //width: 300,
  202. },
  203. {
  204. label: "处理人",
  205. prop: "assignee",
  206. //width: 300,
  207. },
  208. {
  209. label: "到达时间",
  210. prop: "startTime",
  211. //width: 300,
  212. },
  213. {
  214. label: "处理时间",
  215. prop: "endTime",
  216. //width: 300,
  217. },
  218. {
  219. label: "回复意见",
  220. prop: "content",
  221. //width: 300,
  222. },
  223. ], //表格头
  224. data: [], //内容数据
  225. loading: true,
  226. pageData: {
  227. total: 0, // 总条数
  228. pageSizes: 10, // 每页数量
  229. pageNum: 1, // 页码
  230. },
  231. isSelection: false, // 表格有多选时设置
  232. isOperation: false, // 表格有操作列时设置
  233. isIndex: true, // 列表序号
  234. operation: {
  235. // 表格有操作列时设置
  236. label: "操作", // 列名
  237. width: "50", // 根据实际情况给宽度
  238. data: [
  239. {
  240. label: "操作", // 操作名称
  241. type: "", //按钮类型
  242. handleRow: function () { }, // 自定义事件
  243. },
  244. ],
  245. },
  246. },
  247. tabListMain: [
  248. {
  249. index: "first",
  250. label: "我的工单",
  251. number: "",
  252. },
  253. {
  254. index: "two",
  255. label: "待审批",
  256. number: "",
  257. },
  258. {
  259. index: "three",
  260. label: "已处理",
  261. number: "",
  262. },
  263. ],
  264. lableTable: {},//传给子组件table
  265. Firstlabel: {
  266. name: "first",
  267. height: "400",
  268. titledata: [
  269. {
  270. label: "材料名称",
  271. prop: "materialName",
  272. // width: 400,
  273. },
  274. {
  275. label: "发布人",
  276. prop: "proposer",
  277. // width: 400,
  278. },
  279. {
  280. label: "发布时间",
  281. prop: "proposerTime",
  282. // width: 400,
  283. },
  284. ], //表格头
  285. data: [], //内容数据
  286. loading: true,
  287. pageData: {
  288. total: 100, // 总条数
  289. pageSizes: 10, // 每页数量
  290. pageNum: 1, // 页码
  291. },
  292. isSelection: false, // 表格有多选时设置
  293. isOperation: true, // 表格有操作列时设置
  294. isIndex: false, // 列表序号
  295. operation: {
  296. // 表格有操作列时设置
  297. label: "操作", // 列名
  298. width: "100", // 根据实际情况给宽度
  299. data: [
  300. {
  301. label: "下载", // 操作名称
  302. type: "", //按钮类型
  303. handleRow: function (e, r, o) {
  304. console.log(e);
  305. console.log(r);
  306. console.log(o);
  307. _self.getRiskform(r)
  308. // _self.uploadRisk(r)
  309. }, // 自定义事件
  310. },
  311. ],
  312. },
  313. },//风控材料学习
  314. firstlabel: {
  315. height: "400",
  316. titledata: [
  317. {
  318. label: "待办事项名称",
  319. prop: "need_name",
  320. //width: 300,
  321. color: "#0682CD",
  322. },
  323. {
  324. label: "待办事项类型",
  325. prop: "backlog_type",
  326. //width: 300,
  327. },
  328. {
  329. label: "结束时间",
  330. prop: "finish_time",
  331. //width: 300,
  332. },
  333. {
  334. label: "发起人",
  335. prop: "proposer",
  336. //width: 300,
  337. },
  338. {
  339. label: "发起时间",
  340. prop: "proposer_time",
  341. //width: 300,
  342. },
  343. {
  344. label: "办理人",
  345. prop: "transactor",
  346. //width: 300,
  347. },
  348. {
  349. label: "状态",
  350. prop: "taskName",
  351. //width: 300,
  352. },
  353. ], //表格头
  354. data: [], //内容数据
  355. loading: true,
  356. pageData: {
  357. total: 10, // 总条数
  358. pageSizes: 10, // 每页数量
  359. pageNum: 1, // 页码
  360. },
  361. isSelection: false, // 表格有多选时设置
  362. isOperation: false, // 表格有操作列时设置
  363. isIndex: false, // 列表序号
  364. operation: {
  365. // 表格有操作列时设置
  366. label: "操作", // 列名
  367. width: "50", // 根据实际情况给宽度
  368. data: [
  369. {
  370. label: "操作", // 操作名称
  371. type: "", //按钮类型
  372. handleRow: function () { }, // 自定义事件
  373. },
  374. ],
  375. },
  376. },
  377. twolabel: {
  378. height: "400",
  379. titledata: [
  380. {
  381. label: "待办事项名称",
  382. prop: "need_name",
  383. //width: 300,
  384. color: "#0682CD",
  385. },
  386. {
  387. label: "待办事项类型",
  388. prop: "backlog_type",
  389. //width: 300,
  390. },
  391. {
  392. label: "结束时间",
  393. prop: "finish_time",
  394. //width: 300,
  395. },
  396. {
  397. label: "发起人",
  398. prop: "proposer",
  399. //width: 300,
  400. },
  401. {
  402. label: "发起时间",
  403. prop: "proposer_time",
  404. //width: 300,
  405. },
  406. {
  407. label: "办理人",
  408. prop: "transactor",
  409. //width: 300,
  410. },
  411. {
  412. label: "状态",
  413. prop: "taskName",
  414. //width: 300,
  415. },
  416. ], //表格头
  417. data: [], //内容数据
  418. loading: true,
  419. pageData: {
  420. total: 10, // 总条数
  421. pageSizes: 10, // 每页数量
  422. pageNum: 1, // 页码
  423. },
  424. isSelection: false, // 表格有多选时设置
  425. isOperation: false, // 表格有操作列时设置
  426. isIndex: false, // 列表序号
  427. operation: {
  428. // 表格有操作列时设置
  429. label: "操作", // 列名
  430. width: "50", // 根据实际情况给宽度
  431. data: [
  432. {
  433. label: "操作", // 操作名称
  434. type: "", //按钮类型
  435. handleRow: function () { }, // 自定义事件
  436. },
  437. ],
  438. },
  439. },
  440. threelabel: {
  441. height: "400",
  442. titledata: [
  443. {
  444. label: "待办事项名称",
  445. prop: "need_name",
  446. //width: 300,
  447. color: "#0682CD",
  448. },
  449. {
  450. label: "待办事项类型",
  451. prop: "backlog_type",
  452. //width: 300,
  453. },
  454. {
  455. label: "结束时间",
  456. prop: "finish_time",
  457. //width: 300,
  458. },
  459. {
  460. label: "发起人",
  461. prop: "proposer",
  462. //width: 300,
  463. },
  464. {
  465. label: "发起时间",
  466. prop: "proposer_time",
  467. //width: 300,
  468. },
  469. {
  470. label: "办理人",
  471. prop: "transactor",
  472. //width: 300,
  473. },
  474. {
  475. label: "状态",
  476. prop: "taskName",
  477. //width: 300,
  478. },
  479. ], //表格头
  480. data: [], //内容数据
  481. loading: true,
  482. pageData: {
  483. total: 10, // 总条数
  484. pageSizes: 10, // 每页数量
  485. pageNum: 1, // 页码
  486. },
  487. isSelection: false, // 表格有多选时设置
  488. isOperation: false, // 表格有操作列时设置
  489. isIndex: false, // 列表序号
  490. operation: {
  491. // 表格有操作列时设置
  492. label: "操作", // 列名
  493. width: "50", // 根据实际情况给宽度
  494. data: [
  495. {
  496. label: "操作", // 操作名称
  497. type: "", //按钮类型
  498. handleRow: function () { }, // 自定义事件
  499. },
  500. ],
  501. },
  502. },
  503. filterData: {
  504. timeSelect: false, //是否显示日期控件
  505. sreach: true,
  506. restet: false,
  507. elinput: [
  508. {
  509. name: "材料名称", //提示语275
  510. key: "materialName", //字段名
  511. width: 275, //宽度
  512. },
  513. ],
  514. },
  515. savestatusBtn: false,
  516. searchBox: {},
  517. daibanfinish: false,
  518. formid: '',
  519. formneedname: '',
  520. }
  521. },
  522. methods: {
  523. //风控材料学习
  524. getRiskform(row) {
  525. this.$http({
  526. url: "/market/FxfkProcessMaterial/query",
  527. method: "post",
  528. headers: {
  529. "Content-Type": "application/json",
  530. },
  531. data: { id: row.id },
  532. }).then((res) => {
  533. // console.log(res.data.wfFileShareAttachList)
  534. this.fromList.materialName = res.data.materialName
  535. this.fromList.mkFileShareAttachList = res.data.wfFileShareAttachList
  536. this.download()
  537. });
  538. },
  539. downloadOne(e) {
  540. let list = {
  541. id: e.fileCode,
  542. fileName: e.fileName,
  543. };
  544. this.$http({
  545. url: "/market/waf/downFile",
  546. method: "post",
  547. headers: {
  548. "Content-Type": "application/json",
  549. },
  550. responseType: "blob",
  551. data: list,
  552. }).then((response) => {
  553. console.log(response);
  554. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  555. let blob = new Blob([response.data], {
  556. type: "application/vnd.ms-excel",
  557. });
  558. //window.navigator.msSaveOrOpenBlob(blob, this.form.needName);
  559. window.navigator.msSaveOrOpenBlob(
  560. blob,
  561. list.fileName
  562. );
  563. } else {
  564. /* 火狐谷歌的文件下载方式 */
  565. var blob = new Blob([response.data]);
  566. var downloadElement = document.createElement("a");
  567. var href = window.URL.createObjectURL(blob);
  568. downloadElement.href = href;
  569. downloadElement.download =
  570. list.fileName;
  571. document.body.appendChild(downloadElement);
  572. downloadElement.click();
  573. document.body.removeChild(downloadElement);
  574. window.URL.revokeObjectURL(href);
  575. }
  576. });
  577. },
  578. download(e) {
  579. if (this.fromList.mkFileShareAttachList.length > 1) {
  580. this.$http({
  581. url: "/market/CMKFile/downAllFile",
  582. method: "post",
  583. headers: {
  584. "Content-Type": "application/json",
  585. },
  586. responseType: "blob",
  587. data: { mkFileShareAttachList: this.fromList.mkFileShareAttachList },
  588. }).then((response) => {
  589. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  590. let blob = new Blob([response.data], {
  591. type: "application/vnd.ms-excel",
  592. });
  593. window.navigator.msSaveOrOpenBlob(
  594. blob,
  595. new Date().getTime().toString() + ".zip"
  596. );
  597. } else {
  598. /* 火狐谷歌的文件下载方式 */
  599. var blob = new Blob([response.data]);
  600. var downloadElement = document.createElement("a");
  601. var href = window.URL.createObjectURL(blob);
  602. downloadElement.href = href;
  603. downloadElement.download = this.fromList.materialName + ".zip";
  604. document.body.appendChild(downloadElement);
  605. downloadElement.click();
  606. document.body.removeChild(downloadElement);
  607. window.URL.revokeObjectURL(href);
  608. }
  609. if (this.infolist.authType === "3") {
  610. this.dialogCli(10);
  611. }
  612. });
  613. } else {
  614. let list = {
  615. id: this.fromList.mkFileShareAttachList[0].fileCode,
  616. fileName: this.fromList.mkFileShareAttachList[0].fileName,
  617. };
  618. this.$http({
  619. url: "/market/waf/downFile",
  620. method: "post",
  621. headers: {
  622. "Content-Type": "application/json",
  623. },
  624. responseType: "blob",
  625. data: list,
  626. }).then((response) => {
  627. console.log(response);
  628. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  629. let blob = new Blob([response.data], {
  630. type: "application/vnd.ms-excel",
  631. });
  632. //window.navigator.msSaveOrOpenBlob(blob, this.form.needName);
  633. window.navigator.msSaveOrOpenBlob(
  634. blob,
  635. this.fromList.mkFileShareAttachList[0].fileName
  636. );
  637. } else {
  638. /* 火狐谷歌的文件下载方式 */
  639. var blob = new Blob([response.data]);
  640. var downloadElement = document.createElement("a");
  641. var href = window.URL.createObjectURL(blob);
  642. downloadElement.href = href;
  643. downloadElement.download =
  644. this.fromList.mkFileShareAttachList[0].fileName;
  645. document.body.appendChild(downloadElement);
  646. downloadElement.click();
  647. document.body.removeChild(downloadElement);
  648. window.URL.revokeObjectURL(href);
  649. }
  650. });
  651. }
  652. },
  653. //上传文件钩子函数
  654. clickUpload(file) { },
  655. //下载文件
  656. downExcel() {
  657. this.$http({
  658. url: "/market/waf/downLoadTemp",
  659. method: "post",
  660. headers: {
  661. "Content-Type": "application/json",
  662. },
  663. responseType: "blob",
  664. data: {},
  665. }).then((response) => {
  666. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  667. let blob = new Blob([response.data], {
  668. type: "application/vnd.ms-excel",
  669. });
  670. window.navigator.msSaveOrOpenBlob(
  671. blob,
  672. new Date().getTime().toString() + ".zip"
  673. );
  674. } else {
  675. /* 火狐谷歌的文件下载方式 */
  676. var blob = new Blob([response.data]);
  677. var downloadElement = document.createElement("a");
  678. var href = window.URL.createObjectURL(blob);
  679. downloadElement.href = href;
  680. downloadElement.download = this.form.needName + ".zip";
  681. document.body.appendChild(downloadElement);
  682. downloadElement.click();
  683. document.body.removeChild(downloadElement);
  684. window.URL.revokeObjectURL(href);
  685. }
  686. });
  687. },
  688. uploadBack(v) {
  689. if (this.fromList.mkFileShareAttachList) {
  690. this.fromList.mkFileShareAttachList = [];
  691. this.fromList.mkFileShareAttachList = v;
  692. } else {
  693. let mkFileShareAttachList = [];
  694. mkFileShareAttachList = v;
  695. this.$set(this.fromList, "mkFileShareAttachList", mkFileShareAttachList);
  696. }
  697. },
  698. delloadBack(v) {
  699. this.fromList.mkFileShareAttachList = v;
  700. // this.$http({
  701. // url: "/market/waf/update",
  702. // method: "post",
  703. // headers: {
  704. // "Content-Type": "application/json",
  705. // },
  706. // data: this.fromList,
  707. // }).then((res) => {
  708. // console.log(res);
  709. // // if (res.data.result === 0) {
  710. // // this.$message.success("工作流更新成功");
  711. // // }
  712. // });
  713. },
  714. //风控材料学习
  715. getRiskList(e) {
  716. this.$http({
  717. url: "/market/FxfkProcessMaterial/queryPage",
  718. method: "post",
  719. headers: {
  720. "Content-Type": "application/json",
  721. page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
  722. },
  723. data: this.searchBox,
  724. }).then((res) => {
  725. this.lableTable.data = res.data.data;
  726. this.lableTable.pageData.total = res.data.totalRecord;
  727. this.loading = false;
  728. });
  729. },
  730. //风控材料下载
  731. uploadRisk(e) {
  732. this.$http({
  733. url: "/market/FxfkProcessMaterial/downFile",
  734. method: "post",
  735. headers: {
  736. "Content-Type": "application/json",
  737. },
  738. responseType: "blob",
  739. data: {
  740. materialName: e.materialName,
  741. id: e.accessoryId
  742. },
  743. }).then((response) => {
  744. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  745. let blob = new Blob([response.data], {
  746. type: "application/vnd.ms-excel",
  747. });
  748. window.navigator.msSaveOrOpenBlob(
  749. blob,
  750. new Date().getTime().toString() + ".zip"
  751. );
  752. } else {
  753. /* 火狐谷歌的文件下载方式 */
  754. var blob = new Blob([response.data]);
  755. var downloadElement = document.createElement("a");
  756. var href = window.URL.createObjectURL(blob);
  757. downloadElement.href = href;
  758. downloadElement.download = this.fromList.needName + ".zip";
  759. document.body.appendChild(downloadElement);
  760. downloadElement.click();
  761. document.body.removeChild(downloadElement);
  762. window.URL.revokeObjectURL(href);
  763. }
  764. });
  765. },
  766. //获取页码
  767. changeNum(e) {
  768. console.log(e)
  769. this.pageNo = e;
  770. if (this.clickTagNameTop == 'First') {
  771. this.Firstlabel.pageData.pageNum = e;
  772. this.getRiskList()
  773. } else {
  774. if (this.clickTagName == 'first') {
  775. this.firstlabel.pageData.pageNum = e;
  776. this.getMeLaunch()
  777. }
  778. if (this.clickTagName == 'two') {
  779. this.twolabel.pageData.pageNum = e;
  780. this.getQueryList();
  781. }
  782. if (this.clickTagName == 'three') {
  783. this.threelabel.pageData.pageNum = e;
  784. this.getQueryDone();
  785. }
  786. }
  787. },
  788. //获取页码
  789. changeSize(e) {
  790. console.log(11111);
  791. },
  792. //点击工单状态跳转需求流程显示页面
  793. clickDemand(e, res) {
  794. console.log(e);
  795. console.log(res);
  796. if (e === "待办事项名称") {
  797. if (this.clickTagName === "first") {//发起
  798. console.log(res.taskName)
  799. this.dialogTitle = "发起";
  800. this.closeStatus = true;
  801. if (res.taskName == "办理人员提交" || res.taskName == "起草") {
  802. this.disabled = false;
  803. this.startStatus = true;
  804. this.saveStatus = true;
  805. this.rule = {
  806. replyContent: [
  807. { required: true, message: "请添加回复内容", trigger: "blur" },
  808. ],
  809. }
  810. } else {
  811. this.disabled = true;
  812. this.startStatus = false;
  813. this.saveStatus = false;
  814. this.rule = {}
  815. }
  816. }
  817. if (this.clickTagName === "two") {//代办
  818. this.dialogTitle = "处理";
  819. if (res.taskName == "办理人员提交" || res.taskName == "起草") {
  820. this.savestatusBtn = false
  821. this.disabled = false;
  822. this.startStatus = true;
  823. this.saveStatus = true;
  824. this.closeStatus = true;
  825. this.rule = {
  826. replyContent: [
  827. { required: true, message: "请添加回复内容", trigger: "blur" },
  828. ],
  829. }
  830. } else {
  831. this.savestatusBtn = true
  832. this.disabled = true;
  833. this.rule = {}
  834. this.closeStatus = true;
  835. this.startStatus = true;
  836. this.saveStatus = false;
  837. }
  838. }
  839. if (this.clickTagName === "three") {//已办
  840. this.dialogTitle = "查看";
  841. this.closeStatus = true;
  842. this.startStatus = false;
  843. this.saveStatus = false;
  844. this.disabled = true;
  845. }
  846. this.dialogStatus = true
  847. this.fromList = res;
  848. this.clickForm(res);
  849. this.getFromQuery(res);
  850. }
  851. },
  852. //查询form表单数据
  853. getFromQuery(e) {
  854. this.formid = e.id
  855. this.formneedname = e.need_name
  856. this.$http({
  857. url: "/market/fxfkProcess/query",
  858. method: "post",
  859. headers: {
  860. "Content-Type": "application/json",
  861. },
  862. data: { id: e.id },
  863. }).then((res) => {
  864. this.fromList = res.data;
  865. this.dialogStatus = true;
  866. // console.log(this.$refs.formTable);
  867. this.fileInfo.fileList = res.data.processAccessoryList;
  868. this.fromList.mkFileShareAttachList = res.data.processAccessoryList;
  869. if (this.fromList.mkFileShareAttachList) {
  870. this.fromList.mkFileShareAttachList.map((item) => {
  871. item.name = item.fileName;
  872. })
  873. }
  874. this.fromList.resourceId = e.resourceId
  875. this.fromList.createId = e.transactor_no
  876. this.taskId = res.data.taskId;
  877. });
  878. },
  879. async clickForm(e) {
  880. let list = {
  881. processInstanceId: e.process_id,
  882. // taskId:e.taskId
  883. };
  884. let _this = this;
  885. let obj = {
  886. url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
  887. data: list,
  888. headers: {
  889. "Content-Type": "application/json",
  890. },
  891. };
  892. let res = await this.common.httpPost(obj, success);
  893. function success(data) {
  894. data.data.data.map((item) => {
  895. item.startTime = _this.$util.datetimeFormat(item.startTime);
  896. item.endTime = _this.$util.datetimeFormat(item.endTime);
  897. });
  898. _this.lables.data = data.data.data;
  899. }
  900. },
  901. handleClose() {//关闭弹窗
  902. this.dialogStatus = false;
  903. // this.forwardStatus = false;
  904. // this.exportBtnStatus = false;
  905. // this.saveStatus = false;
  906. // this.startStatus = true;
  907. // this.closeStatus = true;
  908. this.fromList = {};
  909. },
  910. async clickSave() {
  911. this.$refs.form.validate((valid) => {
  912. if (valid) {
  913. if (this.fromList.mkFileShareAttachList) {
  914. if (this.fromList.mkFileShareAttachList.length > 0) {
  915. console.log(this.$refs.form.model)
  916. this.savestatusBtn = true
  917. if (this.fromList.id) {
  918. if (this.fromList.mkFileShareAttachList) {
  919. let attList = [];
  920. for (let i = 0; i < this.fromList.mkFileShareAttachList.length; i++) {
  921. attList.push(this.fromList.mkFileShareAttachList[i].id);
  922. }
  923. this.fromList.processAccessoryList = attList;
  924. }
  925. // if (this.fromList.processAccessoryList) {
  926. // let attList = [];
  927. // for (let i = 0; i < this.fromList.processAccessoryList.length; i++) {
  928. // attList.push(this.fromList.processAccessoryList[i].id);
  929. // }
  930. // this.fromList.processAccessoryList = attList;
  931. // }
  932. this.fromList.tableName = this.tableName;
  933. this.request_form.title = '[市场经营管理平台]-风险点防控-'+this.fromList.needName;
  934. this.$http({
  935. url: "/market/fxfkProcess/update",
  936. method: "post",
  937. headers: {
  938. "Content-Type": "application/json",
  939. },
  940. data: {
  941. id: this.fromList.id,
  942. processAccessoryIdList: this.fromList.processAccessoryList,
  943. replyContent: this.fromList.replyContent
  944. },
  945. }).then((res) => {
  946. });
  947. this.setUpdate(this.fromList);
  948. } else {
  949. this.getUserIds();
  950. this.setForm();
  951. }
  952. } else {
  953. this.$message.error("请添加附件");
  954. return false;
  955. }
  956. }
  957. else {
  958. this.$message.error("请添加附件");
  959. return false;
  960. }
  961. } else {
  962. this.$message.error("请完善表单信息");
  963. return false;
  964. }
  965. });
  966. },
  967. //获取自己idname
  968. getUserIds() {
  969. this.$http({
  970. url: "/market/waf/queryRoleByName",
  971. method: "post",
  972. headers: {
  973. "Content-Type": "application/json",
  974. },
  975. data: {
  976. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
  977. },
  978. }).then((res) => {
  979. this.request_form.userName = res.data.data.rows[0].name;
  980. this.request_form.userId = res.data.data.rows[0].userCode;
  981. console.log(this.request_form)
  982. });
  983. },
  984. setForm(e) {
  985. // console.log(this.$refs.form)
  986. this.request_form.title = '[市场经营管理平台]-风险点防控-'+this.fromList.needName;
  987. // this.request_form.title = this.$refs.form.needName;
  988. // this.$refs.form.taskId = e;
  989. this.$http({
  990. url: "/market/waf/add",
  991. method: "post",
  992. headers: {
  993. "Content-Type": "application/json",
  994. },
  995. // data: this.$refs.form,
  996. data: this.fromList,
  997. }).then((res) => {
  998. this.request_form.businessKey = res.data.body;
  999. this.fromList.id = res.data.body;
  1000. this.formWorkId = res.data.body;
  1001. this.clickHandle(res.data.body);
  1002. });
  1003. },
  1004. async clickHandle(e) {
  1005. let _this = this;
  1006. let obj = {
  1007. url: this.$url.formList.startWork, //开始工作流接口
  1008. data: _this.request_form,
  1009. status: "form",
  1010. headers: {
  1011. "Content-Type": "application/x-www-form-urlencoded",
  1012. },
  1013. };
  1014. let res = await this.common.httpPost(obj, success);
  1015. function success(data) {
  1016. _this.fromList.taskId = data.data;
  1017. _this.taskId = data.data;
  1018. let list = {
  1019. id: e,
  1020. // taskId:_this.formId,
  1021. processId: _this.fromList.taskId,
  1022. // resourceId: _this.nextPath.currentShape[0].resourceId,
  1023. };
  1024. _this.setUpdate(list);
  1025. }
  1026. },
  1027. //更新工作流接口
  1028. setUpdate(e) {
  1029. this.$http({
  1030. url: "/market/waf/updateBase",
  1031. method: "post",
  1032. headers: {
  1033. "Content-Type": "application/json",
  1034. },
  1035. data: e,
  1036. }).then((res) => {
  1037. this.fromList.taskId = res.data.body[0].taskId;
  1038. // this.fromList.taskId = '1111111111';
  1039. this.fromList.taskName = res.data.body[0].taskName;
  1040. // if (res.data.body.taskName === "起草") {
  1041. // this.isSync = res.data.body.isSync;
  1042. // } else {
  1043. // this.isSync = "1";
  1044. // }
  1045. if (res.data.result === 0) {
  1046. this.$message.success("工作流更新成功");
  1047. }
  1048. });
  1049. },
  1050. //处理按钮,开始工作流接口
  1051. clickHandles() {
  1052. console.log(this.lables.data.length);
  1053. if (this.lables.data.length == 1) {
  1054. if (this.savestatusBtn) {
  1055. this.destroy = true;
  1056. this.handleStatus = true;
  1057. this.request_form.title = '[市场经营管理平台]-风险点防控-'+this.fromList.needName;
  1058. } else {
  1059. this.$message.error("请先点击保存按钮");
  1060. }
  1061. } else {
  1062. this.destroy = true;
  1063. this.handleStatus = true;
  1064. this.request_form.title = '[市场经营管理平台]-风险点防控-'+this.fromList.needName;
  1065. }
  1066. },
  1067. //处理关闭
  1068. handleCloses() {
  1069. // this.treeList = [];
  1070. // this.textarea = "";
  1071. this.handleStatus = false;
  1072. this.usernumber()
  1073. },
  1074. updateForm() {
  1075. this.dialogStatus = false;
  1076. this.handleCloses();
  1077. this.usernumber()
  1078. // if (this.daibanfinish) {
  1079. //zoujiekou
  1080. console.log('完成发起代办');
  1081. console.log(this.formneedname);
  1082. console.log(this.formid);
  1083. this.$http({
  1084. url: "/market/fxfkProcess/complateFxfkProcessOA",
  1085. method: "post",
  1086. headers: {
  1087. "Content-Type": "application/json",
  1088. },
  1089. data: {
  1090. transactorNo: JSON.parse(window.sessionStorage.userInfo).loginNo,
  1091. needName: this.formneedname,
  1092. id: this.formid,
  1093. },
  1094. }).then((res) => {
  1095. });
  1096. // this.daibanfinish = false
  1097. // }
  1098. if (this.clickTagName == 'first') {
  1099. this.lableTable = this.firstlabel
  1100. this.getMeLaunch()
  1101. }
  1102. if (this.clickTagName == 'two') {
  1103. this.lableTable = this.twolabel
  1104. this.getQueryList();
  1105. }
  1106. if (this.clickTagName == 'three') {
  1107. this.lableTable = this.threelabel
  1108. this.getQueryDone();
  1109. }
  1110. },
  1111. clickTabMains(e) {
  1112. console.log(e);
  1113. this.clickTagName = e
  1114. this.pageNo = 1
  1115. this.$refs.TableList.page = 1;
  1116. if (this.clickTagName == 'first') {
  1117. this.lableTable = this.firstlabel
  1118. this.getMeLaunch()
  1119. }
  1120. if (this.clickTagName == 'two') {
  1121. this.lableTable = this.twolabel
  1122. this.getQueryList();
  1123. }
  1124. if (this.clickTagName == 'three') {
  1125. this.lableTable = this.threelabel
  1126. this.getQueryDone();
  1127. }
  1128. },
  1129. //风控材料搜索内容
  1130. seachList(e) {
  1131. this.searchBox = e
  1132. this.getRiskList(e)
  1133. },
  1134. clickTabTops(e) {
  1135. console.log(e);
  1136. this.clickTagNameTop = e
  1137. this.pageNo = 1
  1138. this.$refs.TableList.page = 1;
  1139. if (this.clickTagNameTop == 'First') {
  1140. this.lableTable = this.Firstlabel
  1141. this.getRiskList()
  1142. } else {
  1143. this.usernumber()
  1144. if (this.clickTagName == 'first') {
  1145. this.lableTable = this.firstlabel
  1146. this.getMeLaunch()
  1147. }
  1148. }
  1149. },
  1150. adminhandleSizeChange(val) {
  1151. console.log(`每页 ${val} 条`);
  1152. },
  1153. adminhandleCurrentChange(val) {
  1154. console.log(`当前页: ${val}`);
  1155. },
  1156. //我的待办
  1157. getQueryList(e, status) {
  1158. this.loading = true;
  1159. getTodoBase(this.pageNo, "", e || { tableName: this.tableName }).then((res) => {
  1160. if (status === 0) {
  1161. this.clickDemand("待办事项名称", res.data.data[0]);
  1162. }
  1163. this.lableTable.data = res.data.data;
  1164. // this.lableTable.data.map((item) => {
  1165. // item.status = "1";
  1166. // });
  1167. this.lableTable.pageData.total = res.data.totalRecord;
  1168. this.tabListMain[1].number = res.data.totalRecord
  1169. this.loading = false;
  1170. });
  1171. },
  1172. //我的已办
  1173. getQueryDone() {
  1174. this.loading = true;
  1175. getDoneBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
  1176. this.lableTable.data = res.data.data;
  1177. // this.lableTable.data.map((item) => {
  1178. // item.status = "2";
  1179. // });
  1180. this.lableTable.pageData.total = res.data.totalRecord;
  1181. this.tabListMain[2].number = res.data.totalRecord
  1182. this.loading = false;
  1183. });
  1184. },
  1185. //我发起的
  1186. getMeLaunch(e, status) {
  1187. this.loading = true;
  1188. getInitiateBase(this.pageNo, "", e || { tableName: this.tableName }).then((res) => {
  1189. if (status === 0) {
  1190. this.clickDemand("待办事项名称", res.data.data[0]);
  1191. }
  1192. this.lableTable.data = res.data.data;
  1193. // this.lableTable.data.map((item) => {
  1194. // if (item.taskName === "起草") {
  1195. // item.status = "1";
  1196. // } else {
  1197. // item.status = "2";
  1198. // }
  1199. // });
  1200. this.lableTable.pageData.total = res.data.totalRecord;
  1201. this.tabListMain[0].number = res.data.totalRecord
  1202. this.loading = false;
  1203. });
  1204. },
  1205. usernumber(e) {
  1206. getInitiateBase(this.pageNo, "", e || { tableName: this.tableName }).then((res) => {
  1207. this.tabListMain[0].number = res.data.totalRecord
  1208. });
  1209. getDoneBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
  1210. this.tabListMain[2].number = res.data.totalRecord
  1211. });
  1212. getTodoBase(this.pageNo, "", e || { tableName: this.tableName }).then((res) => {
  1213. this.tabListMain[1].number = res.data.totalRecord
  1214. });
  1215. }
  1216. },
  1217. created() {
  1218. //oa跳转回来显示
  1219. let status = JSON.stringify(this.$route.query) == "{}";
  1220. if (status) {
  1221. this.lableTable = this.Firstlabel
  1222. this.getRiskList()
  1223. } else {
  1224. let { id, type } = this.$route.query;
  1225. // console.log(this.$route.query);
  1226. // console.log(type);
  1227. //代办 发起 5
  1228. this.clickTagNameTop = 'Two'
  1229. if (type == 5) {
  1230. let list = {
  1231. id: id,
  1232. tableName: this.tableName
  1233. };
  1234. this.daibanfinish = true
  1235. this.usernumber()
  1236. this.clickTagName = 'first'
  1237. this.lableTable = this.firstlabel
  1238. this.getMeLaunch(list, 0)//发起
  1239. } else {
  1240. let list = {
  1241. taskId: id,
  1242. tableName: this.tableName
  1243. };
  1244. this.usernumber()
  1245. this.clickTagName = 'two'
  1246. this.lableTable = this.twolabel
  1247. this.getQueryList(list, 0);//代办
  1248. }
  1249. }
  1250. }
  1251. }
  1252. </script>
  1253. <style lang="scss" scoped>
  1254. .copyClass {
  1255. display: flex;
  1256. }
  1257. .flex-header-text-tree {
  1258. width: 50%;
  1259. text-align: center;
  1260. }
  1261. ::v-deep .el-form-item {
  1262. width: 100%;
  1263. }
  1264. .active {
  1265. background-color: #f3faff;
  1266. }
  1267. .flex-common {
  1268. padding: 10px 5%;
  1269. font-size: 18px;
  1270. }
  1271. .flex-buttons {
  1272. background-color: #cde4f6;
  1273. border-color: #cde4f6;
  1274. color: #606266;
  1275. }
  1276. .flex-button {
  1277. margin-top: 10px;
  1278. margin-bottom: 10px;
  1279. ::v-deep .el-button--primary {
  1280. width: 222px;
  1281. }
  1282. }
  1283. .flex-left-header-text {
  1284. height: 40px;
  1285. line-height: 40px;
  1286. color: black;
  1287. padding-left: 10px;
  1288. background-color: #cde4f6;
  1289. font-size: 18px;
  1290. font-weight: bold;
  1291. }
  1292. .flex-right-text {
  1293. margin-right: 20px;
  1294. width: 50%;
  1295. }
  1296. .flex-handle {
  1297. width: 100%;
  1298. padding: 30px;
  1299. display: flex;
  1300. .flex-right {
  1301. width: 50%;
  1302. border: 1px solid #e1e1e1;
  1303. margin-left: 20px;
  1304. }
  1305. .flex-left {
  1306. width: 50%;
  1307. display: flex;
  1308. flex-direction: column;
  1309. .flex-left-header {
  1310. display: flex;
  1311. justify-content: space-around;
  1312. }
  1313. }
  1314. }
  1315. .table-title {
  1316. height: 50px;
  1317. line-height: 50px;
  1318. background-color: #f3faff;
  1319. font-size: 18px;
  1320. font-weight: bold;
  1321. }
  1322. ::v-deep .el-dialog {
  1323. margin-top: 0 !important;
  1324. }
  1325. ::v-deep .el-table__fixed-body-wrapper {
  1326. top: 50px !important;
  1327. }
  1328. .flex-box {
  1329. display: flex;
  1330. width: calc(100% - 40px);
  1331. border-radius: 20px;
  1332. background-color: #fff;
  1333. margin: 0 auto;
  1334. margin-top: 20px;
  1335. position: relative;
  1336. flex-direction: column;
  1337. .flex-load {
  1338. display: flex;
  1339. width: 100%;
  1340. position: relative;
  1341. margin: 1%;
  1342. border-bottom: 1px solid #e1e1e1;
  1343. justify-content: space-between;
  1344. }
  1345. .flex-header {
  1346. display: flex;
  1347. width: 100%;
  1348. position: relative;
  1349. // height: 60px;
  1350. margin: 1%;
  1351. border-bottom: 1px solid #e1e1e1;
  1352. // justify-content: space-between;
  1353. // ::v-deep .el-form-item {
  1354. // width: 30%;
  1355. // margin-right: 5%;
  1356. // }
  1357. .el-button {
  1358. width: 150px;
  1359. float: right;
  1360. height: 40px !important;
  1361. margin-right: 30px;
  1362. }
  1363. }
  1364. }
  1365. //设置子组件样式
  1366. ::v-deep .el-tabs__item {
  1367. padding: 0;
  1368. margin-right: 20px;
  1369. width: 166px;
  1370. text-align: center;
  1371. background-color: #d8eaf6;
  1372. color: black;
  1373. }
  1374. ::v-deep .is-active {
  1375. color: #fff;
  1376. background-color: #0583cd;
  1377. }
  1378. ::v-deep .el-select {
  1379. width: 100%;
  1380. }
  1381. ::v-deep .el-tabs__active-bar {
  1382. display: none;
  1383. }
  1384. ::v-deep .el-tabs__nav-wrap::after {
  1385. display: none !important;
  1386. }
  1387. .flex-form {
  1388. margin-top: 50px;
  1389. }
  1390. .flex-footer-botton {
  1391. display: flex;
  1392. justify-content: space-evenly;
  1393. }
  1394. </style>