fix
Showing
3 changed files
with
34 additions
and
9 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 | ... | ... |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | <div class="dataLabel ml-4px">{{damTypes.find(d => d.paramValue == item['damType'])?.paramName}} | 52 | <div class="dataLabel ml-4px">{{damTypes.find(d => d.paramValue == item['damType'])?.paramName}} |
| 53 | </div> | 53 | </div> |
| 54 | <div class="dataCount" v-if="item.caseNumber != null">{{ changeNum(item.caseNumber, 0) + '例' | 54 | <div class="dataCount" v-if="item.caseNumber != null">{{ changeNum(item.caseNumber, 0) + '例' |
| 55 | }}</div> | 55 | }}</div> |
| 56 | </div> | 56 | </div> |
| 57 | </div> | 57 | </div> |
| 58 | </div> | 58 | </div> |
| ... | @@ -97,7 +97,7 @@ | ... | @@ -97,7 +97,7 @@ |
| 97 | '至' + item.effectiveDate) }}</div> | 97 | '至' + item.effectiveDate) }}</div> |
| 98 | <div class="list_item">{{ '登记名称:' + item.daName }}</div> | 98 | <div class="list_item">{{ '登记名称:' + item.daName }}</div> |
| 99 | <div class="list_item">{{ '登记主体:' + item.issuingEntityName }}</div> | 99 | <div class="list_item">{{ '登记主体:' + item.issuingEntityName }}</div> |
| 100 | <div class="list_item"><span>{{ '证书:' }}</span> | 100 | <div class="list_item"><span>{{ '证书:' }}</span> |
| 101 | <div class="file-operate" style="width: calc(100% - 42px);"> | 101 | <div class="file-operate" style="width: calc(100% - 42px);"> |
| 102 | <template | 102 | <template |
| 103 | v-if="item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'xls' || item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'xlsx' || item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'csv'"> | 103 | v-if="item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'xls' || item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'xlsx' || item.file.name.substring(item.file.name.lastIndexOf('.') + 1).toLowerCase() == 'csv'"> |
| ... | @@ -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; |
| ... | @@ -333,7 +335,7 @@ function toTop(className: string) { | ... | @@ -333,7 +335,7 @@ function toTop(className: string) { |
| 333 | const handleDataClick = (item, index) => { | 335 | const handleDataClick = (item, index) => { |
| 334 | selectDataInfo.value = item; | 336 | selectDataInfo.value = item; |
| 335 | nextTick(() => { | 337 | nextTick(() => { |
| 336 | toTop('dam-detail-right') | 338 | toTop('dam-detail-right') |
| 337 | }) | 339 | }) |
| 338 | } | 340 | } |
| 339 | 341 | ||
| ... | @@ -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 | } |
| ... | @@ -834,7 +849,7 @@ const handleDownFile = () => { | ... | @@ -834,7 +849,7 @@ const handleDownFile = () => { |
| 834 | position: absolute; | 849 | position: absolute; |
| 835 | cursor: pointer; | 850 | cursor: pointer; |
| 836 | color: var(--el-color-primary); | 851 | color: var(--el-color-primary); |
| 837 | // margin-right: 8px; | 852 | // margin-right: 8px; |
| 838 | } | 853 | } |
| 839 | } | 854 | } |
| 840 | </style> | 855 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -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