fix
Showing
3 changed files
with
30 additions
and
5 deletions
| ... | @@ -8,7 +8,7 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -8,7 +8,7 @@ const routes: RouteRecordRaw[] = [ |
| 8 | path: '/trusted-space-index', | 8 | path: '/trusted-space-index', |
| 9 | component: Layout, | 9 | component: Layout, |
| 10 | meta: { | 10 | meta: { |
| 11 | title: '可信空间', | 11 | title: '数据连接件', |
| 12 | icon: 'sidebar-videos', | 12 | icon: 'sidebar-videos', |
| 13 | }, | 13 | }, |
| 14 | children: [ | 14 | children: [ |
| ... | @@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [ |
| 17 | name: 'trustedSpaceIndex', | 17 | name: 'trustedSpaceIndex', |
| 18 | component: () => import('@/views/data_trusted/trustedSpaceIndex.vue'), | 18 | component: () => import('@/views/data_trusted/trustedSpaceIndex.vue'), |
| 19 | meta: { | 19 | meta: { |
| 20 | title: '可信空间', | 20 | title: '数据连接件', |
| 21 | sidebar: false, | 21 | sidebar: false, |
| 22 | breadcrumb: false, | 22 | breadcrumb: false, |
| 23 | cache: true | 23 | cache: true | ... | ... |
| ... | @@ -199,7 +199,7 @@ import { ref } from "vue"; | ... | @@ -199,7 +199,7 @@ import { ref } from "vue"; |
| 199 | import { | 199 | import { |
| 200 | getParamsList, | 200 | getParamsList, |
| 201 | getReleaseYears, | 201 | getReleaseYears, |
| 202 | // getSubjectDomainDataTree, | 202 | // getSubjectDomainDataTree, |
| 203 | getReleaseListData, | 203 | getReleaseListData, |
| 204 | getReleaseDataCertiDetail | 204 | getReleaseDataCertiDetail |
| 205 | } from '@/api/modules/dataTrustedSpace'; | 205 | } from '@/api/modules/dataTrustedSpace'; |
| ... | @@ -215,6 +215,8 @@ import useUserStore from '@/store/modules/user'; | ... | @@ -215,6 +215,8 @@ import useUserStore from '@/store/modules/user'; |
| 215 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; | 215 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; |
| 216 | import router from "@/router"; | 216 | import router from "@/router"; |
| 217 | 217 | ||
| 218 | const route = useRoute(); | ||
| 219 | |||
| 218 | const defaultItemLogo = getAssetsImages('dam-catalog-detail.png') | 220 | const defaultItemLogo = getAssetsImages('dam-catalog-detail.png') |
| 219 | const userStore = useUserStore(); | 221 | const userStore = useUserStore(); |
| 220 | const { proxy } = getCurrentInstance() as any; | 222 | const { proxy } = getCurrentInstance() as any; |
| ... | @@ -416,6 +418,19 @@ watch(() => selectDataInfo.value.damGuid, (val) => { | ... | @@ -416,6 +418,19 @@ watch(() => selectDataInfo.value.damGuid, (val) => { |
| 416 | deep: true | 418 | deep: true |
| 417 | }) | 419 | }) |
| 418 | 420 | ||
| 421 | onActivated(() => { | ||
| 422 | let fullPath = route.fullPath; | ||
| 423 | let userInfoData = userStore.userInfoData || []; | ||
| 424 | let f = userInfoData.find(u => u.menuList?.some(m => m.path == "/trusted-space-index")); | ||
| 425 | if (f && fullPath === route.fullPath) { | ||
| 426 | document.title = f.productName || '数据连接件'; | ||
| 427 | } | ||
| 428 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | ||
| 429 | if (f && tab) { | ||
| 430 | tab.meta.title = f.productName || '数据连接件'; | ||
| 431 | } | ||
| 432 | }) | ||
| 433 | |||
| 419 | onBeforeMount(() => { | 434 | onBeforeMount(() => { |
| 420 | fullscreenLoading.value = true; | 435 | fullscreenLoading.value = true; |
| 421 | let ps: any = []; | 436 | let ps: any = []; |
| ... | @@ -480,7 +495,7 @@ const handleDownFile = () => { | ... | @@ -480,7 +495,7 @@ const handleDownFile = () => { |
| 480 | .home-full-wrap { | 495 | .home-full-wrap { |
| 481 | height: 100%; | 496 | height: 100%; |
| 482 | width: 100%; | 497 | width: 100%; |
| 483 | // overflow-y: auto; | 498 | // overflow-y: auto; |
| 484 | overflow-x: hidden; | 499 | overflow-x: hidden; |
| 485 | background-color: #f5f5f6; | 500 | background-color: #f5f5f6; |
| 486 | } | 501 | } | ... | ... |
| ... | @@ -173,6 +173,7 @@ const formItems = ref([ | ... | @@ -173,6 +173,7 @@ const formItems = ref([ |
| 173 | block: true, | 173 | block: true, |
| 174 | visible: true, | 174 | visible: true, |
| 175 | default: [], | 175 | default: [], |
| 176 | col: 'mb4', | ||
| 176 | limit: 1, | 177 | limit: 1, |
| 177 | }, | 178 | }, |
| 178 | { | 179 | { |
| ... | @@ -206,6 +207,7 @@ const formItems = ref([ | ... | @@ -206,6 +207,7 @@ const formItems = ref([ |
| 206 | block: true, | 207 | block: true, |
| 207 | visible: true, | 208 | visible: true, |
| 208 | default: [], | 209 | default: [], |
| 210 | col: 'mb4', | ||
| 209 | limit: 1, | 211 | limit: 1, |
| 210 | }, | 212 | }, |
| 211 | { | 213 | { |
| ... | @@ -239,6 +241,7 @@ const formItems = ref([ | ... | @@ -239,6 +241,7 @@ const formItems = ref([ |
| 239 | block: true, | 241 | block: true, |
| 240 | visible: true, | 242 | visible: true, |
| 241 | default: [], | 243 | default: [], |
| 244 | col: 'mb4', | ||
| 242 | limit: 1, | 245 | limit: 1, |
| 243 | }, | 246 | }, |
| 244 | { | 247 | { |
| ... | @@ -269,7 +272,7 @@ const formRules = ref({ | ... | @@ -269,7 +272,7 @@ const formRules = ref({ |
| 269 | 272 | ||
| 270 | const dialogInfo = ref({ | 273 | const dialogInfo = ref({ |
| 271 | visible: false, | 274 | visible: false, |
| 272 | size: 510, | 275 | size: 600, |
| 273 | direction: "column", | 276 | direction: "column", |
| 274 | header: { | 277 | header: { |
| 275 | title: "合规信息", | 278 | title: "合规信息", |
| ... | @@ -515,4 +518,11 @@ const getTableData = () => { | ... | @@ -515,4 +518,11 @@ const getTableData = () => { |
| 515 | } | 518 | } |
| 516 | } | 519 | } |
| 517 | } | 520 | } |
| 521 | |||
| 522 | :deep(.el-form) { | ||
| 523 | .mb4 { | ||
| 524 | margin-bottom: 4px !important; | ||
| 525 | } | ||
| 526 | } | ||
| 527 | |||
| 518 | </style> | 528 | </style> | ... | ... |
-
Please register or sign in to post a comment