law-case-progress-page.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581
  1. <template>
  2. <a-layout :class="$style.page">
  3. <a-layout-header :class="$style.header">
  4. <div :class="$style.headerTitle" :title="caseName" v-if="ifRouterView">{{ caseName }} </div>
  5. </a-layout-header>
  6. <a-layout style="padding: 20px 20px 20px 0">
  7. <a-layout-sider
  8. theme="light"
  9. width="200"
  10. :class="[
  11. fold ? $style.leftSiderHidden : null,
  12. $style.leftSider,
  13. { [$style.leftOver]: !fold },
  14. ]"
  15. style="padding: 0; background: #fff"
  16. >
  17. <div :class="$style.siderContent" v-for="(node, index) in nodeinfo" :key="node.id">
  18. <div
  19. :class="[
  20. $style.siderTitleDiv,
  21. {
  22. [$style.checked]: projectStage === node.props.stepType && checkedId === node.id,
  23. },
  24. { siderTitlechildxm: node.children.length > 0 },
  25. ]"
  26. >
  27. <div
  28. :class="[$style.siderTitle, { [$style.handstyle]: node.nodeUrl !== '' }]"
  29. @click="
  30. node.nodeUrl !== '' && setChecked(index, node.nodeUrl, node.props.stepType, node.id)
  31. "
  32. >
  33. <a-icon
  34. type="profile"
  35. :class="[projectStage === node.props.stepType ? 'checkedpro' : 'nocheckedpro']"
  36. />
  37. {{ node.nodeName }}
  38. <a-icon
  39. :type="'plus-circle'"
  40. @click="addProgress(null, index, $event)"
  41. :class="[
  42. $style.changeStatus,
  43. { checkedpro: projectStage === node.props.stepType },
  44. { nocheckedpro: projectStage !== node.props.stepType },
  45. ]"
  46. v-if="
  47. (node.props.stepType === 'progress' || node.props.stepType === 'execute') &&
  48. zt === node.props.stepType &&
  49. nodeinfo.length - 1 === index &&
  50. !view
  51. "
  52. />
  53. </div>
  54. </div>
  55. <a-spin :spinning="spinning" v-if="node.children.length > 0">
  56. <a-timeline :class="[spinning ? $style.timeline : '']">
  57. <div
  58. v-for="(cnode, cindex) in node.children"
  59. :key="cnode.id"
  60. :class="[
  61. $style.siderUlDiv,
  62. {
  63. [$style.checked]:
  64. projectStage === node.props.stepType &&
  65. checkedId === cnode.id &&
  66. projectStage !== 'progress',
  67. },
  68. ]"
  69. >
  70. <table style="border: none; width: 100%; border-bottom: 2px solid #e8e8e8">
  71. <tr
  72. @click="
  73. cnode.nodeUrl !== '' &&
  74. setChecked(index, cnode.nodeUrl, node.props.stepType, cnode.id)
  75. "
  76. :class="[
  77. {
  78. checkedtr:
  79. projectStage === node.props.stepType &&
  80. checkedId === cnode.id &&
  81. projectStage === 'progress',
  82. },
  83. ]"
  84. >
  85. <td width="60%"
  86. ><a-timeline-item :class="$style.siderLi">{{
  87. cnode.nodeName
  88. }}</a-timeline-item></td
  89. >
  90. <td width="40%">
  91. <a-icon
  92. :type="'plus-circle'"
  93. @click="addProgress(cnode, index, $event)"
  94. :class="[
  95. $style.changeStatusp,
  96. { checkedpro: projectStage === node.props.stepType },
  97. { nocheckedpro: projectStage !== node.props.stepType },
  98. ]"
  99. v-if="
  100. node.props.stepType === 'progress' &&
  101. cindex === node.children.length - 1 &&
  102. zt === node.props.stepType &&
  103. nodeinfo.length - 1 === index &&
  104. !view
  105. "
  106. />
  107. <a-icon
  108. :type="'up'"
  109. @click="fnzkzdnode(cnode, 'up', $event)"
  110. :class="[
  111. $style.changeStatusp,
  112. { checkedpro: projectStage === node.props.stepType },
  113. { nocheckedpro: projectStage !== node.props.stepType },
  114. ]"
  115. v-if="node.props.stepType === 'progress' && cnode.props.zk"
  116. />
  117. <a-icon
  118. :type="'down'"
  119. @click="fnzkzdnode(cnode, 'down', $event)"
  120. :class="[
  121. $style.changeStatusp,
  122. { checkedpro: projectStage === node.props.stepType },
  123. { nocheckedpro: projectStage !== node.props.stepType },
  124. ]"
  125. v-if="node.props.stepType === 'progress' && !cnode.props.zk"
  126. />
  127. <a-icon
  128. type="delete"
  129. @click="deleteProgress(cnode, node, index, $event)"
  130. :class="[$style.deletePro]"
  131. v-show="cnode.nodeUrl.indexOf('/draft/') > -1"
  132. v-if="node.props.stepType === 'execute' && !view"
  133. />
  134. </td>
  135. </tr>
  136. <tr
  137. :class="[
  138. {
  139. checkedtr:
  140. projectStage === node.props.stepType &&
  141. checkedId === cnode.id &&
  142. projectStage === 'progress',
  143. },
  144. ]"
  145. >
  146. <td colspan="2">
  147. <span :class="$style.siderLi">{{ cnode.creationTime }}</span>
  148. </td>
  149. </tr>
  150. <tr v-if="cnode.props.zk === true"
  151. ><td colspan="2" style="padding: 10px"
  152. ><div
  153. v-for="cznode in cnode.children"
  154. :key="cznode.id"
  155. @click="setChecked(index, cznode.nodeUrl, node.props.stepType, cznode.id)"
  156. :class="[
  157. $style.siderUlDiv,
  158. $style.casecnodediv,
  159. {
  160. [$style.checked]:
  161. projectStage === node.props.stepType && checkedId === cznode.id,
  162. },
  163. ]"
  164. >
  165. <table :class="$style.casecnode">
  166. <tr style="height: 10px"><td colspan="2"></td></tr>
  167. <tr>
  168. <td width="70%"
  169. ><a-timeline-item :class="$style.siderLi">{{
  170. cznode.nodeName
  171. }}</a-timeline-item></td
  172. >
  173. <td width="30%" style="text-align: right; padding-right: 15px">
  174. <a-icon
  175. type="delete"
  176. @click="deleteProgress(cznode, cnode, index, $event)"
  177. :class="[$style.deletePro]"
  178. v-show="cznode.nodeUrl.indexOf('/draft/') > -1"
  179. v-if="!view"
  180. /></td>
  181. </tr>
  182. <tr>
  183. <td colspan="2">
  184. <span :class="$style.siderLi">{{ cznode.creationTime }}</span>
  185. </td>
  186. </tr>
  187. </table></div
  188. ></td
  189. >
  190. </tr>
  191. </table>
  192. </div>
  193. </a-timeline>
  194. </a-spin>
  195. </div>
  196. <div :class="$style.siderContent" v-show="casedsjurl !== ''">
  197. <div :class="[$style.siderTitleDiv, { [$style.checked]: projectStage === '5' }]">
  198. <div :class="$style.siderTitle" @click="setChecked('', casedsjurl, '5', '')">
  199. <a-icon type="profile" />
  200. 案件大事记
  201. </div>
  202. </div>
  203. </div>
  204. </a-layout-sider>
  205. <a-layout-sider width="20" style="background: #f0f2f5">
  206. <a-button type="primary" :class="$style.fold" @click="foldClick">
  207. <a-icon :type="fold ? 'right' : 'left'" />
  208. </a-button>
  209. </a-layout-sider>
  210. <a-layout
  211. style="padding: 0px; background: #fff"
  212. :class="['sd-has-table', $style.lawprogress]"
  213. >
  214. <iframe
  215. v-show="ifRouterView"
  216. :src="frameSrc"
  217. frameborder="0"
  218. style="height: 100%"
  219. name="sdEasyflowIframe"
  220. :key="key"
  221. ></iframe>
  222. </a-layout>
  223. </a-layout>
  224. <a-modal
  225. :title="'案件进展阶段'"
  226. :mask-closable="false"
  227. :visible="visible"
  228. :width="800"
  229. :confirm-loading="confirmLoading"
  230. destroy-on-close
  231. cancel-text="取消"
  232. ok-text="确定"
  233. @ok="handleOk"
  234. @cancel="handleCancel"
  235. >
  236. <law-case-tree
  237. ref="casetree"
  238. :caseType="caseType"
  239. :caseStage="caseStage"
  240. :defaultTopNodeText="defaultTopNodeText"
  241. :defaultTopNodeId="defaultTopNodeId"
  242. @treeSelect="treeSelect"
  243. />
  244. </a-modal>
  245. <a-modal
  246. :title="'执行进展阶段'"
  247. :mask-closable="false"
  248. :visible="zxvisible"
  249. :width="800"
  250. :confirm-loading="confirmLoading"
  251. destroy-on-close
  252. cancel-text="取消"
  253. ok-text="确定"
  254. @ok="handleOkzx"
  255. @cancel="handleCancelzx"
  256. >
  257. <a-form-model :model="interForm" :label-col="{ span: 7 }" :wrapper-col="{ span: 15 }">
  258. <a-form-model-item label="阶段名称" required>
  259. <a-select v-model="interForm.stageField">
  260. <a-select-option v-for="item in zxstage" :key="item.code" :value="item.code">
  261. {{ item.name }}
  262. </a-select-option>
  263. </a-select>
  264. </a-form-model-item>
  265. </a-form-model>
  266. </a-modal>
  267. </a-layout>
  268. </template>
  269. <script>
  270. import { message, Modal } from 'ant-design-vue'
  271. import moment from 'moment'
  272. import LawService from '../law-service'
  273. import lawCaseTree from './law-case-tree'
  274. import components from './_import-components/law-case-progress-page-import'
  275. import FlowcenterService from '@/flowcenter/flowcenter-service'
  276. function at(n) {
  277. n = Math.trunc(n) || 0
  278. if (n < 0) n += this.length
  279. if (n < 0 || n >= this.length) return undefined
  280. return this[n]
  281. }
  282. const TypedArray = Reflect.getPrototypeOf(Int8Array)
  283. for (const C of [Array, String, TypedArray]) {
  284. Object.defineProperty(C.prototype, 'at', {
  285. value: at,
  286. writable: true,
  287. enumerable: false,
  288. configurable: true,
  289. })
  290. }
  291. export default {
  292. name: 'LawCaseProgressPage',
  293. metaInfo: {
  294. title: '案件作业',
  295. },
  296. components: {
  297. ...components,
  298. lawCaseTree,
  299. },
  300. mixins: [],
  301. provide() {
  302. return {
  303. reload: this.reload,
  304. }
  305. },
  306. data() {
  307. return {
  308. key: 0,
  309. selectjd: [],
  310. visible: false,
  311. zxvisible: false,
  312. confirmLoading: false,
  313. zxstage: [], // 执行进展
  314. interForm: {
  315. stageField: '',
  316. },
  317. ifRouterView: true,
  318. fold: false,
  319. spinning: true, // 左侧节点加载状态
  320. caseid: '', // 案件Id
  321. // projectStatus: '',
  322. checkedId: '', // 默认选中节点id
  323. // 案件进展
  324. nodeinfo: [],
  325. dict: [],
  326. stage: [], // 案件进展
  327. parentstage: [], // 案件进展
  328. // ProgressNodes: [],
  329. // CasedoingNodes: [], // 案件执行列表
  330. projectStage: '', // 案件上报1 进展2 结案3 案件执行4 案件大事记5 随机 根据后端返回
  331. caseName: '', // 案件名称,
  332. currentUserType: [], // 当前登录人所在分案角色
  333. type: '',
  334. todoId: '',
  335. moduleId: '',
  336. formListId: '',
  337. customValues: null,
  338. Expressions: [],
  339. // id: '',
  340. flag: true,
  341. frameSrc: '',
  342. casesburl: '', // 案件上报url
  343. casejaurl: '', // 案件结案url
  344. casedsjurl: '', // 案件大事记
  345. refreshflag: true,
  346. parentid: '',
  347. caseLx: '', // 案件文档的案件信息案件类型字段
  348. caseLxtitle: '',
  349. caseType: '',
  350. caseStage: '',
  351. defaultTopNodeId: '0',
  352. defaultTopNodeText: '案件进展阶段',
  353. addindex: '', // 点击增加时 是增加哪个大阶段
  354. zt: '', // 判断打开是 案件进展 还是执行进展 还是结案
  355. flagxj: '', // 判断是在案件进展层级无添加还是案件进展下的阶段层级添加为1
  356. deleteflag: '',
  357. view: false,
  358. }
  359. },
  360. mounted() {
  361. // this.projectStage = this.$route.query.zt
  362. this.caseid = this.$route.query.id
  363. this.view = this.$route.query.view === '1'
  364. // 获取案件信息
  365. LawService.getCaseData(this.$route.query.id).then((res) => {
  366. this.caseLx = res.data.caseType
  367. LawService.getCaseTree(this.caseType, '').then((r) => {
  368. this.caseLxtitle = r.data.find((i) => i.id === this.caseLx)?.text
  369. })
  370. })
  371. this.casedsjurl = '#/case-memorabilia-page/' + this.caseid
  372. this.zt = this.$route.query.zt
  373. const path = this.$route.fullPath.replace('/case-progress-page', '/sd-webflow')
  374. this.frameSrc = '#' + path
  375. LawService.getdict('280447518411472896').then((res) => {
  376. const dict = []
  377. res.data.forEach((d) => {
  378. dict.push({
  379. name: d.label,
  380. code: d.value,
  381. })
  382. })
  383. this.dict = [...dict]
  384. this.caseStage = this.$route.query?.cs
  385. this.caseType = this.$route.query?.ct
  386. if (this.caseType === undefined) {
  387. if (this.zt === 'execute') {
  388. LawService.getAllcaseproStage().then((res) => {
  389. const stage = []
  390. res.data.forEach((d) => {
  391. stage.push({
  392. name: d.EXECUTE_NAME,
  393. code: d.EXECUTE_CODE,
  394. businessTypeId: d.businessTypeId,
  395. })
  396. })
  397. this.zxstage = stage
  398. this.initData(this.caseid)
  399. })
  400. } else {
  401. this.initData(this.caseid)
  402. }
  403. } else {
  404. // 获取案件进展树阶段列表
  405. LawService.getCaseTree(this.caseType, '').then((r) => {
  406. LawService.getCaseTree(this.caseType, this.caseStage).then((res) => {
  407. this.parentstage = [...r.data]
  408. this.stage = [...res.data]
  409. this.initData(this.caseid)
  410. })
  411. })
  412. }
  413. })
  414. },
  415. destroyed() {
  416. window.removeEventListener('hasLeaderAuthority', this.hasLeaderAuthority)
  417. },
  418. methods: {
  419. treeSelect(key, item) {
  420. if (
  421. item.selectedNodes[0].data.props.props.businessTypeId &&
  422. item.selectedNodes[0].data.props.props.businessTypeId !== ''
  423. ) {
  424. this.selectjd = [
  425. {
  426. url: item.selectedNodes[0].data.props.props.pageUrl,
  427. businessTypeId: item.selectedNodes[0].data.props.props.businessTypeId,
  428. stage: item.selectedNodes[0].data.props.id,
  429. stagename: item.selectedNodes[0].data.props.text,
  430. jdname: item.selectedNodes[0].data.props.props.parentName,
  431. caseStage: item.selectedNodes[0].data.props.props.parentId,
  432. caseType: item.selectedNodes[0].data.props.props.caseType,
  433. },
  434. ]
  435. } else {
  436. this.selectjd = []
  437. }
  438. },
  439. onPageUnload(res) {
  440. if (res.data.url !== undefined) {
  441. // let fullPath = res.data.url
  442. this.projectStage = res.data.type
  443. // if (this.projectStage.indexOf('close') > -1) {
  444. this.projectStage = this.projectStage.replace('close', '')
  445. LawService.getProgressData(this.caseid).then((res1) => {
  446. this.nodeinfo = this.fndeal(res1.data)
  447. const objsz = res1.data.filter((i) => i.props.stepType === this.projectStage)
  448. const obj = objsz.at(-1)
  449. let url = ''
  450. if (this.projectStage === 'progress') {
  451. const cobj = obj.children.at(-1).children.at(-1)
  452. url = cobj.props.detailUrl + '/' + cobj.props.detailInstid
  453. this.checkedId = cobj.id
  454. } else if (this.projectStage === 'execute') {
  455. const cobj = obj.children.at(-1)
  456. url = cobj.props.detailUrl + '/' + cobj.props.detailInstid
  457. this.checkedId = cobj.id
  458. } else {
  459. url = obj.props.detailUrl + '/' + obj.props.detailInstid
  460. }
  461. if (url.indexOf('id=') === -1) {
  462. url = url + '?zt=' + this.projectStage + '&id=' + this.caseid
  463. }
  464. this.frameSrc = url + '&t=' + Math.random()
  465. this.key = this.key + 1
  466. url = url.replace('/sd-webflow', '/case-progress-page')
  467. if (this.view) {
  468. url = url + '&view=1'
  469. }
  470. window.location.href = url
  471. this.reload()
  472. })
  473. // } else {
  474. // let url = fullPath.replace('/sd-webflow', '/case-progress-page')
  475. // if (url.indexOf('&id') === -1) {
  476. // url = url + '?zt=' + this.projectStage + '&id=' + this.caseid
  477. // }
  478. // fullPath = url
  479. // if (this.view) {
  480. // url = url + '&view=1'
  481. // }
  482. // window.location.href = fullPath // 改为新窗口打开之后,直接本窗口跳转,防止系统内打开多余页签
  483. // this.spinning = !this.spinning
  484. // this.initData(this.caseid)
  485. // }
  486. }
  487. },
  488. deleteProgress(node, parentnode, index, event) {
  489. event.stopPropagation()
  490. if (node.instId === '0') {
  491. this.deleteflag = node.props.stepType
  492. this.fndelete(node, parentnode, index)
  493. // Modal.warning({
  494. // title: '提示',
  495. // content: '当前页面还未存在后端,无需删除',
  496. // })
  497. } else {
  498. const instIds = []
  499. instIds.push(node.instId)
  500. Modal.confirm({
  501. title: '你确定删除这项内容吗?',
  502. content: '删除这条数据后,就无法恢复初始的状态。',
  503. okText: '删除',
  504. okType: 'danger',
  505. onOk: () => {
  506. // this.loading = true
  507. const params = {
  508. flowCallbackBeanName: 'formBeanCleanerCallBack',
  509. processInstanceIds: instIds.join(','),
  510. }
  511. FlowcenterService.fnDarftsDelete(params)
  512. .then((res) => {
  513. if (res.status === 200) {
  514. message.success('删除成功')
  515. this.fndelete(node, parentnode, index)
  516. } else {
  517. message.error('删除失败,请联系管理员')
  518. }
  519. })
  520. .catch((e) => {
  521. message.error('删除失败,请联系管理员')
  522. })
  523. },
  524. })
  525. }
  526. },
  527. fndelete(node, parentnode, index) {
  528. let flag = false
  529. parentnode.children.pop()
  530. if (parentnode.props.stepType === 'progress') {
  531. if (parentnode.children.length === 0) {
  532. this.nodeinfo[index].children.pop()
  533. if (
  534. this.nodeinfo[index].children.length === 0 &&
  535. this.nodeinfo[index].props.stepType === 'progress'
  536. ) {
  537. // this.nodeinfo.splice(index, 1)
  538. flag = true
  539. }
  540. }
  541. } else if (parentnode.props.stepType === 'execute') {
  542. if (parentnode.children.length === 0) {
  543. flag = true
  544. }
  545. }
  546. let url = ''
  547. if (flag) {
  548. const node = this.nodeinfo[index - 1]
  549. if (node.nodeUrl !== '' && node.nodeUrl !== null && node.nodeUrl !== undefined) {
  550. this.frameSrc = node.nodeUrl
  551. } else {
  552. const pnode = node.children.at(-1)
  553. if (pnode.nodeUrl !== '' && pnode.nodeUrl !== null && pnode.nodeUrl !== undefined) {
  554. this.frameSrc = pnode.nodeUrl
  555. } else {
  556. const pcnode = pnode.children.at(-1)
  557. if (pcnode.children && pcnode.children.length > 0) {
  558. this.frameSrc = pcnode.children[pcnode.children.length - 1].nodeUrl
  559. }
  560. }
  561. }
  562. this.projectStage = node.props.stepType
  563. url = this.frameSrc
  564. } else if (parentnode.children.length > 0) {
  565. this.frameSrc = parentnode.children[parentnode.children.length - 1].nodeUrl
  566. this.projectStage = parentnode.props.stepType
  567. // this.checkedId = parentnode.children[parentnode.children.length - 1].id
  568. url = this.frameSrc
  569. } else {
  570. this.projectStage = this.nodeinfo[index].props.stepType
  571. const pnode = this.nodeinfo[index]
  572. if (pnode.nodeUrl !== '' && pnode.nodeUrl !== null && pnode.nodeUrl !== undefined) {
  573. this.frameSrc = pnode.nodeUrl
  574. } else {
  575. const pcnode = pnode.children.at(-1)
  576. if (
  577. pnode &&
  578. pnode.nodeUrl !== '' &&
  579. pnode.nodeUrl !== null &&
  580. pnode.nodeUrl !== undefined
  581. ) {
  582. this.frameSrc = pcnode.nodeUrl
  583. } else {
  584. if (pcnode.children && pcnode.children.length > 0) {
  585. this.frameSrc = pcnode.children[pcnode.children.length - 1].nodeUrl
  586. }
  587. }
  588. }
  589. url = this.frameSrc
  590. }
  591. url = url.replace('sd-webflow', 'case-progress-page')
  592. if (url.indexOf('id=') === -1) {
  593. url = url + '?id=' + this.caseid + '&zt=' + this.projectStage
  594. }
  595. window.location.href = url
  596. this.spinning = !this.spinning
  597. this.checkedId = null
  598. this.initData(this.caseid)
  599. },
  600. fnzkzdnode(node, type, event) {
  601. event.stopPropagation()
  602. if (type === 'up') {
  603. node.props.zk = false
  604. } else {
  605. node.props.zk = true
  606. }
  607. },
  608. addProgress(node, index, event) {
  609. // 判断当前纠纷ID下无正在流转的纠纷进展详情
  610. event.stopPropagation()
  611. const nodes = this.nodeinfo[index]
  612. let type = nodes.props.stepType
  613. let flag = false // 可以直接新建
  614. if (nodes.children && nodes.children.length > 0) {
  615. // 判断是案件执行新增还是案件进展新增
  616. if (nodes.props.stepType === 'progress') {
  617. if (node) {
  618. const obj = node.children.find(
  619. (i) => i.stepStatus === '0' || i.props.stepStatus === '0'
  620. )
  621. if (obj) {
  622. flag = true
  623. }
  624. } else {
  625. // 判断子集的子集
  626. const zobj = nodes.children[nodes.children.length - 1]
  627. const obj = zobj.children.find(
  628. (i) => i.stepStatus === '0' || i.props.stepStatus === '0'
  629. )
  630. if (obj) {
  631. flag = true
  632. }
  633. }
  634. } else if (nodes.props.stepType === 'execute') {
  635. // 执行进展打开阶段
  636. type = 'execute'
  637. this.parentid = nodes?.id
  638. if (nodes && nodes.children.length > 0) {
  639. nodes.children.forEach((n) => {
  640. const obj = nodes.children.find(
  641. (i) => i.stepStatus === '0' || i.props.stepStatus === '0'
  642. )
  643. if (obj) {
  644. flag = true
  645. }
  646. })
  647. }
  648. } else {
  649. const obj = nodes.children.find((i) => i.stepStatus === '0' || i.props.stepStatus === '0')
  650. if (obj) {
  651. flag = true
  652. }
  653. }
  654. }
  655. if (flag) {
  656. Modal.warning({
  657. title: '提示',
  658. content: '当前还存在未流程办结的进展,请流程办结后再新建',
  659. })
  660. } else if (type === 'execute') {
  661. if (nodes.chidlren && nodes.children.length > 0) {
  662. this.parentid = nodes.children[nodes.children.length - 1].id
  663. }
  664. this.addindex = index
  665. this.zt = nodes.props.stepType
  666. this.zxvisible = true
  667. } else {
  668. let flagxj = true // 创建新类型
  669. if (nodes.children.legnth > 0) {
  670. const cobj = nodes.children.find((i) => i.stepStatus === '0')
  671. if (cobj) {
  672. flagxj = false
  673. }
  674. }
  675. // flag = true
  676. if (flagxj) {
  677. this.selectjd = []
  678. this.caseType = node ? node.caseType : this.caseLx
  679. this.caseStage = node?.caseStage
  680. this.defaultTopNodeId = node ? node.id : this.caseLx
  681. this.defaultTopNodeText = node ? node.nodeName : this.caseLxtitle
  682. this.parentid = node?.id
  683. this.addindex = index
  684. this.zt = nodes.props.stepType
  685. // this.flagxj = node ? '' : '1'
  686. this.flagxj = '1'
  687. if (nodes.children && nodes.children.length > 0) {
  688. if (
  689. nodes.children[nodes.children.length - 1].caseStage === node?.caseStage &&
  690. nodes.children[nodes.children.length - 1].caseType === node?.caseType
  691. ) {
  692. this.flagxj = ''
  693. }
  694. }
  695. if (this.parentid === undefined || this.parentid === null) {
  696. if (this.flagxj === '1') {
  697. // 创建两级节点,则父节点是
  698. this.parentid = nodes.id
  699. } else {
  700. this.parentid = nodes.children[nodes.children.length - 1].id
  701. }
  702. }
  703. this.visible = true
  704. } else {
  705. Modal.warning({
  706. title: '提示',
  707. content: '当前还存在未流程办结的纠纷进展,请流程办结后再新建',
  708. })
  709. }
  710. }
  711. },
  712. handleOk() {
  713. if (this.selectjd.length === 0) {
  714. Modal.warning({
  715. title: '提示',
  716. content: '请选择程序',
  717. })
  718. } else {
  719. this.visible = false
  720. const obj = this.nodeinfo[this.addindex].children.at(-1)
  721. let ext = ''
  722. if (obj) {
  723. ext = this.flagxj === '' || obj.nodeName === this.selectjd[0].jdname ? '&flag=1' : ''
  724. if (obj.nodeName === this.selectjd[0].jdname) {
  725. this.parentid = obj.id
  726. }
  727. } else {
  728. // this.parentid = 'progress'
  729. this.parentid = this.nodeinfo[this.addindex].id
  730. }
  731. this.frameSrc =
  732. '#/sd-webflow/pages/draft/0?businessTypeId=' +
  733. this.selectjd[0].businessTypeId +
  734. '&id=' +
  735. this.caseid +
  736. '&cs=' +
  737. this.selectjd[0].caseStage +
  738. '&stage=' +
  739. this.selectjd[0].stage +
  740. '&ct=' +
  741. this.selectjd[0].caseType +
  742. '&parentid=' +
  743. this.parentid +
  744. '&zt=' +
  745. this.zt +
  746. ext
  747. const node = this.nodeinfo[this.addindex]
  748. const path = this.frameSrc
  749. // 判断是案件进展 还是执行进展
  750. if (node.props.stepType === 'progress') {
  751. // 增加进展大节点和一级、二级节点
  752. // 判断当前新增的是否统一级别
  753. if (this.flagxj === '1' && (!obj || obj.nodeName !== this.selectjd[0].jdname)) {
  754. const njd = {
  755. id: '0',
  756. nodeUrl: '',
  757. nodeName: this.selectjd[0].jdname,
  758. caseStage: this.selectjd[0].caseStage,
  759. caseType: this.selectjd[0].caseType,
  760. stepStatus: '0',
  761. creationTime: moment().format('YYYY-MM-DD'),
  762. instId: '0',
  763. children: [
  764. {
  765. id: '0',
  766. nodeUrl: path,
  767. nodeName: this.selectjd[0].stagename,
  768. stepStatus: '0',
  769. instId: '0',
  770. creationTime: moment().format('YYYY-MM-DD'),
  771. children: [],
  772. props: {
  773. stepType: 'progress',
  774. },
  775. },
  776. ],
  777. props: {
  778. stepType: 'progress',
  779. zk: true,
  780. },
  781. }
  782. this.nodeinfo[this.addindex].children.push(njd)
  783. } else {
  784. const njd = {
  785. id: '0',
  786. nodeUrl: path,
  787. nodeName: this.selectjd[0].stagename,
  788. stepStatus: '0',
  789. instId: '0',
  790. creationTime: moment().format('YYYY-MM-DD'),
  791. children: [],
  792. props: {
  793. stepType: 'progress',
  794. },
  795. }
  796. this.nodeinfo[this.addindex].children[
  797. this.nodeinfo[this.addindex].children.length - 1
  798. ].children.push(njd)
  799. }
  800. } else if (node.props.stepType === 'execute') {
  801. // 增加执行大节点和一级节点
  802. const njd = {
  803. id: '0',
  804. nodeUrl: path,
  805. nodeName: this.selectjd[0].stagename,
  806. stepStatus: '0',
  807. creationTime: moment().format('YYYY-MM-DD'),
  808. instId: '0',
  809. children: [],
  810. }
  811. this.nodeinfo[this.addindex].children.push(njd)
  812. }
  813. this.checkedId = '0'
  814. this.reload()
  815. }
  816. },
  817. handleCancel() {
  818. this.visible = false
  819. },
  820. handleOkzx() {
  821. if (this.interForm.stageField === '') {
  822. Modal.warning({
  823. title: '提示',
  824. content: '请选择阶段名称',
  825. })
  826. } else {
  827. this.zxvisible = false
  828. const node = this.nodeinfo[this.addindex]
  829. this.projectStage = 'execute'
  830. const obj = this.zxstage.find((o) => o.code === this.interForm.stageField)
  831. const businessTypeId = obj.businessTypeId.toString()
  832. // LawService.getTypeBusId(businessTypeId).then((res) => {
  833. // businessTypeId = res.data[0].id
  834. this.frameSrc =
  835. '#/sd-webflow/pages/draft/0?businessTypeId=' +
  836. businessTypeId +
  837. '&extParams=%7B%22moduleId%22%3A%22271792223254282240%22%7D&zt=' +
  838. this.projectStage +
  839. '&id=' +
  840. this.caseid +
  841. '&stage=' +
  842. this.interForm.stageField +
  843. '&parentid=' +
  844. this.parentid
  845. // })
  846. const stage = this.interForm.stageField
  847. const path = this.frameSrc
  848. const sn = this.zxstage.find((i) => i.code === stage)?.name
  849. const njd = {
  850. id: '0',
  851. nodeUrl: path,
  852. nodeName: sn,
  853. stepStatus: '0',
  854. creationTime: moment().format('YYYY-MM-DD'),
  855. instId: '0',
  856. children: [],
  857. props: {
  858. stepType: 'execute',
  859. zk: false,
  860. },
  861. }
  862. this.nodeinfo[this.addindex].children.push(njd)
  863. this.checkedId = '0'
  864. this.reload()
  865. }
  866. },
  867. handleCancelzx() {
  868. this.zxvisible = false
  869. },
  870. fndeal(data) {
  871. data.forEach((n) => {
  872. const obj = this.dict.find((dc) => dc.code === n.props.stepType)
  873. if (obj) {
  874. n.nodeName = '案件' + obj.name
  875. } else {
  876. n.nodeName = n.text
  877. }
  878. let timeStamp = n.props.creationTime
  879. let date = new Date(timeStamp * 1)
  880. n.creationTime = moment(date).format('YYYY-MM-DD')
  881. n.nodeUrl = n.props.detailUrl !== null ? n.props.detailUrl + '/' + n.props.detailInstid : ''
  882. n.instId = n.props.detailInstid
  883. n.children.forEach((i) => {
  884. i.nodeUrl =
  885. i.props.detailUrl !== null ? i.props.detailUrl + '/' + i.props.detailInstid : ''
  886. i.nodeName = i.text
  887. timeStamp = i.props.creationTime
  888. date = new Date(timeStamp * 1)
  889. i.creationTime = moment(date).format('YYYY-MM-DD')
  890. i.instId = i.props.detailInstid
  891. i.caseType = i.props.progressCode
  892. i.caseStage = i.props.stagecode
  893. if (n.props.stepType === 'progress') {
  894. i.props.zk = true
  895. }
  896. i.children.forEach((c) => {
  897. c.nodeUrl =
  898. c.props.detailUrl !== null ? c.props.detailUrl + '/' + c.props.detailInstid : ''
  899. c.nodeName = c.text
  900. timeStamp = c.props.creationTime
  901. date = new Date(timeStamp * 1)
  902. c.creationTime = moment(date).format('YYYY-MM-DD')
  903. c.instId = c.props.detailInstid
  904. })
  905. })
  906. })
  907. if (this.deleteflag !== '') {
  908. if (data.at(-1).props.stepType !== this.deleteflag) {
  909. data.push({
  910. id: this.deleteflag,
  911. nodeName: this.deleteflag === 'progress' ? '案件进展' : '案件执行',
  912. creationTime: moment().format('YYYY-MM-DD'),
  913. nodeUrl: '',
  914. children: [],
  915. props: {
  916. stepType: this.deleteflag,
  917. },
  918. })
  919. }
  920. this.deleteflag = ''
  921. }
  922. return data
  923. },
  924. // 初始化项目信息
  925. initData(caseid) {
  926. if (caseid) {
  927. // 获取项目信息
  928. LawService.getProgressData(caseid).then((res) => {
  929. if (res.data.length > 0) {
  930. this.caseName = res.data[0].text
  931. this.nodeinfo = this.fndeal(res.data)
  932. // 判断当前打开页面是案件进展?案件执行?执行进展?
  933. // 判断是否新建页面
  934. if (this.$route.params) {
  935. if (this.$route.params.id && this.$route.params.id === '0') {
  936. // 新建页面的时候判断 左侧阶段增加
  937. const parentid = this.$route.query.parentid
  938. const path = this.frameSrc
  939. this.projectStage = parentid
  940. if (parentid === 'finish' || parentid === 'executeFinish') {
  941. // 增加结案大节点
  942. const njd = {
  943. id: parentid,
  944. nodeName: parentid === 'finish' ? '案件结案' : '执行结案',
  945. creationTime: moment().format('YYYY-MM-DD'),
  946. nodeUrl: path,
  947. children: [],
  948. props: {
  949. stepType: parentid,
  950. },
  951. }
  952. this.nodeinfo.push(njd)
  953. this.checkedId = parentid
  954. } else if (parentid === 'progress') {
  955. // 增加进展大节点和一级、二级节点
  956. const psn = this.parentstage.find((i) => i.id === this.$route.query?.cs).text
  957. const sn = this.stage.find((i) => i.id === this.$route.query?.stage).text
  958. const njd = {
  959. id: parentid,
  960. nodeName: '案件进展',
  961. creationTime: moment().format('YYYY-MM-DD'),
  962. nodeUrl: '',
  963. children: [
  964. {
  965. id: 'progress_' + parentid,
  966. nodeUrl: '',
  967. nodeName: psn,
  968. caseStage: this.caseStage,
  969. caseType: this.caseType,
  970. stepStatus: '0',
  971. creationTime: moment().format('YYYY-MM-DD'),
  972. instId: '0',
  973. children: [
  974. {
  975. id: '0',
  976. nodeUrl: path,
  977. nodeName: sn,
  978. stepStatus: '0',
  979. creationTime: moment().format('YYYY-MM-DD'),
  980. instId: '0',
  981. props: {
  982. stepType: 'progress',
  983. },
  984. children: [],
  985. },
  986. ],
  987. props: {
  988. stepType: 'progress',
  989. zk: true,
  990. },
  991. },
  992. ],
  993. props: {
  994. stepType: parentid,
  995. },
  996. }
  997. this.nodeinfo.push(njd)
  998. this.checkedId = '0'
  999. } else if (parentid === 'execute') {
  1000. // 增加执行大节点和一级节点
  1001. const sn = this.zxstage.find((i) => i.code === this.$route.query?.stage)?.name
  1002. const njd = {
  1003. id: parentid,
  1004. nodeName: '案件执行',
  1005. creationTime: moment().format('YYYY-MM-DD'),
  1006. nodeUrl: '',
  1007. children: [
  1008. {
  1009. id: '0',
  1010. nodeUrl: path,
  1011. nodeName: sn,
  1012. stepStatus: '0',
  1013. creationTime: moment().format('YYYY-MM-DD'),
  1014. instId: '0',
  1015. children: [],
  1016. props: {
  1017. stepType: parentid,
  1018. },
  1019. },
  1020. ],
  1021. props: {
  1022. stepType: parentid,
  1023. },
  1024. }
  1025. this.nodeinfo.push(njd)
  1026. this.checkedId = '0'
  1027. } else {
  1028. // 判断属于哪个子节点下的
  1029. const sobj = this.nodeinfo
  1030. const objsz = this.nodeinfo.filter(
  1031. (i) => i.props.stepType === this.$route.query.zt
  1032. )
  1033. const obj = objsz.at(-1)
  1034. this.projectStage = obj.props.stepType
  1035. if (obj.props.stepType === 'progress') {
  1036. // 案件进展是加在子集的自己
  1037. const psn = this.parentstage.find((i) => i.id === this.$route.query?.cs).text
  1038. const sn = this.stage.find((i) => i.id === this.$route.query?.stage).text
  1039. const zobj = obj.children[obj.children.length - 1] // 最后一个节点是否是和当前的属于同一个类型
  1040. // let njd = null
  1041. // if (this.$route.query.ct === zobj.props.progressCode) {
  1042. if (this.$route.query.flag && this.$route.query.flag === '1') {
  1043. // 最后一个节点是否是和当前的属于同一个类型
  1044. const njd = {
  1045. id: '0',
  1046. nodeUrl: path,
  1047. nodeName: sn,
  1048. stepStatus: '0',
  1049. creationTime: moment().format('YYYY-MM-DD'),
  1050. instId: '0',
  1051. props: {
  1052. stepType: 'progress',
  1053. },
  1054. children: [],
  1055. }
  1056. zobj.children.push(njd)
  1057. } else {
  1058. const njd = {
  1059. id: 'progress_' + parentid,
  1060. nodeUrl: '',
  1061. nodeName: psn,
  1062. caseStage: this.caseStage,
  1063. caseType: this.caseType,
  1064. stepStatus: '0',
  1065. creationTime: moment().format('YYYY-MM-DD'),
  1066. instId: '0',
  1067. children: [
  1068. {
  1069. id: '0',
  1070. nodeUrl: path,
  1071. nodeName: sn,
  1072. stepStatus: '0',
  1073. creationTime: moment().format('YYYY-MM-DD'),
  1074. instId: '0',
  1075. props: {
  1076. stepType: 'progress',
  1077. },
  1078. children: [],
  1079. },
  1080. ],
  1081. props: {
  1082. stepType: 'progress',
  1083. zk: true,
  1084. },
  1085. }
  1086. obj.children.push(njd)
  1087. }
  1088. this.checkedId = '0'
  1089. } else if (obj.props.stepType === 'execute') {
  1090. // 执行进展是加在子集
  1091. const sn = this.zxstage.find((i) => i.code === this.$route.query?.stage)?.name
  1092. const njd = {
  1093. id: '0',
  1094. nodeUrl: path,
  1095. nodeName: sn,
  1096. stepStatus: '0',
  1097. creationTime: moment().format('YYYY-MM-DD'),
  1098. instId: '0',
  1099. children: [],
  1100. props: {
  1101. stepType: 'execute',
  1102. zk: false,
  1103. },
  1104. }
  1105. obj.children.push(njd)
  1106. this.checkedId = '0'
  1107. }
  1108. }
  1109. } else {
  1110. // 打开展示的判断
  1111. this.projectStage = this.zt
  1112. if (
  1113. this.checkedId === '' ||
  1114. this.checkedId === undefined ||
  1115. this.checkedId === null ||
  1116. this.checkedId === '0'
  1117. ) {
  1118. if (this.zt === 'progress' || this.zt === 'execute') {
  1119. const id = this.$route.params.id
  1120. this.fnsetcheck(id)
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. this.spinning = !this.spinning
  1127. window.addEventListener('message', this.onPageUnload)
  1128. })
  1129. }
  1130. },
  1131. fnsetcheck(id) {
  1132. try {
  1133. this.nodeinfo.forEach((n) => {
  1134. if (n.props.stepType === this.zt) {
  1135. if (this.zt === 'progress') {
  1136. if (n.children && n.children.length > 0) {
  1137. n.children.forEach((o) => {
  1138. const zco = o.children.find((z) => z.props.detailInstid === id)
  1139. if (zco) {
  1140. this.checkedId = zco.id.toString()
  1141. throw new Error(zco.id.toString())
  1142. }
  1143. })
  1144. }
  1145. } else {
  1146. if (n.children && n.children.length > 0) {
  1147. const zco = n.children.find((z) => z.props.detailInstid === id)
  1148. if (zco) {
  1149. this.checkedId = zco.id.toString()
  1150. throw new Error(zco.id.toString())
  1151. }
  1152. }
  1153. }
  1154. }
  1155. })
  1156. } catch (e) {
  1157. console.log(this.checkedId)
  1158. }
  1159. },
  1160. reload() {
  1161. this.ifRouterView = false
  1162. this.$nextTick(() => {
  1163. this.ifRouterView = true
  1164. })
  1165. },
  1166. foldClick() {
  1167. this.fold = !this.fold
  1168. },
  1169. setChecked(index, url, projectStage, checkedId) {
  1170. this.projectStage = projectStage
  1171. this.checkedId = checkedId
  1172. this.frameSrc = url
  1173. this.reload()
  1174. },
  1175. },
  1176. }
  1177. </script>
  1178. <style module lang="scss">
  1179. @use '@/common/design' as *;
  1180. .fold {
  1181. position: absolute;
  1182. top: calc(50% - 30px);
  1183. right: 5px;
  1184. z-index: 2;
  1185. width: 15px;
  1186. height: 75px;
  1187. padding: 0;
  1188. border-radius: 0 10px 10px 0;
  1189. }
  1190. .audit-table {
  1191. :global(.sd-readonly) {
  1192. margin-bottom: 24px;
  1193. }
  1194. }
  1195. .close-btn {
  1196. font-size: 15px;
  1197. color: #ffffff;
  1198. position: absolute;
  1199. right: 15px;
  1200. top: 25px;
  1201. cursor: pointer;
  1202. }
  1203. $link-icon-size: 22px;
  1204. $line-height-theme: 66px;
  1205. $theme-check: #fff;
  1206. $icon-size: 15px;
  1207. .page {
  1208. // 表格样式
  1209. :global(div.sd-has-table) {
  1210. :global(.ant-table-wrapper) {
  1211. margin-top: -8px;
  1212. }
  1213. :global(.ant-card-body) {
  1214. padding: 0;
  1215. :global(.ant-table-wrapper) {
  1216. margin-top: -8px;
  1217. }
  1218. }
  1219. }
  1220. :global(.sd-has-table) {
  1221. :global(.ant-table-wrapper) {
  1222. margin-top: -8px;
  1223. }
  1224. }
  1225. height: 100%;
  1226. .left-sider {
  1227. overflow: hidden;
  1228. white-space: nowrap;
  1229. :global(.ant-layout-sider-children) {
  1230. overflow: auto;
  1231. }
  1232. }
  1233. .left-sider-hidden {
  1234. flex: 0 0 0 !important;
  1235. max-width: 0 !important;
  1236. min-width: 0 !important;
  1237. width: 0 !important;
  1238. padding: 0px;
  1239. background: rgb(255, 255, 255);
  1240. :global(.ant-layout-sider-children) {
  1241. overflow: hidden;
  1242. }
  1243. }
  1244. .left-over {
  1245. margin-left: 20px;
  1246. }
  1247. .trigger {
  1248. display: inline-block;
  1249. padding: 0 15px;
  1250. vertical-align: top;
  1251. cursor: pointer;
  1252. transition: color 0.3s;
  1253. &:hover {
  1254. color: $text-color-inverse;
  1255. }
  1256. }
  1257. aside {
  1258. overflow: auto;
  1259. }
  1260. :global(.sd-frame-main) {
  1261. height: 100%;
  1262. padding: $padding-lg;
  1263. overflow: auto;
  1264. }
  1265. :global(sd-readonly) {
  1266. margin-bottom: 24px;
  1267. }
  1268. }
  1269. .title {
  1270. display: inline-block;
  1271. margin-left: -35px;
  1272. font-weight: 600;
  1273. line-height: inherit;
  1274. text-align: center;
  1275. vertical-align: top;
  1276. > i {
  1277. // 固定大小的logo
  1278. /* stylelint-disable-next-line */
  1279. font-size: 20px;
  1280. transform: scale(10);
  1281. }
  1282. }
  1283. // 主内容区的Card白色背景要占满
  1284. :global .sd-frame-main > .ant-card {
  1285. min-height: 100%;
  1286. }
  1287. .header {
  1288. background: linear-gradient(to right, #3f9bff, #0e7df6);
  1289. height: 48px;
  1290. line-height: 48px;
  1291. padding: 0 20px 0 20px;
  1292. :global .ant-menu {
  1293. float: right;
  1294. }
  1295. :global(.ant-menu-item-selected) {
  1296. color: #ffffff;
  1297. background: #1366c1;
  1298. border-bottom: 0 !important;
  1299. top: 0;
  1300. }
  1301. :global(.ant-menu-item) {
  1302. border-bottom: 2px solid #ffffff;
  1303. border-bottom: 0 !important;
  1304. top: 0;
  1305. }
  1306. :global(.ant-menu-item-active) {
  1307. color: #ffffff !important;
  1308. background: #1366c1 !important;
  1309. border-bottom: 0 !important;
  1310. top: 0;
  1311. }
  1312. .header-title {
  1313. color: #ffffff;
  1314. font-size: 25px;
  1315. font-weight: 400;
  1316. display: inline-block;
  1317. width: 40%;
  1318. overflow: hidden;
  1319. text-overflow: ellipsis;
  1320. white-space: nowrap;
  1321. }
  1322. }
  1323. .header > div:last-child {
  1324. width: calc(100% - 200px);
  1325. }
  1326. .links {
  1327. display: flex;
  1328. align-items: center;
  1329. margin: 0 $link-icon-size / 2;
  1330. li:global(.ant-menu-item) {
  1331. padding: 0;
  1332. }
  1333. i:global(.anticon) {
  1334. padding: 0 $link-icon-size / 2;
  1335. margin: 0;
  1336. font-size: $link-icon-size;
  1337. line-height: $layout-header-height;
  1338. vertical-align: middle;
  1339. &:hover {
  1340. // 悬浮的颜色,与主题无关
  1341. /* stylelint-disable-next-line */
  1342. background-color: rgba(0, 0, 0, 0.2);
  1343. }
  1344. }
  1345. }
  1346. .tools {
  1347. display: flex;
  1348. float: right;
  1349. }
  1350. .headerbadge {
  1351. bottom: $line-height-theme / 6;
  1352. left: -$link-icon-size / 2 - 5;
  1353. }
  1354. .sider-content {
  1355. padding: 0 0;
  1356. .sider-title {
  1357. position: relative;
  1358. margin-left: 23px;
  1359. i {
  1360. color: #1890ff;
  1361. position: absolute;
  1362. font-size: 18px;
  1363. left: -27px;
  1364. top: 3px;
  1365. }
  1366. font-weight: bold;
  1367. }
  1368. .sider-li {
  1369. :global(.ant-timeline-item-content) {
  1370. margin: 0 0 0 15px;
  1371. }
  1372. :global(.ant-timeline-item-head-blue) {
  1373. color: #9f9f9f;
  1374. border-color: #9f9f9f;
  1375. background-color: #9f9f9f;
  1376. top: 4px;
  1377. left: 3px;
  1378. width: 3px;
  1379. height: 3px;
  1380. }
  1381. :global(.ant-timeline-item-tail) {
  1382. height: calc(100% - -18px);
  1383. border-left: 2px solid #f5f5f5;
  1384. display: none;
  1385. }
  1386. }
  1387. .sider-title-div-first {
  1388. padding: 10px 0 10px 20px;
  1389. // margin-bottom: 10px;
  1390. // border-bottom: 2px solid #e8e8e8;
  1391. }
  1392. .sider-title-div {
  1393. padding: 10px 0 10px 20px;
  1394. // margin-bottom: 10px;
  1395. border-top: 2px solid #e8e8e8;
  1396. // border-bottom: 2px solid #e8e8e8;
  1397. }
  1398. :global .siderTitlechildxm {
  1399. border-bottom: 2px solid #e8e8e8;
  1400. }
  1401. ul {
  1402. margin-left: 0;
  1403. padding-bottom: 5px;
  1404. }
  1405. .sider-ul-div {
  1406. padding: 13px 0px 0px 12px;
  1407. width: 100%;
  1408. margin: 3px auto;
  1409. border-radius: 0px;
  1410. cursor: pointer;
  1411. :global(.ant-timeline-item) {
  1412. padding: 0;
  1413. margin-left: 3px;
  1414. }
  1415. }
  1416. .node-readonly {
  1417. cursor: normal;
  1418. color: #b6b6b6;
  1419. }
  1420. :global(.checkedtr) {
  1421. color: #2db7f5;
  1422. }
  1423. .checked {
  1424. background: linear-gradient(to right, #13c2c2, #2db7f5);
  1425. color: #fff;
  1426. :global(.ant-timeline-item-head-blue) {
  1427. background-color: #ffffff;
  1428. border-color: #ffffff !important;
  1429. top: 4px;
  1430. left: 3px;
  1431. width: 3px;
  1432. height: 3px;
  1433. }
  1434. }
  1435. :global(.checkedpro) {
  1436. color: #2db7f5;
  1437. }
  1438. :global(.nocheckdpro) {
  1439. color: #7c7c7c;
  1440. }
  1441. .handstyle {
  1442. cursor: pointer;
  1443. }
  1444. :global(.ant-timeline-item-last .ant-timeline-item-tail) {
  1445. display: none;
  1446. }
  1447. .timeline {
  1448. min-height: 150px;
  1449. }
  1450. }
  1451. :global(.ant-tabs) {
  1452. overflow-y: auto;
  1453. }
  1454. .rightfrm {
  1455. height: 100%;
  1456. width: 100%;
  1457. }
  1458. .change-status {
  1459. margin-left: 140px;
  1460. font-size: 20px !important;
  1461. color: #28baeb !important;
  1462. cursor: pointer;
  1463. }
  1464. .change-statusp {
  1465. margin-left: 12px;
  1466. font-size: 20px !important;
  1467. color: #28baeb !important;
  1468. cursor: pointer;
  1469. }
  1470. .lawprogress {
  1471. :global(.skeleton-box_sd-webflow-panel_webflow) {
  1472. width: auto;
  1473. height: auto;
  1474. }
  1475. :global(.panel_sd-webflow-panel_webflow .skeleton-box_sd-webflow-panel_webflow) {
  1476. height: 90%;
  1477. width: 80%;
  1478. }
  1479. }
  1480. .deletePro {
  1481. color: #1890ff;
  1482. font-size: 20px;
  1483. }
  1484. .lawprogress {
  1485. position: relative;
  1486. // :global .ant-layout > .ant-layout-header {
  1487. // :global .titlepoint_sd-header_common {
  1488. // display: none;
  1489. // }
  1490. // }
  1491. :global(.webflow_sd-webflow_webflow > .ant-layout-header) {
  1492. :global .titlepoint_sd-header_common {
  1493. display: none;
  1494. }
  1495. }
  1496. :global(.panel_sd-webflow-panel_webflow > .ant-layout-header) {
  1497. position: absolute;
  1498. :global .titlepoint_sd-header_common {
  1499. position: absolute !important;
  1500. }
  1501. }
  1502. }
  1503. .casecnodediv {
  1504. border-top: 1px solid #e8e8e8;
  1505. }
  1506. .casecnode {
  1507. width: 150px;
  1508. :global .ant-timeline-item-head-blue {
  1509. background-image: url('./jt.png');
  1510. background-repeat: no-repeat;
  1511. background-position-x: center;
  1512. background-position-y: center;
  1513. background-size: 100%;
  1514. width: 20px !important;
  1515. height: 20px !important;
  1516. background-color: initial !important;
  1517. border: none !important;
  1518. top: -5px !important;
  1519. left: -2px !important;
  1520. }
  1521. }
  1522. </style>