Kaynağa Gözat

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 10 ay önce
ebeveyn
işleme
b82b36042f

+ 52 - 0
src/utils/move.js Dosyayı Görüntüle

@@ -0,0 +1,52 @@
1
+// 鼠标移动滚动位置类
2
+class Drag {
3
+  constructor(vm) {
4
+    this.dragWrap = vm;// 要挂载的容器
5
+    this._dom = {};
6
+    this._x = 0;
7
+    this._y = 0;
8
+    this._top = 0;
9
+    this._left = 0;
10
+    this.move = false;
11
+    this.down = false;
12
+    this.init.apply(this, arguments);
13
+  }
14
+
15
+  // 绑定事件
16
+  init() {
17
+    this.bindEvent();
18
+  }
19
+
20
+  // 给要素增加鼠标事件mousedown,mouseup,mousemove
21
+  bindEvent() {
22
+    var t = this;
23
+    this.dragWrap.addEventListener('mousedown', function (e) {
24
+      e && e.preventDefault();
25
+      if (!t.move) {
26
+        t.move = false;
27
+        t.down = true;
28
+        t._x = e.clientX;
29
+        t._y = e.clientY;
30
+        t._top = t.dragWrap.scrollTop;
31
+        t._left = t.dragWrap.scrollLeft;
32
+      }
33
+    });
34
+    this.dragWrap.addEventListener('mouseup', function (e) {
35
+      e && e.preventDefault();
36
+      t.move = false;
37
+      t.down = false;
38
+    });
39
+    this.dragWrap.addEventListener('mousemove', function (e) {
40
+      if (t.down) {
41
+        e && e.preventDefault();
42
+        t.move = true;
43
+        let x = t._x - e.clientX;
44
+        let y = t._y - e.clientY;
45
+        t.dragWrap.scrollLeft = t._left + x;
46
+        t.dragWrap.scrollTop = t._top + y;
47
+      }
48
+    });
49
+  }
50
+}
51
+export default Drag;
52
+

+ 2 - 0
src/xt_pages/user/doctorAdvice.vue Dosyayı Görüntüle

@@ -201,7 +201,9 @@
201 201
               <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
202 202
                 <span v-if="scope.row.frequency_type ==1" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
203 203
                 <span v-if="scope.row.frequency_type ==2 && scope.row.day_count>0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
204
+                <span v-if="scope.row.frequency_type ==2 && scope.row.day_count==0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
204 205
                 <span v-if="scope.row.frequency_type ==3 && scope.row.week_day!=''" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
206
+                <span v-if="scope.row.frequency_type ==3 && scope.row.week_day==''" > {{ scope.row.advice_name}}</span>
205 207
                 <span v-if="scope.row.frequency_type ==0"> {{ scope.row.advice_name}}</span>
206 208
                 <i class="el-icon-arrow-down el-icon--right"></i>
207 209
               </span>

+ 3 - 3
src/xt_pages/workforce/appointment.vue Dosyayı Görüntüle

@@ -124,9 +124,9 @@
124 124
         <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
125 125
                     :schedule-zone-row-prop="scheduleZoneRow"
126 126
                     :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
127
-                    @event2="changeSchedule"  @event3="changeWeekDay" @event6="changeScheduleType" @guanliu_show="guanliu" v-show="showtableOne">
127
+                    @event2="changeSchedule"  @event3="changeWeekDay"  @guanliu_show="guanliu" v-show="showtableOne"  @event6="changeScheduleType">
128 128
         </table-data>
129
-        <!--  -->
129
+        <!-- @event6="changeScheduleType" -->
130 130
       </div>
131 131
       <!-- 编辑 -->
132 132
        <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
@@ -1332,8 +1332,8 @@ export default {
1332 1332
       } else if (this.activeName == 'nextTwoWeek') {
1333 1333
         date = date + 14 * 24 * 60 * 60 * 1000
1334 1334
       }
1335
-      console.log('3333333',this.partition_id,this.activeName,this.week_date);
1336 1335
        this.$router.push({path: '/scheduleTablePrintSix?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date+"&schedule_type="+this.schedule_type})
1336
+
1337 1337
     },
1338 1338
     isShow() {
1339 1339
       let isShow = false