产品只能在门户上架
Showing
5 changed files
with
81 additions
and
139 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`, | ... | ... |
| ... | @@ -22,7 +22,6 @@ import { | ... | @@ -22,7 +22,6 @@ import { |
| 22 | getRegisterCatalogTableList, | 22 | getRegisterCatalogTableList, |
| 23 | checkDamTableChange, | 23 | checkDamTableChange, |
| 24 | getTenantList, | 24 | getTenantList, |
| 25 | getRegisterCatalogProductList | ||
| 26 | } from "@/api/modules/dataAsset"; | 25 | } from "@/api/modules/dataAsset"; |
| 27 | import { | 26 | import { |
| 28 | getValidApi, | 27 | getValidApi, |
| ... | @@ -759,22 +758,6 @@ const addAssetTable = () => { | ... | @@ -759,22 +758,6 @@ const addAssetTable = () => { |
| 759 | } | 758 | } |
| 760 | 759 | ||
| 761 | onBeforeMount(() => { | 760 | onBeforeMount(() => { |
| 762 | // const currentTenantGuid = localStorage.getItem('currentTenantGuid'); | ||
| 763 | // getCurrentUserInfo({tenantGuid: currentTenantGuid}).then((res: any) => { | ||
| 764 | // console.log(res, 'getCurrentUserInfo'); | ||
| 765 | // if (res.code == '00000') { | ||
| 766 | // localStorage.setItem('userData', JSON.stringify(res.data)); | ||
| 767 | // } else { | ||
| 768 | // ElMessage.error(res.msg) | ||
| 769 | // } | ||
| 770 | // }) | ||
| 771 | // if (route.query.guid && route.query.foundMode == '2') { | ||
| 772 | // baseInfoFormItems.value[0].disabled = true; | ||
| 773 | // baseInfoFormItems.value[1].disabled = true; | ||
| 774 | // baseInfoFormItems.value[2].disabled = true; | ||
| 775 | // baseInfoFormItems.value[5].disabled = true; | ||
| 776 | // } | ||
| 777 | |||
| 778 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { | 761 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { |
| 779 | if (res?.code == proxy.$passCode) { | 762 | if (res?.code == proxy.$passCode) { |
| 780 | parentAreaData.value = res.data ?? []; | 763 | parentAreaData.value = res.data ?? []; |
| ... | @@ -884,22 +867,6 @@ onBeforeMount(() => { | ... | @@ -884,22 +867,6 @@ onBeforeMount(() => { |
| 884 | }) | 867 | }) |
| 885 | } | 868 | } |
| 886 | 869 | ||
| 887 | // getRegisterCatalogProductList().then((res: any) => { | ||
| 888 | // catalogProductList.value = []; | ||
| 889 | // if (res.code == proxy.$passCode) { | ||
| 890 | // catalogProductList.value = res.data || []; | ||
| 891 | // baseInfoFormItems.value[0].options = catalogProductList.value; | ||
| 892 | // if (detailInfo.value?.productCode) { | ||
| 893 | // let item = catalogProductList.value.find(c => c.productId == detailInfo.value?.productCode); | ||
| 894 | // if (!item) { | ||
| 895 | // baseInfoFormItems.value[0].default = detailInfo.value.damName; | ||
| 896 | // } | ||
| 897 | // } | ||
| 898 | // } else { | ||
| 899 | // proxy.$ElMessage.error(res.msg); | ||
| 900 | // } | ||
| 901 | // }) | ||
| 902 | |||
| 903 | getParamsList({ | 870 | getParamsList({ |
| 904 | dictType: "资产类型", | 871 | dictType: "资产类型", |
| 905 | }).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,21 +33,26 @@ const props = defineProps({ | ... | @@ -33,21 +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: 4 }, | 51 | // { label: "专区", value: 3 }, |
| 49 | // { label: "可信数据空间", value: 5 }, | 52 | // { label: "江苏专区", value: 4 }, |
| 50 | ]) | 53 | // // { label: "数据港", value: 5 }, |
| 54 | // ]) | ||
| 55 | |||
| 51 | const searchItemList = ref([ | 56 | const searchItemList = ref([ |
| 52 | { | 57 | { |
| 53 | type: "input", | 58 | type: "input", |
| ... | @@ -71,40 +76,40 @@ const searchItemList = ref([ | ... | @@ -71,40 +76,40 @@ const searchItemList = ref([ |
| 71 | label: 'label' | 76 | label: 'label' |
| 72 | } | 77 | } |
| 73 | }, | 78 | }, |
| 74 | { | 79 | // { |
| 75 | label: '所属主题', | 80 | // label: '所属主题', |
| 76 | type: 'tree-select', | 81 | // type: 'tree-select', |
| 77 | placeholder: '所属主题', | 82 | // placeholder: '所属主题', |
| 78 | field: 'subjectDomain', | 83 | // field: 'subjectDomain', |
| 79 | nodeKey: 'value', | 84 | // nodeKey: 'value', |
| 80 | options: subjectDomainListData.value, | 85 | // options: subjectDomainListData.value, |
| 81 | //showAllLevels: false, | 86 | // //showAllLevels: false, |
| 82 | checkStrictly: false,//只能选择叶子节点。 | 87 | // checkStrictly: false,//只能选择叶子节点。 |
| 83 | lazy: false, | 88 | // lazy: false, |
| 84 | multiple: true, | 89 | // multiple: true, |
| 85 | collapseTagsTooltip: true, | 90 | // collapseTagsTooltip: true, |
| 86 | collapseTags: true, | 91 | // collapseTags: true, |
| 87 | props: { | 92 | // props: { |
| 88 | label: "label", | 93 | // label: "label", |
| 89 | value: "value", | 94 | // value: "value", |
| 90 | }, | 95 | // }, |
| 91 | filterable: true, | 96 | // filterable: true, |
| 92 | clearable: true, | 97 | // clearable: true, |
| 93 | default: [], | 98 | // default: [], |
| 94 | showCheckbox: true | 99 | // showCheckbox: true |
| 95 | }, | 100 | // }, |
| 96 | { | 101 | { |
| 97 | type: "select", | 102 | type: "select", |
| 98 | label: "", | 103 | label: "", |
| 99 | field: "foundMode", | 104 | field: "rightMain", |
| 100 | default: "", | 105 | default: "", |
| 101 | placeholder: "产品来源", | 106 | placeholder: "权利主体", |
| 102 | clearable: true, | 107 | clearable: true, |
| 103 | filterable: true, | 108 | filterable: true, |
| 104 | options: damTypesOptions.value, | 109 | options: rightMainTenantList.value, |
| 105 | props: { | 110 | props: { |
| 106 | value: 'value', | 111 | value: 'right_main', |
| 107 | label: 'label' | 112 | label: 'right_main_name' |
| 108 | } | 113 | } |
| 109 | }, | 114 | }, |
| 110 | { | 115 | { |
| ... | @@ -132,8 +137,7 @@ const pageInfo = ref({ | ... | @@ -132,8 +137,7 @@ const pageInfo = ref({ |
| 132 | tenantGuid: "", | 137 | tenantGuid: "", |
| 133 | dataSources: "", | 138 | dataSources: "", |
| 134 | isRegister: "", | 139 | isRegister: "", |
| 135 | foundMode: "", | 140 | rightMain: '' |
| 136 | subjectDomain: [], | ||
| 137 | }); | 141 | }); |
| 138 | 142 | ||
| 139 | const listDataLoading = ref(false); | 143 | const listDataLoading = ref(false); |
| ... | @@ -143,16 +147,6 @@ const listData: any = ref([]); | ... | @@ -143,16 +147,6 @@ const listData: any = ref([]); |
| 143 | /** 记录点击省略号弹出菜单的visible */ | 147 | /** 记录点击省略号弹出菜单的visible */ |
| 144 | const cardBtnVisible: any = ref(false); | 148 | const cardBtnVisible: any = ref(false); |
| 145 | 149 | ||
| 146 | const getTableBtns = (row) => { | ||
| 147 | if (row.isRegister == 'Y' || row.foundMode == 2) { | ||
| 148 | return []; | ||
| 149 | } | ||
| 150 | let btnsArr: any[] = []; | ||
| 151 | btnsArr.push({ label: "编辑", value: "edit" }); | ||
| 152 | btnsArr.push({ label: "删除", value: "delete" }); | ||
| 153 | return btnsArr; | ||
| 154 | }; | ||
| 155 | |||
| 156 | const currTableData: any = ref({}); | 150 | const currTableData: any = ref({}); |
| 157 | 151 | ||
| 158 | const tableBtnClick = (scope, btn) => { | 152 | const tableBtnClick = (scope, btn) => { |
| ... | @@ -201,18 +195,17 @@ const handleDataClick = (item) => { | ... | @@ -201,18 +195,17 @@ const handleDataClick = (item) => { |
| 201 | } | 195 | } |
| 202 | }; | 196 | }; |
| 203 | 197 | ||
| 204 | const getTableData = () => { | 198 | const getTableData = (isPage = false) => { |
| 205 | listDataLoading.value = true; | 199 | listDataLoading.value = true; |
| 206 | getDamCatalogTable({ | 200 | getDamCatalogTable({ |
| 207 | pageSize: pageInfo.value.limit, | 201 | pageSize: pageInfo.value.limit, |
| 208 | pageIndex: pageInfo.value.curr, | 202 | pageIndex: pageInfo.value.curr, |
| 209 | damName: pageInfo.value.damName, | 203 | damName: pageInfo.value.damName, |
| 210 | damType: pageInfo.value.damType, | 204 | damType: pageInfo.value.damType, |
| 211 | subjectDomain: pageInfo.value.subjectDomain || [], | ||
| 212 | tenantGuid: pageInfo.value.tenantGuid, | 205 | tenantGuid: pageInfo.value.tenantGuid, |
| 213 | dataSources: props.dataSources, | 206 | dataSources: props.dataSources, |
| 214 | isRegister: pageInfo.value.isRegister, | 207 | isRegister: pageInfo.value.isRegister, |
| 215 | foundMode: pageInfo.value.foundMode, | 208 | rightMain: pageInfo.value.rightMain |
| 216 | }).then((res: any) => { | 209 | }).then((res: any) => { |
| 217 | listDataLoading.value = false; | 210 | listDataLoading.value = false; |
| 218 | if (res.code == proxy.$passCode) { | 211 | if (res.code == proxy.$passCode) { |
| ... | @@ -224,6 +217,19 @@ const getTableData = () => { | ... | @@ -224,6 +217,19 @@ const getTableData = () => { |
| 224 | } else { | 217 | } else { |
| 225 | proxy.$ElMessage.error(res.msg); | 218 | proxy.$ElMessage.error(res.msg); |
| 226 | } | 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 | } | ||
| 227 | }) | 233 | }) |
| 228 | }; | 234 | }; |
| 229 | 235 | ||
| ... | @@ -234,19 +240,17 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -234,19 +240,17 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 234 | searchItemList.value.map((item) => (item.default = "")); | 240 | searchItemList.value.map((item) => (item.default = "")); |
| 235 | pageInfo.value.damName = ""; | 241 | pageInfo.value.damName = ""; |
| 236 | pageInfo.value.damType = ""; | 242 | pageInfo.value.damType = ""; |
| 237 | pageInfo.value.subjectDomain = []; | ||
| 238 | pageInfo.value.tenantGuid = ""; | 243 | pageInfo.value.tenantGuid = ""; |
| 239 | pageInfo.value.isRegister = ""; | 244 | pageInfo.value.isRegister = ""; |
| 245 | pageInfo.value.rightMain = ''; | ||
| 240 | // pageInfo.value.dataSources = ""; | 246 | // pageInfo.value.dataSources = ""; |
| 241 | pageInfo.value.foundMode = ""; | ||
| 242 | } else { | 247 | } else { |
| 243 | pageInfo.value.damName = val.damName; | 248 | pageInfo.value.damName = val.damName; |
| 244 | pageInfo.value.damType = val.damType; | 249 | pageInfo.value.damType = val.damType; |
| 245 | pageInfo.value.subjectDomain = val.subjectDomain; | ||
| 246 | pageInfo.value.tenantGuid = val.tenantGuid; | 250 | pageInfo.value.tenantGuid = val.tenantGuid; |
| 247 | pageInfo.value.isRegister = val.isRegister; | 251 | pageInfo.value.isRegister = val.isRegister; |
| 252 | pageInfo.value.rightMain = val.rightMain; | ||
| 248 | // pageInfo.value.dataSources = val.dataSources; | 253 | // pageInfo.value.dataSources = val.dataSources; |
| 249 | pageInfo.value.foundMode = val.foundMode; | ||
| 250 | } | 254 | } |
| 251 | getTableData(); | 255 | getTableData(); |
| 252 | }; | 256 | }; |
| ... | @@ -254,7 +258,7 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -254,7 +258,7 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 254 | const pageChange = (info) => { | 258 | const pageChange = (info) => { |
| 255 | pageInfo.value.curr = Number(info.curr); | 259 | pageInfo.value.curr = Number(info.curr); |
| 256 | pageInfo.value.limit = Number(info.limit); | 260 | pageInfo.value.limit = Number(info.limit); |
| 257 | getTableData(); | 261 | getTableData(true); |
| 258 | }; | 262 | }; |
| 259 | 263 | ||
| 260 | onActivated(() => { | 264 | onActivated(() => { |
| ... | @@ -268,18 +272,6 @@ onActivated(() => { | ... | @@ -268,18 +272,6 @@ onActivated(() => { |
| 268 | 272 | ||
| 269 | onBeforeMount(() => { | 273 | onBeforeMount(() => { |
| 270 | getDamTypesList({ | 274 | getDamTypesList({ |
| 271 | dictType: "数据来源", | ||
| 272 | }).then((res: any) => { | ||
| 273 | if (res.code == proxy.$passCode) { | ||
| 274 | dataSources.value = res.data || []; | ||
| 275 | let item = searchItemList.value.find(item => item.field == 'dataSources'); | ||
| 276 | item && (item.options = dataSources.value); | ||
| 277 | } else { | ||
| 278 | proxy.$ElMessage.error(res.msg); | ||
| 279 | } | ||
| 280 | }) | ||
| 281 | |||
| 282 | getDamTypesList({ | ||
| 283 | dictType: "资产类型", | 275 | dictType: "资产类型", |
| 284 | }).then((res: any) => { | 276 | }).then((res: any) => { |
| 285 | if (res.code == proxy.$passCode) { | 277 | if (res.code == proxy.$passCode) { |
| ... | @@ -290,30 +282,7 @@ onBeforeMount(() => { | ... | @@ -290,30 +282,7 @@ onBeforeMount(() => { |
| 290 | proxy.$ElMessage.error(res.msg); | 282 | proxy.$ElMessage.error(res.msg); |
| 291 | } | 283 | } |
| 292 | }) | 284 | }) |
| 293 | getParamsList({ | ||
| 294 | dictType: "数据资产目录主题名称", | ||
| 295 | }).then((res: any) => { | ||
| 296 | if (res.code == proxy.$passCode) { | ||
| 297 | subjectDomainListData.value = replaceChildDictListKey(res.data) || []; | ||
| 298 | let item = searchItemList.value.find(item => item.field == 'subjectDomain'); | ||
| 299 | item && (item.options = subjectDomainListData.value); | ||
| 300 | } else { | ||
| 301 | proxy.$ElMessage.error(res.msg); | ||
| 302 | } | ||
| 303 | }) | ||
| 304 | }); | 285 | }); |
| 305 | function replaceChildDictListKey(data) { | ||
| 306 | if (Array.isArray(data)) { | ||
| 307 | return data.map(item => replaceChildDictListKey(item)); | ||
| 308 | } else if (data && typeof data === 'object') { | ||
| 309 | const { childDictList, ...rest } = data; | ||
| 310 | return { | ||
| 311 | ...rest, | ||
| 312 | children: childDictList ? replaceChildDictListKey(childDictList) : undefined, | ||
| 313 | }; | ||
| 314 | } | ||
| 315 | return data; | ||
| 316 | } | ||
| 317 | 286 | ||
| 318 | const handleCreate = () => { | 287 | const handleCreate = () => { |
| 319 | router.push({ | 288 | router.push({ |
| ... | @@ -455,12 +424,13 @@ const handleUploadClose = (itemGuid) => { | ... | @@ -455,12 +424,13 @@ const handleUploadClose = (itemGuid) => { |
| 455 | </div> | 424 | </div> |
| 456 | <div class="v-middle"> | 425 | <div class="v-middle"> |
| 457 | <div class="mid-content"> | 426 | <div class="mid-content"> |
| 458 | <div class="left">登记主体</div> | 427 | <div class="left">权利主体</div> |
| 459 | <div class="right">{{ item.rightMainName || '--' }}</div> | 428 | <div class="right">{{ item.rightMainName || '--' }}</div> |
| 460 | </div> | 429 | </div> |
| 461 | <div class="mid-content"> | 430 | <div class="mid-content"> |
| 462 | <div class="left">产品来源</div> | 431 | <div class="left">产品来源</div> |
| 463 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : (item.foundMode == 2 ? '加工交付' : (item.foundMode == 4 ? '江苏专区' : (item.foundMode == 5 ? '可信数据空间' : '专区')))) : '--' | 432 | <!-- TODO,要改成连接器名称 --> |
| 433 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : (item.foundMode == 2 ? '加工交付' : (item.foundMode == 4 ? '江苏专区' : (item.foundMode == 5 ? '数据港' : '专区')))) : '--' | ||
| 464 | }}</div> | 434 | }}</div> |
| 465 | </div> | 435 | </div> |
| 466 | <div class="mid-content"> | 436 | <div class="mid-content"> |
| ... | @@ -469,6 +439,7 @@ const handleUploadClose = (itemGuid) => { | ... | @@ -469,6 +439,7 @@ const handleUploadClose = (itemGuid) => { |
| 469 | </div> | 439 | </div> |
| 470 | </div> | 440 | </div> |
| 471 | <div class="v-bottom"> | 441 | <div class="v-bottom"> |
| 442 | <!-- TODO,只有数据交付之后才可以编辑和删除 --> | ||
| 472 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2 || item.foundMode == 4 || item.foundMode == 5)" | 443 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2 || item.foundMode == 4 || item.foundMode == 5)" |
| 473 | @click.stop="tableBtnClick(item, 'delete')">删除</el-button> | 444 | @click.stop="tableBtnClick(item, 'delete')">删除</el-button> |
| 474 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 4)" @click.stop="handleDataClick(item)">编辑</el-button> | 445 | <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 4)" @click.stop="handleDataClick(item)">编辑</el-button> |
| ... | @@ -477,10 +448,6 @@ const handleUploadClose = (itemGuid) => { | ... | @@ -477,10 +448,6 @@ const handleUploadClose = (itemGuid) => { |
| 477 | </div> | 448 | </div> |
| 478 | </div> | 449 | </div> |
| 479 | </div> | 450 | </div> |
| 480 | <!-- <div v-if="listData.length" class="card-noData"> | ||
| 481 | <img src="../../assets/images/no-data.png" :style="{ width: '96px', height: '96px' }" /> | ||
| 482 | <span>暂无数据资源目录</span> | ||
| 483 | </div> --> | ||
| 484 | </div> | 451 | </div> |
| 485 | 452 | ||
| 486 | </div> | 453 | </div> | ... | ... |
| ... | @@ -93,7 +93,7 @@ const tableInfo = ref({ | ... | @@ -93,7 +93,7 @@ const tableInfo = ref({ |
| 93 | fields: [ | 93 | fields: [ |
| 94 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, | 94 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, |
| 95 | { label: "数据产品编号", field: "productCode", width: 154 }, | 95 | { label: "数据产品编号", field: "productCode", width: 154 }, |
| 96 | { label: "数据证书编号", field: "damCode", width: 154 }, | 96 | // { label: "数据证书编号", field: "damCode", width: 154 }, |
| 97 | { label: "数据产品名称", field: "damName", width: 180 }, | 97 | { label: "数据产品名称", field: "damName", width: 180 }, |
| 98 | { | 98 | { |
| 99 | label: "产品类型", field: "damTypeName", width: 100 | 99 | label: "产品类型", field: "damTypeName", width: 100 |
| ... | @@ -103,7 +103,7 @@ const tableInfo = ref({ | ... | @@ -103,7 +103,7 @@ const tableInfo = ref({ |
| 103 | return scope.row.isPublicData == 'Y' ? '是' : '否'; | 103 | return scope.row.isPublicData == 'Y' ? '是' : '否'; |
| 104 | } | 104 | } |
| 105 | }, | 105 | }, |
| 106 | { label: "上架分类", field: "exchangeName", width: 140 }, | 106 | // { label: "上架分类", field: "exchangeName", width: 140 }, |
| 107 | { | 107 | { |
| 108 | label: "审批状态", field: "approveVO", type: "approveTag", width: TableColumnWidth.STATE, align: 'center' | 108 | label: "审批状态", field: "approveVO", type: "approveTag", width: TableColumnWidth.STATE, align: 'center' |
| 109 | }, | 109 | }, |
| ... | @@ -246,6 +246,9 @@ const getListingCountData = () => { | ... | @@ -246,6 +246,9 @@ const getListingCountData = () => { |
| 246 | flowDetailLoading.value = false; | 246 | flowDetailLoading.value = false; |
| 247 | if (res.code == proxy.$passCode) { | 247 | if (res.code == proxy.$passCode) { |
| 248 | demandListData.value = res.data || []; | 248 | demandListData.value = res.data || []; |
| 249 | if (demandListData.value?.length) { | ||
| 250 | demandListData.value = [demandListData.value[0]]; | ||
| 251 | } | ||
| 249 | let valueData = chunk(demandListData.value, 4); | 252 | let valueData = chunk(demandListData.value, 4); |
| 250 | carouselInfo.value.list = valueData; | 253 | carouselInfo.value.list = valueData; |
| 251 | carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never'; | 254 | carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never'; |
| ... | @@ -969,15 +972,15 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -969,15 +972,15 @@ const rejectDialogBtnClick = (btn, info) => { |
| 969 | <!-- <div class="list-content" v-if="demandListData.length > 0"> | 972 | <!-- <div class="list-content" v-if="demandListData.length > 0"> |
| 970 | 973 | ||
| 971 | </div> --> | 974 | </div> --> |
| 972 | <div class="v-tip"> | 975 | <!-- <div class="v-tip"> |
| 973 | <div class="tip-icon"></div> | 976 | <div class="tip-icon"></div> |
| 974 | <div class="tip-des"> | 977 | <div class="tip-des"> |
| 975 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 | 978 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 |
| 976 | </div> | 979 | </div> |
| 977 | </div> | 980 | </div> --> |
| 978 | </div> | 981 | </div> |
| 979 | <div class="table_panel_wrap" :style="{ | 982 | <div class="table_panel_wrap" :style="{ |
| 980 | height: demandListData.length > 0 ? 'calc(100% - 291px)' : 'calc(100% - 54px)' | 983 | height: 'calc(100% - 240px)' |
| 981 | }"> | 984 | }"> |
| 982 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" | 985 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" |
| 983 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> | 986 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> | ... | ... |
| ... | @@ -1929,10 +1929,10 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -1929,10 +1929,10 @@ const rejectDialogBtnClick = (btn, info) => { |
| 1929 | <span class="item_label">资产类型:</span> | 1929 | <span class="item_label">资产类型:</span> |
| 1930 | <span class="item_value">{{ flowDetail.damTypeName || '--' }}</span> | 1930 | <span class="item_value">{{ flowDetail.damTypeName || '--' }}</span> |
| 1931 | </div> | 1931 | </div> |
| 1932 | <div class="list_item" v-if="route.query.exchangeGuid"> | 1932 | <!-- <div class="list_item" v-if="route.query.exchangeGuid"> |
| 1933 | <span class="item_label">证书编号:</span> | 1933 | <span class="item_label">证书编号:</span> |
| 1934 | <span class="item_value">{{ flowDetail.damCode || '--' }}</span> | 1934 | <span class="item_value">{{ flowDetail.damCode || '--' }}</span> |
| 1935 | </div> | 1935 | </div> --> |
| 1936 | <div class="list_item" v-if="flowDetail.productCode"> | 1936 | <div class="list_item" v-if="flowDetail.productCode"> |
| 1937 | <span class="item_label">产品编号:</span> | 1937 | <span class="item_label">产品编号:</span> |
| 1938 | <span class="item_value">{{ flowDetail.productCode || '--' }}</span> | 1938 | <span class="item_value">{{ flowDetail.productCode || '--' }}</span> |
| ... | @@ -1963,10 +1963,10 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -1963,10 +1963,10 @@ const rejectDialogBtnClick = (btn, info) => { |
| 1963 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' | 1963 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' |
| 1964 | }}</span> | 1964 | }}</span> |
| 1965 | </div> | 1965 | </div> |
| 1966 | <div class="list_item" v-if="route.query.exchangeGuid"> | 1966 | <!-- <div class="list_item" v-if="route.query.exchangeGuid"> |
| 1967 | <span class="item_label">登记数交所:</span> | 1967 | <span class="item_label">登记数交所:</span> |
| 1968 | <span class="item_value">{{ flowDetail.exchangeName || '--' }}</span> | 1968 | <span class="item_value">{{ flowDetail.exchangeName || '--' }}</span> |
| 1969 | </div> | 1969 | </div> --> |
| 1970 | <div class="list_item is_block"> | 1970 | <div class="list_item is_block"> |
| 1971 | <span class="item_label">数据覆盖地域:</span> | 1971 | <span class="item_label">数据覆盖地域:</span> |
| 1972 | <span class="item_value" | 1972 | <span class="item_value" | ... | ... |
-
Please register or sign in to post a comment