Browse Source

hah阿凡达

28169 2 weeks ago
parent
commit
48ca7b9d9b

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

1769
               this.records[i].his_advices.forEach((item, index) => {
1769
               this.records[i].his_advices.forEach((item, index) => {
1770
                 console.log("itemwowowowowo", item)
1770
                 console.log("itemwowowowowo", item)
1771
                 let { new_groupno } = item
1771
                 let { new_groupno } = item
1772
-                if (item.delivery_way != '口服' && item.delivery_way != '中药口服' && item.advice_name.indexOf('胰岛素') == -1) {
1772
+                if (item.delivery_way != '口服' && item.delivery_way != '中药口服' && item.advice_name.indexOf('胰岛素') == -1 && item.advice_name.indexOf('腹膜') == -1) {
1773
                   if (item.execution_frequency.indexOf('上机前') == -1) {
1773
                   if (item.execution_frequency.indexOf('上机前') == -1) {
1774
                     if (!objInfo[new_groupno]) {
1774
                     if (!objInfo[new_groupno]) {
1775
                       console.log('66666666', item);
1775
                       console.log('66666666', item);

+ 7 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

829
                         </div>
829
                         </div>
830
                         kg
830
                         kg
831
                       </div>
831
                       </div>
832
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745">
832
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478">
833
                         <span v-if="org_id != 10683">计划超滤量:</span>
833
                         <span v-if="org_id != 10683">计划超滤量:</span>
834
                         <span v-if="org_id == 10683">预脱:</span>
834
                         <span v-if="org_id == 10683">预脱:</span>
835
                         <div class="under_line" style="width: 100px; text-align: center">
835
                         <div class="under_line" style="width: 100px; text-align: center">
846
                           v-if="org_id != 10395 && org_id != 9829 && org_id != 10440 && org_id != 10469 && org_id != 10460 && org_id != 10624 && org_id != 10644">L</span>
846
                           v-if="org_id != 10395 && org_id != 9829 && org_id != 10440 && org_id != 10469 && org_id != 10460 && org_id != 10624 && org_id != 10644">L</span>
847
                       </div>
847
                       </div>
848
 
848
 
849
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id == 10745">
849
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id == 10745|| org_id == 9478">
850
                         <span v-if="org_id != 10683 && org_id!=10745">计划超滤量:</span>
850
                         <span v-if="org_id != 10683 && org_id!=10745">计划超滤量:</span>
851
                         <span v-if="org_id == 10683">预脱:</span>
851
                         <span v-if="org_id == 10683">预脱:</span>
852
-                        <span v-if="org_id == 10745">处方脱水量</span>
852
+                        <span v-if="org_id == 10745 || org_id == 9478">处方脱水量</span>
853
                         <div class="under_line" style="width: 100px; text-align: center">
853
                         <div class="under_line" style="width: 100px; text-align: center">
854
                           {{
854
                           {{
855
                             record.prescription &&
855
                             record.prescription &&
858
                               : "/"
858
                               : "/"
859
                           }}
859
                           }}
860
                         </div>
860
                         </div>
861
-                        <span v-if="org_id != 10598 && org_id != 10471 && org_id!=10745"> ml</span>
862
-                        <span v-if="org_id == 10598 || org_id == 10471 || org_id == 10745"> L</span>
861
+                        <span v-if="org_id != 10598 && org_id != 10471 && org_id!=10745 && org_id!=9478"> ml</span>
862
+                        <span v-if="org_id == 10598 || org_id == 10471 || org_id == 10745 || org_id == 9478"> L</span>
863
                       </div>
863
                       </div>
864
                       <div class="inline_block" style="flex: 1">
864
                       <div class="inline_block" style="flex: 1">
865
                         干体重:
865
                         干体重:
1472
                             }}
1472
                             }}
1473
                           </td>
1473
                           </td>
1474
                           <td v-if="org_id != 10683">
1474
                           <td v-if="org_id != 10683">
1475
-                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471 || org_id == 10744 || org_id == 10726">
1475
+                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471 || org_id == 10744 || org_id == 10726|| org_id == 9478">
1476
                               {{
1476
                               {{
1477
                                 monitor_record.ultrafiltration_volume
1477
                                 monitor_record.ultrafiltration_volume
1478
                                   ? monitor_record.ultrafiltration_volume
1478
                                   ? monitor_record.ultrafiltration_volume
1479
                                   : "0"
1479
                                   : "0"
1480
                               }}
1480
                               }}
1481
                             </span>
1481
                             </span>
1482
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471 && org_id!=10744 && org_id!=10726">
1482
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471 && org_id!=10744 && org_id!=10726&& org_id!=9478">
1483
                               {{
1483
                               {{
1484
                                 monitor_record.ultrafiltration_volume
1484
                                 monitor_record.ultrafiltration_volume
1485
                                   ? monitor_record.ultrafiltration_volume
1485
                                   ? monitor_record.ultrafiltration_volume

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

173
         </li> -->
173
         </li> -->
174
 
174
 
175
 
175
 
176
-        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597 && this.$store.getters.xt_user.template_info.org_id != 10571  && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757">
176
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597 && this.$store.getters.xt_user.template_info.org_id != 10571  && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478">
177
           <label>处方脱水量 : </label>
177
           <label>处方脱水量 : </label>
178
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
178
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
179
           <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
179
           <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
180
         </li>
180
         </li>
181
 
181
 
182
-        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 ||  this.$store.getters.xt_user.template_info.org_id == 10571 || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10598 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10679 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10752 || this.$store.getters.xt_user.template_info.org_id == 10757">
182
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 ||  this.$store.getters.xt_user.template_info.org_id == 10571 || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10598 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10679 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10752 || this.$store.getters.xt_user.template_info.org_id == 10757|| this.$store.getters.xt_user.template_info.org_id == 9478">
183
           <label>处方脱水量 : </label>
183
           <label>处方脱水量 : </label>
184
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
184
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
185
           <span class="unit">{{ prescription_water != "0" ? "L" : "" }}</span>
185
           <span class="unit">{{ prescription_water != "0" ? "L" : "" }}</span>

+ 3 - 3
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

161
                     </el-col>
161
                     </el-col>
162
 
162
 
163
                     <el-col :span="8"
163
                     <el-col :span="8"
164
-                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597&& this.$store.getters.xt_user.template_info.org_id != 10571 && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721 && this.$store.getters.xt_user.template_info.org_id != 10742 && this.$store.getters.xt_user.template_info.org_id != 10740 && this.$store.getters.xt_user.template_info.org_id != 10745 && this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757">
164
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597&& this.$store.getters.xt_user.template_info.org_id != 10571 && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721 && this.$store.getters.xt_user.template_info.org_id != 10742 && this.$store.getters.xt_user.template_info.org_id != 10740 && this.$store.getters.xt_user.template_info.org_id != 10745 && this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478">
165
                         <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
165
                         <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
166
                             <el-input
166
                             <el-input
167
                                     type="number"
167
                                     type="number"
171
                     </el-col>
171
                     </el-col>
172
 
172
 
173
                     <el-col :span="8"
173
                     <el-col :span="8"
174
-                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id ==10571 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10677 || this.$store.getters.xt_user.template_info.org_id==10679 || this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10740 || this.$store.getters.xt_user.template_info.org_id==10742  || this.$store.getters.xt_user.template_info.org_id==10745 || this.$store.getters.xt_user.template_info.org_id==10752|| this.$store.getters.xt_user.template_info.org_id==10757">
174
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id ==10571 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10677 || this.$store.getters.xt_user.template_info.org_id==10679 || this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10740 || this.$store.getters.xt_user.template_info.org_id==10742  || this.$store.getters.xt_user.template_info.org_id==10745 || this.$store.getters.xt_user.template_info.org_id==10752|| this.$store.getters.xt_user.template_info.org_id==10757|| this.$store.getters.xt_user.template_info.org_id==9478">
175
                         <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
175
                         <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
176
                             <el-input
176
                             <el-input
177
                                     type="number"
177
                                     type="number"
3350
         this.pre = pre
3350
         this.pre = pre
3351
         // console.log("pre1", pre);
3351
         // console.log("pre1", pre);
3352
         this.getPermission()
3352
         this.getPermission()
3353
-        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10735 || this.$store.getters.xt_user.template_info.org_id == 10740 || this.$store.getters.xt_user.template_info.org_id == 10742|| this.$store.getters.xt_user.template_info.org_id == 10745|| this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752|| this.$store.getters.xt_user.template_info.org_id == 10697|| this.$store.getters.xt_user.template_info.org_id == 10757){
3353
+        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10735 || this.$store.getters.xt_user.template_info.org_id == 10740 || this.$store.getters.xt_user.template_info.org_id == 10742|| this.$store.getters.xt_user.template_info.org_id == 10745|| this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752|| this.$store.getters.xt_user.template_info.org_id == 10697|| this.$store.getters.xt_user.template_info.org_id == 10757|| this.$store.getters.xt_user.template_info.org_id == 9478){
3354
           this.getPatientBefor()
3354
           this.getPatientBefor()
3355
         }
3355
         }
3356
 
3356
 

+ 1 - 1
src/xt_pages/dialysis/doctorAdvicePrintTwo.vue View File

144
                         hisAdvices[i].doctor_advice[j].patient_name = hisAdvices[i].patient.name
144
                         hisAdvices[i].doctor_advice[j].patient_name = hisAdvices[i].patient.name
145
                         hisAdvices[i].doctor_advice[j].sort = 0
145
                         hisAdvices[i].doctor_advice[j].sort = 0
146
                         hisAdvices[i].doctor_advice[j].sort =  hisAdvices[i].device_number.sort
146
                         hisAdvices[i].doctor_advice[j].sort =  hisAdvices[i].device_number.sort
147
-                        if(hisAdvices[i].doctor_advice[j].delivery_way !='口服' && hisAdvices[i].doctor_advice[j].delivery_way!='中药口服' && hisAdvices[i].doctor_advice[j].advice_name.indexOf('胰岛素')==-1){
147
+                        if(hisAdvices[i].doctor_advice[j].delivery_way !='口服' && hisAdvices[i].doctor_advice[j].delivery_way!='中药口服' && hisAdvices[i].doctor_advice[j].advice_name.indexOf('胰岛素')==-1&& hisAdvices[i].doctor_advice[j].advice_name.indexOf('腹膜')==-1){
148
                           if(hisAdvices[i].doctor_advice[j].execution_frequency.indexOf('上机前')==-1){
148
                           if(hisAdvices[i].doctor_advice[j].execution_frequency.indexOf('上机前')==-1){
149
                              newArr.push(hisAdvices[i].doctor_advice[j])
149
                              newArr.push(hisAdvices[i].doctor_advice[j])
150
                           }
150
                           }

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

919
                         </div>
919
                         </div>
920
                         kg
920
                         kg
921
                       </div>
921
                       </div>
922
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745">
922
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478">
923
                         <span v-if="org_id != 10683">计划超滤量:</span>
923
                         <span v-if="org_id != 10683">计划超滤量:</span>
924
                         <span v-if="org_id == 10683">预脱:</span>
924
                         <span v-if="org_id == 10683">预脱:</span>
925
                         <div class="under_line" style="width: 100px; text-align: center">
925
                         <div class="under_line" style="width: 100px; text-align: center">
936
                       </div>
936
                       </div>
937
 
937
 
938
 
938
 
939
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id== 10745">
939
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id== 10745 || org_id == 9478">
940
                         处方脱水量:
940
                         处方脱水量:
941
                         <div class="under_line" style="width: 100px; text-align: center">
941
                         <div class="under_line" style="width: 100px; text-align: center">
942
                           {{
942
                           {{
945
                               : "/"
945
                               : "/"
946
                           }}
946
                           }}
947
                         </div>
947
                         </div>
948
-                        <span v-if="org_id != 10598 && org_id!=10745"> ml</span>
949
-                        <span v-if="org_id == 10598 || org_id == 10745"> L</span>
948
+                        <span v-if="org_id != 10598 && org_id!=10745 && org_id!=9478"> ml</span>
949
+                        <span v-if="org_id == 10598 || org_id == 10745 || org_id == 9478"> L</span>
950
                       </div>
950
                       </div>
951
                       <div class="inline_block" style="flex: 1">
951
                       <div class="inline_block" style="flex: 1">
952
                         干体重:
952
                         干体重:
1566
                           </td>
1566
                           </td>
1567
 
1567
 
1568
                           <td v-if="org_id != 10644 && org_id != 10683">
1568
                           <td v-if="org_id != 10644 && org_id != 10683">
1569
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617 && org_id!=10744&& org_id!=10726">
1569
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617 && org_id!=10744&& org_id!=10726&& org_id!=9478">
1570
                               {{monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}
1570
                               {{monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}
1571
                             </span>
1571
                             </span>
1572
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1572
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1580
                                 {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1580
                                 {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1581
                               </span>
1581
                               </span>
1582
                             </span>
1582
                             </span>
1583
-                            <span v-if="org_id==10744 || org_id == 10726">
1583
+                            <span v-if="org_id==10744 || org_id == 10726 || org_id == 9478">
1584
                               {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1584
                               {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1585
                             </span>
1585
                             </span>
1586
                           </td>
1586
                           </td>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

2365
           var docArr = []
2365
           var docArr = []
2366
           if (this.doctor_advices != null && this.doctor_advices.length > 0) {
2366
           if (this.doctor_advices != null && this.doctor_advices.length > 0) {
2367
             for (let i = 0; i < this.doctor_advices.length; i++) {
2367
             for (let i = 0; i < this.doctor_advices.length; i++) {
2368
-              if (this.doctor_advices[i].delivery_way != '口服' && this.doctor_advices[i].delivery_way != '中药口服' && this.doctor_advices[i].advice_name.indexOf('胰岛素') == -1) {
2368
+              if (this.doctor_advices[i].delivery_way != '口服' && this.doctor_advices[i].delivery_way != '中药口服' && this.doctor_advices[i].advice_name.indexOf('胰岛素') == -1&& this.doctor_advices[i].advice_name.indexOf('腹膜') == -1) {
2369
                 if (this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1) {
2369
                 if (this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1) {
2370
                   docArr.push(this.doctor_advices[i])
2370
                   docArr.push(this.doctor_advices[i])
2371
                 }
2371
                 }

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
 //  // 线上注释
28
 //  // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))