workflowBasexcwls.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. <template>
  2. <div>
  3. <div class="flex-handle">
  4. <div class="flex-left">
  5. <div class="flex-left-header">
  6. <div class="flex-path">
  7. <div class="flex-left-header-text">
  8. 选择路径
  9. <div class="flex-path-list">
  10. <div
  11. v-if="manyReassignment"
  12. :class="actives"
  13. @click="clickManyTransfer(1)"
  14. >
  15. 转派
  16. </div>
  17. <div
  18. v-if="transferStatus"
  19. :class="active"
  20. @click="clickTransfer(1)"
  21. >
  22. 转派
  23. </div>
  24. <div v-if="copyStatus" @click="clickTransfer(2)">抄送</div>
  25. <div
  26. v-for="(item, index) in node.nextShapes"
  27. :key="index"
  28. :class="seleIndex == index ? 'active' : ''"
  29. @click="clickGetTree(item, index)"
  30. >
  31. {{ item.properties.name }}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="flex-commons">
  37. <div class="flex-left-header-text">
  38. 常用意见
  39. <span @click="clickEdit" class="flex-icon"
  40. ><i class="el-icon-edit"></i>修改</span
  41. >
  42. </div>
  43. <div class="flex-slide">
  44. <div
  45. v-for="(item, index) in commonlyList"
  46. :key="index"
  47. ref="common"
  48. class="flex-common"
  49. @click="clickCommonly($event)"
  50. >
  51. {{ item.dataName }}
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="flex-opinion">
  57. <div class="flex-left-header-text">意见内容</div>
  58. <el-input
  59. type="textarea"
  60. autosize
  61. placeholder="请输入内容"
  62. v-model="textarea"
  63. >
  64. </el-input>
  65. </div>
  66. </div>
  67. <div class="flex-right" :class="{ copyClass: CopyStatus }">
  68. <div
  69. class="flex-left-header-text"
  70. :class="{ 'flex-right-text': CopyStatus }"
  71. >
  72. 本部门人员办理
  73. <div style="display: flex">
  74. <div class="flex-header-text-tree">
  75. 候选人
  76. <deptTree
  77. ref="defTree"
  78. class="flex-slide"
  79. :treeList="treeList"
  80. @changeTree="changeTree"
  81. />
  82. </div>
  83. <div class="flex-header-text-tree">
  84. 已选人员
  85. <!-- <div class="">{{ selectUser }}</div> -->
  86. <div class="" v-for="(item, index) in backThree" :key="index">
  87. {{ item.loginNameStr }}
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div v-if="CopyStatus" class="flex-left-header-text flex-right-text">
  93. 抄送人员
  94. <div style="display: flex">
  95. <div class="flex-header-text-tree">
  96. 抄送人
  97. <deptTree
  98. ref="defTrees"
  99. class="flex-slide"
  100. :treeList="treeCopyList"
  101. @changeTree="changeTreeCopy"
  102. />
  103. </div>
  104. <div class="flex-header-text-tree">
  105. 已选人员
  106. <div class="">{{ copyUser }}</div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="flex-footer-botton">
  113. <div class="flex-button">
  114. <el-button type="primary" @click="submitWork()">提交</el-button>
  115. </div>
  116. </div>
  117. <el-dialog
  118. title="修改常用意见"
  119. :visible.sync="editStatus"
  120. width="100%"
  121. :before-close="editCloses"
  122. :modal="false"
  123. :destroy-on-close="true"
  124. >
  125. <div style="overflow-y: scroll; overflow-x: hidden; height: 240px">
  126. <div
  127. v-for="(item, index) in commonlyList"
  128. :key="index"
  129. ref="common"
  130. class="flex-common"
  131. >
  132. {{ item.dataName
  133. }}<i class="el-icon-circle-close" @click="deleStatus(item)"></i>
  134. </div>
  135. <div class="flex-common">
  136. <i class="el-icon-circle-plus-outline" @click="addStatus()"></i>
  137. </div>
  138. </div>
  139. </el-dialog>
  140. </div>
  141. </template>
  142. <script>
  143. import deptTree from "./workDeptThree.vue";
  144. export default {
  145. components: {
  146. deptTree,
  147. },
  148. name: "workflow",
  149. data() {
  150. return {
  151. active: "",
  152. manyPeopleStatus: false, //多人处理下发任务
  153. editStatus: false, //常用意见控制
  154. transferStatus: false, //转派按钮控制
  155. TransferStatus: false, //是否点击转派状态
  156. copyStatus: false, //抄送按钮控制
  157. CopyStatus: false, //是否点击抄送状态
  158. node: [], //路径列表
  159. seleIndex: "1099", //点击路径下标
  160. commonlyList: [], //常用意见数组
  161. textarea: "未填写意见", //意见内容字段
  162. copyUser: "", //抄送人员列表
  163. selectUser: "", //已选人员列表
  164. treeList: [], // 待选人员列表
  165. propsList: [],
  166. nodes: [],
  167. initialList: [], //第一次进入是加载节点
  168. clicknextName: "", //获取的流程节点
  169. backThree: [],
  170. treeCopyList: [],
  171. demand: "",
  172. nextDealManList: "",
  173. isLastManStatus: false,
  174. manyReassignment: false,
  175. actives: "",
  176. };
  177. },
  178. props: {
  179. // 表格数据和表格部分属性的对象
  180. // eslint-disable-next-line vue/require-default-prop
  181. list: {
  182. type: Object,
  183. },
  184. requestForm: {
  185. type: Object,
  186. },
  187. adminResourceId: {
  188. type: String,
  189. },
  190. },
  191. created() {
  192. console.log(this.list);
  193. this.getNextPath(this.list.resourceId, 1);
  194. this.getMetirialType();
  195. },
  196. methods: {
  197. //多人转派
  198. clickManyTransfer() {
  199. (this.actives = this.actives != "" ? "" : "active"),
  200. (this.seleIndex = "1099");
  201. this.getNextPath(this.adminResourceId, 3);
  202. },
  203. async getLastManList(e) {
  204. let _this = this;
  205. let obj = {
  206. url: _this.$url.formList.getComplateLastMan, //开始工作流接口
  207. data: e,
  208. // status: "form",
  209. headers: {
  210. "Content-Type": "application/json",
  211. },
  212. };
  213. let res = await this.common.httpPost(obj, success);
  214. function success(data) {}
  215. },
  216. async nextWorks(lists, list) {
  217. let listss = {
  218. userId: this.nextDealManList, //人员id
  219. taskId: this.list.taskId, //表单标识
  220. loginstr: JSON.parse(window.sessionStorage.userInfo).loginNoStr,
  221. // taskName: this.clicknextName, //流程节点
  222. content: this.textarea, //意见内容
  223. };
  224. if (this.manyReassignment == true) {
  225. let _this = this;
  226. let obj = {
  227. url: _this.$url.formList.getNewTransferTask + _this.list.taskId, //下一步工作流接口
  228. data: listss,
  229. status: "form",
  230. };
  231. await this.common.httpPost(obj, success);
  232. function success(data) {
  233. _this.$emit("beforeClose", true);
  234. }
  235. } else {
  236. let _this = this;
  237. let obj = {
  238. url: _this.$url.formList.nextWork, //下一步工作流接口
  239. data: lists,
  240. status: "form",
  241. };
  242. await this.common.httpPost(obj, success);
  243. function success(data) {
  244. console.log(data);
  245. let updateList = {
  246. taskId: data.taskid,
  247. id: _this.list.id,
  248. resourceId: _this.nodes.currentShape[0].resourceId,
  249. tableName: _this.requestForm.processDefinitionKey1,
  250. };
  251. list.taskId = data.taskid;
  252. _this.setUpdate(updateList);
  253. _this.getLastManList(list);
  254. }
  255. }
  256. },
  257. submitWork() {
  258. //多人会签处理环节
  259. let list = {
  260. userId: JSON.parse(window.sessionStorage.userInfo).loginNo, //人员id
  261. taskId: this.list.taskId, //表单标识
  262. // procinstid: this.list.processId,
  263. taskName: this.clicknextName, //流程节点
  264. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo, //人员code
  265. content: this.textarea, //意见内容
  266. };
  267. let newlist = {
  268. userId: JSON.parse(window.sessionStorage.userInfo).loginNo, //人员id
  269. taskId: this.list.taskId, //表单标识
  270. // procinstid: this.list.processId,
  271. taskName: this.clicknextName, //流程节点
  272. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo, //人员code
  273. content: this.textarea, //意见内容
  274. };
  275. if (this.manyPeopleStatus == true) {
  276. list.procinstid = this.list.processId;
  277. // if (this.backThree.length <= 1) {
  278. // this.$message.error("请选择多人");
  279. // return;
  280. // } else {
  281. list.lastmanList = this.nextDealManList;
  282. // }
  283. if (this.nodes.currentShape) {
  284. newlist.resolution = this.nodes.currentShape[0].condition.resolution;
  285. newlist.approve = this.nodes.currentShape[0].condition.approve;
  286. }
  287. if (this.backThree.length > 0) {
  288. newlist.nextDealMan = "admin";
  289. }
  290. this.nextWorks(newlist, list);
  291. } else {
  292. console.log(456);
  293. //生成需求决策编号
  294. if (this.clicknextName === "起草人发送") {
  295. this.getDemand();
  296. }
  297. if (!this.list.taskId) {
  298. this.$message.error("请先保存表单后处理");
  299. return false;
  300. }
  301. if (this.TransferStatus === true) {
  302. if (this.backThree.length > 0) {
  303. this.nextWork();
  304. } else {
  305. this.$message.error("请选择候选人");
  306. return false;
  307. }
  308. } else {
  309. if (this.treeCopyList.length) {
  310. //抄送
  311. list.copyman = this.treeCopyList[0].loginNoStrCopy;
  312. }
  313. if (this.isLastManStatus == true) {
  314. list.lastman = "yes";
  315. }
  316. if (this.nodes.currentShape) {
  317. list.resolution = this.nodes.currentShape[0].condition.resolution;
  318. list.approve = this.nodes.currentShape[0].condition.approve;
  319. }
  320. if (this.clicknextName === "") {
  321. this.$message.error("请选择流程节点");
  322. return false;
  323. }
  324. if (this.backThree.length > 0) {
  325. if (this.manyPeopleStatus == true) {
  326. list.nextDealManList = this.nextDealManList;
  327. } else {
  328. list.nextDealMan = this.backThree[0].loginNoStr;
  329. }
  330. } else {
  331. if (this.clicknextName === "流程结束"||this.clicknextName === "提交至任务发起人") {
  332. } else {
  333. this.$message.error("请选择候选人");
  334. return false;
  335. }
  336. }
  337. this.nextWork(list);
  338. }
  339. }
  340. },
  341. //生成需求决策编号接口
  342. getDemand() {
  343. this.$http({
  344. url: "/market/waf/getBusi",
  345. method: "post",
  346. headers: {
  347. "Content-Type": "application/json",
  348. },
  349. data: {},
  350. }).then((res) => {
  351. this.demand = res.data;
  352. });
  353. },
  354. async nextWork(list) {
  355. console.log(list);
  356. //e:yes||no,list:传入数组,title:结束标签,res:驳回标签,id:工单更新id
  357. let _this = this;
  358. let obj = {
  359. url: _this.$url.formList.nextWork, //下一步工作流接口
  360. data: list,
  361. status: "form",
  362. };
  363. if (_this.TransferStatus === true) {
  364. let lists = {
  365. userId: _this.backThree[0].loginNoStr,
  366. taskId: _this.list.taskId,
  367. content: _this.textarea,
  368. };
  369. obj.url = _this.$url.formList.transferTask + _this.list.taskId;
  370. obj.data = lists;
  371. }
  372. await this.common.httpPost(obj, success);
  373. function success(data) {
  374. console.log(data);
  375. if (data != null) {
  376. if (_this.TransferStatus === true) {
  377. let list = {
  378. taskId: data.taskid,
  379. // taskId: _this.list.taskId,
  380. id: _this.list.id,
  381. tableName: _this.requestForm.processDefinitionKey1,
  382. };
  383. _this.setUpdate(list);
  384. } else {
  385. let list = {
  386. taskId: data.taskid,
  387. // taskId:_this.list.taskId,
  388. id: _this.list.id,
  389. resourceId: _this.nodes.currentShape[0].resourceId,
  390. taskName: _this.nodes.nextShapes[0].properties.name,
  391. tableName: _this.requestForm.processDefinitionKey1,
  392. };
  393. if (data.copytaskid) {
  394. list.copytaskid = data.copytaskid;
  395. list.copyman = _this.treeCopyList[0].loginNoStrCopy;
  396. }
  397. if (_this.demand) {
  398. list.needNo = _this.demand;
  399. }
  400. _this.setUpdate(list);
  401. }
  402. } else {
  403. let list = {
  404. taskName: "结束",
  405. id: _this.list.id,
  406. tableName: _this.requestForm.processDefinitionKey1,
  407. };
  408. _this.setUpdate(list);
  409. }
  410. }
  411. },
  412. setUpdate(e) {
  413. this.$http({
  414. url: "/market/waf/updateBase",
  415. method: "post",
  416. headers: {
  417. "Content-Type": "application/json",
  418. },
  419. data: e,
  420. }).then((res) => {
  421. console.log(res.data.body[0].resourceId);
  422. this.list.resourceId = res.data.body[0].resourceId;
  423. this.$emit("updateForm", true);
  424. });
  425. },
  426. //查询路径接口
  427. getNextPath(e, status) {
  428. console.log(e);
  429. console.log(this.requestForm);
  430. let { fresourceId, processDefinitionKey } = this.requestForm;
  431. let list = {
  432. fresourceId: fresourceId,
  433. processId: processDefinitionKey,
  434. };
  435. e ? (list.resourceId = e) : list;
  436. this.$http({
  437. url: "/market/waf/queryPath",
  438. method: "post",
  439. headers: {
  440. "Content-Type": "application/json",
  441. },
  442. data: list,
  443. }).then((res) => {
  444. console.log(res.data.body);
  445. if (status === 1) {
  446. //第一次进入取路径
  447. this.initialList = res.data.body;
  448. if (res.data.body.nextShapes[0].multi !== null) {
  449. if (res.data.body.nextShapes[0].multi.multi === "true") {
  450. // this.getqueryMultiTaskId();
  451. this.isLastManStatus = true;
  452. } else {
  453. this.isLastManStatus = false;
  454. }
  455. }
  456. if (res.data.body.nextShapes[0].loop !== null) {
  457. if (res.data.body.nextShapes[0].loop.loop === "true") {
  458. this.transferStatus = true; //转派按钮生效
  459. } else {
  460. this.transferStatus = false;
  461. }
  462. } else {
  463. this.transferStatus = false;
  464. }
  465. if (res.data.body.nextShapes[0].copy !== null) {
  466. if (res.data.body.nextShapes[0].copy.copy === "true") {
  467. // this.copyStatus = true; //抄送按钮生效
  468. this.CopyStatus = true;
  469. } else {
  470. this.copyStatus = false;
  471. }
  472. } else {
  473. this.copyStatus = false;
  474. }
  475. res.data.body.currentShape.map((item, index) => {
  476. this.getNextPath(item.resourceId, 2);
  477. });
  478. }
  479. if (status === 2) {
  480. // this.getNextPath(res.data.body.nextShapes[0].resourceId, 2);
  481. if (res.data.body.nextShapes[0].condition !== null) {
  482. this.node = res.data.body;
  483. } else {
  484. console.log(res.data.body.nextShapes[0].resourceId);
  485. this.getNextPath(res.data.body.nextShapes[0].resourceId, 2);
  486. }
  487. }
  488. if (status === 3) {
  489. this.nodes = res.data.body;
  490. this.getTreeLists(res.data.body, 1);
  491. if (res.data.body.nextShapes[0].multi !== null) {
  492. if (res.data.body.nextShapes[0].multi.multi === "true") {
  493. this.manyPeopleStatus = true; //转派按钮生效
  494. } else {
  495. this.manyPeopleStatus = false;
  496. }
  497. } else {
  498. this.manyPeopleStatus = false;
  499. }
  500. }
  501. });
  502. },
  503. //查询候选人接口
  504. getTreeLists(e, status) {
  505. let createdId = "createId";
  506. let id =
  507. e.nextShapes[0].properties.documentation === createdId
  508. ? this.list.createId
  509. : e.nextShapes[0].properties.documentation;
  510. console.log(id);
  511. this.$http({
  512. url: "/market/api/user/info/queryNodePers?params=" + id,
  513. method: "post",
  514. headers: {
  515. "Content-Type": "application/json",
  516. },
  517. data: "",
  518. }).then((res) => {
  519. console.log(status);
  520. if (status === 2) {
  521. this.treeCopyList = res.data; //抄送
  522. // this.$refs.defTrees.treeList = res.data;
  523. } else {
  524. this.treeList = res.data; //抄送
  525. // this.$refs.defTree.treeList = res.data;
  526. console.log(this.treeList);
  527. }
  528. });
  529. },
  530. //转派按钮方法
  531. clickTransfer(e) {
  532. if (e == 1) {
  533. this.TransferStatus = true;
  534. } else if (e == 2) {
  535. this.CopyStatus = true;
  536. }
  537. this.getTreeLists(this.initialList, e);
  538. },
  539. //点击节点获取下一步的处理人字段
  540. clickGetTree(e, index) {
  541. this.$refs.defTree.userList = [];
  542. this.backThree = [];
  543. this.CopyStatus = false;
  544. this.TransferStatus = false;
  545. // this.clickTaskName = e.properties.name;
  546. this.clicknextName = e.properties.name;
  547. this.seleIndex = index;
  548. this.getNextPath(e.resourceId, 3); //1 为点击后获取线
  549. },
  550. //点击常用意见方法
  551. clickCommonly(e) {
  552. this.textarea = e.currentTarget.innerHTML;
  553. },
  554. //点击修改
  555. clickEdit() {
  556. this.editStatus = true;
  557. },
  558. //选择树的回调
  559. changeTree(e) {
  560. if (this.manyPeopleStatus == true) {
  561. this.backThree = e;
  562. let arr = [];
  563. this.backThree.map((item) => {
  564. arr.push(item.loginNoStr);
  565. });
  566. this.nextDealManList = arr.toString();
  567. } else {
  568. if (e.length > 1) {
  569. this.$message.error("只能选择一个人");
  570. return;
  571. } else {
  572. this.backThree = e;
  573. if (this.CopyStatus === true) {
  574. this.getTreeLists(e[0].loginNoStr, 2);
  575. }
  576. if (e[0]) {
  577. this.selectUser = e[0].loginNameStr;
  578. } else {
  579. this.selectUser = "暂无选择";
  580. }
  581. }
  582. }
  583. },
  584. //获取字典表常用意见
  585. getMetirialType(e) {
  586. this.$http({
  587. url: "/market/cfgDataDict/queryList",
  588. method: "post",
  589. headers: {
  590. "Content-Type": "application/json",
  591. },
  592. data: {
  593. dictCodePks: "approval",
  594. },
  595. }).then((res) => {
  596. console.log(res);
  597. this.commonlyList = res.data;
  598. });
  599. },
  600. //添加字典表常用意见
  601. geaddctType(e) {
  602. this.$http({
  603. url: "/market/cfgDataDict/add",
  604. method: "post",
  605. headers: {
  606. "Content-Type": "application/json",
  607. },
  608. data: e,
  609. }).then((res) => {
  610. this.getMetirialType();
  611. });
  612. },
  613. //关闭修改
  614. editCloses() {
  615. this.editStatus = false;
  616. },
  617. //常用意见添加
  618. addStatus() {
  619. let newData = Date.parse(new Date());
  620. this.$prompt("请输入常用意见", "提示", {
  621. confirmButtonText: "确定",
  622. cancelButtonText: "取消",
  623. })
  624. .then(({ value }) => {
  625. let list = {
  626. dictCode: "approval",
  627. dataCode: newData,
  628. dataName: value,
  629. dictName: "审批意见",
  630. };
  631. this.geaddctType(list);
  632. this.$message({
  633. type: "success",
  634. message: "常用意见添加成功",
  635. });
  636. })
  637. .catch(() => {
  638. this.$message({
  639. type: "info",
  640. message: "取消输入",
  641. });
  642. });
  643. },
  644. //常用意见删除
  645. deleStatus(e) {
  646. this.$confirm("此操作将删除此常用意见, 是否继续?", "提示", {
  647. confirmButtonText: "确定",
  648. cancelButtonText: "取消",
  649. type: "warning",
  650. })
  651. .then(() => {
  652. let list = {
  653. dataCode: e.dataCode,
  654. dictCode: "approval",
  655. };
  656. this.geDelectType(list);
  657. this.$message({
  658. type: "success",
  659. message: "删除成功!",
  660. });
  661. })
  662. .catch(() => {
  663. this.$message({
  664. type: "info",
  665. message: "已取消删除",
  666. });
  667. });
  668. },
  669. //删除字典表常用意见
  670. geDelectType(e) {
  671. this.$http({
  672. url: "/market/cfgDataDicts/del",
  673. method: "post",
  674. headers: {
  675. "Content-Type": "application/json",
  676. },
  677. data: e,
  678. }).then((res) => {
  679. this.getMetirialType();
  680. });
  681. },
  682. },
  683. };
  684. </script>
  685. <style lang='scss' scoped>
  686. .flex-header-text-tree {
  687. width: 50%;
  688. text-align: center;
  689. }
  690. .flex-icon {
  691. float: right;
  692. margin-right: 20px;
  693. color: #4277a1;
  694. }
  695. .flex-handle {
  696. width: 100%;
  697. padding: 30px;
  698. display: flex;
  699. .flex-right {
  700. width: 50%;
  701. border: 1px solid #e1e1e1;
  702. margin-left: 20px;
  703. }
  704. }
  705. .flex-left {
  706. width: 50%;
  707. display: flex;
  708. flex-direction: column;
  709. .flex-left-header {
  710. display: flex;
  711. justify-content: space-around;
  712. .flex-path {
  713. height: 280px;
  714. border: 1px solid #e1e1e1;
  715. width: 68%;
  716. }
  717. }
  718. }
  719. .flex-common {
  720. padding: 10px 5%;
  721. font-size: 18px;
  722. }
  723. .flex-left-header-text {
  724. height: 40px;
  725. line-height: 40px;
  726. color: black;
  727. padding-left: 10px;
  728. background-color: #cde4f6;
  729. font-size: 18px;
  730. font-weight: bold;
  731. }
  732. .flex-path-list {
  733. overflow-y: scroll;
  734. overflow-x: hidden;
  735. height: 14rem;
  736. }
  737. .flex-slide {
  738. overflow-y: scroll;
  739. overflow-x: hidden;
  740. }
  741. .active {
  742. background-color: #f3faff;
  743. }
  744. .flex-opinion {
  745. height: 280px;
  746. border: 1px solid #e1e1e1;
  747. width: 100%;
  748. margin-top: 20px;
  749. }
  750. .flex-right-text {
  751. margin-right: 20px;
  752. width: 50%;
  753. }
  754. .flex-commons {
  755. height: 280px;
  756. border: 1px solid #e1e1e1;
  757. width: 30%;
  758. }
  759. .flex-footer-botton {
  760. display: flex;
  761. justify-content: space-evenly;
  762. }
  763. .flex-button {
  764. margin-top: 10px;
  765. margin-bottom: 10px;
  766. ::v-deep .el-button--primary {
  767. width: 222px;
  768. }
  769. }
  770. </style>