提交 9f9402f7 编写于 作者: tao.wu's avatar tao.wu

Merge branch 'dev-followUp-20190312' of...

Merge branch 'dev-followUp-20190312' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
created() { created() {
vm = this vm = this
if(vm.$route.name!='loginPage') { if(vm.$route.name!='loginPage') {
vm.getToken() vm.getToken()
} }
}, },
mounted() { mounted() {
...@@ -140,7 +140,12 @@ export default { ...@@ -140,7 +140,12 @@ export default {
} }
}) })
} }
} },
watch: {
_token(val) {
vm.getUserAuth(val)
}
}
} }
</script> </script>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<div class="content-div"> <div class="content-div">
<div class="c-title">随访登记表:</div> <div class="c-title">随访登记表:</div>
<div class="c-content more-content"> <div class="c-content more-content">
<p class="click-text" v-for="item in nodeContent[0].followupList" @click="goToShort(item.resourceUrl)">{{item.sendContent}}</p> <p class="click-text" v-for="item in nodeContent[0].followupList" @click="goToScale(item)">{{item.sendContent}}</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -184,6 +184,10 @@ ...@@ -184,6 +184,10 @@
goToShort(url) { goToShort(url) {
window.open(url) window.open(url)
}, },
goToScale(val) {
this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: val.doctorId, scaleNo: val.resourceId, planPatientsTimesId: val.planPatientsTimesId, showBtn: 0}});
}
}, },
watch: { watch: {
planDetail(val) { planDetail(val) {
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<div class="content-div"> <div class="content-div">
<div class="c-title">随访登记表:</div> <div class="c-title">随访登记表:</div>
<div class="c-content more-content"> <div class="c-content more-content">
<p class="click-text" v-for="item in nodeContent.followupList" @click="goToShort(item.resourceUrl)" >{{item.sendContent}}</p> <p class="click-text" v-for="item in nodeContent.followupList" @click="goToScale(item)" >{{item.sendContent}}</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
planDetails: {}, //计划详情 planDetails: {}, //计划详情
status: null, status: null,
residentCrumb: [], //面包屑 residentCrumb: [], //面包屑
nodePlanPatientsTimesId: []
} }
}, },
created() { created() {
...@@ -196,6 +197,10 @@ ...@@ -196,6 +197,10 @@
goToShort(url) { goToShort(url) {
window.open(url) window.open(url)
}, },
goToScale(val) {
this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.residentDetail.doctorId, scaleNo: val.resourceId, planPatientsTimesId: this.nodePlanPatientsTimesId[0].planPatientsTimesId, showBtn: 1}});
}
}, },
watch: { watch: {
timeNodeList(val) { timeNodeList(val) {
...@@ -205,7 +210,11 @@ ...@@ -205,7 +210,11 @@
} }
}, },
timeNodes(val) { timeNodes(val) {
this.getNodeTimeContent(val) this.getNodeTimeContent(val);
this.nodePlanPatientsTimesId = this.timeNodeList.filter(function(item){
return item.id == val;
});
console.log(this.nodePlanPatientsTimesId)
}, },
residentDetail(val) { residentDetail(val) {
this.planDetails = val.fPlanDto this.planDetails = val.fPlanDto
......
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
} }
}else if(this.formList.scalesList.length === 1){ }else if(this.formList.scalesList.length === 1){
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.fuPlanPatientTimesId}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.fuPlanPatientTimesId, showBtn: 1}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂不支持录入量表!')
} }
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
goFormView(item) { goFormView(item) {
this.selectFormShow = false this.selectFormShow = false
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientsTimesId}}); query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientsTimesId, showBtn: 1}});
}, },
closeForm() { closeForm() {
this.selectFormShow = false; this.selectFormShow = false;
......
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
goFormView(item) { goFormView(item) {
this.selectFormShow = false this.selectFormShow = false
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientsTimesId}}); query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientsTimesId, showBtn: 1}});
}, },
closeForm() { closeForm() {
this.selectFormShow = false; this.selectFormShow = false;
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
} }
}else if(this.formList.scalesList.length === 1){ }else if(this.formList.scalesList.length === 1){
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.planPatientTimesId}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.planPatientTimesId, showBtn: 1}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂不支持录入量表!')
} }
......
...@@ -89,7 +89,9 @@ ...@@ -89,7 +89,9 @@
</template> </template>
<script> <script>
let vm = null
import { ssoLogin2, getDeviceInfo } from '@/utils/utils'; import { ssoLogin2, getDeviceInfo } from '@/utils/utils';
import { mapActions } from 'vuex';
import md5 from 'js-md5'; import md5 from 'js-md5';
export default { export default {
...@@ -117,8 +119,13 @@ ...@@ -117,8 +119,13 @@
}, },
created() { created() {
ssoLogin2() //初始化登录信息 ssoLogin2() //初始化登录信息
vm = this
}, },
methods: { methods: {
// 修改token
...mapActions([
'changeToken',
]),
checkPhone(val) { checkPhone(val) {
if(!(/^1[345678]\d{9}$/.test(val))) { if(!(/^1[345678]\d{9}$/.test(val))) {
return false; return false;
...@@ -270,6 +277,7 @@ ...@@ -270,6 +277,7 @@
return; return;
} }
localStorage.setItem("token", data.token); localStorage.setItem("token", data.token);
vm.changeToken(data.token)
localStorage.setItem("storageToken", data.token); localStorage.setItem("storageToken", data.token);
localStorage.setItem('doctorId',data.picapDoctor.id); localStorage.setItem('doctorId',data.picapDoctor.id);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册