yq1 1 rok temu
rodzic
commit
f88fea6928
1 zmienionych plików z 52 dodań i 35 usunięć
  1. 52 35
      src/xt_pages/user/evaluationtool/RassAssessment.vue

+ 52 - 35
src/xt_pages/user/evaluationtool/RassAssessment.vue Wyświetl plik

@@ -45,36 +45,42 @@
45 45
                           </tr>
46 46
                         </thead>
47 47
                         <tbody>
48
-                          <tr class="bg_color" v-for="(item,index) in RASS" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
49
-                              <td class='bing'>
50
-                                <!-- <div class="rightjiange" style="position: relative;">
51
-                                  <label><input type="radio" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;
52
-                                      <div style="display: inline-block;">{{item.title}}</div>
53
-                                      &nbsp;<div :style="{'display': 'inline-block','width':' 430px','position': 'absolute','top':index ==4 ? '-8px':'0px'}">
54
-                                     {{item.value}}
48
+                          <tr >
49
+                              <td>
50
+                                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
51
+                                  <tr class="bg_color" v-for="(item,index) in RASS" :key="index" 
52
+                                  :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
53
+                                    <td>
54
+                                      <div class="rightjiange" style="position: relative;">
55
+                                        <label style="">
56
+                                          <input type="radio" name="ball" :value="item.value"  @change="handleCheckedCitiesChange"/>
57
+                                          <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
58
+                                          <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
59
+                                              {{ item.value }}
60
+                                          </div>
61
+                                        </label>
55 62
                                       </div>
56
-                                  </label>
57
-                                </div> -->
58
-                                <div class="rightjiange" style="position: relative;">
59
-                                  <label style="">
60
-                                    <input type="radio" name="ball" :value="item.value"  @change="handleCheckedCitiesChange"/>
61
-                                    <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
62
-                                    <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
63
-                                        {{ item.value }}
64
-                                    </div>
65
-                                  </label>
66
-                                </div>
63
+                                    </td>
64
+                                  </tr>
65
+                                </table>
67 66
                               </td>
68
-                              <td class='bing'>
69
-                                <div class="rightjiange" style="position: relative;">
70
-                                  <label style="">
71
-                                    <input type="radio" name="ball" :value="item.value2"  @change="handleCheckedCitiesChange"/>
72
-                                    <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
73
-                                    <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 && index !=1 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
74
-                                        {{ item.value2 }}
75
-                                    </div>
76
-                                  </label>
77
-                                </div>
67
+                              <td>
68
+                                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
69
+                                  <tr v-for="(item,index) in RASS1" :key="index"
70
+                                  :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
71
+                                    <td>
72
+                                      <div class="rightjiange" style="position: relative;">
73
+                                        <label style="">
74
+                                          <input type="radio" name="ball" :value="item.value2"  @change="handleCheckedCitiesChange"/>
75
+                                          <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
76
+                                          <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 && index !=1 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
77
+                                              {{ item.value2 }}
78
+                                          </div>
79
+                                        </label>
80
+                                      </div>
81
+                                    </td>
82
+                                  </tr>
83
+                                </table>
78 84
                               </td>
79 85
                           </tr>
80 86
                         </tbody>
@@ -504,11 +510,17 @@ export default {
504 510
                   {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
505 511
                   {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
506 512
                 ],
507
-            RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应',title2:'0分', value2:'警觉的平静的'},
508
-                  {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应',title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
509
-                  {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)',title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
510
-                  {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s',title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
511
-                  {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s',title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
513
+            RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应'},
514
+                  {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应'},
515
+                  {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)'},
516
+                  {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s'},
517
+                  {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s'},
518
+                ],
519
+            RASS1:[{title2:'0分', value2:'警觉的平静的'},
520
+                  {title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
521
+                  {title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
522
+                  {title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
523
+                  {title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
512 524
                 ],
513 525
             RassGJ:['NRS','表情法','视觉模拟法','语言描述法','行为学评估量表','其他'],
514 526
             yuyan:[{label:'0无痛',value:0},{label:'1微痛',value:1},{label:'2一般',value:2},{label:'4中度疼痛',value:4},{label:'6中重度疼痛',value:6},{label:'8重度疼痛',value:8},{label:'10无法忍受',value:10}],
@@ -534,6 +546,7 @@ export default {
534 546
         console.log('11111',e.target.value);
535 547
         const lent = this.LOS
536 548
         const len = this.RASS
549
+        const len2=this.RASS1
537 550
         for(let i=0;i<lent.length;i++){
538 551
           if(e.target.value == lent[i].value ){
539 552
             this.RASS_Totalpoints=lent[i].title.split('分')[0]
@@ -544,10 +557,14 @@ export default {
544 557
             console.log('2222',len[y].title.split('分')[0]);
545 558
             this.RASS_Totalpoints = len[y].title.split('分')[0]
546 559
           }
547
-          if(e.target.value == len[y].value2 ){
548
-            this.RASS_Totalpoints = len[y].title2.split('分')[0]
560
+          
561
+        }
562
+        for(let y=0;y<len2.length;y++){
563
+          if(e.target.value == len2[y].value2 ){
564
+            this.RASS_Totalpoints = len2[y].title2.split('分')[0]
549 565
           }
550 566
         }
567
+
551 568
       },
552 569
       radioclick(e,value){
553 570
         console.log('2222',e,value);