Commit 12e5e144 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/huaguohao/crm into master

parents d7178e4e 5695c088
...@@ -204,9 +204,9 @@ export default { ...@@ -204,9 +204,9 @@ export default {
successCall(res) successCall(res)
} }
}, faildCall) }, faildCall)
}, },
// 自动登录HTTP提交数据 // 自动登录HTTP提交数据
Vue.prototype.apipostLogin = function (cmd, msg, successCall, faildCall) { Vue.prototype.apipostLogin = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
msg = {} msg = {}
...@@ -231,11 +231,11 @@ export default { ...@@ -231,11 +231,11 @@ export default {
postData.groupId = 2; postData.groupId = 2;
} }
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path 'Referer-Viitto': this.$route.path
} }
}) })
.then(res => { .then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) { if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
this.$router.push({ this.$router.push({
...@@ -300,8 +300,9 @@ export default { ...@@ -300,8 +300,9 @@ export default {
} }
}, faildCall) }, faildCall)
}, },
//下载文件 //下载文件
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, successCall) { Vue.prototype.GetLocalFile = function (cmd, msg, fileName, callBack) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
msg = {} msg = {}
} }
...@@ -324,7 +325,7 @@ export default { ...@@ -324,7 +325,7 @@ export default {
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path, 'Referer-Viitto': this.$route.path,
}, },
responseType: 'blob' responseType: 'blob'
}).then((res) => { }).then((res) => {
...@@ -343,7 +344,9 @@ export default { ...@@ -343,7 +344,9 @@ export default {
}; };
callBack(result); 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