ec4b80df by xukangle

数据产品上架

1 parent 6a8718db
...@@ -61,6 +61,13 @@ export const listingUpdate = (params) => request({ ...@@ -61,6 +61,13 @@ export const listingUpdate = (params) => request({
61 data: params 61 data: params
62 }); 62 });
63 63
64 /**门户更新 */
65 export const listingUpdateGateway = (params) => request({
66 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/update-gateway`,
67 method: 'post',
68 data: params
69 });
70
64 /** 删除数据产品上架信息 */ 71 /** 删除数据产品上架信息 */
65 export const listingDelete = (params) => request({ 72 export const listingDelete = (params) => request({
66 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`, 73 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`,
......
...@@ -123,6 +123,14 @@ const tableInfo = ref({ ...@@ -123,6 +123,14 @@ const tableInfo = ref({
123 if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) { 123 if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) {
124 isShowCancel = true; 124 isShowCancel = true;
125 } 125 }
126 if (approveState === 'Y') {
127 if (row.listingStatus === 'Y') {
128 list.push({ label: "下架", value: "down" });
129 }
130 if (row.listingStatus === 'N') {
131 list.push({ label: "上架", value: "up" });
132 }
133 }
126 if (flowState === 1) { 134 if (flowState === 1) {
127 list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }] 135 list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }]
128 } 136 }
...@@ -141,14 +149,7 @@ const tableInfo = ref({ ...@@ -141,14 +149,7 @@ const tableInfo = ref({
141 if (flowState !== 1) { 149 if (flowState !== 1) {
142 list.push({ label: "详情", value: "detail" }) 150 list.push({ label: "详情", value: "detail" })
143 } 151 }
144 if (approveState === 'Y') { 152
145 if (row.listingStatus === 'Y') {
146 list.push({ label: "下架", value: "down" });
147 }
148 if (row.listingStatus === 'N') {
149 list.push({ label: "上架", value: "up" });
150 }
151 }
152 return list 153 return list
153 }, 154 },
154 } 155 }
...@@ -259,17 +260,21 @@ const tableBtnClick = (scope, btn) => { ...@@ -259,17 +260,21 @@ const tableBtnClick = (scope, btn) => {
259 currTableData.value = row; 260 currTableData.value = row;
260 if (type == "detail") { 261 if (type == "detail") {
261 router.push({ 262 router.push({
262 name: 'dataResourceUpDetail', 263 name: 'productListingDetail',
263 query: { 264 query: {
264 guid: row.guid, 265 guid: row.guid,
266 type: 'detail'
265 } 267 }
266 }); 268 });
267 } 269 }
268 if (type == "edit" || type == "redit") { 270 if (type == "edit" || type == "redit") {
269 router.push({ 271 router.push({
270 name: 'dataResourceUpEdit', 272 name: 'productListingDetail',
271 query: { 273 query: {
272 guid: row.guid, 274 guid: row.guid,
275 type: type == 'edit' ? 'edit' : 'redit',
276 case: '2',
277 name: row.damName
273 } 278 }
274 }); 279 });
275 } 280 }
...@@ -391,7 +396,8 @@ const toPatn = (type) => { ...@@ -391,7 +396,8 @@ const toPatn = (type) => {
391 name: "productListingDetail", 396 name: "productListingDetail",
392 query: { 397 query: {
393 type, 398 type,
394 groundingPick: '门户数据专区' 399 groundingPick: '门户数据专区',
400 case: '2',
395 }, 401 },
396 }); 402 });
397 } else { 403 } else {
...@@ -495,6 +501,7 @@ const demandListData: any = ref([ ...@@ -495,6 +501,7 @@ const demandListData: any = ref([
495 { companyName: '苏数所', listedNum: 16, processNum: 1235 }, 501 { companyName: '苏数所', listedNum: 16, processNum: 1235 },
496 ]); 502 ]);
497 const btnClick = (btn) => { 503 const btnClick = (btn) => {
504 console.log(btn)
498 } 505 }
499 506
500 507
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!