|
@@ -658,23 +658,24 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
// 获取项目列表 |
|
|
// 获取项目列表 |
|
|
this.zkhousePage(); |
|
|
this.zkhousePage(); |
|
|
|
|
|
this.findQuestionList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 获取话术 |
|
|
// 获取话术 |
|
|
findQuestionList() { |
|
|
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 () { |
|
|
getMarketingInvalidList () { |
|
@@ -805,13 +806,15 @@ export default { |
|
|
obj.keywordIds = obj.keywordsId.join(","); |
|
|
obj.keywordIds = obj.keywordsId.join(","); |
|
|
obj.dateType = this.searchForm.staDate ? null : this.searchForm.dateType; |
|
|
obj.dateType = this.searchForm.staDate ? null : this.searchForm.dateType; |
|
|
this.$api.api.findbypage(obj).then((res) => { |
|
|
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() { |
|
|
clearScreen() { |
|
@@ -852,7 +855,6 @@ export default { |
|
|
this.searchForm.staDate = ""; |
|
|
this.searchForm.staDate = ""; |
|
|
this.searchForm.endDate = ""; |
|
|
this.searchForm.endDate = ""; |
|
|
} else { |
|
|
} else { |
|
|
console.log(e, "asdkasljdlksajl"); |
|
|
|
|
|
this.searchForm.dateType = null; |
|
|
this.searchForm.dateType = null; |
|
|
this.searchForm.staDate = e[0]; |
|
|
this.searchForm.staDate = e[0]; |
|
|
this.searchForm.endDate = e[1]; |
|
|
this.searchForm.endDate = e[1]; |
|
@@ -875,7 +877,6 @@ export default { |
|
|
type: this.type, |
|
|
type: this.type, |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
console.log(res); |
|
|
|
|
|
this.keywordsList = res.data; |
|
|
this.keywordsList = res.data; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
@@ -905,16 +906,13 @@ export default { |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
orgType: localStorage.getItem("orgType"), |
|
|
projectId: this.searchForm.projectId, |
|
|
projectId: this.searchForm.projectId, |
|
|
}); |
|
|
}); |
|
|
console.log(result); |
|
|
|
|
|
this.accountList = result.data; |
|
|
this.accountList = result.data; |
|
|
}, |
|
|
}, |
|
|
handleSizeChange(val) { |
|
|
handleSizeChange(val) { |
|
|
console.log(`每页 ${val} 条`); |
|
|
|
|
|
this.page.pageSize = val; |
|
|
this.page.pageSize = val; |
|
|
this.findbypage(); |
|
|
this.findbypage(); |
|
|
}, |
|
|
}, |
|
|
handleCurrentChange(val) { |
|
|
handleCurrentChange(val) { |
|
|
console.log(`当前页: ${val}`); |
|
|
|
|
|
this.page.currentPage = val; |
|
|
this.page.currentPage = val; |
|
|
this.findbypage(); |
|
|
this.findbypage(); |
|
|
}, |
|
|
}, |
|
|