index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. <template>
  2. <div class="archive-main">
  3. <HeadMenu/>
  4. <div class="archive-content">
  5. <div class="archive-basic" v-if="themeConfigCpt.main.indexStyle" v-loading="state.mainObj.loading">
  6. <div class="archive-basic-title">
  7. <SvgIcon class="flag" name="flag_1" color="var(--cus-main-color)"/>
  8. <span class="main">{{state.mainObj.data[themeConfigCpt.main.indexStyle.mainParam]}}</span>
  9. <template v-for="k in themeConfigCpt.main.indexStyle.tagParams">
  10. <span class="tag" v-if="state.mainObj.data[k]">{{ state.mainObj.data[k] }}</span>
  11. </template>
  12. </div>
  13. <div class="archive-basic-sub" v-if="themeConfigCpt.main.indexStyle.subParams?.length > 0">
  14. <template v-for="(k, i) in themeConfigCpt.main.indexStyle.subParams">
  15. <span>{{ state.mainObj.data[k] }}</span>
  16. <span class="line" v-if="i < themeConfigCpt.main.indexStyle.subParams.length - 1"/>
  17. </template>
  18. </div>
  19. <div class="archive-basic-avatar" v-if="themeConfigCpt.main.indexStyle.imgParam">
  20. <el-image
  21. :src="state.mainObj.data[themeConfigCpt.main.indexStyle.imgParam]"
  22. :zoom-rate="1.2"
  23. :max-scale="7"
  24. :min-scale="0.2"
  25. :preview-src-list="[state.mainObj.data[themeConfigCpt.main.indexStyle.imgParam]]"
  26. :preview-teleported="true"
  27. >
  28. <template #error>
  29. <div class="image-slot">
  30. <img src="../../../assets/images/web/archive-main-img.png" alt="暂无图片"/>
  31. </div>
  32. </template>
  33. </el-image>
  34. </div>
  35. <div class="archive-basic-cols" v-if="themeConfigCpt.main.indexStyle.otherParams?.length > 0">
  36. <template v-for="item in themeConfigCpt.main.indexStyle.otherParams">
  37. <div class="cols-item">
  38. <div class="label">{{ item.label }}</div>
  39. <div class="value">{{ state.mainObj.data[item.value] }}</div>
  40. </div>
  41. </template>
  42. </div>
  43. </div>
  44. <div class="archive-list">
  45. <el-tabs v-model="state.activeTab" class="archive-list-tabs">
  46. <el-tab-pane label="首页" name="首页"/>
  47. <template v-for="([key, value], index) in themeConfigCpt.tabs">
  48. <el-tab-pane :label="value.indexName" :name="key"/>
  49. </template>
  50. </el-tabs>
  51. <template v-if="state.activeTab === '首页'">
  52. <div class="archive-list-block">
  53. <div class="archive-list-block-title">
  54. <SvgIcon class="flag" name="flag_1" color="var(--cus-main-color)"/>关系图谱
  55. <div class="layout-select">
  56. <CusFormColumn
  57. :span="24"
  58. v-model:param="state.chartData.layout"
  59. link="select"
  60. :options="DictionaryStore.relationChartLayoutList"
  61. />
  62. </div>
  63. </div>
  64. <div class="archive-list-block-page" v-loading="state.chartData.loading">
  65. <RelationChart :data="state.chartData.data" :layout="state.chartData.layout" @chartPage="onChartPage"/>
  66. </div>
  67. </div>
  68. <div class="archive-list-block" v-if="state.chartTable.chartId">
  69. <div class="archive-list-block-title">
  70. <SvgIcon class="flag" name="flag_1" color="var(--cus-main-color)"/>
  71. {{ themeConfigCpt.chart.nodes.filter(v => v.id == state.chartTable.chartId)?.[0]?.name }}
  72. </div>
  73. <div class="archive-list-block-page" v-loading="state.chartTable.loading">
  74. <CusTable
  75. :page-num="state.chartTable.page.pageNum"
  76. :page-size="state.chartTable.page.pageSize"
  77. :total="state.chartTable.result.total"
  78. :data="state.chartTable.result.data"
  79. :table-head="state.chartTable.tableHead"
  80. @handlePage="onPageChart"
  81. >
  82. </CusTable>
  83. </div>
  84. </div>
  85. </template>
  86. <template v-else>
  87. <div class="archive-list-block">
  88. <div class="archive-list-block-title">
  89. <SvgIcon class="flag" name="flag_1" color="var(--cus-main-color)"/>
  90. {{ themeConfigCpt.tabs.get(state.activeTab)?.indexName }}
  91. </div>
  92. <div class="archive-list-block-page" v-loading="state.tabTable.loading">
  93. <CusTable
  94. :page-num="state.tabTable.page.pageNum"
  95. :page-size="state.tabTable.page.pageSize"
  96. :total="state.tabTable.result.total"
  97. :data="state.tabTable.result.data"
  98. :table-head="state.tabTable.tableHead"
  99. @handlePage="onPage"
  100. :page-sizes="[20, 40, 60, 80, 100]"
  101. >
  102. </CusTable>
  103. </div>
  104. </div>
  105. </template>
  106. </div>
  107. </div>
  108. </div>
  109. </template>
  110. <script setup lang="ts">
  111. import {computed, getCurrentInstance, onMounted, reactive, watch} from "vue";
  112. import RelationChart from "./relation-chart.vue";
  113. import {ElLoading, ElMessage} from "element-plus";
  114. import {useAppStore, useDictionaryStore, useThemeStore} from "@/stores";
  115. import {frontGetThemeByThemeId} from "@/api/modules/web/list";
  116. import {useRoute} from "vue-router";
  117. const ThemeStore = useThemeStore()
  118. const DictionaryStore = useDictionaryStore()
  119. const AppStore = useAppStore()
  120. const route = useRoute()
  121. const {proxy} = getCurrentInstance()
  122. const state: any = reactive({
  123. activeTab: '',
  124. tabTable: {
  125. loading: false,
  126. page: {
  127. pageNum: 1,
  128. pageSize: 20
  129. },
  130. tableHead: [],
  131. result: {
  132. total: 0,
  133. data: []
  134. },
  135. },
  136. chartTable: {
  137. chartId: '',
  138. loading: false,
  139. page: {
  140. pageNum: 1,
  141. pageSize: 10
  142. },
  143. tableHead: [],
  144. result: {
  145. total: 0,
  146. data: []
  147. },
  148. },
  149. chartData: {
  150. loading: false,
  151. data: {
  152. nodes: [],
  153. edges: []
  154. },
  155. layout: 'radial'
  156. },
  157. ws: {
  158. instance: null,
  159. getMain: () => {},
  160. tabPage: () => {},
  161. getChart: () => {},
  162. chartPage: () => {},
  163. loading: null,
  164. loadingTimer: null
  165. },
  166. themeDetail: {},
  167. mainObj: {
  168. loading: false,
  169. data: {}
  170. }
  171. })
  172. const themeConfigCpt = computed(() => {
  173. const getSearchParam = (item) => {
  174. // es查询参数
  175. const param = {}
  176. if (item.type === 'inner_index') {
  177. param.indexCode = item.indexTableName
  178. if (item.indexOrder) {
  179. const obj = {}
  180. JSON.parse(item.indexOrder).forEach(s => {
  181. obj[s.sortParam] = s.sortType
  182. })
  183. param.orderBy = obj
  184. }
  185. if (item.indexCondition) {
  186. const arr: any = []
  187. JSON.parse(item.indexCondition).forEach(s => {
  188. arr.push({
  189. fieldCode: s.indexParam,
  190. fieldQueryType: s.condition,
  191. fieldQueryValue: route.query[s.themeParam]
  192. })
  193. })
  194. param.datas = arr
  195. }
  196. } else {
  197. param.serviceId = item.indexId
  198. if (item.indexCondition) {
  199. const obj: any = {}
  200. JSON.parse(item.indexCondition).forEach(s => {
  201. obj[s.indexParam] = route.query[s.themeParam] || ''
  202. })
  203. param.serviceMap = obj
  204. }
  205. }
  206. return param
  207. }
  208. const getTableHead = (item) => {
  209. const arr: any = []
  210. item.indexFields.forEach(v => {
  211. arr.push({value: v.fieldKey, label: v.fieldName})
  212. })
  213. return arr
  214. }
  215. const res = {
  216. main: <any>{
  217. indexStyle: {}
  218. },
  219. tabs: new Map(),
  220. chart: {
  221. nodes: <any>[],
  222. edges: <any>[],
  223. }
  224. }
  225. state.themeDetail.indexDtos?.forEach(v => {
  226. if (v.isMain == 1) {
  227. state.chartData.layout = v.chartLayout
  228. res.main = {
  229. __type: v.type,
  230. indexTableName: v.indexTableName,
  231. indexId: v.indexId,
  232. indexStyle: v.indexStyle ? JSON.parse(v.indexStyle) : '',
  233. searchParam: getSearchParam(v),
  234. tableHead: getTableHead(v),
  235. }
  236. res.chart.nodes.unshift({
  237. id: String(v.id),
  238. iconSrc: v.url,
  239. weight: v.weight || 100,
  240. num: 0,
  241. name: v.indexNameShort,
  242. __type: v.type,
  243. indexTableName: v.indexTableName,
  244. indexId: v.indexId,
  245. searchParam: getSearchParam(v),
  246. tableHead: getTableHead(v),
  247. })
  248. } else if (v.relateIndexId) {
  249. res.chart.nodes.push({
  250. id: String(v.id),
  251. iconSrc: v.url,
  252. weight: v.weight,
  253. num: 0,
  254. name: v.indexNameShort,
  255. __type: v.type,
  256. indexTableName: v.indexTableName,
  257. indexId: v.indexId,
  258. searchParam: getSearchParam(v),
  259. tableHead: getTableHead(v),
  260. })
  261. res.chart.edges.push({source: String(v.relateIndexId), target: String(v.id), labelText: v.description || '关系描述'})
  262. } else {
  263. res.tabs.set(v.indexTableName, {
  264. __type: v.type,
  265. indexName: v.indexName,
  266. indexTableName: v.indexTableName,
  267. indexId: v.indexId,
  268. searchParam: getSearchParam(v),
  269. tableHead: getTableHead(v),
  270. })
  271. }
  272. })
  273. console.log(res)
  274. return res
  275. })
  276. const onPage = (pageNum, pageSize) => {
  277. state.tabTable.page = {
  278. pageNum: pageNum,
  279. pageSize: pageSize
  280. }
  281. state.ws.tabPage()
  282. }
  283. const onPageChart = (pageNum, pageSize) => {
  284. state.chartTable.page = {
  285. pageNum: pageNum,
  286. pageSize: pageSize
  287. }
  288. state.ws.chartPage()
  289. }
  290. const onChartPage = (id) => {
  291. state.chartTable = {
  292. chartId: id,
  293. loading: false,
  294. page: {
  295. pageNum: 1,
  296. pageSize: 10
  297. },
  298. tableHead: themeConfigCpt.value.chart.nodes.filter(v => v.id == id)?.[0]?.tableHead,
  299. result: {
  300. total: 0,
  301. data: []
  302. },
  303. }
  304. state.ws.chartPage()
  305. }
  306. const initTheme = () => {
  307. const loading = ElLoading.service({
  308. lock: true,
  309. text: '获取主题中……',
  310. background: ThemeStore.loadingBg
  311. })
  312. frontGetThemeByThemeId(route.query.themeId).then(res => {
  313. state.themeDetail = res.data
  314. loading.close()
  315. initWS()
  316. })
  317. }
  318. watch(() => state.activeTab, (n) => {
  319. if (n === '首页') {
  320. state.chartTable.chartId = ''
  321. state.ws.getChart()
  322. } else {
  323. state.tabTable = {
  324. loading: false,
  325. page: {
  326. pageNum: 1,
  327. pageSize: 20
  328. },
  329. tableHead: themeConfigCpt.value.tabs.get(n).tableHead,
  330. result: {
  331. total: 0,
  332. data: []
  333. },
  334. }
  335. state.ws.tabPage()
  336. }
  337. })
  338. const initWS = () => {
  339. const ws: any = new WebSocket(`ws://${location.host}/ws-api/smart-ws?userId=${AppStore.userInfo.id}`)
  340. let sessionId = ''
  341. let lastTabParams = ''
  342. let lastMainParams = ''
  343. let lastChartParams = ''
  344. let lastChartPageParams = ''
  345. const loading = ElLoading.service({
  346. lock: true,
  347. text: '搜索服务连接中……',
  348. background: ThemeStore.loadingBg
  349. })
  350. ws.onopen = (e) => {
  351. loading.close()
  352. state.ws.loading?.close()
  353. state.ws.loading = null
  354. state.ws.getMain = () => {
  355. // 如果有的话,终止上一次请求
  356. if (lastMainParams) {
  357. const p = JSON.parse(lastMainParams)
  358. p.flag = 'stop'
  359. ws.send(JSON.stringify(p))
  360. lastMainParams = ''
  361. }
  362. const params = {
  363. __type: themeConfigCpt.value.main.__type,
  364. pageNumber: 1,
  365. pageSize: 1,
  366. type: 'list-fix',
  367. sessionId: sessionId,
  368. timestamp: new Date().getTime(),
  369. flag: 'run',
  370. orderBy: {},
  371. builder:[
  372. {
  373. tagCode: '',
  374. datas:[
  375. {
  376. typeCode: '',
  377. datas: [themeConfigCpt.value.main.searchParam]
  378. }
  379. ]
  380. }
  381. ],
  382. }
  383. lastMainParams = JSON.stringify(params)
  384. state.mainObj.loading = true
  385. ws.send(lastMainParams)
  386. }
  387. state.ws.tabPage = () => {
  388. // 如果有的话,终止上一次请求
  389. if (lastTabParams) {
  390. const p = JSON.parse(lastTabParams)
  391. p.flag = 'stop'
  392. ws.send(JSON.stringify(p))
  393. lastTabParams = ''
  394. }
  395. const params = {
  396. __type: themeConfigCpt.value.tabs.get(state.activeTab).__type,
  397. pageNumber: state.tabTable.page.pageNum,
  398. pageSize: state.tabTable.page.pageSize,
  399. type: 'list-fix',
  400. sessionId: sessionId,
  401. timestamp: new Date().getTime(),
  402. flag: 'run',
  403. builder:[
  404. {
  405. tagCode: '',
  406. datas:[
  407. {
  408. typeCode: '',
  409. datas: [themeConfigCpt.value.tabs.get(state.activeTab).searchParam]
  410. }
  411. ]
  412. }
  413. ],
  414. }
  415. lastTabParams = JSON.stringify(params)
  416. state.tabTable.loading = true
  417. ws.send(lastTabParams)
  418. }
  419. state.ws.getChart = () => {
  420. // 如果有的话,终止上一次请求
  421. if (lastChartParams) {
  422. const p = JSON.parse(lastChartParams)
  423. p.flag = 'stop'
  424. ws.send(JSON.stringify(p))
  425. lastChartParams = ''
  426. }
  427. const params = {
  428. pageNumber: state.tabTable.page.pageNum,
  429. pageSize: state.tabTable.page.pageSize,
  430. type: 'count-fix',
  431. sessionId: sessionId,
  432. timestamp: new Date().getTime(),
  433. flag: 'run',
  434. builder:[
  435. {
  436. tagCode: '',
  437. datas:[
  438. {
  439. typeCode: '',
  440. datas: themeConfigCpt.value.chart.nodes.map(v => v.searchParam)
  441. }
  442. ]
  443. }
  444. ]
  445. }
  446. lastChartParams = JSON.stringify(params)
  447. state.chartData.loading = true
  448. ws.send(lastChartParams)
  449. }
  450. state.ws.chartPage = () => {
  451. // 如果有的话,终止上一次请求
  452. if (lastChartPageParams) {
  453. const p = JSON.parse(lastChartPageParams)
  454. p.flag = 'stop'
  455. ws.send(JSON.stringify(p))
  456. lastChartPageParams = ''
  457. }
  458. const params = {
  459. __type: themeConfigCpt.value.chart.nodes.filter(v => v.id == state.chartTable.chartId)[0].__type,
  460. pageNumber: state.chartTable.page.pageNum,
  461. pageSize: state.chartTable.page.pageSize,
  462. type: 'list-fix',
  463. sessionId: sessionId,
  464. timestamp: new Date().getTime(),
  465. flag: 'run',
  466. builder:[
  467. {
  468. tagCode: '',
  469. datas:[
  470. {
  471. typeCode: '',
  472. datas: [themeConfigCpt.value.chart.nodes.filter(v => v.id == state.chartTable.chartId)[0].searchParam]
  473. }
  474. ]
  475. }
  476. ],
  477. }
  478. lastChartPageParams = JSON.stringify(params)
  479. state.chartTable.loading = true
  480. ws.send(lastChartPageParams)
  481. }
  482. }
  483. ws.onmessage = (e) => {
  484. try {
  485. const json = JSON.parse(e.data)
  486. if (json.respCode == -1) {
  487. ElMessage.error(json.respMsg)
  488. return
  489. }
  490. if (json.type === 'session') {
  491. sessionId = json.sessionId
  492. // 左侧
  493. state.ws.getMain()
  494. state.activeTab = '首页'
  495. } else {
  496. switch (json.type) {
  497. case 'list-fix': {
  498. if (lastMainParams) {
  499. const pMain = JSON.parse(lastMainParams)
  500. // 返回为最新批次的
  501. if (json.timestamp == pMain.timestamp) {
  502. state.mainObj.loading = false
  503. state.mainObj.data = json.datas?.[0] || {}
  504. lastMainParams = ''
  505. }
  506. }
  507. if (lastTabParams) {
  508. const pTab = JSON.parse(lastTabParams)
  509. // 返回为最新批次的
  510. if (json.timestamp == pTab.timestamp) {
  511. if (pTab.__type === 'inner_index') {
  512. state.tabTable.result.data = json.datas
  513. state.tabTable.result.total = json.records
  514. } else {
  515. state.tabTable.result.data = json.datas.data
  516. state.tabTable.result.total = json.datas.pathForm.total
  517. }
  518. state.tabTable.loading = false
  519. lastTabParams = ''
  520. }
  521. }
  522. if (lastChartPageParams) {
  523. const pChartPage = JSON.parse(lastChartPageParams)
  524. // 返回为最新批次的
  525. if (json.timestamp == pChartPage.timestamp) {
  526. if (pChartPage.__type === 'inner_index') {
  527. state.chartTable.result.data = json.datas
  528. state.chartTable.result.total = json.records
  529. } else {
  530. state.chartTable.result.data = json.datas.data
  531. state.chartTable.result.total = json.datas.pathForm.total
  532. }
  533. state.chartTable.loading = false
  534. lastChartPageParams = ''
  535. }
  536. }
  537. } break
  538. case 'count-fix': {
  539. if (lastChartParams) {
  540. const pChart = JSON.parse(lastChartParams)
  541. // 返回为最新批次的
  542. if (json.timestamp == pChart.timestamp) {
  543. const obj = {
  544. edges: [...themeConfigCpt.value.chart.edges],
  545. nodes: themeConfigCpt.value.chart.nodes.map(v => {
  546. if (v.__type === 'inner_index') {
  547. v.num = json.datas.filter(s => s.indexCode == v.indexTableName)?.[0]?.data || 0
  548. } else {
  549. v.num = json.datas.filter(s => s.serviceId == v.indexId)?.[0]?.data || 0
  550. }
  551. return v
  552. })
  553. }
  554. state.chartData.data = obj
  555. state.chartData.loading = false
  556. lastChartParams = ''
  557. }
  558. }
  559. } break
  560. }
  561. }
  562. } catch (e) {
  563. console.log(e)
  564. }
  565. }
  566. ws.onclose = function (){
  567. state.ws.loading = ElLoading.service({
  568. lock: true,
  569. text: '智搜服务重新连接中……',
  570. background: ThemeStore.loadingBg,
  571. })
  572. setTimeout(initWS, 5000);
  573. }
  574. state.ws.instance = ws
  575. }
  576. onMounted(() => {
  577. initTheme()
  578. DictionaryStore.initDict('relation_chart_layout')
  579. })
  580. </script>
  581. <style lang="scss" scoped>
  582. .archive-main {
  583. width: 100%;
  584. height: 100%;
  585. background-color: #F6F7FB;
  586. display: flex;
  587. flex-direction: column;
  588. .archive-content {
  589. flex: 1;
  590. padding: 24px;
  591. display: flex;
  592. gap: 16px;
  593. overflow: hidden;
  594. .archive-basic {
  595. width: 362px;
  596. height: 100%;
  597. background: linear-gradient( 180deg, rgba(var(--cus-main-color-rgb), 0.2) 0%, rgba(var(--cus-main-color-rgb),0) 100%), #FFFFFF;
  598. box-shadow: 0px 2px 4px 0px rgba(46,129,255,0.2);
  599. border-radius: 4px;
  600. padding: 16px;
  601. display: flex;
  602. flex-direction: column;
  603. gap: 10px;
  604. .archive-basic-title {
  605. display: flex;
  606. align-items: center;
  607. gap: 8px;
  608. .main {
  609. font-weight: bold;
  610. font-size: 21px;
  611. color: var(--cus-main-color);
  612. }
  613. .tag {
  614. display: flex;
  615. align-items: center;
  616. justify-content: center;
  617. padding: 0 8px;
  618. background: #f8e5e5;
  619. border-radius: 2px;
  620. border: 1px solid #FF5454;
  621. font-size: 12px;
  622. color: #FF5454;
  623. }
  624. }
  625. .archive-basic-sub {
  626. display: flex;
  627. align-items: center;
  628. font-size: 14px;
  629. color: var(--cus-text-color-2);
  630. line-height: 16px;
  631. gap: 10px;
  632. .line {
  633. width: 1px;
  634. height: 10px;
  635. background-color: var(--cus-text-color-4);
  636. }
  637. }
  638. .archive-basic-avatar {
  639. width: 100%;
  640. .el-image {
  641. width: 100%;
  642. .image-slot {
  643. width: 100%;
  644. >img {
  645. width: 100%;
  646. }
  647. }
  648. }
  649. }
  650. .archive-basic-cols {
  651. display: flex;
  652. flex-wrap: wrap;
  653. row-gap: 12px;
  654. .cols-item {
  655. font-size: 14px;
  656. min-width: 50%;
  657. .label {
  658. font-weight: bold;
  659. color: var(--cus-text-color-1);
  660. }
  661. .value {
  662. margin-top: 2px;
  663. color: var(--cus-text-color-2);
  664. text-align: justify;
  665. }
  666. }
  667. }
  668. }
  669. .archive-list {
  670. flex: 1;
  671. overflow: hidden;
  672. display: flex;
  673. flex-direction: column;
  674. :deep(.archive-list-tabs) {
  675. width: 100%;
  676. .el-tabs__header {
  677. margin: 0;
  678. height: 45px;
  679. .el-tabs__nav-wrap {
  680. height: 100%;
  681. &:after {
  682. display: none;
  683. }
  684. .el-tabs__nav-prev, .el-tabs__nav-next {
  685. height: 100%;
  686. display: flex;
  687. justify-content: center;
  688. align-items: center;
  689. }
  690. .el-tabs__nav-scroll {
  691. height: 100%;
  692. .el-tabs__nav {
  693. height: 100%;
  694. .el-tabs__item {
  695. height: 100%;
  696. font-size: 16px;
  697. color: var(--cus-text-color-2);
  698. padding: 0 16px;
  699. &.is-active {
  700. background-color: #FFFFFF;
  701. box-shadow: 0px 4px 10px 0px rgba(62,123,250,0.1);
  702. border-radius: 8px 8px 0px 0px;
  703. }
  704. }
  705. }
  706. }
  707. }
  708. }
  709. }
  710. .archive-list-block {
  711. flex: 1;
  712. background-color: #FFFFFF;
  713. padding: 16px;
  714. display: flex;
  715. flex-direction: column;
  716. gap: 15px;
  717. overflow: hidden;
  718. &:first-child {
  719. border-top-right-radius: 8px;
  720. }
  721. &:last-child {
  722. border-bottom-left-radius: 8px;
  723. border-bottom-right-radius: 8px;
  724. }
  725. .archive-list-block-title {
  726. display: flex;
  727. align-items: center;
  728. font-weight: bold;
  729. font-size: 16px;
  730. color: var(--cus-text-color-1);
  731. .svg-icon {
  732. margin-right: 8px;
  733. }
  734. :deep(.layout-select) {
  735. margin-left: auto;
  736. .el-form-item {
  737. width: 150px;
  738. margin-bottom: 0;
  739. }
  740. }
  741. }
  742. .archive-list-block-page {
  743. flex: 1;
  744. overflow: hidden;
  745. }
  746. }
  747. }
  748. }
  749. }
  750. </style>