From c2943d4c365e6a4719fbd5fedf89f8c2232cf88e Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 25 三月 2024 18:16:27 +0800
Subject: [PATCH] qxtj

---
 src/views/team/teams/index.vue |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/src/views/team/teams/index.vue b/src/views/team/teams/index.vue
index 30b6629..d2da4c5 100644
--- a/src/views/team/teams/index.vue
+++ b/src/views/team/teams/index.vue
@@ -376,7 +376,7 @@
   ],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
-      console.log(value);
+      // console.log(value);
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
       if (value == "" && value == undefined && !value) {
         return callback("");
@@ -408,6 +408,7 @@
       // 寮瑰嚭灞傛爣棰�
       title: "",
       bingZhong: "",
+      createTimeList:[],
       Listdata: {},
       ListdataAll: [],
       aidList: [],
@@ -422,6 +423,7 @@
       menuIds: [],
       proIds: [],
       valueList: [],
+      loading:false,
       // 鏄惁鏄剧ず寮瑰嚭灞�
       open: false,
       open1: false,
@@ -497,11 +499,6 @@
     },
     getList() {
       this.loading = true;
-      if(this.createTimeList){
-        this.objs.beginTime=this.createTimeList[0],
-        this.objs.endTime=this.createTimeList[1]
-      }
-     
       getCompany(this.objs).then((response) => {
         this.CompanyList = response.data;
         this.total = response.total;
@@ -509,15 +506,21 @@
       });
     },
     handlequery() {
-      if (this.objs.firmId && this.objs.dwDeptId) {
-        this.objs.beginTime = this.createTimeList[0];
-        this.objs.endTime = this.createTimeList[1];
+      if(this.createTimeList){
+        this.objs.beginTime=this.createTimeList[0],
+        this.objs.endTime=this.createTimeList[1]
+      }else if(this.createTimeList == null){
+        this.objs.beginTime=null,
+        this.objs.endTime=null
+      }
+      if (this.objs.firmId && this.objs.dwDeptId && this.objs.beginTime) {
+        
         tuanTiListById(this.objs).then((response) => {
           this.Listdata = response.data;
           this.userList = response.data.list;
         });
       } else {
-        this.$message.warning("甯︽槦鍙蜂负蹇呭~椤�");
+        this.$message.warning("鏌ヨ椤逛负蹇呭~椤�");
       }
     },
     handleQuery1() {
@@ -660,9 +663,9 @@
         firmDeptId: this.data.deptId,
         aidList: this.aidList,
       };
-      console.log(data);
+      // console.log(data);
       tuanTiBingChart(data).then((res) => {
-        console.log(res);
+        // console.log(res);
         this.$nextTick(() => {
           var chartDom = document.getElementById("main");
           var myChart = echarts.init(chartDom);

--
Gitblit v1.8.0