阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

648 lines
23 KiB

2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="app-container archives-container">
  3. <div class="container-main" style="justify-content: flex-start;">
  4. <div class="elect-cont-left">
  5. <div class="container-left">
  6. <span class="right-top-line" />
  7. <span class="left-bottom-line" />
  8. <div class="arc-left-tree">
  9. <h3 class="arc-title arc-title-top">档案门类</h3>
  10. <div class="tree-scroll">
  11. <el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick">
  12. <span slot-scope="{ node, data }" class="custom-tree-node">
  13. <el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
  14. <span v-if="data.isType === 1 " class="iconFolder">
  15. {{ data.cnName }}
  16. </span>
  17. </el-tooltip>
  18. <el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
  19. <span v-if="data.isType === 2" class="iconArch">
  20. {{ data.cnName }}
  21. </span>
  22. </el-tooltip>
  23. <el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
  24. <span v-if="data.isType === 3" class="iconFile">
  25. {{ data.cnName }}
  26. </span>
  27. </el-tooltip>
  28. </span>
  29. </el-tree>
  30. </div>
  31. <h3 class="arc-title arc-title-bottom">快速筛选</h3>
  32. <el-tree
  33. ref="classifyTree"
  34. v-loading="classifyLoading"
  35. class="arc-tree arc-tree-02"
  36. :data="classifyTree"
  37. :props="defaultClassifyProps"
  38. node-key="id"
  39. :expand-on-click-node="false"
  40. highlight-current
  41. show-checkbox
  42. @check="handleCheckChange"
  43. >
  44. <span slot-scope="{ node, data }" class="custom-tree-node">
  45. <span v-if="data.childDictionarys || data.fondsName" class="iconClassify">
  46. {{ data.dictionaryName || data.fondsName }}
  47. </span>
  48. <span v-else class="iconClassify-child">
  49. {{ data.dictionaryName }}
  50. </span>
  51. </span>
  52. </el-tree>
  53. </div>
  54. </div>
  55. </div>
  56. <!--用户数据-->
  57. <div v-if="selectedCategory.isType !== 1" class="elect-cont-right">
  58. <div class="container-right tab-content">
  59. <span class="right-top-line" />
  60. <span class="left-bottom-line" />
  61. <Project v-if="selectedCategory.arrangeType === 3" ref="projectEle" :selected-category="selectedCategory" :data="sharedData" :is-recycle="isRecycle" :smart-query="smartQuery" @openAnjuan="handleOpenAnjuan" @myYearEvent="handleYearData" />
  62. <Anjuan v-if="selectedCategory.arrangeType === 1 || selectedCategory.arrangeType === 2 || selectedCategory.arrangeType === 3" ref="anjuanEle" :selected-category="selectedCategory" :data="sharedData" :is-recycle="isRecycle" :smart-query="smartQuery" @openJuannei="handleOpenJuannei" @myYearEvent="handleYearData" />
  63. <Juannei v-if="selectedCategory.arrangeType === 2 || selectedCategory.arrangeType === 3" ref="juanneiEle" :data="sharedData" :selected-category="selectedCategory" :is-recycle="isRecycle" :smart-query="smartQuery" @openFile="handleOpenFile" />
  64. <File v-if="selectedCategory.arrangeType === 1 || selectedCategory.arrangeType === 2 || selectedCategory.arrangeType === 3" ref="fileEle" :is-recycle="isRecycle" :selected-category="selectedCategory" :smart-query="smartQuery" />
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </template>
  70. <script>
  71. import crudCategory from '@/api/category/category'
  72. import crudRoles from '@/api/system/role'
  73. // import { FetchInitSearchFonds } from '@/api/archiveUtilize/archiveUtilize'
  74. import { collectionLibraryCrud } from './mixins/index.js'
  75. import { FetchDictionaryTreeByCategoryId } from '@/api/system/dict'
  76. import CRUD, { presenter, header } from '@crud/crud'
  77. import Project from './project/index'
  78. import Anjuan from './anjuan/index'
  79. import Juannei from './juannei/index'
  80. import File from './file/index'
  81. import { mapGetters } from 'vuex'
  82. export default {
  83. name: 'CollectionLibrary',
  84. components: { Project, Anjuan, Juannei, File },
  85. cruds() {
  86. return [
  87. CRUD({
  88. title: '收集库', url: 'api/category/menu',
  89. crudMethod: { ...crudCategory },
  90. optShow: {
  91. add: false,
  92. edit: false,
  93. del: false,
  94. download: false,
  95. group: false
  96. }
  97. })
  98. ]
  99. },
  100. mixins: [presenter(), header(), collectionLibraryCrud],
  101. props: {
  102. isRecycle: {
  103. type: Boolean,
  104. default: false
  105. },
  106. isdel: {
  107. type: Boolean,
  108. default: false
  109. }
  110. },
  111. provide() {
  112. return {
  113. parentsData: this
  114. }
  115. },
  116. data() {
  117. return {
  118. defaultProps: {
  119. children: 'children',
  120. label: 'cnName'
  121. },
  122. defaultClassifyProps: {
  123. children: 'childDictionarys' || null,
  124. label: 'dictionaryName' || 'fondsName'
  125. },
  126. defaultFondsProps: {
  127. children: 'children',
  128. label: 'fondsName'
  129. },
  130. sharedData: '',
  131. selectedCategory: {},
  132. yearChildData: '',
  133. parentsAnjuanRow: null,
  134. parentsProjectRow: null,
  135. parentsProjectId: null,
  136. parentsAnjuanId: null,
  137. parentsJuanneiId: null,
  138. smartQuery: {
  139. 'retention': null, // 保管期限
  140. 'security_class': null, // 密级
  141. 'doc_type': null, // 文种
  142. 'medium_type': null, // 载体类型
  143. 'archive_year': null, // 年度
  144. 'organ_or_function': null, // 机构与类型
  145. 'fonds_no': null // 全宗
  146. },
  147. isTabFile: false,
  148. fixedStatusBar: false
  149. }
  150. },
  151. computed: {
  152. ...mapGetters([
  153. 'user'
  154. ])
  155. },
  156. watch: {
  157. isdel: function(newValue, oldValue) {
  158. },
  159. isRecycle: function(newValue, oldValue) {
  160. }
  161. },
  162. created() {
  163. },
  164. mounted() {
  165. },
  166. methods: {
  167. handleYearData(data) {
  168. this.yearChildData = data
  169. this.classifyLoading = true
  170. setTimeout(() => {
  171. if (this.classifyTree[0].dictionaryName === '年度') {
  172. this.classifyTree = this.classifyTree.slice(1)
  173. }
  174. if (this.yearChildData.length !== 0) {
  175. const newYearArr = this.yearChildData.map((item, index) => {
  176. const json = {}
  177. json.id = item
  178. json.dictionaryName = item
  179. json.dictionaryParents = '-1'
  180. json.childDictionarys = []
  181. return json
  182. })
  183. this.classifyTree.unshift({ id: -1, dictionaryName: '年度', dictionaryCode: 'archive_year', childDictionarys: newYearArr })
  184. }
  185. this.classifyLoading = false
  186. }, 500)
  187. },
  188. filterData(data) {
  189. return data.filter(node => {
  190. if (node.children && node.children.length > 0) {
  191. node.children = this.filterData(node.children) // 递归处理子节点
  192. }
  193. return node.isType !== 3 // 过滤掉isType为3的节点
  194. })
  195. },
  196. // 逆归实现 获取指定元素
  197. findNode(tree, func) {
  198. for (const node of tree) {
  199. if (func(node)) return node
  200. if (node.children) {
  201. const res = this.findNode(node.children, func)
  202. if (res) return res
  203. }
  204. }
  205. return null
  206. },
  207. // 展开选中的父级
  208. expandParents(node) {
  209. node.expanded = true
  210. if (node.parent) {
  211. this.expandParents(node.parent)
  212. }
  213. },
  214. [CRUD.HOOK.afterRefresh]() {
  215. this.crud.data = this.filterData(this.crud.data)
  216. this.$nextTick(() => {
  217. let currentKey
  218. if (localStorage.getItem('currentArchivesKey')) {
  219. currentKey = JSON.parse(localStorage.getItem('currentArchivesKey'))
  220. // 删除门类节点后
  221. if (this.$refs.categroyTree.getCurrentKey(currentKey.id) == null) {
  222. localStorage.removeItem('currentArchivesKey')
  223. }
  224. // 缓存的门类节点判断
  225. if (currentKey.isType === 1) {
  226. if (currentKey.children.length !== 0) {
  227. currentKey = this.findNode(currentKey.children, (node) => {
  228. return node.isType !== 1
  229. })
  230. }
  231. }
  232. } else {
  233. // 默认
  234. if (this.crud.data[0].isType === 1) {
  235. currentKey = this.findNode(this.crud.data[0].children, (node) => {
  236. return node.isType !== 1
  237. })
  238. } else {
  239. currentKey = this.crud.data[0]
  240. }
  241. }
  242. if (currentKey.id) {
  243. // 设置某个节点的当前选中状态
  244. this.$refs.categroyTree.setCurrentKey(currentKey.id)
  245. this.$nextTick(() => {
  246. // 设置某个节点的父级展开
  247. const selectedKey = this.$refs.categroyTree.getCurrentNode()
  248. if (this.$refs.categroyTree.getNode(selectedKey) && this.$refs.categroyTree.getNode(selectedKey).parent) {
  249. this.expandParents(this.$refs.categroyTree.getNode(selectedKey).parent)
  250. }
  251. // 选中节点的门类详情
  252. this.handleNodeClick(selectedKey)
  253. })
  254. }
  255. })
  256. },
  257. handleNodeClick(val) {
  258. // this.smartQuery = {
  259. // 'retention': null, // 保管期限
  260. // 'security_class': null, // 密级
  261. // 'doc_type': null, // 文种
  262. // 'medium_type': null, // 载体类型
  263. // 'archive_year': null, // 年度
  264. // 'organ_or_function': null, // 机构与类型
  265. // 'fonds_no': null // 全宗
  266. // }
  267. this.parentsProjectId = null
  268. this.parentsAnjuanId = null
  269. this.parentsJuanneiId = null
  270. this.parentsAnjuanRow = null
  271. this.parentsProjectRow = null
  272. // 缓存当前的选中的
  273. localStorage.setItem('currentArchivesKey', JSON.stringify(val))
  274. this.selectedCategory = val
  275. if (this.selectedCategory.isType !== 1) {
  276. this.getDictionaryTreeByCategoryId(val.id)
  277. } else {
  278. this.classifyTree = []
  279. }
  280. this.$nextTick(() => {
  281. this.getDictsList()
  282. Promise.all(this.user.roles.map(item => this.getRole(item.id)))
  283. .then(roles => {
  284. const allFondsIds = []
  285. const fondsObj = {}
  286. roles.forEach(role => {
  287. role.fonds.forEach(fond => {
  288. if (!fondsObj[fond.id]) {
  289. fondsObj[fond.id] = fond
  290. allFondsIds.push(fond.id)
  291. }
  292. })
  293. })
  294. this.$refs.classifyTree.setCheckedKeys(allFondsIds)
  295. if (allFondsIds.length !== 0) {
  296. const defaultChecked = this.$refs.classifyTree.getCheckedNodes()
  297. const fondsGroup = defaultChecked.filter(item => item.fondsId).map(item => item.fondsNo)
  298. this.smartQuery.fonds_no = fondsGroup.join(',')
  299. } else {
  300. this.smartQuery.fonds_no = null
  301. }
  302. this.handlePageList()
  303. })
  304. .catch(error => {
  305. console.error(error)
  306. })
  307. })
  308. },
  309. handlePageList(isQuickFilter) {
  310. if (this.selectedCategory.arrangeType === 3) {
  311. const tablistEle = this.$refs.projectEle
  312. // 项目下
  313. if (isQuickFilter) {
  314. tablistEle.$refs.collectHeaderRef.getInitArchivesClass()
  315. tablistEle.getTableDisplayFieldsLoading = true
  316. tablistEle.getViewTableList(1, null, isQuickFilter)
  317. } else {
  318. this.$refs.projectEle.getCommonData(1)
  319. }
  320. } else if (this.selectedCategory.arrangeType === 2) {
  321. const tablistEle = this.$refs.anjuanEle.$refs.ajContent.$refs.tableList
  322. // 案卷下
  323. if (isQuickFilter) {
  324. tablistEle.$refs.collectHeaderRef.getInitArchivesClass()
  325. tablistEle.getTableDisplayFieldsLoading = true
  326. tablistEle.getViewTableList(2, null, isQuickFilter)
  327. } else {
  328. tablistEle.getCommonData(2)
  329. }
  330. } else if (this.selectedCategory.arrangeType === 1) {
  331. const tablistEle = this.$refs.anjuanEle.$refs.ajContent.$refs.tableList
  332. // 文件下
  333. if (isQuickFilter) {
  334. tablistEle.$refs.collectHeaderRef.getInitArchivesClass()
  335. tablistEle.getTableDisplayFieldsLoading = true
  336. tablistEle.getViewTableList(3, null, isQuickFilter)
  337. } else {
  338. tablistEle.getCommonData(3)
  339. }
  340. }
  341. if (this.$refs.anjuanEle) {
  342. this.$refs.anjuanEle.anjuanDrawer = false
  343. if (this.$refs.anjuanEle.$refs.ajContent) {
  344. this.$refs.anjuanEle.$refs.ajContent.activeIndex = 0
  345. }
  346. }
  347. if (this.$refs.juanneiEle) {
  348. this.$refs.juanneiEle.juanneiDrawer = false
  349. }
  350. if (this.$refs.fileEle) {
  351. this.$refs.fileEle.fileDrawer = false
  352. }
  353. },
  354. getRole(id) {
  355. return crudRoles.get(id)
  356. },
  357. getDictionaryTreeByCategoryId(categoryId) {
  358. this.classifyLoading = true
  359. const params = {
  360. 'categoryId': categoryId
  361. }
  362. FetchDictionaryTreeByCategoryId(params).then((res) => {
  363. console.log(res)
  364. let fonds
  365. if (res.length <= 1) {
  366. fonds = []
  367. } else {
  368. const parent = {}
  369. parent.id = 0
  370. parent.fondsName = '全宗'
  371. parent.childDictionarys = res.map(item => {
  372. return {
  373. ...item,
  374. id: item.fondsId
  375. }
  376. })
  377. fonds = parent
  378. }
  379. this.classifyTree = res.concat(fonds)
  380. console.log(this.classifyTree)
  381. this.classifyLoading = false
  382. }).catch(err => {
  383. console.log(err)
  384. })
  385. },
  386. getIdByCode(dictionaryCode) {
  387. for (const dictionary of this.classifyTree) {
  388. if (dictionary.dictionaryCode === dictionaryCode) {
  389. return dictionary.id
  390. }
  391. }
  392. return null
  393. },
  394. handleCheckChange(data, checked, indeterminate) {
  395. // 获取所有选中的节点
  396. const res = this.$refs.classifyTree.getCheckedNodes()
  397. // const isFondsTop = res.some(obj => obj.fondsName === '全宗')
  398. // if (isFondsTop) {
  399. // this.smartQuery.fonds_no = null
  400. console.log(res)
  401. const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsNo)
  402. console.log('fondsGroup', fondsGroup)
  403. this.smartQuery.fonds_no = fondsGroup.join(',')
  404. // }
  405. const groupedData = {}
  406. const securityId = this.getIdByCode('security_class')
  407. const retentionId = this.getIdByCode('retention')
  408. const docTypeId = this.getIdByCode('doc_type')
  409. const mediumTypeId = this.getIdByCode('medium_type')
  410. const organOrFunctionId = this.getIdByCode('organ_or_function')
  411. res.forEach(function(item) {
  412. if (item.dictionaryParents === '-1') {
  413. groupedData.archive_year = groupedData.archive_year || []
  414. groupedData.archive_year.push(item.dictionaryName)
  415. } else if (item.dictionaryParents === securityId) {
  416. groupedData.security_class = groupedData.security_class || []
  417. groupedData.security_class.push(item.dictionaryName)
  418. } else if (item.dictionaryParents === retentionId) {
  419. groupedData.retention = groupedData.retention || []
  420. groupedData.retention.push(item.dictionaryName)
  421. } else if (item.dictionaryParents === docTypeId) {
  422. groupedData.doc_type = groupedData.doc_type || []
  423. groupedData.doc_type.push(item.dictionaryName)
  424. } else if (item.dictionaryParents === mediumTypeId) {
  425. groupedData.medium_type = groupedData.medium_type || []
  426. groupedData.medium_type.push(item.dictionaryName)
  427. } else if (item.dictionaryParents === organOrFunctionId) {
  428. groupedData.organ_or_function = groupedData.organ_or_function || []
  429. groupedData.organ_or_function.push(item.dictionaryName)
  430. }
  431. })
  432. if (data.id) {
  433. const selectedParentVal = this.$refs.classifyTree.getNode(data.id).parent.data.dictionaryCode
  434. switch (selectedParentVal) {
  435. case 'security_class':
  436. if (res.find(obj => obj.dictionaryCode === 'security_class')) {
  437. this.smartQuery.security_class = null
  438. } else {
  439. if (groupedData.security_class) {
  440. this.smartQuery.security_class = groupedData.security_class.join(',')
  441. } else {
  442. this.smartQuery.security_class = null
  443. }
  444. }
  445. break
  446. case 'retention':
  447. if (res.find(obj => obj.dictionaryCode === 'retention')) {
  448. this.smartQuery.retention = null
  449. } else {
  450. if (groupedData.retention) {
  451. this.smartQuery.retention = groupedData.retention.join(',')
  452. } else {
  453. this.smartQuery.retention = null
  454. }
  455. }
  456. break
  457. case 'doc_type':
  458. if (res.find(obj => obj.dictionaryCode === 'doc_type')) {
  459. this.smartQuery.doc_type = null
  460. } else {
  461. if (groupedData.doc_type) {
  462. this.smartQuery.doc_type = groupedData.doc_type.join(',')
  463. } else {
  464. this.smartQuery.doc_type = null
  465. }
  466. }
  467. break
  468. case 'medium_type':
  469. if (res.find(obj => obj.dictionaryCode === 'medium_type')) {
  470. this.smartQuery.medium_type = null
  471. } else {
  472. if (groupedData.medium_type) {
  473. this.smartQuery.medium_type = groupedData.medium_type.join(',')
  474. } else {
  475. this.smartQuery.medium_type = null
  476. }
  477. }
  478. break
  479. case 'organ_or_function':
  480. if (res.find(obj => obj.dictionaryCode === 'organ_or_function')) {
  481. this.smartQuery.organ_or_function = null
  482. } else {
  483. if (groupedData.organ_or_function) {
  484. this.smartQuery.organ_or_function = groupedData.organ_or_function.join(',')
  485. } else {
  486. this.smartQuery.organ_or_function = null
  487. }
  488. }
  489. break
  490. default:
  491. if (groupedData.archive_year) {
  492. this.smartQuery.archive_year = groupedData.archive_year.join(',')
  493. } else {
  494. this.smartQuery.archive_year = null
  495. }
  496. // if (res.find(obj => obj.dictionaryCode === 'archive_year')) {
  497. // this.smartQuery.archive_year = null
  498. // } else {
  499. // if (groupedData.archive_year) {
  500. // this.smartQuery.archive_year = groupedData.archive_year.join(',')
  501. // } else {
  502. // this.smartQuery.archive_year = null
  503. // }
  504. // }
  505. }
  506. }
  507. this.$nextTick(() => {
  508. this.handlePageList('quickFilter')
  509. })
  510. },
  511. handleOpenAnjuan(data, parentId, parentsRow) {
  512. this.parentsProjectId = parentId
  513. this.parentsProjectRow = parentsRow
  514. this.$refs.anjuanEle.anjuanDrawer = true
  515. this.activeIndex = 0
  516. if (this.$refs.anjuanEle.$refs.ajContent) {
  517. this.$refs.anjuanEle.$refs.ajContent.activeIndex = 0
  518. }
  519. this.$nextTick(() => {
  520. this.$refs.anjuanEle.$refs.ajContent.$refs.tableList.getCommonData(2, this.parentsProjectId)
  521. this.$refs.anjuanEle.$refs.ajContent.test = data
  522. })
  523. },
  524. handleOpenJuannei(data, parentId, parentsRow) {
  525. this.parentsAnjuanId = parentId
  526. this.parentsAnjuanRow = parentsRow
  527. if (this.selectedCategory.arrangeType === 1 || (this.selectedCategory.arrangeType === 3 && this.$refs.anjuanEle.$refs.ajContent.activeIndex === 1) || (this.selectedCategory.arrangeType === 2 && this.$refs.anjuanEle.$refs.ajContent.activeIndex === 1)) {
  528. this.$refs.fileEle.fileDrawer = true
  529. this.$nextTick(() => {
  530. this.$refs.fileEle.getCommonData(4, this.parentsAnjuanId)
  531. this.$refs.fileEle.test = data
  532. this.$refs.fileEle.isAjNo = 1
  533. })
  534. } else {
  535. this.$refs.juanneiEle.juanneiDrawer = true
  536. this.$nextTick(() => {
  537. this.$refs.juanneiEle.getCommonData(3, this.parentsAnjuanId)
  538. this.$refs.juanneiEle.test = data
  539. this.$refs.fileEle.isAjNo = 0
  540. })
  541. }
  542. },
  543. handleOpenFile(data, parentId) {
  544. this.parentsJuanneiId = parentId
  545. this.$refs.fileEle.fileDrawer = true
  546. this.$nextTick(() => {
  547. this.$refs.fileEle.getCommonData(4, this.parentsJuanneiId)
  548. this.$refs.fileEle.test = data
  549. })
  550. }
  551. }
  552. }
  553. </script>
  554. <style lang="scss" scoped>
  555. .elect-cont-left{
  556. width: 276px;
  557. padding: 0 !important;
  558. }
  559. .hideSidebar .elect-cont-left {
  560. width: 265px !important;
  561. }
  562. [data-theme=light] .elect-cont-left .container-left {
  563. min-height: calc(100vh - 140px);
  564. }
  565. [data-theme=dark] .elect-cont-left .container-left {
  566. min-height: calc(100vh - 160px);
  567. }
  568. .openSidebar .elect-cont-right {
  569. width: calc(100vw - 592px);
  570. }
  571. [data-theme=light] .elect-cont-right .container-right.tab-content {
  572. min-height: calc(100vh - 200px) !important;
  573. }
  574. .arc-title{
  575. position: relative;
  576. height: 48px;
  577. line-height: 48px;
  578. text-align: center;
  579. font-size: 16px;
  580. color: #0C0E1E;
  581. background-color: #F3F5F8;
  582. &::after{
  583. content: "";
  584. position: absolute;
  585. right: 12px;
  586. bottom: 0;
  587. }
  588. }
  589. .arc-title-top{
  590. &::after{
  591. width: 44px;
  592. height: 35px;
  593. background: url("~@/assets/images/collect/daml.png") no-repeat;
  594. background-size: 100% 100%;
  595. }
  596. }
  597. .arc-title-bottom{
  598. &::after{
  599. width: 41px;
  600. height: 40px;
  601. background: url("~@/assets/images/collect/kssx.png") no-repeat;
  602. background-size: 100% 100%;
  603. }
  604. }
  605. .arc-tree{
  606. padding: 0 20px;
  607. }
  608. .arc-tree-01{
  609. height: 400px;
  610. overflow: hidden;
  611. overflow-y: scroll;
  612. }
  613. [data-theme=dark] .arc-tree-01{
  614. height: 370px;
  615. }
  616. .arc-tree-02{
  617. height: calc(100vh - 720px);
  618. overflow: hidden;
  619. overflow-y: scroll;
  620. .el-tree{
  621. margin: 0;
  622. }
  623. }
  624. ::v-deep .el-tree-node__children .custom-tree-node{
  625. font-size: 14px;
  626. }
  627. ::v-deep .custom-tree-node{
  628. font-size: 14px;
  629. font-weight: normal;
  630. }
  631. [data-theme=light] .elect-cont-right {
  632. padding: 15px 0 !important;
  633. }
  634. [data-theme=dark] .elect-cont-right {
  635. margin-top: 0 !important;
  636. }
  637. </style>