organizationInfo.vue 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <template>
  2. <div class="page_organizationInfo">
  3. <div class="organizationInfoTitle">
  4. <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
  5. <span class="titleName">组织信息</span>
  6. </div>
  7. <div class="organizeBox">
  8. <div class="organizeBoxOne">
  9. <div class="organizeBoxOneLeft">
  10. <span v-if="org_logo == ''"
  11. ><img src="../../assets/images/m01.png" alt
  12. /></span>
  13. <span v-if="org_logo != ''"><img :src="org_logo" alt/></span>
  14. <p>{{ org_short_name }}</p>
  15. </div>
  16. <!-- <van-icon class="arrow" name="arrow" /> -->
  17. </div>
  18. <div class="organizeTip">我在该团队的信息</div>
  19. <div class="organizeBoxTwo">
  20. <div>名字</div>
  21. <div class="organizeBoxTwoTxt">
  22. {{ user_name }}
  23. </div>
  24. </div>
  25. <div class="organizeBoxTwo">
  26. <div>电话</div>
  27. <div class="organizeBoxTwoTxt">
  28. {{ telephone }}
  29. </div>
  30. </div>
  31. <div class="organizeBoxTwo">
  32. <div>角色</div>
  33. <div class="rolebox" v-if="role_name != ''">
  34. <div class="roleboxBtn">{{ role_name }}</div>
  35. </div>
  36. </div>
  37. <div class="organizeBoxTwo">
  38. <div>职位</div>
  39. <div class="organizeBoxTwoTxt" v-if="positionName != ''">
  40. {{ positionName }}
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. import {
  48. getOrgName,
  49. getRoleName,
  50. getAllOrganization
  51. } from "@/api/patient/patient";
  52. import { setRem } from "@/libs/functionRem";
  53. export default {
  54. data() {
  55. return {
  56. user_name: "",
  57. org_short_name: "",
  58. telephone: "",
  59. role_name: "",
  60. positionName: "",
  61. org_logo: ""
  62. };
  63. },
  64. methods: {
  65. getOrgName(id) {
  66. getOrgName(id).then(response => {
  67. if (response.data.state === 1) {
  68. var name = response.data.data.name;
  69. this.org_short_name = name.org_name;
  70. this.org_logo = name.org_logo;
  71. this.telephone = name.telephone;
  72. console.log("name", name);
  73. }
  74. });
  75. },
  76. getRoleName(id) {
  77. getRoleName(id).then(response => {
  78. if (response.data.state === 1) {
  79. var name = response.data.data.name;
  80. console.log("角色", name);
  81. this.role_name = name.role_name;
  82. var positionName = response.data.data.positionName;
  83. if (positionName.user_type === 1) {
  84. positionName.user_type = "医士";
  85. }
  86. if (positionName.user_type === 2) {
  87. positionName.user_type = "医师";
  88. }
  89. if (positionName.user_type === 3) {
  90. positionName.user_type = "住院医师";
  91. }
  92. if (positionName.user_type === 4) {
  93. positionName.user_type = "主治医师";
  94. }
  95. if (positionName.user_type === 5) {
  96. positionName.user_type = "副主任医师";
  97. }
  98. if (positionName.user_type === 6) {
  99. positionName.user_type = "主任医师";
  100. }
  101. if (positionName.user_type === 7) {
  102. positionName.user_type = "护士";
  103. }
  104. if (positionName.user_type === 8) {
  105. positionName.user_type = "护师";
  106. }
  107. if (positionName.user_type === 9) {
  108. positionName.user_type = "主管护师";
  109. }
  110. if (positionName.user_type === 10) {
  111. positionName.user_type = "副主任护师";
  112. }
  113. if (positionName.user_type === 11) {
  114. positionName.user_type = "主任护师";
  115. }
  116. if (positionName.user_type === 12) {
  117. positionName.user_type = "运营专员";
  118. }
  119. if (positionName.user_type === 13) {
  120. positionName.user_type = "运营主管";
  121. }
  122. console.log("职称", positionName);
  123. this.positionName = positionName.user_type;
  124. }
  125. });
  126. },
  127. getAllOrganization(id) {
  128. getAllOrganization(id).then(response => {
  129. if (response.data.state == 1) {
  130. }
  131. });
  132. }
  133. },
  134. created() {
  135. setRem()
  136. this.user_name = this.$store.getters.user.user.user_name;
  137. // this.org_short_name = this.$store.getters.user.org.org_short_name;
  138. var id = this.$route.query.id;
  139. console.log("id", id);
  140. var orgid = this.$route.query.orgid;
  141. this.getOrgName(orgid);
  142. this.getRoleName(id);
  143. this.getAllOrganization(id);
  144. }
  145. };
  146. </script>
  147. <style lang="scss" scoped>
  148. .page_organizationInfo {
  149. height: 100%;
  150. overflow-y: auto;
  151. background: #fafafa;
  152. .organizationInfoTitle {
  153. background: #fff;
  154. padding: 0 1.125rem;
  155. height: 3.125rem;
  156. display: flex;
  157. align-items: center;
  158. }
  159. .jiantou {
  160. font-size: 1.5rem;
  161. font-weight: 600;
  162. margin-right: 7rem;
  163. }
  164. .titleName {
  165. font-size: 1.125rem;
  166. font-weight: 600;
  167. }
  168. .organizeBox {
  169. margin-top: 1rem;
  170. > div:last-child {
  171. border: none;
  172. }
  173. .organizeBoxOne {
  174. font-size: 1rem;
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. padding: 0 0.875rem;
  179. height: 4.5rem;
  180. background: #fff;
  181. .organizeBoxOneLeft {
  182. display: flex;
  183. align-items: center;
  184. img {
  185. width: 3rem;
  186. height: 3rem;
  187. margin-right: 0.75rem;
  188. }
  189. }
  190. .arrow {
  191. color: #9f9f9f;
  192. }
  193. }
  194. .organizeTip {
  195. height: 1.875rem;
  196. line-height: 1.875rem;
  197. padding-left: 0.875rem;
  198. font-size: 0.75rem;
  199. color: #8d8d8d;
  200. }
  201. .organizeBoxTwo {
  202. font-size: 1rem;
  203. display: flex;
  204. align-items: center;
  205. justify-content: space-between;
  206. height: 2.8125rem;
  207. background: #fff;
  208. padding: 0 0.875rem;
  209. border-bottom: 1px solid #ccc;
  210. .organizeBoxTwoTxt {
  211. color: #8d8d8d;
  212. }
  213. .rolebox {
  214. display: flex;
  215. align-items: center;
  216. }
  217. .roleboxBtn {
  218. padding: 0.5rem 0.75rem;
  219. background: rgba(51, 138, 251, 0.1);
  220. border: 1px solid rgba(51, 138, 251, 1);
  221. border-radius: 0.3125rem;
  222. text-align: center;
  223. margin-left: 0.375rem;
  224. color: #338afb;
  225. font-size: 0.875rem;
  226. }
  227. }
  228. }
  229. }
  230. </style>