diff --git a/src/views/Statistics/ai/intelligentReporting.vue b/src/views/Statistics/ai/intelligentReporting.vue
index 73da91c..a0d3fb6 100644
--- a/src/views/Statistics/ai/intelligentReporting.vue
+++ b/src/views/Statistics/ai/intelligentReporting.vue
@@ -89,141 +89,6 @@
>
-
-
接待时间
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 对比时间
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
选择项目
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -376,7 +241,7 @@ export default {
methods: {
// 生成记录
findDataByRuleId() {
- this.$api.http.findDataByRuleIdopenApiData(this.creatHistory).then((res) => {
+ this.$api.http.findDataByRuleId(this.creatHistory).then((res) => {
this.gridData = res.data.records;
this.roleHistory = true; // 获取到数据后展示列表
this.creatHistory.total = res.data.total;
@@ -420,67 +285,6 @@ export default {
name: this.params.name,
ruleId: this.row.id,
};
-
- // 自定义时间选择
- if (this.params.dateType == "自定义") {
- if (!this.params.time || this.params.time.length == 0) {
- this.$message.error("请选择时间");
- return;
- }
- if (!this.params.contrastTime || this.params.contrastTime.length == 0) {
- this.$message.error("请选择对比时间");
- return;
- }
- let aTime =
- new Date(this.params.time[1]).getTime() -
- new Date(this.params.time[0]).getTime();
- let bTime =
- new Date(this.params.contrastTime[1]).getTime() -
- new Date(this.params.contrastTime[0]).getTime();
- if (aTime != bTime) {
- this.$message.error("请选择相同天数的时间段");
- return;
- }
- }
-
- // 是否选择时间
- if (
- !this.params.time ||
- !this.params.contrastTime ||
- this.params.time.length == 0 ||
- this.params.contrastTime.length == 0
- ) {
- this.$message.error("请选择时间");
- return;
- }
-
- // 指定选择某些项目时
- if (
- this.params.houseType != "全部" &&
- this.params.selectHouseId.length == 0
- ) {
- this.$message.error("请选择项目");
- return;
- }
-
- if (this.params.houseType == "不等于") {
- this.projectList.forEach((item) => {
- if (!this.params.selectHouseId.includes(item.id)) {
- arr.push(item.id);
- }
- });
- let a = {
- ...this.params,
- houstId: arr.join(","),
- };
- obj.screen = JSON.stringify(a);
- } else {
- let a = {
- ...this.params,
- houstId: this.params.selectHouseId.join(","),
- };
- obj.screen = JSON.stringify(a);
- }
this.creatRule = false; // 先关闭弹窗
this.params = {
dateType: "周", // 周 月 自定义