소스 검색

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

csx 4 년 전
부모
커밋
e731d30253
3개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 0
      src/xt_pages/data/components/editProject.vue
  2. 1 1
      src/xt_pages/data/components/project.vue
  3. 1 0
      src/xt_pages/role/components/AdminRoleInfoForm.vue

+ 12 - 0
src/xt_pages/data/components/editProject.vue 파일 보기

323
     },
323
     },
324
     methods:{
324
     methods:{
325
         getTime(val) {
325
         getTime(val) {
326
+         if(val < 0){
327
+           return ""
328
+         }
326
          if(val == ""){
329
          if(val == ""){
327
           return ""
330
           return ""
328
          }else {
331
          }else {
367
               this.form.cost_classify = projecDetail.cost_classify
370
               this.form.cost_classify = projecDetail.cost_classify
368
               this.form.executive_section = projecDetail.executive_section
371
               this.form.executive_section = projecDetail.executive_section
369
               this.form.medical_coverage = projecDetail.medical_coverage
372
               this.form.medical_coverage = projecDetail.medical_coverage
373
+              if(projecDetail.statistical_classification == 0){
374
+                 this.form.statistical_classification = ""
375
+              }
370
               this.form.statistical_classification =projecDetail.statistical_classification
376
               this.form.statistical_classification =projecDetail.statistical_classification
371
               this.form.disease_directory = projecDetail.disease_directory?projecDetail.disease_directory:""
377
               this.form.disease_directory = projecDetail.disease_directory?projecDetail.disease_directory:""
372
               this.form.is_record = projecDetail.is_record?projecDetail.is_record:""
378
               this.form.is_record = projecDetail.is_record?projecDetail.is_record:""
387
               this.form.execution_frequency = projecDetail.execution_frequency
393
               this.form.execution_frequency = projecDetail.execution_frequency
388
               this.form.number_days = projecDetail.number_days
394
               this.form.number_days = projecDetail.number_days
389
               this.form.total = projecDetail.total
395
               this.form.total = projecDetail.total
396
+              if(projecDetail.category == 0){
397
+                this.form.category = ""
398
+              }
390
               this.form.category = projecDetail.category
399
               this.form.category = projecDetail.category
400
+              if(projecDetail.specail_project == 0){
401
+                this.form.specail_project = ""
402
+              }
391
               this.form.specail_project = projecDetail.specail_project
403
               this.form.specail_project = projecDetail.specail_project
392
               this.form.social_security_directory_code = projecDetail.social_security_directory_code
404
               this.form.social_security_directory_code = projecDetail.social_security_directory_code
393
               this.form.record_date = this.getTime(projecDetail.record_date)
405
               this.form.record_date = this.getTime(projecDetail.record_date)

+ 1 - 1
src/xt_pages/data/components/project.vue 파일 보기

342
     },
342
     },
343
     created(){
343
     created(){
344
       this.getlist()
344
       this.getlist()
345
-      this.getDartmentList
345
+      this.getDartmentList()
346
      
346
      
347
     }
347
     }
348
 }
348
 }

+ 1 - 0
src/xt_pages/role/components/AdminRoleInfoForm.vue 파일 보기

148
             if (resp.state === 1) {
148
             if (resp.state === 1) {
149
               this.roles = []
149
               this.roles = []
150
               this.roles.push(...resp.data.roles)
150
               this.roles.push(...resp.data.roles)
151
+              console.log("resp2222",resp.data.roles)
151
               this.qntoken = resp.data.qntoken
152
               this.qntoken = resp.data.qntoken
152
               var admin = resp.data.admin
153
               var admin = resp.data.admin
153
               this.form.name = admin.user_name
154
               this.form.name = admin.user_name