diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index de3968d1b5c86469e27093379478b71350dd3c34..92a51d8d5e232f7a1fa6e0584542dcac1fe51de2 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -3,6 +3,7 @@ @@ -82,7 +80,7 @@ export default { .in_analysis { padding: 0 10px 10px; height: 100%; - min-width: 1000px; + min-width: 1700px; } .in_l { } @@ -91,7 +89,7 @@ export default { .in_c { } .in_block { - height: 300px; + height: 280px; padding: 10px; } .block { diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue index 97858c6d60f18954fe75fe78a7641075a9c48679..469a6dfd16f064e25ee89ac69129bf2201afde5c 100644 --- a/src/pages/user/order/order_detail.vue +++ b/src/pages/user/order/order_detail.vue @@ -75,10 +75,15 @@ @click="showMsgBox = false" >收起评价 再次申请 + 取消申请
{{ orderDetail.order_type == 1 ? "服务" : "应用"}}信息
@@ -353,6 +358,24 @@ export default { path: "/shop/shop_car_apply", query: query }); + }, + cancelDetail() { + this.$api.user + .cancelOrder({ order_id: this.orderDetail.order_id }) + .then(response => { + if (response.data.success == 1) { + this.$message({ + message: "取消订单成功", + type: "success" + }); + this.$router.push({ name: "orderList" }); + } else { + this.$message({ + message: "取消订单失败", + type: "error" + }); + } + }); } } }; diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index 9ac636666e8e13619d08fbdf8af0b8e0cebb42ee..a1097636d189457bd99c5f15bcf325d9ec7e4969 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -403,7 +403,10 @@ export default { input.select(); if (document.execCommand("copy")) { document.execCommand("copy"); - console.log("复制成功"); + this.$message({ + message: "复制成功", + type: "success" + }); } document.body.removeChild(input); }, diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 1f23dd7fb0daa7109335973cb143fdf3f0ccb661..3ca57dc055ec39f82a51d304631af84d1d7f7f29 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -614,13 +614,13 @@ export default { let bodys = ""; let contentType = ""; if (this.activeBtn == 0) { - bodys = this.$refs.jsonCodes.getCodesVal(); + bodys = this.$refs.jsonCodes ? this.$refs.jsonCodes.getCodesVal() : ""; contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { if (this.activeZh == 1) { contentType = this.zhfwQqt; if (this.zhfwQqt == "JSON") { - bodys = this.$refs.zhfwJsonCodes.getCodesVal(); + bodys = this.$refs.zhfwJsonCodes ? this.$refs.zhfwJsonCodes.getCodesVal() : ""; } else if (this.zhfwQqt == "form-data") { let request = this.$refs.fwcs_zhfw_qq_form.getTableData().concat(); request.pop(); @@ -732,11 +732,11 @@ export default { if (this.cover.length != 0) { let contentType = ""; if (this.activeBtn == 0) { - bodys = this.$refs.jsonCodes.getCodesVal(); contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { if (this.activeZh == 1) { contentType = this.zhfwQqt; + } } let query = { diff --git a/src/request/api/user.js b/src/request/api/user.js index 225229219ee0be4eb281343ed9c96ed88b4f4ad4..c052065c5a7976fa0be5b0ce83beabb5b2eb6e80 100644 --- a/src/request/api/user.js +++ b/src/request/api/user.js @@ -34,7 +34,9 @@ const user = { getOrderApproval(params) { return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}`); }, - + cancelOrder(params) { + return axios.get(`/order/cancel?order_id=${params.order_id}`); + }, // user info getNowUser() {