提交 730ddbbd 编写于 作者: guangjun.yang's avatar guangjun.yang

机构选择调整等

上级 f9cdaadb
此差异已折叠。
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
<div class="my-org" v-show="areaList.currentOrgList.length"> <div class="my-org" v-show="areaList.currentOrgList.length">
<span>我所在机构</span> <span>我所在机构</span>
<ul> <ul >
<li <li
class="list" class="list"
v-for="(provinceItem, index) in areaList.currentOrgList" v-for="(provinceItem, index) in areaList.currentOrgList"
...@@ -197,7 +197,11 @@ export default { ...@@ -197,7 +197,11 @@ export default {
let hospitalIdList = cQuery.hospitalIdList || ""; let hospitalIdList = cQuery.hospitalIdList || "";
this.queryParams.projectId = cQuery.projectId || ""; this.queryParams.projectId = cQuery.projectId || "";
} }
} }
},
mounted() {
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
...@@ -629,7 +633,7 @@ export default { ...@@ -629,7 +633,7 @@ export default {
display: flex; display: flex;
position: relative; position: relative;
padding-bottom: 4px; padding-bottom: 4px;
margin: 0 5px; margin: 0 7px;
&:after { &:after {
content: " "; content: " ";
position: absolute; position: absolute;
...@@ -650,17 +654,18 @@ export default { ...@@ -650,17 +654,18 @@ export default {
font-size: 15px; font-size: 15px;
line-height: 35px; line-height: 35px;
height: 35px; height: 35px;
padding: 0 10px; padding: 0 8px;
// padding-right: 15px; // padding-right: 15px;
box-sizing: border-box; box-sizing: border-box;
max-width: 25%; max-width: 23%;
min-width: 50px;
text-align: left; text-align: left;
color: #676869; color: #676869;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
position: relative; position: relative;
// flex: 1 0 auto;
&:last-of-type { &:last-of-type {
padding-right: 15px; padding-right: 15px;
} }
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
"nuxt": "^2.0.0", "nuxt": "^2.0.0",
"v-charts": "^1.19.0", "v-charts": "^1.19.0",
"vant": "^2.2.13", "vant": "^2.2.13",
"web-buried-point": "^2.1.0", "web-buried-point": "^2.1.0"
"vconsole": "^3.3.4"
}, },
"devDependencies": { "devDependencies": {
"@nuxtjs/axios": "^5.5.4", "@nuxtjs/axios": "^5.5.4",
......
<template> <template>
<section class="container"> <section class="container">
<CommonHeader :title="projectInfo.projectName | shortName"></CommonHeader> <CommonHeader :title="projectInfo.projectName | shortName"></CommonHeader>
<CommonAreaSelect v-show="!isScroll" @areaClick="areaTabClick" :areaName="areaName" :showArea="isShowArea"> <CommonAreaSelect v-show="!isScroll" @areaClick="areaTabClick" :areaName="areaName" :showArea="isShowArea">
</CommonAreaSelect> </CommonAreaSelect>
...@@ -86,7 +86,8 @@ ...@@ -86,7 +86,8 @@
<CommonLoading v-show="false"></CommonLoading> <CommonLoading v-show="false"></CommonLoading>
<PopTips :tipsContent="tipsContent" @clickTips="clickTips" v-show="isShowTips"></PopTips> <PopTips :tipsContent="tipsContent" @clickTips="clickTips" v-show="isShowTips"></PopTips>
<Loading v-show="isShowLoading"></Loading> <Loading v-show="isShowLoading"></Loading>
</section>
</section>
</template> </template>
<script> <script>
...@@ -180,7 +181,7 @@ export default { ...@@ -180,7 +181,7 @@ export default {
}, },
data() { data() {
return { return {
isShowLoading: false, isShowLoading: true,
isScroll: false, isScroll: false,
isShowArea: false, isShowArea: false,
isShowTips: false, isShowTips: false,
...@@ -364,13 +365,15 @@ export default { ...@@ -364,13 +365,15 @@ export default {
// 查询用户信息和权限 // 查询用户信息和权限
getProjectInfo(params) { getProjectInfo(params) {
getProjectInfo({ // getProjectInfo({
projectId: this.projectId // projectId: this.projectId
}).then(res => { // }).then(res => {
if (res.code === "000000") { // if (res.code === "000000") {
this.projectInfo = res.data; // this.projectInfo = res.data;
getAreaOrOrgList(params).then(res => { getAreaOrOrgList(params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.projectInfo = res.data.doctorInfoRep;
this.queryGDParams.originalFlag = res.data.doctorInfoRep.status == 2 ? 1 : 2;
// 如果直接是5级,则将其进行拆分(区域ID与机构ID) // 如果直接是5级,则将其进行拆分(区域ID与机构ID)
let regionId = '', orgId = '', firstData = res.data.list[0]; let regionId = '', orgId = '', firstData = res.data.list[0];
if(firstData.degree == 5) { if(firstData.degree == 5) {
...@@ -397,13 +400,14 @@ export default { ...@@ -397,13 +400,14 @@ export default {
this.queryGDParams.hospitalIdList = []; this.queryGDParams.hospitalIdList = [];
this.queryGDParams.hospitalIdList.push(orgId); this.queryGDParams.hospitalIdList.push(orgId);
this.getGeneralPersonal(this.queryGDParams); this.getGeneralPersonal(this.queryGDParams);
this.otherInterface();
} else { } else {
this.getHospitalsCNT(this.CNTParams); this.getHospitalsCNT(this.CNTParams);
} }
} }
}); });
} // }
}); // });
}, },
// 异步延迟调用其它Tabs接口(除了数据概述) // 异步延迟调用其它Tabs接口(除了数据概述)
...@@ -726,4 +730,5 @@ export default { ...@@ -726,4 +730,5 @@ export default {
padding-top: 94px; padding-top: 94px;
} }
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册