seimin 2 years ago
parent
commit
43cc6f3e0f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/custom/seiminDrawer.vue

+ 5 - 5
src/custom/seiminDrawer.vue

@@ -163,7 +163,7 @@ export default {
163 163
       } else if (this.loginUser.branch) {
164 164
         // 当前的所属院区
165 165
         this.$http
166
-        .post("service/bpm/data/fetchDataList/incidentcategory", { idx: 0, sum: 1000, incidentcategory: { selectType: 'one', branch: this.loginUser.branch.id } })
166
+        .post("service/bpm/data/fetchDataList/incidentcategory", { idx: 0, sum: 1000, incidentcategory: { selectType: 'one' } })
167 167
         .then(res => {
168 168
           toast.hide();
169 169
           if (res.data.status == 200) {
@@ -194,10 +194,10 @@ export default {
194 194
       };
195 195
     } else if (this.loginUser.branch) {
196 196
       // 当前的所属院区
197
-      this.selectData.hospital = this.loginUser.branch.map(v => ({
198
-        id: v.id,
199
-        hosName: v.hosName
200
-      }));
197
+      this.selectData.hospital = {
198
+        id: this.loginUser.branch.id,
199
+        hosName: this.loginUser.branch.hosName
200
+      };
201 201
     }
202 202
   }
203 203
 };