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

使用之前的版本

上级 f034e5f6
...@@ -20,28 +20,28 @@ import ExamScoreList from "@/components/bussiness/exam-score-list"; ...@@ -20,28 +20,28 @@ import ExamScoreList from "@/components/bussiness/exam-score-list";
export default { export default {
data() { data() {
return { return {
// title: "共0条数据", title: "共0条数据",
needRightBtn: true, needRightBtn: true,
token: "", token: "",
// 查询概况数据 // 查询概况数据
// queryGDParams: { queryGDParams: {
// appSelectType: 2, appSelectType: 2,
// beginDate: "", beginDate: "",
// endDate: "", endDate: "",
// hospitalIdList: [], hospitalIdList: [],
// originalFlag: 1, // 默认值0:0不查看原始数据 originalFlag: 1, // 默认值0:0不查看原始数据
// projectId: 374, projectId: 374,
// regionId: "", regionId: "",
// timeFlag: 1, timeFlag: 1,
// pageNo: 0, pageNo: 0,
// pageSize: 0, pageSize: 0,
// sourceType: 1, sourceType: 1,
// pageCfg: { pageCfg: {
// type: 1 type: 1
// } }
// }, },
// allData: {}, allData: {},
// dataList: [], dataList: [],
dropdownList: [{ dropdownList: [{
desc: '1分', desc: '1分',
type: 1 type: 1
...@@ -61,47 +61,47 @@ export default { ...@@ -61,47 +61,47 @@ export default {
CommonNoMore, CommonNoMore,
ExamScoreList ExamScoreList
}, },
async asyncData( { query } ) { // async asyncData( { query } ) {
let queryGDParams = { // let queryGDParams = {
appSelectType: 2, // appSelectType: 2,
beginDate: "", // beginDate: "",
endDate: "", // endDate: "",
hospitalIdList: [], // hospitalIdList: [],
originalFlag: 1, // 默认值0:0不查看原始数据 // originalFlag: 1, // 默认值0:0不查看原始数据
projectId: 374, // projectId: 374,
regionId: "", // regionId: "",
timeFlag: 1, // timeFlag: 1,
pageNo: 0, // pageNo: 0,
pageSize: 0, // pageSize: 0,
sourceType: 1, // sourceType: 1,
pageCfg: { // pageCfg: {
type: 1 // type: 1
} // }
}; // };
let hospitalIdList = query.hospitalIdList || '' // let hospitalIdList = query.hospitalIdList || ''
queryGDParams.projectId = query.projectId || ''; // queryGDParams.projectId = query.projectId || '';
queryGDParams.regionId = query.regionId || ''; // queryGDParams.regionId = query.regionId || '';
queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || []; // queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.set("token", query.token || ''); // cookies.set("token", query.token || '');
let examData = await getGeneralExam(queryGDParams); // let examData = await getGeneralExam(queryGDParams);
console.log(examData); // console.log(examData);
return { // return {
allData: examData.data, // allData: examData.data,
dataList: examData.data && examData.data.examScoreList || [], // dataList: examData.data && examData.data.examScoreList || [],
title: `共${examData.data && examData.data.examScoreList && examData.data.examScoreList.length || 0}条数据` // title: `共${examData.data && examData.data.examScoreList && examData.data.examScoreList.length || 0}条数据`
} // }
}, // },
created() { created() {
if (process.client) { if (process.client) {
// if(this.$route && this.$route.query) { if(this.$route && this.$route.query) {
// let cQuery = this.$route.query let cQuery = this.$route.query
// this.queryGDParams.projectId = cQuery.projectId || ''; this.queryGDParams.projectId = cQuery.projectId || '';
// this.queryGDParams.regionId = cQuery.regionId || ''; this.queryGDParams.regionId = cQuery.regionId || '';
// let hospitalIdList = cQuery.hospitalIdList || '' let hospitalIdList = cQuery.hospitalIdList || ''
// this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || []; this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
// cookies.set("token", cQuery.token || ''); cookies.set("token", cQuery.token || '');
// this.getGeneralExam(this.queryGDParams); this.getGeneralExam(this.queryGDParams);
// } }
} }
}, },
mounted() { mounted() {
......
...@@ -18,10 +18,10 @@ import ExamTimesList from "@/components/bussiness/exam-times-list"; ...@@ -18,10 +18,10 @@ import ExamTimesList from "@/components/bussiness/exam-times-list";
export default { export default {
data() { data() {
return { return {
// title: "共0条数据", title: "共0条数据",
needRightBtn: false, needRightBtn: false,
token: "", token: "",
// dataList: [] dataList: []
}; };
}, },
components: { components: {
...@@ -30,48 +30,48 @@ export default { ...@@ -30,48 +30,48 @@ export default {
CommonNoMore, CommonNoMore,
ExamTimesList ExamTimesList
}, },
async asyncData( { query } ) { // async asyncData( { query } ) {
let queryGDParams = { // let queryGDParams = {
appSelectType: 1, // appSelectType: 1,
beginDate: "", // beginDate: "",
endDate: "", // endDate: "",
hospitalIdList: [], // hospitalIdList: [],
originalFlag: 1, // 默认值0:0不查看原始数据 // originalFlag: 1, // 默认值0:0不查看原始数据
projectId: 374, // projectId: 374,
regionId: "", // regionId: "",
timeFlag: 1, // timeFlag: 1,
pageNo: 0, // pageNo: 0,
pageSize: 0, // pageSize: 0,
sourceType: 1, // sourceType: 1,
pageCfg: { // pageCfg: {
type: 1 // type: 1
} // }
}; // };
let hospitalIdList = query.hospitalIdList || '' // let hospitalIdList = query.hospitalIdList || ''
queryGDParams.projectId = query.projectId || ''; // queryGDParams.projectId = query.projectId || '';
queryGDParams.regionId = query.regionId || ''; // queryGDParams.regionId = query.regionId || '';
queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || []; // queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.set("token", query.token || ''); // cookies.set("token", query.token || '');
let examData = await getGeneralExam(queryGDParams); // let examData = await getGeneralExam(queryGDParams);
console.log(examData); // console.log(examData);
return { // return {
dataList: examData.data && examData.data.examTimesList, // dataList: examData.data && examData.data.examTimesList,
title: `共${(examData.data && examData.data.examTimesList && examData.data.examTimesList.length) || 0}条数据` // title: `共${(examData.data && examData.data.examTimesList && examData.data.examTimesList.length) || 0}条数据`
} // }
}, // },
created() { created() {
if (process.client) { if (process.client) {
// if(this.$route && this.$route.query) { if(this.$route && this.$route.query) {
// let cQuery = this.$route.query let cQuery = this.$route.query
// let hospitalIdList = cQuery.hospitalIdList || '' let hospitalIdList = cQuery.hospitalIdList || ''
// this.queryGDParams.projectId = cQuery.projectId || ''; this.queryGDParams.projectId = cQuery.projectId || '';
// this.queryGDParams.regionId = cQuery.regionId || ''; this.queryGDParams.regionId = cQuery.regionId || '';
// this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || []; this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
// cookies.set("token", cQuery.token || ''); cookies.set("token", cQuery.token || '');
// this.getGeneralExam(this.queryGDParams); this.getGeneralExam(this.queryGDParams);
// } }
} }
}, },
mounted() { mounted() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册