From 25cabb88d004dda69789e3b61d30d3f123f7cbd2 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Thu, 5 Jan 2023 19:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=BE=85=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ReceivingRecords/index.vue | 46 +++++++++++++--------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index e8cfef1..f9e91b8 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -658,23 +658,24 @@ export default { mounted() { // 获取项目列表 this.zkhousePage(); + this.findQuestionList() }, methods: { // 获取话术 findQuestionList() { - axios({ - url: `/autoSR/zk/keywords/findQuestionList`, - method: 'get', - params: { - houseId: this.houseId - } - }).then(data => { - if (data.code == 0) { - this.questionList = data.data; - this.questionList.length = 20 - } - }) + axios({ + url: `/autoSR/zk/keywords/findQuestionList`, + method: 'get', + params: { + houseId: this.searchForm.projectId + } + }).then(data => { + if (data.code == 0) { + this.questionList = data.data; + this.questionList.length = 20 + } + }) }, // 无效接待原因列表 getMarketingInvalidList () { @@ -805,13 +806,15 @@ export default { obj.keywordIds = obj.keywordsId.join(","); obj.dateType = this.searchForm.staDate ? null : this.searchForm.dateType; this.$api.api.findbypage(obj).then((res) => { - console.log(res); - this.tableData = res.data.records; - this.page.total = res.data.total; - // 表格中设置ref属性,在数据渲染之后或者updated()之后 - this.$nextTick(() => { - this.$refs.crud.doLayout(); - }); + // console.log(res); + if(res.code==0){ + this.tableData = res.data.records; + this.page.total = res.data.total; + // 表格中设置ref属性,在数据渲染之后或者updated()之后 + this.$nextTick(() => { + this.$refs.crud.doLayout(); + }); + } }); }, clearScreen() { @@ -852,7 +855,6 @@ export default { this.searchForm.staDate = ""; this.searchForm.endDate = ""; } else { - console.log(e, "asdkasljdlksajl"); this.searchForm.dateType = null; this.searchForm.staDate = e[0]; this.searchForm.endDate = e[1]; @@ -875,7 +877,6 @@ export default { type: this.type, }) .then((res) => { - console.log(res); this.keywordsList = res.data; }); }, @@ -905,16 +906,13 @@ export default { orgType: localStorage.getItem("orgType"), projectId: this.searchForm.projectId, }); - console.log(result); this.accountList = result.data; }, handleSizeChange(val) { - console.log(`每页 ${val} 条`); this.page.pageSize = val; this.findbypage(); }, handleCurrentChange(val) { - console.log(`当前页: ${val}`); this.page.currentPage = val; this.findbypage(); },