修改刷新的可能问题
Showing
4 changed files
with
30 additions
and
4 deletions
src/store/modules/dataProductListing.ts
0 → 100644
| 1 | const useDataProductStore = defineStore( | ||
| 2 | /** 产品上架 */ | ||
| 3 | 'isRefresh', | ||
| 4 | () => { | ||
| 5 | const isRefresh = ref<boolean>(false) | ||
| 6 | const isRefreshDamCatalog = ref<boolean>(false) | ||
| 7 | function set(v: boolean) { | ||
| 8 | isRefresh.value = v; | ||
| 9 | } | ||
| 10 | |||
| 11 | function setDamCatalogRefresh(v: boolean) { | ||
| 12 | isRefreshDamCatalog.value = v; | ||
| 13 | } | ||
| 14 | |||
| 15 | return { | ||
| 16 | isRefreshDamCatalog, | ||
| 17 | isRefresh, | ||
| 18 | set, | ||
| 19 | setDamCatalogRefresh, | ||
| 20 | } | ||
| 21 | }, | ||
| 22 | ) | ||
| 23 | |||
| 24 | export default useDataProductStore | ||
| 25 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -8,7 +8,7 @@ import { useRouter, useRoute } from "vue-router"; | ... | @@ -8,7 +8,7 @@ import { useRouter, useRoute } from "vue-router"; |
| 8 | import useUserStore from "@/store/modules/user"; | 8 | import useUserStore from "@/store/modules/user"; |
| 9 | import { ElMessage, ElMessageBox } from "element-plus"; | 9 | import { ElMessage, ElMessageBox } from "element-plus"; |
| 10 | 10 | ||
| 11 | import useDataAssetStore from "@/store/modules/dataAsset"; | 11 | import useDataProductStore from "@/store/modules/dataProductListing"; |
| 12 | import { getListingList, listingDelete, listingUpdateStatus, getListingCount, productRejectFlowData } from "@/api/modules/dataProduct"; | 12 | import { getListingList, listingDelete, listingUpdateStatus, getListingCount, productRejectFlowData } from "@/api/modules/dataProduct"; |
| 13 | import { TableColumnWidth } from '@/utils/enum'; | 13 | import { TableColumnWidth } from '@/utils/enum'; |
| 14 | import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue'; | 14 | import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue'; |
| ... | @@ -27,7 +27,7 @@ const { proxy } = getCurrentInstance() as any; | ... | @@ -27,7 +27,7 @@ const { proxy } = getCurrentInstance() as any; |
| 27 | const router = useRouter(); | 27 | const router = useRouter(); |
| 28 | const userStore = useUserStore(); | 28 | const userStore = useUserStore(); |
| 29 | const userData = JSON.parse(userStore.userData); | 29 | const userData = JSON.parse(userStore.userData); |
| 30 | const assetStore = useDataAssetStore(); | 30 | const assetStore = useDataProductStore(); |
| 31 | 31 | ||
| 32 | const sjsLogo = new URL('@/assets/images/sjs-logo.png', import.meta.url).href | 32 | const sjsLogo = new URL('@/assets/images/sjs-logo.png', import.meta.url).href |
| 33 | 33 | ... | ... |
| ... | @@ -10,7 +10,7 @@ import { useRoute } from "vue-router"; | ... | @@ -10,7 +10,7 @@ import { useRoute } from "vue-router"; |
| 10 | import Form from "@/components/Form/index.vue"; | 10 | import Form from "@/components/Form/index.vue"; |
| 11 | import Dialog from "@/components/Dialog/index.vue"; | 11 | import Dialog from "@/components/Dialog/index.vue"; |
| 12 | import useUserStore from "@/store/modules/user"; | 12 | import useUserStore from "@/store/modules/user"; |
| 13 | import useDataAssetStore from "@/store/modules/dataAsset"; | 13 | import useDataProductStore from "@/store/modules/dataProductListing"; |
| 14 | import { changeNum } from '@/utils/common'; | 14 | import { changeNum } from '@/utils/common'; |
| 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; | 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; |
| 16 | import { getAreaData, getSingleList, getParamsList } from "@/api/modules/queryService"; | 16 | import { getAreaData, getSingleList, getParamsList } from "@/api/modules/queryService"; |
| ... | @@ -28,7 +28,7 @@ const route = useRoute(); | ... | @@ -28,7 +28,7 @@ const route = useRoute(); |
| 28 | const userStore = useUserStore(); | 28 | const userStore = useUserStore(); |
| 29 | const userData = JSON.parse(localStorage.userData); | 29 | const userData = JSON.parse(localStorage.userData); |
| 30 | const fullPath = route.fullPath; | 30 | const fullPath = route.fullPath; |
| 31 | const assetStore = useDataAssetStore(); | 31 | const assetStore = useDataProductStore(); |
| 32 | const guid = route.query.guid as string; | 32 | const guid = route.query.guid as string; |
| 33 | const dGuid = route.query.dGuid as string; | 33 | const dGuid = route.query.dGuid as string; |
| 34 | const damName = route.query.name as string || ''; | 34 | const damName = route.query.name as string || ''; | ... | ... |
| ... | @@ -64,6 +64,7 @@ const tableFields = ref([ | ... | @@ -64,6 +64,7 @@ const tableFields = ref([ |
| 64 | { label: "签署方式", field: "signModeName", width: 120 }, | 64 | { label: "签署方式", field: "signModeName", width: 120 }, |
| 65 | { label: "产品名称", field: "productName", width: 180 }, | 65 | { label: "产品名称", field: "productName", width: 180 }, |
| 66 | { label: "合约编号", field: "contractId", width: 355 }, | 66 | { label: "合约编号", field: "contractId", width: 355 }, |
| 67 | { label: "合约状态", field: "contractStatus", type: "tag", width: 96, align: 'center' }, | ||
| 67 | { label: "发起主体", field: "tenantName", width: 205 }, | 68 | { label: "发起主体", field: "tenantName", width: 205 }, |
| 68 | { label: "签署时间", field: "signatureTime", width: 170 } | 69 | { label: "签署时间", field: "signatureTime", width: 170 } |
| 69 | ]); | 70 | ]); | ... | ... |
-
Please register or sign in to post a comment