提交 21b60873 编写于 作者: zhentian.jia's avatar zhentian.jia

多次loading问题

上级 74ea3bb1
......@@ -220,24 +220,25 @@ module.exports = {
},
// 通用GET请求
GET(api, para, callback,str) {
GET(api, para, callback, str, noLoading) {
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
let url = api + this.getUrlPara(para)
url = encodeURI(url);
return fetch({
url: getBaseUrl(url),
method: 'get',
data: para
data: para,
noLoading
})
},
reportGET(api, para, callback,str) {
reportGET(api, para, callback, str) {
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
let url = api + this.getUrlPara(para)
url = encodeURI(url);
return fetch({
url: getReportUrl(url),
method: 'get',
data: para
data: para,
})
},
// saas-GET请求
......@@ -273,12 +274,13 @@ module.exports = {
})
},
// 通用POST请求
POST(api, para, callback) {
POST(api, para, callback, str, noLoading) {
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
return fetch({
url: getBaseUrl(api),
method: 'post',
data: para
data: para,
noLoading
})
},
reportPOST(api, para, callback) {
......
......@@ -264,10 +264,14 @@ export default {
};
</script>
<style lang="scss">
.el-tooltip__popper{
max-width: 300px;
}
.export-download {
.component-content {
background: #fff;
padding: 10px;
.p-title {
position: relative;
margin-top: 30px;
......
......@@ -197,7 +197,7 @@ export default {
pageNo: vm.pageNo,
pageSize: vm.pageSize,
};
vm.POST("stats/report/course", req).then(res => {
vm.POST("stats/report/course", req, '', '', true).then(res => {
if (res.code == "000000") {
if (type !== 2) {
vm.setCardData(res.data);
......
......@@ -193,7 +193,7 @@ export default {
regionId: vm.formInline.region[vm.formInline.region.length - 1],
timeFlag: vm.formInline.timeFlag
};
vm.POST("stats/report/userAnalysis_pc/"+vm.radio, req).then(res => {
vm.POST("stats/report/userAnalysis_pc/"+vm.radio, req, '', '', true).then(res => {
if (res.code == "000000") {
// if(res.data.educationList.length == 0 && res.data.jobTitle.length == 0 ) {
// vm.$message("没有相关数据,请重新选择查询范围");
......
......@@ -515,7 +515,7 @@ export default {
projectId: vm.projectId,
regionId: vm.formInline.region[vm.formInline.region.length - 1]
};
vm.GET("stats/region/hospitals/cnt", req).then(res => {
vm.GET("stats/region/hospitals/cnt", req, '', '', false).then(res => {
if (res.code == "000000") {
vm.hospitalCnt = res.data.hospitalCnt;
// vm.hospitalCnt = 1;
......@@ -580,7 +580,7 @@ export default {
req.hospitalIdList = [];
req.hospitalIdList[0] = vm.hospitalCutList[0].hospitalId;
}
vm.POST("stats/report/generalPersonal/"+vm.tableType, req).then(res => {
vm.POST("stats/report/generalPersonal/"+vm.tableType, req, '', '', true).then(res => {
if (res.code == "000000") {
if(type != 1) {
vm.initCard(res.data.percentData);
......@@ -605,7 +605,7 @@ export default {
regionId: vm.formInline.region[vm.formInline.region.length - 1],
timeFlag: vm.formInline.timeFlag,
};
vm.POST("stats/report/general_pc", req).then(res => {
vm.POST("stats/report/general_pc", req, '', '', true).then(res => {
if (res.code == "000000") {
vm.initCard(res.data.percentData);
if(vm.certFlag !== 0) {
......@@ -651,7 +651,7 @@ export default {
pageSize: vm.formDwmy.pageSize,
};
}
vm.POST("stats/dwmy/", req).then(res => {
vm.POST("stats/dwmy/", req, '', '', true).then(res => {
if (res.code == "000000") {
vm.tableDateTime = res.data.list;
vm.totalCount = res.data.totalCount;
......
......@@ -243,7 +243,7 @@ export default {
regionId: vm.formInline.region[vm.formInline.region.length - 1],
timeFlag: vm.formInline.timeFlag
};
vm.POST("stats/report/exam", req).then(res => {
vm.POST("stats/report/exam", req, '', '', true).then(res => {
if (res.code == "000000") {
vm.examData = res.data;
vm.setCardData(res.data);
......@@ -270,7 +270,7 @@ export default {
reqList.pageNo = vm.pageNo;
reqList.pageSize = vm.pageSize;
// openLoading(vm);
vm.POST("stats/report/exam/list", req).then(res => {
vm.POST("stats/report/exam/list", req, '', '', true).then(res => {
// closeLoading(vm);
if (res.code == "000000") {
vm.tableData = res.data.examInfoList;
......
......@@ -106,7 +106,7 @@ export default {
regionId: vm.formInline.region[vm.formInline.region.length - 1],
timeFlag: vm.formInline.timeFlag
};
vm.POST("stats/report/studyEffect", req).then(res => {
vm.POST("stats/report/studyEffect", req, '', '', true).then(res => {
if (res.code == "000000") {
vm.initCard(res.data);
setTimeout(function() {
......
......@@ -590,7 +590,7 @@ export default {
let req = {
projectId: vm.projectId,
};
vm.GET("stats/region", req).then(res => {
vm.GET("stats/region", req, '', '', true).then(res => {
if (res.code == "000000") {
vm.formInline.region = [];
vm.formInline.region[0] = res.data.list[0].id;
......@@ -608,7 +608,7 @@ export default {
projectId: vm.projectId,
regionId: vm.formInline.region[vm.formInline.region.length - 1]
};
vm.GET("stats/region/hospitals/cnt", req).then(res => {
vm.GET("stats/region/hospitals/cnt", req, '', '', false).then(res => {
if (res.code == "000000") {
vm.hospitalCnt = res.data.hospitalCnt;
vm.hospitalCntList = res.data.list
......@@ -623,7 +623,7 @@ export default {
projectId: vm.projectId,
regionId : regionId
};
vm.GET("stats/region/hospital", req).then(res => {
vm.GET("stats/region/hospital", req, '', '', true).then(res => {
if (res.code == "000000") {
this.organizationList = operationData.getLearnOrganization(
res.data.list
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册