From bf47e8671d40cbfdd9f7758db76818f9b1b21262 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com>
Date: Fri, 24 Nov 2023 15:10:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ai?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Statistics/ai/intelligentReporting.vue | 198 +-----------------
1 file changed, 1 insertion(+), 197 deletions(-)
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: "周", // 周 月 自定义