소스 검색

大日历修改3

“front-end” 3 년 전
부모
커밋
f9b0906b98
1개의 변경된 파일37개의 추가작업 그리고 33개의 파일을 삭제
  1. 37 33
      src/pages/main/fullcalendar/calendar.vue

+ 37 - 33
src/pages/main/fullcalendar/calendar.vue

@@ -91,6 +91,7 @@
           <el-form-item label="参会角色" prop="orgId">
             <el-select
               v-model="form.orgId"
+              style="width:483px"
               clearable
               filterable
               placeholder="参会角色"
@@ -109,6 +110,7 @@
             <el-select
               v-model="form.isParty"
               clearable
+               style="width:483px"
               filterable
               placeholder="是否是党会"
             >
@@ -448,7 +450,7 @@ export default {
       newfrom: [], //新获得过滤数字
       titleNew: "",
       delStatus: false,
-      showEvmStatus: "",
+      showEvmStatus: false,
     };
   },
   mounted() {
@@ -659,7 +661,11 @@ export default {
     },
     showEwm(a) {
       if (a == 0) {
-        this.closexuan();
+        this.showEvmStatus = false;
+        this.closexuan()
+      }else{
+        //驶入
+        this.showEvmStatus = true
       }
     },
     //渲染窗体
@@ -694,17 +700,22 @@ export default {
     },
     //鼠标滑过事件
     eventmouseover(calEvent, event) {
+      console.log(123);
       this.xuanchuang(calEvent, event);
     },
-    eventmouseout() {},
+    eventmouseout() {
+      // setInterval(() =>{
+      //   if(this.showEvmStatus == false){
+      //     this.closexuan()
+      //   }
+      // },3000)
+    },
     //关闭悬停窗口
     closexuan() {
       this.$refs.ove.style.display = "none";
     },
     //悬停窗体修改按钮
     xiuxuan(events) {
-      console.log(events);
-      console.log(this.array);
       var j = 0;
       for (var i = 0; i < this.array.length; i++) {
         if (this.array[i].id == this.idx) {
@@ -713,7 +724,6 @@ export default {
       }
       this.calEventt.event = this.array[j];
       var aa = this.calEventt;
-      console.log(aa);
       this.handleEventClick(aa);
     },
     //悬停窗体删除按钮
@@ -722,46 +732,43 @@ export default {
     },
     // 点击日历
     handleDateClick: function (arg) {
-      console.log(arg);
+      this.form.orgId = [];
+      this.form.isParty = ''
       this.titleNew = "会议新增";
       if (!this.auth) {
         return;
       }
       //   this.$forceUpdate();
-      console.log(arg, "事件1");
       //开始时间
       this.form.begindate = arg.dateStr;
       //结束时间
       this.form.enddate = arg.dateStr;
-      this.$http({
-        url: "/market/calendar/queryNow",
-        method: "post",
-        headers: {
-          "Content-Type": "application/json",
-        },
-        data: { now: arg.dateStr },
-      }).then((res) => {
-        if (res.data) {
-          let result = [];
-          result = res.data;
-          result.map((item) => {
-            item.begindate = item.begindate.substring(10).substring(1, 6);
-            item.enddate = item.enddate.substring(10).substring(1, 6);
-            return result;
-          });
-          this.newfrom = result;
-          console.log(this.newfrom);
-        }
-      });
+      // this.$http({
+      //   url: "/market/calendar/queryNow",
+      //   method: "post",
+      //   headers: {
+      //     "Content-Type": "application/json",
+      //   },
+      //   data: { now: arg.dateStr },
+      // }).then((res) => {
+      //   if (res.data) {
+      //     let result = [];
+      //     result = res.data;
+      //     result.map((item) => {
+      //       item.begindate = item.begindate.substring(10).substring(1, 6);
+      //       item.enddate = item.enddate.substring(10).substring(1, 6);
+      //       return result;
+      //     });
+      //     this.newfrom = result;
+      //   }
+      // });
       this.dialogVisible = true;
     },
     // 日历日程点击事件
     handleEventClick(calEvent) {
       this.titleNew = "会议修改";
-      console.log(calEvent, "事件2");
       this.dialogVisible = true;
       let id = calEvent.event.id;
-      console.log(this.subList);
       let info = this.subList.filter((item) => {
         return item.id == id;
       });
@@ -770,8 +777,6 @@ export default {
         // 处理时间回显
         this.getShowTime(this.form.begindate, this.form.enddate);
         // this.gitPeople(this.form.roleName);
-        console.log(info[0], "数据");
-        console.log(this.form, "数据222");
         this.orgId = this.form.roleName;
         // this.orgIds=this.form.roleName
         // this.roleNameList.userId=info[0].roleName
@@ -823,7 +828,6 @@ export default {
     },
     // 提交数据
     submitForm(formName) {
-      console.log(this.form);
       this.$refs[formName].validate((valid) => {
         if (valid) {
           this.form.begindate = `${this.form.begindate} ${this.form.startTime}`;