diff --git a/src/components/sumDoctorCheck/SumSug.vue b/src/components/sumDoctorCheck/SumSug.vue
index 3ac4d88..c036d84 100644
--- a/src/components/sumDoctorCheck/SumSug.vue
+++ b/src/components/sumDoctorCheck/SumSug.vue
@@ -59,9 +59,9 @@
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'">
@@ -65,7 +65,7 @@ import axios from "axios";
export default {
data() {
return {
- sysConfig:{}, // 配置信息
+ sysConfig: {}, // 配置信息
form: {
Username: "",
Password: "",
@@ -82,8 +82,8 @@ export default {
},
};
},
- async mounted() {
- await this.getSysConfig()
+ async mounted() {
+ await this.getSysConfig()
// 壳程序懒加载通讯组件
if (this.$peisAPI) {
this.$peisAPI.lazyLoad(); // 加载报表 dll
@@ -92,14 +92,16 @@ export default {
},
methods: {
- async getSysConfig(){
+ async getSysConfig() {
try {
- let res = await axios.get('/sysConfig.html')
+ let res = await axios.get('/sysConfig.html') // , { timeout: 50000 }
+ console.log('axios.get /sysConfig.html',res)
+ if(!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` })
this.sysConfig = res.data
- window.sessionStorage.setItem('sysConfig',JSON.stringify(res.data))
+ window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data))
} catch (error) {
- this.$message.error({showClose:true,message:`获取配置参数错误 ${error}`})
- }
+ this.$message.error({ showClose: true, message: `获取配置参数错误 ${error}` })
+ }
},
//打开客户端调试工具
@@ -110,24 +112,24 @@ export default {
}
this.$peisAPI.toggleDevTools();
},
- btnMin(){
- if(!this.$peisAPI) {
+ btnMin() {
+ if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
- return
+ return
}
this.$peisAPI.windowMin();
},
- btnMax(){
- if(!this.$peisAPI) {
+ btnMax() {
+ if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
- return
+ return
}
this.$peisAPI.windowMax();
},
- btnClose(){
- if(!this.$peisAPI) {
+ btnClose() {
+ if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
- return
+ return
}
this.$peisAPI.windowClose();
},