Quellcode durchsuchen

我的页面bug修改

XMLWAN vor 4 Jahren
Ursprung
Commit
5ceb788ce0
2 geänderte Dateien mit 24 neuen und 2 gelöschten Zeilen
  1. 8 0
      src/api/patient/patient.js
  2. 16 2
      src/pages/my/index.vue

+ 8 - 0
src/api/patient/patient.js Datei anzeigen

923
     params: params
923
     params: params
924
   })
924
   })
925
 }
925
 }
926
+
927
+export function getRolePosition(params) {
928
+  return request({
929
+    url: '/m/api/patient/getroleposition',
930
+    method: 'get',
931
+    params: params
932
+  })
933
+}

+ 16 - 2
src/pages/my/index.vue Datei anzeigen

176
       creator: 0,
176
       creator: 0,
177
       ids: 0,
177
       ids: 0,
178
       isCreateOrg: false,
178
       isCreateOrg: false,
179
-      org_id: 0
179
+      org_id: 0,
180
+      cretor: 0
180
     };
181
     };
181
   },
182
   },
182
   methods: {
183
   methods: {
203
           console.log("orgs", orgs);
204
           console.log("orgs", orgs);
204
           this.organaziton = orgs;
205
           this.organaziton = orgs;
205
           this.isCreateOrg = response.data.data.isCreateOrg;
206
           this.isCreateOrg = response.data.data.isCreateOrg;
207
+          // var cretor = response.data.data.cretor;
208
+          //  console.log("cretor", cretor);
209
+          // this.cretor = cretor;
206
         }
210
         }
207
       });
211
       });
208
     },
212
     },
265
         }
269
         }
266
       });
270
       });
267
     },
271
     },
268
-
269
     // 获取机构信息
272
     // 获取机构信息
270
     getMyOrgInformation(creator) {
273
     getMyOrgInformation(creator) {
271
       getMyOrgInformation(creator).then(response => {
274
       getMyOrgInformation(creator).then(response => {
284
         this.org_id = Username.org_id;
287
         this.org_id = Username.org_id;
285
         this.ids = Username.admin_user_id;
288
         this.ids = Username.admin_user_id;
286
       });
289
       });
290
+    },
291
+    getRolePosition() {
292
+      getRolePosition().then(response => {
293
+        if (response.data.state === 1) {
294
+          var orgs = response.data.data.orgs;
295
+          console.log("position", orgs);
296
+          var adminUser = response.data.data.adminUser;
297
+          console.log("adminUser", adminUser);
298
+        }
299
+      });
287
     }
300
     }
288
   },
301
   },
289
   created() {
302
   created() {
302
     if (creator !== 0) {
315
     if (creator !== 0) {
303
       this.getMyInformationFour();
316
       this.getMyInformationFour();
304
     }
317
     }
318
+    // this.getRolePosition();
305
   }
319
   }
306
 };
320
 };
307
 </script>
321
 </script>