From cc95a7e2953477ed75c9602b0f0ce7ff4c1846b3 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Mon, 13 Jul 2020 12:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E8=B5=84=E6=BA=90+=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/infoList.vue | 2 +- src/pages/user/order/order_detail.vue | 14 ++++++++++---- src/pages/workbench/fwgl/cloud-detail.vue | 22 ++-------------------- src/request/api/user.js | 2 +- 4 files changed, 14 insertions(+), 26 deletions(-) diff --git a/src/components/infoList.vue b/src/components/infoList.vue index 95d6641..9d9f391 100644 --- a/src/components/infoList.vue +++ b/src/components/infoList.vue @@ -12,7 +12,7 @@ 下载文件 diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue index fdfd177..246b2ae 100644 --- a/src/pages/user/order/order_detail.vue +++ b/src/pages/user/order/order_detail.vue @@ -80,7 +80,7 @@ @click="nextApply" >再次申请 取消申请 @@ -121,7 +121,7 @@
- {{ orderDetail.namespace }}(云资源申请) + {{ orderDetail.namespace }}({{ orderDetail.workplace }})
@@ -382,7 +382,10 @@ export default { .then(response => { if (response.data.success == 1) { this.orderDetail = response.data.data; - this.data = JSON.parse(this.orderDetail.res_fields); + if (this.orderDetail.res_fields != "") { + this.data = JSON.parse(this.orderDetail.res_fields); + } + console.log(this.data); this.getOrderUser(); this.getOrderApproval(); } else { @@ -407,7 +410,10 @@ export default { }, getOrderApproval() { this.$api.user - .getOrderApproval({ apply_id: this.orderDetail.apply_id }) + .getOrderApproval({ + apply_id: this.orderDetail.apply_id, + kind: this.orderDetail.order_type + }) .then(response => { if (response.data.success == 1) { let data = response.data.data; diff --git a/src/pages/workbench/fwgl/cloud-detail.vue b/src/pages/workbench/fwgl/cloud-detail.vue index e496e5a..3c8e234 100644 --- a/src/pages/workbench/fwgl/cloud-detail.vue +++ b/src/pages/workbench/fwgl/cloud-detail.vue @@ -243,7 +243,7 @@ 提交资源申请 { - if (response.data.success == 1) { - this.$message({ - message: "分配成功", - type: "success" - }); - this.$router.push(this.getUrl()); - } else { - this.$message({ - message: "分配失败", - type: "error" - }); - } - }); + this.$refs.allotConfirm.getDetail(this.apply_id); }, refuse() { let query = { @@ -602,9 +587,6 @@ export default { } }); }, - submit() { - this.$refs.allotConfirm.getDetail(this.apply_id); - }, clickTab() {}, // 根据列表参数来判断显示什么 setListWithRole() { diff --git a/src/request/api/user.js b/src/request/api/user.js index c052065..5d96bd2 100644 --- a/src/request/api/user.js +++ b/src/request/api/user.js @@ -32,7 +32,7 @@ const user = { return axios.get(`/apaas/serviceapp/v3/order/applyInfo?order_id=${params.order_id}`); }, getOrderApproval(params) { - return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}`); + return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}&kind=${params.kind}`); }, cancelOrder(params) { return axios.get(`/order/cancel?order_id=${params.order_id}`); -- 2.26.0