|
|
@@ -94,11 +94,9 @@ Page({ |
|
|
|
that.productReleasePost(item); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 上架/下架需求 Fn |
|
|
|
productReleasePost(item) { |
|
|
|
wx.showLoading({ |
|
|
|
title: '加载中', |
|
|
|
mask:true |
|
|
|
}) |
|
|
|
this.showLoading(); |
|
|
|
let { businessCommunicationDemandId, state } = item; |
|
|
|
$request.post(`/businessCommunicationDemand/outDemand.action`, |
|
|
|
{ businessCommunicationDemandId, state } |
|
|
@@ -141,12 +139,10 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 删除需求 Fn |
|
|
|
productDelPost(item) { |
|
|
|
let { businessCommunicationDemandId } = item; |
|
|
|
wx.showLoading({ |
|
|
|
title: '加载中', |
|
|
|
mask:true |
|
|
|
}) |
|
|
|
this.showLoading(); |
|
|
|
$request.post(`/businessCommunicationDemand/deleteDemand.action`, |
|
|
|
{ businessCommunicationDemandId } |
|
|
|
).then(res => { |
|
|
@@ -172,6 +168,13 @@ Page({ |
|
|
|
wx.hideLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 数据加载提示 |
|
|
|
showLoading(title) { |
|
|
|
wx.showLoading({ |
|
|
|
title: title ? title : '加载中', |
|
|
|
mask: true |
|
|
|
}) |
|
|
|
}, |
|
|
|
getListData() { |
|
|
|
let { page, size, customerId, keyword, currentTab } = this.data; |
|
|
|
$request.get('/businessCommunicationDemand/getDemandByStateAndCustomerId.action', |