diff --git a/src/components/menu.vue b/src/components/menu.vue index 4cb40cdbef2cb41626ea693a7ea7096fb3d43ce6..817232a9ed191484491d56220514daffbf6955ff 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -400,6 +400,7 @@ export default { font-size: 14px; display: none; z-index: 1; + text-align: center; } .shop_menu { width: 280px; @@ -435,7 +436,7 @@ export default { height: 44px; line-height: 44px; padding: 0 30px; - text-align: left; + text-align: center; color: #0d1847; } .user_menu div:hover { diff --git a/src/components/new-com/apassTable.vue b/src/components/new-com/apassTable.vue index f027bb7b853924c5a855251b7425e5d4d72383ff..2d3378864e7127383136b4307249d4111f38163e 100644 --- a/src/components/new-com/apassTable.vue +++ b/src/components/new-com/apassTable.vue @@ -246,6 +246,11 @@ export default { { length: this.data.length }, (item, index) => (item = 0) ); + let self = this; + window.gotodetail = (val) => { + console.log(val) + self.$emit("gotodetail", val) + } }, methods: { toggleSelection(rows) { @@ -348,6 +353,10 @@ export default { this.$refs.multipleTable.clearSelection(); this.$emit("selectnum", { select: [], rows: [] }); }, + gotodetail(val) { + console.log(val) + this.$emit("gotodetail", val) + } }, }; diff --git a/src/components/service-info/service-info.vue b/src/components/service-info/service-info.vue index 0c95d4a5ef04095202f36398134a8ab4b271f9e5..5ee4b8a5c7c6252b8569094a51706bf6225923b0 100644 --- a/src/components/service-info/service-info.vue +++ b/src/components/service-info/service-info.vue @@ -82,8 +82,9 @@ 计次收费规格: 暂无时长收费规格: 暂无 ({ types: [], - type: 0, // 购买方式 1:按月,2:按年 + type: 1, // 购买方式 1:按月,2:按年 specification: {}, // 规格 duration: 1, // 时长 showTime: false, @@ -193,7 +195,13 @@ export default { computed: { actionDisabled() { let a = this.data.serviceRequestSpcs; - return a.spcs_type_1.length == 0 && a.spcs_type_2.length == 0; + return ( + a && + a.spcs_type_1 && + a.spcs_type_1.length == 0 && + a.spcs_type_2 && + a.spcs_type_2.length == 0 + ); }, }, watch: {}, @@ -250,6 +258,7 @@ export default { query: { service_id: parseFloat(this.data.service_id), spec_id: this.specification.id, + spcs_type: this.specification.spcs_type, duration: this.duration, duration_unit: this.type, }, @@ -294,9 +303,17 @@ export default { } // 初始化规格 - if (this.data.serviceRequestSpcs.spcs_type_1.length > 0) { + if ( + this.data.serviceRequestSpcs && + this.data.serviceRequestSpcs.spcs_type_1 && + this.data.serviceRequestSpcs.spcs_type_1.length > 0 + ) { this.specification = this.data.serviceRequestSpcs.spcs_type_1[0]; - } else if (this.data.serviceRequestSpcs.spcs_type_2.length > 0) { + } else if ( + this.data.serviceRequestSpcs && + this.data.serviceRequestSpcs.spcs_type_2 && + this.data.serviceRequestSpcs.spcs_type_2.length > 0 + ) { this.specification = this.data.serviceRequestSpcs.spcs_type_2[0]; } }, diff --git a/src/components/shop-cloud/shop-cloud.vue b/src/components/shop-cloud/shop-cloud.vue index f5943b86b194ed99bb3c487f77aebcfed9c94a2d..2cb6c83df710a010a81fb0e5d4994d8e3ac25a66 100644 --- a/src/components/shop-cloud/shop-cloud.vue +++ b/src/components/shop-cloud/shop-cloud.vue @@ -639,7 +639,7 @@
{{ item.answer }}
-+
{{ item.title }}
- {{ item.content.replace(/<[^<>]+>/g, "") }} + {{ + item.answer + ? item.question_content.replace(/<[^<>]+>/g, "") + : item.content.replace(/<[^<>]+>/g, "") + }}
@@ -189,21 +196,7 @@ export default { label: "50", }, ], - data_list: [ - { - id: 1, - title: "平台的流程引擎怎么样", // 标题 - content: "我们想用流程引擎,不会用,求大神指点", // 内容 - created_by: "abc", // 发布人的userid - created: "2020-10-21T14:28:10+08:00", // 发布时间 - updated: "2020-10-21T14:28:10+08:00", // 更新时间 - view: 0, // 浏览量 - answer_num: 2, // 回答数, - user_name: "普通neo", // 发布人 - picture_path: - "/apaas/static/docs/image/image/blob_18f512d3-ee8f-4112-89a9-b2e7bfdfdec1.blob", // 头像 - }, - ], + data_list: [], user_info: { user_name: "", role: "", @@ -218,6 +211,12 @@ export default { watch: { activeName: { handler(val) { + this.data_list = []; + this.total = 0; + this.pagination = { + rowsPerPage: 10, + page: 1, + }; if (val == "0") { this.getQList(); } else if (val == "1") { @@ -239,7 +238,13 @@ export default { this.refreshData(); }, refreshData() { - this.$emit("refresh", this.pagination); + if (this.activeName == "0") { + this.getQList(); + } else if (this.activeName == "1") { + this.getAList(); + } else if (this.activeName == "2") { + this.getDeleteList(); + } }, pageResize() { let listWidth = this.$refs.commodityCardIn.clientWidth; @@ -304,6 +309,9 @@ export default { } }); }, + gotodeta(val) { + this.$router.push("/technical_support/answer_center/detail/" + val); + }, cancelDel() { this.diaDelItem = false; }, @@ -315,10 +323,9 @@ export default { } }, delQ() { - let query = { - items: [{ id: this.delItem.id }], - }; - this.$api.user.delQuestions(query).then((response) => { + let items = [{ id: this.delItem.id }]; + console.log(items); + this.$api.user.delQuestions(items).then((response) => { if (response.data.success == 1) { this.$message({ message: "删除成功", @@ -328,10 +335,8 @@ export default { }); }, delA() { - let query = { - items: [{ id: this.delItem.id }], - }; - this.$api.user.delAnswers(query).then((response) => { + let items = [{ id: this.delItem.id }]; + this.$api.user.delAnswers(items).then((response) => { if (response.data.success == 1) { this.$message({ message: "删除成功", @@ -343,7 +348,7 @@ export default { }, mounted() { this.getUserQA(); - // this.getQList(); + this.getQList(); }, }; diff --git a/src/pages/workbench/fwgl/cloud-detail.vue b/src/pages/workbench/fwgl/cloud-detail.vue index 997d8140bfc278dca2de496d91d674829d16fcaf..e4d9db389ddeea38ab42205a0651169a2bb96f26 100644 --- a/src/pages/workbench/fwgl/cloud-detail.vue +++ b/src/pages/workbench/fwgl/cloud-detail.vue @@ -342,6 +342,10 @@ export default { title: "剩余使用天数:", info: "1000天", }, + { + title: "支付总价:", + info: "0 金币", + }, { title: "到期时间:", info: "2020-06-02 15:54:21", @@ -698,7 +702,8 @@ export default { this.list_arr[3].url = data.apply_file; // application file url this.list_arr[6].info = data.bgn_time; // get time this.list_arr[7].info = data.time_remaining; // remaining days - this.list_arr[8].info = data.end_time; // maturity time + this.list_arr[8].info = data.amounts_payable; + this.list_arr[9].info = data.end_time; // maturity time this.list_arr_my[0].info = data.first_level_time || "暂未提交"; // submit application time this.list_arr_my[1].info = data.second_level_time || "暂未获取"; // super get time this.super_status = data.second_level; // super status diff --git a/src/request/api/user.js b/src/request/api/user.js index 00a7c2d84a3e4fcae5e596ae2ff5523ad76a0946..5fb567a5c8fcdc78fe0925d389efbb662f2ddd4d 100644 --- a/src/request/api/user.js +++ b/src/request/api/user.js @@ -59,11 +59,11 @@ const user = { getDeleteList() { return axios.get(`/apaas/support/qa/deleted`); }, - delQuestions(params) { - return axios.delete(`/apaas/support/qa/question/delete`, params); + delQuestions(items) { + return axios.delete(`/apaas/support/qa/question/delete`, { data: { items } }); }, - delAnswers(params) { - return axios.delete(`/apaas/support/qa/answer/delete`, params); + delAnswers(items) { + return axios.delete(`/apaas/support/qa/answer/delete`, { data: { items } }); }, getUserQA() { return axios.get(`/apaas/support/qa/info`)