Commit 5695c088 authored by 黄奎's avatar 黄奎

页面修改

parent a3bdcbec
......@@ -204,9 +204,9 @@ export default {
successCall(res)
}
}, faildCall)
},
// 自动登录HTTP提交数据
},
// 自动登录HTTP提交数据
Vue.prototype.apipostLogin = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") {
msg = {}
......@@ -231,11 +231,11 @@ export default {
postData.groupId = 2;
}
this.$http.post(apiurl, postData, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
}
})
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
}
})
.then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
this.$router.push({
......@@ -300,8 +300,9 @@ export default {
}
}, faildCall)
},
//下载文件
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, successCall) {
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, callBack) {
if (msg == null || msg == "") {
msg = {}
}
......@@ -324,7 +325,7 @@ export default {
this.$http.post(apiurl, postData, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path,
'Referer-Viitto': this.$route.path,
},
responseType: 'blob'
}).then((res) => {
......@@ -343,7 +344,9 @@ export default {
};
callBack(result);
}
}).catch(function (res) { });
}).catch(function (res) {
console.log("GetLocalFile", res);
});
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment