Ver código fonte

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 4 anos atrás
pai
commit
5fc0275e97
2 arquivos alterados com 24 adições e 2 exclusões
  1. 8 0
      src/api/patient/patient.js
  2. 16 2
      src/pages/my/index.vue

+ 8 - 0
src/api/patient/patient.js Ver arquivo

@@ -923,3 +923,11 @@ export function submitForm(params) {
923 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 Ver arquivo

@@ -176,7 +176,8 @@ export default {
176 176
       creator: 0,
177 177
       ids: 0,
178 178
       isCreateOrg: false,
179
-      org_id: 0
179
+      org_id: 0,
180
+      cretor: 0
180 181
     };
181 182
   },
182 183
   methods: {
@@ -203,6 +204,9 @@ export default {
203 204
           console.log("orgs", orgs);
204 205
           this.organaziton = orgs;
205 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,7 +269,6 @@ export default {
265 269
         }
266 270
       });
267 271
     },
268
-
269 272
     // 获取机构信息
270 273
     getMyOrgInformation(creator) {
271 274
       getMyOrgInformation(creator).then(response => {
@@ -284,6 +287,16 @@ export default {
284 287
         this.org_id = Username.org_id;
285 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 302
   created() {
@@ -302,6 +315,7 @@ export default {
302 315
     if (creator !== 0) {
303 316
       this.getMyInformationFour();
304 317
     }
318
+    // this.getRolePosition();
305 319
   }
306 320
 };
307 321
 </script>