accountdel.vue 53 KB

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