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

提示语调整、格式调整

上级 0214b3bb
...@@ -184,13 +184,13 @@ export default { ...@@ -184,13 +184,13 @@ export default {
methods: { methods: {
...mapActions({ ...mapActions({
setOrgList: 'setOrgList' setOrgList: 'setOrgList',
setAreaDegree: 'setAreaDegree'
}), }),
async getHospitalsByRegionId(params) { async getHospitalsByRegionId(params) {
await getHospitalsByRegionId(params).then(res => { await getHospitalsByRegionId(params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.setOrgList(res.data.list) this.setOrgList(res.data.list)
console.log('@@@@@@@@@@@@@', res);
} }
}); });
}, },
...@@ -290,8 +290,9 @@ export default { ...@@ -290,8 +290,9 @@ export default {
if(item.degree == 0){ if(item.degree == 0){
return; return;
} }
if(item.degree == 4){ if(item.degree == 3 || item.degree == 4){
// 调用机构接口 // 调用机构接口
this.setAreaDegree(item.degree)
this.getHospitalsByRegionId(this.queryParams); this.getHospitalsByRegionId(this.queryParams);
return; return;
} }
...@@ -327,8 +328,9 @@ export default { ...@@ -327,8 +328,9 @@ export default {
if(item.degree == 0){ if(item.degree == 0){
return; return;
} }
if(item.degree == 4){ if(item.degree == 3 || item.degree == 4){
// 调用机构接口 // 调用机构接口
this.setAreaDegree(item.degree)
this.getHospitalsByRegionId(this.queryParams); this.getHospitalsByRegionId(this.queryParams);
return; return;
} }
...@@ -359,8 +361,9 @@ export default { ...@@ -359,8 +361,9 @@ export default {
if(item.degree == 0){ if(item.degree == 0){
return; return;
} }
if(item.degree == 4){ if(item.degree == 3 || item.degree == 4){
// 调用机构接口 // 调用机构接口
this.setAreaDegree(item.degree)
this.getHospitalsByRegionId(this.queryParams); this.getHospitalsByRegionId(this.queryParams);
return; return;
} }
...@@ -386,8 +389,9 @@ export default { ...@@ -386,8 +389,9 @@ export default {
if(item.degree == 0){ if(item.degree == 0){
return; return;
} }
if(item.degree == 4){ if(item.degree == 3 || item.degree == 4){
// 调用机构接口 // 调用机构接口
this.setAreaDegree(item.degree)
this.getHospitalsByRegionId(this.queryParams); this.getHospitalsByRegionId(this.queryParams);
return; return;
} }
...@@ -431,11 +435,10 @@ export default { ...@@ -431,11 +435,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.select-wrapper { .select-wrapper {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
.mask { .mask {
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 124px; top: 0;
right: 0; right: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
......
...@@ -62,7 +62,6 @@ export default { ...@@ -62,7 +62,6 @@ export default {
watch: { watch: {
orgList: { orgList: {
handler(newList) { handler(newList) {
console.log('$$$$$$$$$4', newList)
this.dataList = newList; this.dataList = newList;
this.dataList.map(a => { this.dataList.map(a => {
a.selected = false; a.selected = false;
...@@ -97,7 +96,7 @@ export default { ...@@ -97,7 +96,7 @@ export default {
.mask { .mask {
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 124px; top: 0;
right: 0; right: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
......
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
allData: {}, allData: {},
projectId: "", projectId: "",
token: token:
"F24CD42F1CFA46829639228E9CFE1E3D" || "299F66567E7C48C78ADE418B364C5A35" ||
"A62E9F92365547A29724F21F29BED4F6" || "A62E9F92365547A29724F21F29BED4F6" ||
"4556EDEAAE134FE1B6E1356BF9C1B8F9", "4556EDEAAE134FE1B6E1356BF9C1B8F9",
isOrgStat: false, isOrgStat: false,
...@@ -297,6 +297,12 @@ export default { ...@@ -297,6 +297,12 @@ export default {
}; };
}, },
computed: {
...mapGetters({
orgList: "orgList",
areaDegree: "areaDegree"
}),
},
async asyncData() { async asyncData() {
return {}; return {};
}, },
...@@ -488,6 +494,8 @@ export default { ...@@ -488,6 +494,8 @@ export default {
this.isShowArea = false; this.isShowArea = false;
}, },
orgConfirm(selData) { orgConfirm(selData) {
this.$toast('res.message');
let hospitalIds = []; let hospitalIds = [];
let hospitalNames = []; let hospitalNames = [];
let orgName = ''; let orgName = '';
...@@ -514,10 +522,25 @@ export default { ...@@ -514,10 +522,25 @@ export default {
this.isShowOrg = false; this.isShowOrg = false;
}, },
areaTabClick() { areaTabClick() {
this.isShowArea = true; if(this.isShowOrg) {
this.isShowOrg = false;
}
this.isShowArea = !this.isShowArea;
}, },
orgTabClick() { orgTabClick() {
this.isShowOrg = true; // if(this.isShowArea) {
// this.isShowArea = false;
// }
if(this.orgDegree !== 3 && this.orgDegree !== 4) {
this.$toast('选择区/县后才可选择机构');
return;
}
if(this.orgList.length === 0) {
this.$toast('此区域下无机构');
return;
}
this.isShowOrg = !this.isShowOrg;
}, },
resizeTheChart() { resizeTheChart() {
if (this.$refs.runTimes_creditChart) { if (this.$refs.runTimes_creditChart) {
......
...@@ -2,8 +2,10 @@ import Vue from 'vue' ...@@ -2,8 +2,10 @@ import Vue from 'vue'
import rocNative from '@/utils/jsbridge' import rocNative from '@/utils/jsbridge'
import echarts from 'echarts' import echarts from 'echarts'
import { DropdownMenu, DropdownItem } from 'vant'; import { DropdownMenu, DropdownItem } from 'vant';
import { Toast } from 'vant';
// import picaArea from 'pica-area' // import picaArea from 'pica-area'
// Vue.use(picaArea) // Vue.use(picaArea)
Vue.use(Toast)
import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole
let vConsole = new VConsole() // 初始化 let vConsole = new VConsole() // 初始化
......
...@@ -20,7 +20,7 @@ Axios.interceptors.request.use( ...@@ -20,7 +20,7 @@ Axios.interceptors.request.use(
if (method === 'post' || method === 'put' || method === 'delete') {} if (method === 'post' || method === 'put' || method === 'delete') {}
if (config.withCredentials) { if (config.withCredentials) {
// config.headers.token = '3EB9111164E84A45B5B00428D52BC966'; // config.headers.token = '3EB9111164E84A45B5B00428D52BC966';
config.headers.token = cookies.get('token') || 'F24CD42F1CFA46829639228E9CFE1E3D' || 'C284B868425D494386EAEF6C9AE99937'; config.headers.token = cookies.get('token') || '299F66567E7C48C78ADE418B364C5A35' || 'F24CD42F1CFA46829639228E9CFE1E3D' || 'C284B868425D494386EAEF6C9AE99937';
} }
return config; return config;
}, },
......
...@@ -8,6 +8,7 @@ export const state = () => ({ ...@@ -8,6 +8,7 @@ export const state = () => ({
orgList: [], orgList: [],
examTimesList: [], examTimesList: [],
examScoreList: [], examScoreList: [],
areaDegree: 0
}) })
export const getters = { export const getters = {
projectId(state) { projectId(state) {
...@@ -37,6 +38,9 @@ export const getters = { ...@@ -37,6 +38,9 @@ export const getters = {
examScoreList(state) { examScoreList(state) {
return state.examScoreList; return state.examScoreList;
}, },
areaDegree(state) {
return state.areaDegree;
},
} }
export const mutations = { export const mutations = {
SET_PROJECT_ID(state, projectId) { SET_PROJECT_ID(state, projectId) {
...@@ -66,7 +70,9 @@ export const mutations = { ...@@ -66,7 +70,9 @@ export const mutations = {
SET_EXAM_SCORCE_LIST(state, examScoreList) { SET_EXAM_SCORCE_LIST(state, examScoreList) {
state.examScoreList = examScoreList; state.examScoreList = examScoreList;
}, },
SET_AREA_DEGREE(state, areaDegree) {
state.areaDegree = areaDegree;
},
} }
export const actions = { export const actions = {
setProjectId({ commit }, projectId) { setProjectId({ commit }, projectId) {
...@@ -96,4 +102,7 @@ export const actions = { ...@@ -96,4 +102,7 @@ export const actions = {
setExamScoreList({ commit }, examScoreList) { setExamScoreList({ commit }, examScoreList) {
commit('SET_EXAM_SCORCE_LIST', examScoreList); commit('SET_EXAM_SCORCE_LIST', examScoreList);
}, },
setAreaDegree({ commit }, areaDegree) {
commit('SET_AREA_DEGREE', areaDegree);
},
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册