iam-audit-work.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <template>
  2. <a-layout :class="$style.page">
  3. <a-layout-header :class="$style.header">
  4. <span :class="$style.headerTitle" :title="projectName">{{ projectName }}</span>
  5. <a-menu
  6. v-if="loadShow"
  7. mode="horizontal"
  8. :default-selected-keys="['12']"
  9. :style="{
  10. lineHeight: '64px',
  11. background: 'transparent',
  12. color: '#FFFFFF',
  13. }"
  14. @click="menuClick"
  15. >
  16. <!-- <a-menu-item key="1"> 项目作业</a-menu-item> -->
  17. <!-- <a-menu-item key="2"> 项目管理</a-menu-item>-->
  18. <a-menu-item key="12"> 项目基本信息</a-menu-item>
  19. <a-menu-item key="8"> 远程审计</a-menu-item>
  20. <!-- <a-menu-item key="9"> 审计通知书</a-menu-item> -->
  21. <a-menu-item key="10"> 审计报告</a-menu-item>
  22. <a-menu-item v-if="currentUserType.indexOf('04') > -1" key="11"> 项目考评</a-menu-item>
  23. <a-menu-item key="4"> 项目成员</a-menu-item>
  24. <a-menu-item v-if="hasLeaderAuthority()" key="5"> 项目变更</a-menu-item>
  25. <!-- <a-menu-item v-if="hasLeaderAuthority()" key="6"> 项目节点</a-menu-item>
  26. <a-menu-item key="7"> 项目费用</a-menu-item> -->
  27. </a-menu>
  28. <!-- <div>
  29. <a-icon type="close" :class="$style.closeBtn" @click="close"></a-icon>
  30. </div> -->
  31. </a-layout-header>
  32. <a-layout
  33. v-if="!iframeTag"
  34. :style="menuId !== '3' ? 'padding:20px;background: #fff;' : 'background: #fff;'"
  35. class="sd-has-table"
  36. >
  37. <!-- <iframe ref="mainfrm" :class="$style.rightfrm" frameborder="0"></iframe>-->
  38. <router-view></router-view>
  39. </a-layout>
  40. <a-layout v-if="iframeTag" style="padding:20px 20px 20px 0">
  41. <a-layout-sider
  42. theme="light"
  43. width="200"
  44. :class="[
  45. fold ? $style.leftSiderHidden : null,
  46. $style.leftSider,
  47. { [$style.leftOver]: !fold },
  48. ]"
  49. style="padding:0;background: #fff;"
  50. >
  51. <div :class="$style.siderContent">
  52. <div :class="$style.siderTitleDivFirst">
  53. <div :class="$style.siderTitle">
  54. <a-icon type="file-done" style="color:#7c7c7c" />
  55. 准备阶段
  56. </div>
  57. </div>
  58. <a-spin :spinning="spinning">
  59. <a-timeline :class="[spinning ? $style.timeline : '']">
  60. <div
  61. v-for="node in preparaNodes"
  62. :key="node.id"
  63. :class="[
  64. $style.siderUlDiv,
  65. { checked: checkedId === node.nodePeriod + '-' + node.id },
  66. ]"
  67. @click="setChecked(node.nodePeriod + '-' + node.id, node.nodeUrl, 1)"
  68. >
  69. <a-timeline-item :class="$style.siderLi">{{ node.nodeName }}</a-timeline-item>
  70. </div>
  71. </a-timeline>
  72. </a-spin>
  73. </div>
  74. <div :class="$style.siderContent">
  75. <div :class="$style.siderTitleDiv">
  76. <div :class="$style.siderTitle">
  77. <a-icon type="profile" style="color:#7c7c7c" />
  78. 实施阶段
  79. <a-icon
  80. v-show="projectStage === 1 && showChangeStatus"
  81. type="swap"
  82. :class="$style.changeStatus"
  83. @click="changeStatus('effect')"
  84. />
  85. </div>
  86. </div>
  87. <a-spin :spinning="spinning">
  88. <a-timeline :class="[spinning ? $style.timeline : '']">
  89. <div
  90. v-for="node in effectNodes"
  91. :key="node.id"
  92. :class="[
  93. $style.siderUlDiv,
  94. { checked: checkedId === node.nodePeriod + '-' + node.id },
  95. projectStage < 2 ? $style.nodeReadonly : null,
  96. ]"
  97. @click="setChecked(node.nodePeriod + '-' + node.id, node.nodeUrl, 2)"
  98. >
  99. <a-timeline-item :class="$style.siderLi">{{ node.nodeName }}</a-timeline-item>
  100. </div>
  101. </a-timeline>
  102. </a-spin>
  103. </div>
  104. <div :class="$style.siderContent">
  105. <div :class="$style.siderTitleDiv">
  106. <div :class="$style.siderTitle">
  107. <a-icon type="file-text" style="color:#7c7c7c" />
  108. 报告阶段
  109. <a-icon
  110. v-show="projectStage === 2 && showChangeStatus"
  111. type="swap"
  112. :class="$style.changeStatus"
  113. @click="changeStatus('report')"
  114. />
  115. </div>
  116. </div>
  117. <a-spin :spinning="spinning">
  118. <a-timeline>
  119. <div
  120. v-for="node in reportNodes"
  121. :key="node.id"
  122. :class="[
  123. $style.siderUlDiv,
  124. { checked: checkedId === node.nodePeriod + '-' + node.id },
  125. projectStage < 3 ? $style.nodeReadonly : null,
  126. ]"
  127. @click="setChecked(node.nodePeriod + '-' + node.id, node.nodeUrl, 3)"
  128. >
  129. <a-timeline-item :class="$style.siderLi">{{ node.nodeName }}</a-timeline-item>
  130. </div>
  131. </a-timeline>
  132. </a-spin>
  133. </div>
  134. </a-layout-sider>
  135. <a-layout-sider width="20" style="background: #f0f2f5">
  136. <a-button type="primary" :class="$style.fold" @click="foldClick">
  137. <a-icon :type="fold ? 'right' : 'left'" />
  138. </a-button>
  139. </a-layout-sider>
  140. <a-layout style="padding:20px;background: #fff;" class="sd-has-table">
  141. <!-- <iframe ref="rightfrm" :class="$style.rightfrm" frameborder="0"></iframe> -->
  142. <router-view name="rightfrm"></router-view>
  143. </a-layout>
  144. </a-layout>
  145. </a-layout>
  146. </template>
  147. <script>
  148. import { Message } from 'ant-design-vue'
  149. import { getUserInfo } from '@/common/store-mixin'
  150. import axios from '@/common/services/axios-instance'
  151. import axiosll from 'axios'
  152. import { Modal } from '@/common/one-ui'
  153. import crossWindowWatcher from '@/common/services/cross-window-watcher'
  154. import components from './_import-components/iam-audit-work-import'
  155. export default {
  156. name: 'IamAuditWork',
  157. metaInfo: {
  158. title: '审计作业',
  159. },
  160. components: {
  161. ...components,
  162. },
  163. mixins: [],
  164. data() {
  165. return {
  166. menuId: '',
  167. fold: false,
  168. spinning: true, // 左侧节点加载状态
  169. iframeTag: false, // 左侧节点导航默认隐藏
  170. projectId: '',
  171. projectStatus: '',
  172. checkedId: '', // 默认选中节点id
  173. preparaNodes: [], // 准备阶段节点
  174. effectNodes: [], // 实施阶段节点
  175. reportNodes: [], // 报告阶段节点
  176. projectStage: 1, // 项目阶段1准备2实施3报告
  177. projectName: '', // 项目名称,
  178. currentUserType: [], // 当前登录人所在项目角色
  179. loadShow: false,
  180. showChangeStatus: false, // 切换阶段按钮显示
  181. }
  182. },
  183. created() {
  184. const projectId = this.$route.query.projectId
  185. },
  186. mounted() {
  187. const projectId = this.$route.query.projectId
  188. if (projectId) {
  189. this.projectId = projectId
  190. }
  191. axios({
  192. url: `api/xcoa-mobile/v1/iamauditproject/checkProjectIsStart?id=` + projectId,
  193. }).then((res2) => {
  194. if (res2.data === false) {
  195. Modal.warning({
  196. content: '该项目作业未启动',
  197. onOk() {
  198. window.close()
  199. },
  200. okText: '确认',
  201. })
  202. } else {
  203. axiosll
  204. .all([
  205. axios({
  206. url: `api/xcoa-mobile/v1/iam-statistics/getCurrUserRead?projectId=` + projectId,
  207. }),
  208. axios({
  209. url: `api/xcoa-mobile/v1/iamauditproject/getProjectInfoById?id=` + projectId,
  210. }),
  211. ])
  212. // .then((res) => {
  213. // console.log(res)
  214. // })
  215. // axios({
  216. // url: `api/xcoa-mobile/v1/iam-statistics/getCurrUserRead?projectId=` + projectId,
  217. // })
  218. .then((res) => {
  219. const res0 = res[1]
  220. const res1 = res[0]
  221. const readAuthorityCodes = res0.data.readAuthorityCodes
  222. const hasRead =
  223. readAuthorityCodes != null && readAuthorityCodes.indexOf(getUserInfo().account) > -1
  224. if (res1.data === false && !hasRead) {
  225. Modal.warning({
  226. content: '您没有查看此项目的权限',
  227. onOk() {
  228. window.close()
  229. },
  230. okText: '确认',
  231. })
  232. } else {
  233. axios({
  234. url: `api/xcoa-mobile/v1/iamauditproject/getProjectInfoById?id=` + projectId,
  235. }).then((res) => {
  236. // 如果未启动,则直接关闭
  237. if (res.data.itemStatus === '06') {
  238. Modal.warning({
  239. content: '该项目已取消',
  240. onOk() {
  241. window.close()
  242. },
  243. okText: '确认',
  244. })
  245. return
  246. }
  247. this.projectName = res.data.projectTitle // 项目名称赋值
  248. this.projectStatus = res.data.itemStatus // 项目名称赋值
  249. if (res.data.projectStage === 'profile') {
  250. this.projectStage = 2
  251. } else if (res.data.projectStage === 'file-text') {
  252. this.projectStage = 3
  253. }
  254. const userList = res.data?.iamProjectUserList
  255. if (userList) {
  256. this.currentUserType = userList.map((item) => {
  257. if (item.userAccount === getUserInfo().account) {
  258. return item.userType
  259. } else {
  260. return false
  261. }
  262. })
  263. }
  264. this.loadShow = true
  265. // 基本信息 gaoyr 20230919 改为默认基本信息
  266. this.$router.push(
  267. '/audit-work/audit-project-detail?record=' +
  268. this.projectId +
  269. '&projectId=' +
  270. this.projectId
  271. )
  272. })
  273. // // 获取当前项目的项目节点信息
  274. // axios({
  275. // url: `api/xcoa-mobile/v1/iamworknode/getPorjectWorkNodeInfo`,
  276. // params: {
  277. // projectId: projectId,
  278. // },
  279. // }).then((res) => {
  280. // // 先将准备、实施、报告阶段进行区分
  281. // res.data.forEach((item, index) => {
  282. // if (index === 0) {
  283. // this.checkedId = item.nodePeriod + '-' + item.id
  284. // }
  285. // if (item.nodePeriod === 'file-done') {
  286. // this.preparaNodes.push(item)
  287. // } else if (item.nodePeriod === 'profile') {
  288. // this.effectNodes.push(item)
  289. // } else if (item.nodePeriod === 'file-text') {
  290. // this.reportNodes.push(item)
  291. // }
  292. // })
  293. // this.spinning = !this.spinning
  294. // const worktype = this.$route.query.worktype
  295. // const nodeurl = this.$route.query.nodeurl
  296. // if (worktype && nodeurl) {
  297. // this.checkedId = worktype
  298. // this.$router.push('/audit-work/' + nodeurl + '?projectId=' + this.projectId)
  299. // } else {
  300. // this.$router.push(
  301. // '/audit-work/' + this.preparaNodes[0].nodeUrl + '?projectId=' + this.projectId
  302. // )
  303. // }
  304. // })
  305. // 获取当前项目组长及副组长
  306. axios({
  307. url: `api/xcoa-mobile/v1/page/wp/audit/project/iamAuditProject`,
  308. params: {
  309. id: projectId,
  310. },
  311. }).then((res) => {
  312. // 找到组长及副组长
  313. const userListJson = res.data.pageFormData.pageFieldInfos.find((item) => {
  314. return item.name === 'iamProjectUserList'
  315. })
  316. const userList = JSON.parse(userListJson.value)
  317. userList.forEach((item) => {
  318. if ((item.userType === '01') | (item.userType === '05')) {
  319. if (item.userAccount === getUserInfo().account) {
  320. this.showChangeStatus = true
  321. }
  322. }
  323. })
  324. })
  325. }
  326. })
  327. }
  328. })
  329. },
  330. destroyed() {
  331. window.removeEventListener('hasLeaderAuthority', this.hasLeaderAuthority)
  332. },
  333. methods: {
  334. // 隐藏左侧节点
  335. foldClick() {
  336. this.fold = !this.fold
  337. },
  338. // 是否拥有项目组长和项目副组长的权限
  339. hasLeaderAuthority() {
  340. if (this.currentUserType.indexOf('01') > -1 || this.currentUserType.indexOf('05') > -1) {
  341. return true
  342. }
  343. return false
  344. },
  345. // 切换阶段功能
  346. changeStatus(status) {
  347. const _this = this
  348. const projectId = this.projectId
  349. let msgText = ''
  350. let projectStage = ''
  351. if (status === 'effect') {
  352. msgText = '是否切换至实施阶段'
  353. projectStage = 'profile'
  354. } else {
  355. msgText = '是否切换至报告阶段'
  356. projectStage = 'file-text'
  357. }
  358. Modal.confirm({
  359. content: msgText,
  360. onOk() {
  361. axios({
  362. url: `api/xcoa-mobile/v1/iamauditproject/changePorjectPhase?projectId=${projectId}&projectStage=${projectStage}`,
  363. method: 'post',
  364. }).then((res) => {
  365. Message.success('阶段切换成功', 1)
  366. if (projectStage === 'profile') {
  367. _this.projectStage = 2
  368. } else if (projectStage === 'file-text') {
  369. _this.projectStage = 3
  370. }
  371. })
  372. },
  373. cancelText: '取消',
  374. okText: '确认',
  375. onCancel() {},
  376. })
  377. },
  378. setChecked(val, url, stage) {
  379. // 如果点击的阶段大于当前阶段,则不能点击
  380. if (stage > this.projectStage) {
  381. return
  382. }
  383. url = url + '?projectId=' + this.projectId
  384. this.checkedId = val
  385. // this.$refs.rightfrm.src = url
  386. this.$router.push('/audit-work/' + url)
  387. },
  388. close() {
  389. crossWindowWatcher.notifyChange(true)
  390. window.close()
  391. },
  392. menuClick(val) {
  393. this.menuId = val.key
  394. if (val.key === '1') {
  395. // 项目作业
  396. this.iframeTag = true
  397. setTimeout(() => {
  398. // 调整左侧节点选中状态
  399. this.checkedId = this.preparaNodes[0].nodePeriod + '-' + this.preparaNodes[0].id
  400. // 修改跳转路由
  401. this.$router.push(
  402. '/audit-work/' + this.preparaNodes[0].nodeUrl + '?projectId=' + this.projectId
  403. )
  404. }, 0)
  405. }
  406. if (val.key === '2') {
  407. // 项目管理
  408. this.iframeTag = false
  409. setTimeout(() => {
  410. this.$router.push(
  411. '/audit-work/audit-projectmanage-list?projectId=' +
  412. this.projectId +
  413. '&currentUserType=' +
  414. this.currentUserType +
  415. '&projectStatus=' +
  416. this.projectStatus
  417. )
  418. }, 0)
  419. }
  420. if (val.key === '3') {
  421. // 项目概况
  422. this.iframeTag = false
  423. setTimeout(() => {
  424. this.$router.push(
  425. '/audit-work/audit-projectoverview-form?projectId=' + this.projectId // 新页面要打开的路由地址
  426. )
  427. }, 0)
  428. }
  429. if (val.key === '4') {
  430. // 项目成员
  431. this.iframeTag = false
  432. setTimeout(() => {
  433. this.$router.push(
  434. '/audit-work/audit-projectuser-list?projectId=' +
  435. this.projectId +
  436. '&currentUserType=' +
  437. this.currentUserType +
  438. '&projectStatus=' +
  439. this.projectStatus
  440. )
  441. }, 0)
  442. }
  443. if (val.key === '5') {
  444. // 项目变更
  445. this.iframeTag = false
  446. setTimeout(() => {
  447. this.$router.push(
  448. '/audit-work/audit-projectchange-form?projectId=' +
  449. this.projectId +
  450. '&projectStatus=' +
  451. this.projectStatus // 新页面要打开的路由地址
  452. )
  453. }, 0)
  454. }
  455. if (val.key === '6') {
  456. // 项目节点
  457. this.iframeTag = false
  458. setTimeout(() => {
  459. this.$router.push(
  460. '/audit-work/audit-projectnode-form?projectId=' +
  461. this.projectId +
  462. '&projectStatus=' +
  463. this.projectStatus // 新页面要打开的路由地址
  464. )
  465. }, 0)
  466. }
  467. if (val.key === '7') {
  468. // 项目费用
  469. this.iframeTag = false
  470. setTimeout(() => {
  471. // this.$refs.mainfrm.src = '#/audit-projectcost-list?projectId=' + this.projectId
  472. this.$router.push(
  473. '/audit-work/audit-projectcost-list?projectId=' +
  474. this.projectId +
  475. '&currentUserType=' +
  476. this.currentUserType +
  477. '&projectStatus=' +
  478. this.projectStatus
  479. )
  480. }, 0)
  481. }
  482. if (val.key === '8') {
  483. // 远程审计
  484. this.iframeTag = false
  485. setTimeout(() => {
  486. this.$router.push(
  487. '/audit-work/xm-audit-preparation-list?projectId=' +
  488. this.projectId +
  489. '&projectStatus=' +
  490. this.projectStatus
  491. )
  492. }, 0)
  493. }
  494. if (val.key === '9') {
  495. // 审计通知书
  496. this.iframeTag = false
  497. setTimeout(() => {
  498. this.$router.push(
  499. '/audit-work/xm-audit-notice-list?projectId=' +
  500. this.projectId +
  501. '&projectStatus=' +
  502. this.projectStatus
  503. )
  504. }, 0)
  505. }
  506. if (val.key === '10') {
  507. // 审计项目成果
  508. this.iframeTag = false
  509. setTimeout(() => {
  510. this.$router.push(
  511. '/audit-work/xm-audit-report-list?projectId=' +
  512. this.projectId +
  513. '&projectStatus=' +
  514. this.projectStatus
  515. )
  516. }, 0)
  517. }
  518. if (val.key === '11') {
  519. // 项目考评
  520. this.iframeTag = false
  521. setTimeout(() => {
  522. this.$router.push(
  523. '/audit-work/audit-projectscore-form?projectId=' +
  524. this.projectId +
  525. '&projectStatus=' +
  526. this.projectStatus
  527. )
  528. }, 0)
  529. }
  530. if (val.key === '12') {
  531. // 项目基本信息
  532. this.iframeTag = false
  533. setTimeout(() => {
  534. this.$router.push(
  535. '/audit-work/audit-project-detail?record=' +
  536. this.projectId +
  537. '&projectId=' +
  538. this.projectId
  539. )
  540. }, 0)
  541. }
  542. },
  543. },
  544. }
  545. </script>
  546. <style module lang="scss">
  547. @use '@/common/design' as *;
  548. .fold {
  549. position: absolute;
  550. top: calc(50% - 30px);
  551. right: 5px;
  552. z-index: 2;
  553. width: 15px;
  554. height: 75px;
  555. padding: 0;
  556. border-radius: 0 10px 10px 0;
  557. }
  558. .audit-table {
  559. :global(.sd-readonly) {
  560. margin-bottom: 24px;
  561. }
  562. }
  563. .close-btn {
  564. font-size: 15px;
  565. color: #ffffff;
  566. position: absolute;
  567. right: 15px;
  568. top: 25px;
  569. cursor: pointer;
  570. }
  571. $link-icon-size: 22px;
  572. $line-height-theme: 66px;
  573. $theme-check: #fff;
  574. $icon-size: 15px;
  575. .page {
  576. // 表格样式
  577. :global(div.sd-has-table) {
  578. :global(.ant-table-wrapper) {
  579. margin-top: -8px;
  580. }
  581. :global(.ant-card-body) {
  582. padding: 0;
  583. :global(.ant-table-wrapper) {
  584. margin-top: -8px;
  585. }
  586. }
  587. }
  588. :global(.sd-has-table) {
  589. :global(.ant-table-wrapper) {
  590. margin-top: -8px;
  591. }
  592. }
  593. height: 100%;
  594. .left-sider {
  595. overflow: hidden;
  596. white-space: nowrap;
  597. :global(.ant-layout-sider-children) {
  598. overflow: auto;
  599. }
  600. }
  601. .left-sider-hidden {
  602. flex: 0 0 0 !important;
  603. max-width: 0 !important;
  604. min-width: 0 !important;
  605. width: 0 !important;
  606. padding: 0px;
  607. background: rgb(255, 255, 255);
  608. :global(.ant-layout-sider-children) {
  609. overflow: hidden;
  610. }
  611. }
  612. .left-over {
  613. margin-left: 20px;
  614. }
  615. .trigger {
  616. display: inline-block;
  617. padding: 0 15px;
  618. vertical-align: top;
  619. cursor: pointer;
  620. transition: color 0.3s;
  621. &:hover {
  622. color: $text-color-inverse;
  623. }
  624. }
  625. aside {
  626. overflow: auto;
  627. }
  628. :global(.sd-frame-main) {
  629. height: 100%;
  630. padding: $padding-lg;
  631. overflow: auto;
  632. }
  633. :global(sd-readonly) {
  634. margin-bottom: 24px;
  635. }
  636. :global(.ant-menu-horizontal) {
  637. border-bottom: none;
  638. }
  639. :global(.header_audit-form-top-banner_product > div) {
  640. display: none;
  641. }
  642. }
  643. .title {
  644. display: inline-block;
  645. margin-left: -35px;
  646. font-weight: 600;
  647. line-height: inherit;
  648. text-align: center;
  649. vertical-align: top;
  650. > i {
  651. // 固定大小的logo
  652. /* stylelint-disable-next-line */
  653. font-size: 20px;
  654. transform: scale(10);
  655. }
  656. }
  657. // 主内容区的Card白色背景要占满
  658. :global .sd-frame-main > .ant-card {
  659. min-height: 100%;
  660. }
  661. .header {
  662. background: linear-gradient(to right, #254a7f, #1b365d);
  663. height: 64px;
  664. line-height: 64px;
  665. padding: 0 20px 0 20px;
  666. :global .ant-menu {
  667. float: right;
  668. }
  669. :global(.ant-menu-item-selected) {
  670. color: #ffffff;
  671. background: #254a7f;
  672. border-bottom: 2px solid #ed2c2c !important;
  673. top: 0;
  674. }
  675. :global(.ant-menu-item) {
  676. // border-bottom: 2px solid #ffffff;
  677. // border-bottom: 0 !important;
  678. top: 0;
  679. }
  680. :global(.ant-menu-item-active) {
  681. color: #ffffff !important;
  682. background: #254a7f !important;
  683. border-bottom: 0 !important;
  684. top: 0;
  685. }
  686. .header-title {
  687. color: #ffffff;
  688. font-size: 25px;
  689. font-weight: 400;
  690. display: inline-block;
  691. // width: 40%;
  692. overflow: hidden;
  693. text-overflow: ellipsis;
  694. white-space: nowrap;
  695. }
  696. }
  697. .header > div:last-child {
  698. width: calc(100% - 200px);
  699. }
  700. .links {
  701. display: flex;
  702. align-items: center;
  703. margin: 0 $link-icon-size / 2;
  704. li:global(.ant-menu-item) {
  705. padding: 0;
  706. }
  707. i:global(.anticon) {
  708. padding: 0 $link-icon-size / 2;
  709. margin: 0;
  710. font-size: $link-icon-size;
  711. line-height: $layout-header-height;
  712. vertical-align: middle;
  713. &:hover {
  714. // 悬浮的颜色,与主题无关
  715. /* stylelint-disable-next-line */
  716. background-color: rgba(0, 0, 0, 0.2);
  717. }
  718. }
  719. }
  720. .tools {
  721. display: flex;
  722. float: right;
  723. }
  724. .headerbadge {
  725. bottom: $line-height-theme / 6;
  726. left: -$link-icon-size / 2 - 5;
  727. }
  728. .sider-content {
  729. padding: 0 0;
  730. .sider-title {
  731. position: relative;
  732. margin-left: 23px;
  733. i {
  734. color: #1890ff;
  735. position: absolute;
  736. font-size: 18px;
  737. left: -27px;
  738. top: 3px;
  739. }
  740. font-weight: bold;
  741. }
  742. .sider-li {
  743. :global(.ant-timeline-item-content) {
  744. margin: 0 0 0 15px;
  745. }
  746. :global(.ant-timeline-item-head-blue) {
  747. color: #9f9f9f;
  748. border-color: #9f9f9f;
  749. background-color: #9f9f9f;
  750. top: 4px;
  751. left: 3px;
  752. width: 3px;
  753. height: 3px;
  754. }
  755. :global(.ant-timeline-item-tail) {
  756. height: calc(100% - -18px);
  757. border-left: 2px solid #f5f5f5;
  758. display: none;
  759. }
  760. }
  761. .sider-title-div-first {
  762. padding: 10px 0 10px 20px;
  763. margin-bottom: 10px;
  764. border-bottom: 2px solid #e8e8e8;
  765. }
  766. .sider-title-div {
  767. padding: 10px 0 10px 20px;
  768. margin-bottom: 10px;
  769. border-top: 2px solid #e8e8e8;
  770. border-bottom: 2px solid #e8e8e8;
  771. }
  772. ul {
  773. margin-left: 0;
  774. padding-bottom: 5px;
  775. }
  776. .sider-ul-div {
  777. padding: 13px 0px 0px 12px;
  778. width: 100%;
  779. margin: 3px auto;
  780. border-radius: 0px;
  781. cursor: pointer;
  782. :global(.ant-timeline-item) {
  783. padding: 0;
  784. margin-left: 3px;
  785. }
  786. }
  787. .node-readonly {
  788. cursor: normal;
  789. color: #b6b6b6;
  790. }
  791. :global(.checked) {
  792. background: linear-gradient(to right, #13c2c2, #2db7f5);
  793. color: #fff;
  794. :global(.ant-timeline-item-head-blue) {
  795. background-color: #ffffff;
  796. border-color: #ffffff !important;
  797. top: 4px;
  798. left: 3px;
  799. width: 3px;
  800. height: 3px;
  801. }
  802. }
  803. :global(.ant-timeline-item-last .ant-timeline-item-tail) {
  804. display: none;
  805. }
  806. .timeline {
  807. min-height: 150px;
  808. }
  809. }
  810. :global(.ant-tabs) {
  811. overflow-y: auto;
  812. }
  813. .rightfrm {
  814. height: 100%;
  815. width: 100%;
  816. }
  817. .change-status {
  818. margin-left: 150px;
  819. font-size: 20px !important;
  820. color: #28baeb !important;
  821. cursor: pointer;
  822. }
  823. </style>