产品只能在门户上架
Showing
5 changed files
with
82 additions
and
140 deletions
| ... | @@ -321,6 +321,11 @@ export const getDamTypesList = (params) => request({ | ... | @@ -321,6 +321,11 @@ export const getDamTypesList = (params) => request({ |
| 321 | // params | 321 | // params |
| 322 | // }) | 322 | // }) |
| 323 | 323 | ||
| 324 | /** 获取权利主体下拉列表 */ | ||
| 325 | export const getDamCatalogRightMainList = () => request({ | ||
| 326 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/right-main-list`, | ||
| 327 | method: 'get', | ||
| 328 | }) | ||
| 324 | 329 | ||
| 325 | export const getDamCatalogTable = (params) => request({ | 330 | export const getDamCatalogTable = (params) => request({ |
| 326 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/page-list`, | 331 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/page-list`, | ... | ... |
| ... | @@ -21,7 +21,7 @@ import { | ... | @@ -21,7 +21,7 @@ import { |
| 21 | registerCatalogTableDelete, | 21 | registerCatalogTableDelete, |
| 22 | getRegisterCatalogTableList, | 22 | getRegisterCatalogTableList, |
| 23 | checkDamTableChange, | 23 | checkDamTableChange, |
| 24 | getTenantList | 24 | getTenantList, |
| 25 | } from "@/api/modules/dataAsset"; | 25 | } from "@/api/modules/dataAsset"; |
| 26 | import { | 26 | import { |
| 27 | getValidApi, | 27 | getValidApi, |
| ... | @@ -758,22 +758,6 @@ const addAssetTable = () => { | ... | @@ -758,22 +758,6 @@ const addAssetTable = () => { |
| 758 | } | 758 | } |
| 759 | 759 | ||
| 760 | onBeforeMount(() => { | 760 | onBeforeMount(() => { |
| 761 | // const currentTenantGuid = localStorage.getItem('currentTenantGuid'); | ||
| 762 | // getCurrentUserInfo({tenantGuid: currentTenantGuid}).then((res: any) => { | ||
| 763 | // console.log(res, 'getCurrentUserInfo'); | ||
| 764 | // if (res.code == '00000') { | ||
| 765 | // localStorage.setItem('userData', JSON.stringify(res.data)); | ||
| 766 | // } else { | ||
| 767 | // ElMessage.error(res.msg) | ||
| 768 | // } | ||
| 769 | // }) | ||
| 770 | // if (route.query.guid && route.query.foundMode == '2') { | ||
| 771 | // baseInfoFormItems.value[0].disabled = true; | ||
| 772 | // baseInfoFormItems.value[1].disabled = true; | ||
| 773 | // baseInfoFormItems.value[2].disabled = true; | ||
| 774 | // baseInfoFormItems.value[5].disabled = true; | ||
| 775 | // } | ||
| 776 | |||
| 777 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { | 761 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { |
| 778 | if (res?.code == proxy.$passCode) { | 762 | if (res?.code == proxy.$passCode) { |
| 779 | parentAreaData.value = res.data ?? []; | 763 | parentAreaData.value = res.data ?? []; |
| ... | @@ -883,22 +867,6 @@ onBeforeMount(() => { | ... | @@ -883,22 +867,6 @@ onBeforeMount(() => { |
| 883 | }) | 867 | }) |
| 884 | } | 868 | } |
| 885 | 869 | ||
| 886 | // getRegisterCatalogProductList().then((res: any) => { | ||
| 887 | // catalogProductList.value = []; | ||
| 888 | // if (res.code == proxy.$passCode) { | ||
| 889 | // catalogProductList.value = res.data || []; | ||
| 890 | // baseInfoFormItems.value[0].options = catalogProductList.value; | ||
| 891 | // if (detailInfo.value?.productCode) { | ||
| 892 | // let item = catalogProductList.value.find(c => c.productId == detailInfo.value?.productCode); | ||
| 893 | // if (!item) { | ||
| 894 | // baseInfoFormItems.value[0].default = detailInfo.value.damName; | ||
| 895 | // } | ||
| 896 | // } | ||
| 897 | // } else { | ||
| 898 | // proxy.$ElMessage.error(res.msg); | ||
| 899 | // } | ||
| 900 | // }) | ||
| 901 | |||
| 902 | getParamsList({ | 870 | getParamsList({ |
| 903 | dictType: "资产类型", | 871 | dictType: "资产类型", |
| 904 | }).then((res: any) => { | 872 | }).then((res: any) => { | ... | ... |
| ... | @@ -7,10 +7,10 @@ import { ref } from "vue"; | ... | @@ -7,10 +7,10 @@ import { ref } from "vue"; |
| 7 | import TableTools from "@/components/Tools/table_tools.vue"; | 7 | import TableTools from "@/components/Tools/table_tools.vue"; |
| 8 | import { useRouter, useRoute } from "vue-router"; | 8 | import { useRouter, useRoute } from "vue-router"; |
| 9 | import { | 9 | import { |
| 10 | getParamsList, | ||
| 11 | getDamCatalogTable, | 10 | getDamCatalogTable, |
| 12 | registerCatalogDelete, | 11 | registerCatalogDelete, |
| 13 | getDamTypesList, | 12 | getDamTypesList, |
| 13 | getDamCatalogRightMainList, | ||
| 14 | getDataReceiveContract | 14 | getDataReceiveContract |
| 15 | } from "@/api/modules/dataAsset"; | 15 | } from "@/api/modules/dataAsset"; |
| 16 | import { commonPageConfig } from "@/utils/enum"; | 16 | import { commonPageConfig } from "@/utils/enum"; |
| ... | @@ -33,22 +33,26 @@ const props = defineProps({ | ... | @@ -33,22 +33,26 @@ const props = defineProps({ |
| 33 | const router = useRouter(); | 33 | const router = useRouter(); |
| 34 | const { proxy } = getCurrentInstance() as any; | 34 | const { proxy } = getCurrentInstance() as any; |
| 35 | const damTypes: any = ref([]); | 35 | const damTypes: any = ref([]); |
| 36 | const dataSources: any = ref([]); | 36 | |
| 37 | const subjectDomainListData: any = ref([]) | 37 | // const subjectDomainListData: any = ref([]) |
| 38 | // 登记状态 Y 已登记 N 未登记 | 38 | // 登记状态 Y 已登记 N 未登记 |
| 39 | const isRegisterOptions = ref<any>([ | 39 | const isRegisterOptions = ref<any>([ |
| 40 | { label: "已登记", value: "Y" }, | 40 | { label: "已登记", value: "Y" }, |
| 41 | { label: "未登记", value: "N" }, | 41 | { label: "未登记", value: "N" }, |
| 42 | ]) | 42 | ]) |
| 43 | 43 | ||
| 44 | /** 数据列表中所有的权利主体 */ | ||
| 45 | const rightMainTenantList: any = ref([]); | ||
| 46 | |||
| 44 | // 数据来源 1:自建 2:加工交付 | 47 | // 数据来源 1:自建 2:加工交付 |
| 45 | const damTypesOptions = ref<any>([ | 48 | // const damTypesOptions = ref<any>([ |
| 46 | { label: "自建", value: 1 }, | 49 | // { label: "自建", value: 1 }, |
| 47 | { label: "加工交付", value: 2 }, | 50 | // { label: "加工交付", value: 2 }, |
| 48 | { label: "深圳专区", value: 3 }, | 51 | // { label: "专区", value: 3 }, |
| 49 | { label: "江苏专区", value: 4 }, | 52 | // { label: "江苏专区", value: 4 }, |
| 50 | // { label: "数据港", value: 5 }, | 53 | // // { label: "数据港", value: 5 }, |
| 51 | ]) | 54 | // ]) |
| 55 | |||
| 52 | const searchItemList = ref([ | 56 | const searchItemList = ref([ |
| 53 | { | 57 | { |
| 54 | type: "input", | 58 | type: "input", |
| ... | @@ -72,40 +76,40 @@ const searchItemList = ref([ | ... | @@ -72,40 +76,40 @@ const searchItemList = ref([ |
| 72 | label: 'label' | 76 | label: 'label' |
| 73 | } | 77 | } |
| 74 | }, | 78 | }, |
| 75 | { | 79 | // { |
| 76 | label: '所属主题', | 80 | // label: '所属主题', |
| 77 | type: 'tree-select', | 81 | // type: 'tree-select', |
| 78 | placeholder: '所属主题', | 82 | // placeholder: '所属主题', |
| 79 | field: 'subjectDomain', | 83 | // field: 'subjectDomain', |
| 80 | nodeKey: 'value', | 84 | // nodeKey: 'value', |
| 81 | options: subjectDomainListData.value, | 85 | // options: subjectDomainListData.value, |
| 82 | //showAllLevels: false, | 86 | // //showAllLevels: false, |
| 83 | checkStrictly: false,//只能选择叶子节点。 | 87 | // checkStrictly: false,//只能选择叶子节点。 |
| 84 | lazy: false, | 88 | // lazy: false, |
| 85 | multiple: true, | 89 | // multiple: true, |
| 86 | collapseTagsTooltip: true, | 90 | // collapseTagsTooltip: true, |
| 87 | collapseTags: true, | 91 | // collapseTags: true, |
| 88 | props: { | 92 | // props: { |
| 89 | label: "label", | 93 | // label: "label", |
| 90 | value: "value", | 94 | // value: "value", |
| 91 | }, | 95 | // }, |
| 92 | filterable: true, | 96 | // filterable: true, |
| 93 | clearable: true, | 97 | // clearable: true, |
| 94 | default: [], | 98 | // default: [], |
| 95 | showCheckbox: true | 99 | // showCheckbox: true |
| 96 | }, | 100 | // }, |
| 97 | { | 101 | { |
| 98 | type: "select", | 102 | type: "select", |
| 99 | label: "", | 103 | label: "", |
| 100 | field: "foundMode", | 104 | field: "rightMain", |
| 101 | default: "", | 105 | default: "", |
| 102 | placeholder: "产品来源", | 106 | placeholder: "权利主体", |
| 103 | clearable: true, | 107 | clearable: true, |
| 104 | filterable: true, | 108 | filterable: true, |
| 105 | options: damTypesOptions.value, | 109 | options: rightMainTenantList.value, |
| 106 | props: { | 110 | props: { |
| 107 | value: 'value', | 111 | value: 'right_main', |
| 108 | label: 'label' | 112 | label: 'right_main_name' |
| 109 | } | 113 | } |
| 110 | }, | 114 | }, |
| 111 | { | 115 | { |
| ... | @@ -133,8 +137,7 @@ const pageInfo = ref({ | ... | @@ -133,8 +137,7 @@ const pageInfo = ref({ |
| 133 | tenantGuid: "", | 137 | tenantGuid: "", |
| 134 | dataSources: "", | 138 | dataSources: "", |
| 135 | isRegister: "", | 139 | isRegister: "", |
| 136 | foundMode: "", | 140 | rightMain: '' |
| 137 | subjectDomain: [], | ||
| 138 | }); | 141 | }); |
| 139 | 142 | ||
| 140 | const listDataLoading = ref(false); | 143 | const listDataLoading = ref(false); |
| ... | @@ -144,16 +147,6 @@ const listData: any = ref([]); | ... | @@ -144,16 +147,6 @@ const listData: any = ref([]); |
| 144 | /** 记录点击省略号弹出菜单的visible */ | 147 | /** 记录点击省略号弹出菜单的visible */ |
| 145 | const cardBtnVisible: any = ref(false); | 148 | const cardBtnVisible: any = ref(false); |
| 146 | 149 | ||
| 147 | const getTableBtns = (row) => { | ||
| 148 | if (row.isRegister == 'Y' || row.foundMode == 2) { | ||
| 149 | return []; | ||
| 150 | } | ||
| 151 | let btnsArr: any[] = []; | ||
| 152 | btnsArr.push({ label: "编辑", value: "edit" }); | ||
| 153 | btnsArr.push({ label: "删除", value: "delete" }); | ||
| 154 | return btnsArr; | ||
| 155 | }; | ||
| 156 | |||
| 157 | const currTableData: any = ref({}); | 150 | const currTableData: any = ref({}); |
| 158 | 151 | ||
| 159 | const tableBtnClick = (scope, btn) => { | 152 | const tableBtnClick = (scope, btn) => { |
| ... | @@ -202,18 +195,17 @@ const handleDataClick = (item) => { | ... | @@ -202,18 +195,17 @@ const handleDataClick = (item) => { |
| 202 | } | 195 | } |
| 203 | }; | 196 | }; |
| 204 | 197 | ||
| 205 | const getTableData = () => { | 198 | const getTableData = (isPage = false) => { |
| 206 | listDataLoading.value = true; | 199 | listDataLoading.value = true; |
| 207 | getDamCatalogTable({ | 200 | getDamCatalogTable({ |
| 208 | pageSize: pageInfo.value.limit, | 201 | pageSize: pageInfo.value.limit, |
| 209 | pageIndex: pageInfo.value.curr, | 202 | pageIndex: pageInfo.value.curr, |
| 210 | damName: pageInfo.value.damName, | 203 | damName: pageInfo.value.damName, |
| 211 | damType: pageInfo.value.damType, | 204 | damType: pageInfo.value.damType, |
| 212 | subjectDomain: pageInfo.value.subjectDomain || [], | ||
| 213 | tenantGuid: pageInfo.value.tenantGuid, | 205 | tenantGuid: pageInfo.value.tenantGuid, |
| 214 | dataSources: props.dataSources, | 206 | dataSources: props.dataSources, |
| 215 | isRegister: pageInfo.value.isRegister, | 207 | isRegister: pageInfo.value.isRegister, |
| 216 | foundMode: pageInfo.value.foundMode, | 208 | rightMain: pageInfo.value.rightMain |
| 217 | }).then((res: any) => { | 209 | }).then((res: any) => { |
| 218 | listDataLoading.value = false; | 210 | listDataLoading.value = false; |
| 219 | if (res.code == proxy.$passCode) { | 211 | if (res.code == proxy.$passCode) { |
| ... | @@ -225,6 +217,19 @@ const getTableData = () => { | ... | @@ -225,6 +217,19 @@ const getTableData = () => { |
| 225 | } else { | 217 | } else { |
| 226 | proxy.$ElMessage.error(res.msg); | 218 | proxy.$ElMessage.error(res.msg); |
| 227 | } | 219 | } |
| 220 | }); | ||
| 221 | if (isPage) { | ||
| 222 | return; | ||
| 223 | } | ||
| 224 | //TODO。获取权利主体下拉接口,每次表格数据变化都需要更新,除了分页场景。 | ||
| 225 | getDamCatalogRightMainList().then((res: any) => { | ||
| 226 | if (res.code == proxy.$passCode) { | ||
| 227 | rightMainTenantList.value = res.data || []; | ||
| 228 | let item = searchItemList.value.find(item => item.field == 'rightMain'); | ||
| 229 | item && (item.options = rightMainTenantList.value); | ||
| 230 | } else { | ||
| 231 | proxy.$ElMessage.error(res.msg); | ||
| 232 | } | ||
| 228 | }) | 233 | }) |
| 229 | }; | 234 | }; |
| 230 | 235 | ||
| ... | @@ -235,19 +240,17 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -235,19 +240,17 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 235 | searchItemList.value.map((item) => (item.default = "")); | 240 | searchItemList.value.map((item) => (item.default = "")); |
| 236 | pageInfo.value.damName = ""; | 241 | pageInfo.value.damName = ""; |
| 237 | pageInfo.value.damType = ""; | 242 | pageInfo.value.damType = ""; |
| 238 | pageInfo.value.subjectDomain = []; | ||
| 239 | pageInfo.value.tenantGuid = ""; | 243 | pageInfo.value.tenantGuid = ""; |
| 240 | pageInfo.value.isRegister = ""; | 244 | pageInfo.value.isRegister = ""; |
| 245 | pageInfo.value.rightMain = ''; | ||
| 241 | // pageInfo.value.dataSources = ""; | 246 | // pageInfo.value.dataSources = ""; |
| 242 | pageInfo.value.foundMode = ""; | ||
| 243 | } else { | 247 | } else { |
| 244 | pageInfo.value.damName = val.damName; | 248 | pageInfo.value.damName = val.damName; |
| 245 | pageInfo.value.damType = val.damType; | 249 | pageInfo.value.damType = val.damType; |
| 246 | pageInfo.value.subjectDomain = val.subjectDomain; | ||
| 247 | pageInfo.value.tenantGuid = val.tenantGuid; | 250 | pageInfo.value.tenantGuid = val.tenantGuid; |
| 248 | pageInfo.value.isRegister = val.isRegister; | 251 | pageInfo.value.isRegister = val.isRegister; |
| 252 | pageInfo.value.rightMain = val.rightMain; | ||
| 249 | // pageInfo.value.dataSources = val.dataSources; | 253 | // pageInfo.value.dataSources = val.dataSources; |
| 250 | pageInfo.value.foundMode = val.foundMode; | ||
| 251 | } | 254 | } |
| 252 | getTableData(); | 255 | getTableData(); |
| 253 | }; | 256 | }; |
| ... | @@ -255,7 +258,7 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -255,7 +258,7 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 255 | const pageChange = (info) => { | 258 | const pageChange = (info) => { |
| 256 | pageInfo.value.curr = Number(info.curr); | 259 | pageInfo.value.curr = Number(info.curr); |
| 257 | pageInfo.value.limit = Number(info.limit); | 260 | pageInfo.value.limit = Number(info.limit); |
| 258 | getTableData(); | 261 | getTableData(true); |
| 259 | }; | 262 | }; |
| 260 | 263 | ||
| 261 | onActivated(() => { | 264 | onActivated(() => { |
| ... | @@ -269,18 +272,6 @@ onActivated(() => { | ... | @@ -269,18 +272,6 @@ onActivated(() => { |
| 269 | 272 | ||
| 270 | onBeforeMount(() => { | 273 | onBeforeMount(() => { |
| 271 | getDamTypesList({ | 274 | getDamTypesList({ |
| 272 | dictType: "数据来源", | ||
| 273 | }).then((res: any) => { | ||
| 274 | if (res.code == proxy.$passCode) { | ||
| 275 | dataSources.value = res.data || []; | ||
| 276 | let item = searchItemList.value.find(item => item.field == 'dataSources'); | ||
| 277 | item && (item.options = dataSources.value); | ||
| 278 | } else { | ||
| 279 | proxy.$ElMessage.error(res.msg); | ||
| 280 | } | ||
| 281 | }) | ||
| 282 | |||
| 283 | getDamTypesList({ | ||
| 284 | dictType: "资产类型", | 275 | dictType: "资产类型", |
| 285 | }).then((res: any) => { | 276 | }).then((res: any) => { |
| 286 | if (res.code == proxy.$passCode) { | 277 | if (res.code == proxy.$passCode) { |
| ... | @@ -291,30 +282,7 @@ onBeforeMount(() => { | ... | @@ -291,30 +282,7 @@ onBeforeMount(() => { |
| 291 | proxy.$ElMessage.error(res.msg); | 282 | proxy.$ElMessage.error(res.msg); |
| 292 | } | 283 | } |
| 293 | }) | 284 | }) |
| 294 | getParamsList({ | ||
| 295 | dictType: "数据资产目录主题名称", | ||
| 296 | }).then((res: any) => { | ||
| 297 | if (res.code == proxy.$passCode) { | ||
| 298 | subjectDomainListData.value = replaceChildDictListKey(res.data) || []; | ||
| 299 | let item = searchItemList.value.find(item => item.field == 'subjectDomain'); | ||
| 300 | item && (item.options = subjectDomainListData.value); | ||
| 301 | } else { | ||
| 302 | proxy.$ElMessage.error(res.msg); | ||
| 303 | } | ||
| 304 | }) | ||
| 305 | }); | 285 | }); |
| 306 | function replaceChildDictListKey(data) { | ||
| 307 | if (Array.isArray(data)) { | ||
| 308 | return data.map(item => replaceChildDictListKey(item)); | ||
| 309 | } else if (data && typeof data === 'object') { | ||
| 310 | const { childDictList, ...rest } = data; | ||
| 311 | return { | ||
| 312 | ...rest, | ||
| 313 | children: childDictList ? replaceChildDictListKey(childDictList) : undefined, | ||
| 314 | }; | ||
| 315 | } | ||
| 316 | return data; | ||
| 317 | } | ||
| 318 | 286 | ||
| 319 | const handleCreate = () => { | 287 | const handleCreate = () => { |
| 320 | router.push({ | 288 | router.push({ |
| ... | @@ -456,11 +424,12 @@ const handleUploadClose = (itemGuid) => { | ... | @@ -456,11 +424,12 @@ const handleUploadClose = (itemGuid) => { |
| 456 | </div> | 424 | </div> |
| 457 | <div class="v-middle"> | 425 | <div class="v-middle"> |
| 458 | <div class="mid-content"> | 426 | <div class="mid-content"> |
| 459 | <div class="left">登记主体</div> | 427 | <div class="left">权利主体</div> |
| 460 | <div class="right">{{ item.rightMainName || '--' }}</div> | 428 | <div class="right">{{ item.rightMainName || '--' }}</div> |
| 461 | </div> | 429 | </div> |
| 462 | <div class="mid-content"> | 430 | <div class="mid-content"> |
| 463 | <div class="left">产品来源</div> | 431 | <div class="left">产品来源</div> |
| 432 | <!-- TODO,要改成连接器名称 --> | ||
| 464 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : (item.foundMode == 2 ? '加工交付' : (item.foundMode == 4 ? '江苏专区' : (item.foundMode == 5 ? '可信数据空间' : '深圳专区')))) : '--' | 433 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : (item.foundMode == 2 ? '加工交付' : (item.foundMode == 4 ? '江苏专区' : (item.foundMode == 5 ? '可信数据空间' : '深圳专区')))) : '--' |
| 465 | }}</div> | 434 | }}</div> |
| 466 | </div> | 435 | </div> |
| ... | @@ -470,18 +439,15 @@ const handleUploadClose = (itemGuid) => { | ... | @@ -470,18 +439,15 @@ const handleUploadClose = (itemGuid) => { |
| 470 | </div> | 439 | </div> |
| 471 | </div> | 440 | </div> |
| 472 | <div class="v-bottom"> | 441 | <div class="v-bottom"> |
| 442 | <!-- TODO,只有数据交付之后才可以编辑和删除 --> | ||
| 473 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" | 443 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" |
| 474 | @click.stop="tableBtnClick(item, 'delete')">删除</el-button> | 444 | @click.stop="tableBtnClick(item, 'delete')">删除</el-button> |
| 475 | <el-button plain v-if="!(item.isRegister == 'Y') && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" @click.stop="handleDataClick(item)">编辑</el-button> | 445 | <el-button plain v-if="!(item.isRegister == 'Y') && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" @click.stop="handleDataClick(item)">编辑</el-button> |
| 476 | <el-button plain @click.stop="handleClickUploadBtn(item)" v-if="item.isRegister == 'Y' && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5">上传交付物</el-button> | 446 | <!-- <el-button plain @click.stop="handleClickUploadBtn(item)" v-if="item.isRegister == 'Y' && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5">上传交付物</el-button> --> |
| 477 | <el-button plain @click.stop="handleDataClick(item)" v-if="(item.isRegister == 'Y' || item.foundMode == 3 || item.foundMode == 4 || item.foundMode == 5)">详情</el-button> | 447 | <el-button plain @click.stop="handleDataClick(item)" v-if="(item.isRegister == 'Y' || item.foundMode == 3 || item.foundMode == 4 || item.foundMode == 5)">详情</el-button> |
| 478 | </div> | 448 | </div> |
| 479 | </div> | 449 | </div> |
| 480 | </div> | 450 | </div> |
| 481 | <!-- <div v-if="listData.length" class="card-noData"> | ||
| 482 | <img src="../../assets/images/no-data.png" :style="{ width: '96px', height: '96px' }" /> | ||
| 483 | <span>暂无数据资源目录</span> | ||
| 484 | </div> --> | ||
| 485 | </div> | 451 | </div> |
| 486 | 452 | ||
| 487 | </div> | 453 | </div> | ... | ... |
| ... | @@ -81,7 +81,7 @@ const tableInfo = ref({ | ... | @@ -81,7 +81,7 @@ const tableInfo = ref({ |
| 81 | fields: [ | 81 | fields: [ |
| 82 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, | 82 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, |
| 83 | { label: "数据产品编号", field: "productCode", width: 154 }, | 83 | { label: "数据产品编号", field: "productCode", width: 154 }, |
| 84 | { label: "数据证书编号", field: "damCode", width: 154 }, | 84 | // { label: "数据证书编号", field: "damCode", width: 154 }, |
| 85 | { label: "数据产品名称", field: "damName", width: 180 }, | 85 | { label: "数据产品名称", field: "damName", width: 180 }, |
| 86 | { | 86 | { |
| 87 | label: "产品类型", field: "damTypeName", width: 100 | 87 | label: "产品类型", field: "damTypeName", width: 100 |
| ... | @@ -91,7 +91,7 @@ const tableInfo = ref({ | ... | @@ -91,7 +91,7 @@ const tableInfo = ref({ |
| 91 | return scope.row.isPublicData == 'Y' ? '是' : '否'; | 91 | return scope.row.isPublicData == 'Y' ? '是' : '否'; |
| 92 | } | 92 | } |
| 93 | }, | 93 | }, |
| 94 | { label: "上架分类", field: "exchangeName", width: 140 }, | 94 | // { label: "上架分类", field: "exchangeName", width: 140 }, |
| 95 | { | 95 | { |
| 96 | label: "审核状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { | 96 | label: "审核状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { |
| 97 | const approveVO = scope.row.approveVO || {} | 97 | const approveVO = scope.row.approveVO || {} |
| ... | @@ -249,6 +249,9 @@ const getListingCountData = () => { | ... | @@ -249,6 +249,9 @@ const getListingCountData = () => { |
| 249 | flowDetailLoading.value = false; | 249 | flowDetailLoading.value = false; |
| 250 | if (res.code == proxy.$passCode) { | 250 | if (res.code == proxy.$passCode) { |
| 251 | demandListData.value = res.data || []; | 251 | demandListData.value = res.data || []; |
| 252 | if (demandListData.value?.length) { | ||
| 253 | demandListData.value = [demandListData.value[0]]; | ||
| 254 | } | ||
| 252 | let valueData = chunk(demandListData.value, 4); | 255 | let valueData = chunk(demandListData.value, 4); |
| 253 | carouselInfo.value.list = valueData; | 256 | carouselInfo.value.list = valueData; |
| 254 | carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never'; | 257 | carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never'; |
| ... | @@ -980,15 +983,15 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -980,15 +983,15 @@ const rejectDialogBtnClick = (btn, info) => { |
| 980 | <!-- <div class="list-content" v-if="demandListData.length > 0"> | 983 | <!-- <div class="list-content" v-if="demandListData.length > 0"> |
| 981 | 984 | ||
| 982 | </div> --> | 985 | </div> --> |
| 983 | <div class="v-tip"> | 986 | <!-- <div class="v-tip"> |
| 984 | <div class="tip-icon"></div> | 987 | <div class="tip-icon"></div> |
| 985 | <div class="tip-des"> | 988 | <div class="tip-des"> |
| 986 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 | 989 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 |
| 987 | </div> | 990 | </div> |
| 988 | </div> | 991 | </div> --> |
| 989 | </div> | 992 | </div> |
| 990 | <div class="table_panel_wrap" :style="{ | 993 | <div class="table_panel_wrap" :style="{ |
| 991 | height: demandListData.length > 0 ? 'calc(100% - 291px)' : 'calc(100% - 54px)' | 994 | height: 'calc(100% - 240px)' |
| 992 | }"> | 995 | }"> |
| 993 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" | 996 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" |
| 994 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> | 997 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> | ... | ... |
| ... | @@ -1971,10 +1971,10 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -1971,10 +1971,10 @@ const rejectDialogBtnClick = (btn, info) => { |
| 1971 | <span class="item_label">资产类型:</span> | 1971 | <span class="item_label">资产类型:</span> |
| 1972 | <span class="item_value">{{ flowDetail.damTypeName || '--' }}</span> | 1972 | <span class="item_value">{{ flowDetail.damTypeName || '--' }}</span> |
| 1973 | </div> | 1973 | </div> |
| 1974 | <div class="list_item" v-if="route.query.exchangeGuid"> | 1974 | <!-- <div class="list_item" v-if="route.query.exchangeGuid"> |
| 1975 | <span class="item_label">证书编号:</span> | 1975 | <span class="item_label">证书编号:</span> |
| 1976 | <span class="item_value">{{ flowDetail.damCode || '--' }}</span> | 1976 | <span class="item_value">{{ flowDetail.damCode || '--' }}</span> |
| 1977 | </div> | 1977 | </div> --> |
| 1978 | <div class="list_item" v-if="flowDetail.productCode"> | 1978 | <div class="list_item" v-if="flowDetail.productCode"> |
| 1979 | <span class="item_label">产品编号:</span> | 1979 | <span class="item_label">产品编号:</span> |
| 1980 | <span class="item_value">{{ flowDetail.productCode || '--' }}</span> | 1980 | <span class="item_value">{{ flowDetail.productCode || '--' }}</span> |
| ... | @@ -2005,10 +2005,10 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -2005,10 +2005,10 @@ const rejectDialogBtnClick = (btn, info) => { |
| 2005 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' | 2005 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' |
| 2006 | }}</span> | 2006 | }}</span> |
| 2007 | </div> | 2007 | </div> |
| 2008 | <div class="list_item" v-if="route.query.exchangeGuid"> | 2008 | <!-- <div class="list_item" v-if="route.query.exchangeGuid"> |
| 2009 | <span class="item_label">登记数交所:</span> | 2009 | <span class="item_label">登记数交所:</span> |
| 2010 | <span class="item_value">{{ flowDetail.exchangeName || '--' }}</span> | 2010 | <span class="item_value">{{ flowDetail.exchangeName || '--' }}</span> |
| 2011 | </div> | 2011 | </div> --> |
| 2012 | <div class="list_item is_block"> | 2012 | <div class="list_item is_block"> |
| 2013 | <span class="item_label">数据覆盖地域:</span> | 2013 | <span class="item_label">数据覆盖地域:</span> |
| 2014 | <span class="item_value" | 2014 | <span class="item_value" | ... | ... |
-
Please register or sign in to post a comment