See999 4 years ago
parent
commit
6784f354a0
1 changed files with 18 additions and 9 deletions
  1. 18 9
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue

+ 18 - 9
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -145,11 +145,15 @@
145 145
 
146 146
 
147 147
           if(this.$store.getters.xt_user.user.id == this.double_check.creater || this.double_check.modifier > 0){
148
-            this.check_time = uParseTime(
149
-              this.doubleReview.check_time,
150
-              '{y}-{m}-{d} {h}:{i}'
151
-            ).split(' ')[1]
152
-            console.log('真性感')
148
+            if(this.double_check.modifier > 0){
149
+                this.check_time = uParseTime(
150
+                this.doubleReview.check_time,
151
+                  '{y}-{m}-{d} {h}:{i}'
152
+                ).split(' ')[1]
153
+                
154
+                console.log('真性感')
155
+            }
156
+            
153 157
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
154 158
             this.check_time = uParseTime(
155 159
               new Date(),
@@ -157,6 +161,9 @@
157 161
             ).split(' ')[1]
158 162
             this.doubleReview.modifier = this.$store.getters.xt_user.user.id
159 163
           }
164
+          if(this.doubleReview.modifier == 0){
165
+            this.doubleReview.modifier = ""
166
+          }
160 167
           console.log( this.first_check_time )
161 168
           console.log( this.check_time )
162 169
 
@@ -238,10 +245,12 @@
238 245
               '{y}-{m}-{d}  {h}:{i}'
239 246
             ).split(' ')[1]
240 247
 
241
-            this.check_time = uParseTime(
242
-              this.doubleReview.check_time,
243
-              '{y}-{m}-{d}  {h}:{i}'
244
-            ).split(' ')[1]
248
+            // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
249
+            //   this.check_time = uParseTime(
250
+            //     this.doubleReview.check_time,
251
+            //     '{y}-{m}-{d}  {h}:{i}'
252
+            //   ).split(' ')[1]
253
+            // }
245 254
 
246 255
             let doublecheck_resp = response.data.data.doubleCheck
247 256
             var doubleCheck = this.double_check