浏览代码

接待记录

newStyle
corala 1年前
父节点
当前提交
25cabb88d0
共有 1 个文件被更改,包括 22 次插入24 次删除
  1. +22
    -24
      src/views/ReceivingRecords/index.vue

+ 22
- 24
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();
},


正在加载...
取消
保存