ec4b80df by xukangle

数据产品上架

1 parent 6a8718db
......@@ -61,6 +61,13 @@ export const listingUpdate = (params) => request({
data: params
});
/**门户更新 */
export const listingUpdateGateway = (params) => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/update-gateway`,
method: 'post',
data: params
});
/** 删除数据产品上架信息 */
export const listingDelete = (params) => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`,
......
......@@ -123,6 +123,14 @@ const tableInfo = ref({
if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) {
isShowCancel = true;
}
if (approveState === 'Y') {
if (row.listingStatus === 'Y') {
list.push({ label: "下架", value: "down" });
}
if (row.listingStatus === 'N') {
list.push({ label: "上架", value: "up" });
}
}
if (flowState === 1) {
list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }]
}
......@@ -141,14 +149,7 @@ const tableInfo = ref({
if (flowState !== 1) {
list.push({ label: "详情", value: "detail" })
}
if (approveState === 'Y') {
if (row.listingStatus === 'Y') {
list.push({ label: "下架", value: "down" });
}
if (row.listingStatus === 'N') {
list.push({ label: "上架", value: "up" });
}
}
return list
},
}
......@@ -259,17 +260,21 @@ const tableBtnClick = (scope, btn) => {
currTableData.value = row;
if (type == "detail") {
router.push({
name: 'dataResourceUpDetail',
name: 'productListingDetail',
query: {
guid: row.guid,
type: 'detail'
}
});
}
if (type == "edit" || type == "redit") {
router.push({
name: 'dataResourceUpEdit',
name: 'productListingDetail',
query: {
guid: row.guid,
type: type == 'edit' ? 'edit' : 'redit',
case: '2',
name: row.damName
}
});
}
......@@ -391,7 +396,8 @@ const toPatn = (type) => {
name: "productListingDetail",
query: {
type,
groundingPick: '门户数据专区'
groundingPick: '门户数据专区',
case: '2',
},
});
} else {
......@@ -495,6 +501,7 @@ const demandListData: any = ref([
{ companyName: '苏数所', listedNum: 16, processNum: 1235 },
]);
const btnClick = (btn) => {
console.log(btn)
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!