Commit 6911625e authored by youjie's avatar youjie

no message

parent 214c1cde
...@@ -1308,6 +1308,7 @@ import myGZBill from "./FinancialSubmodule/GZBillModule.vue"; ...@@ -1308,6 +1308,7 @@ import myGZBill from "./FinancialSubmodule/GZBillModule.vue";
export default { export default {
data() { data() {
return { return {
isTerminate:-1,
hbMsg: { hbMsg: {
FrIDList: [], FrIDList: [],
Type: 1 Type: 1
...@@ -2110,17 +2111,6 @@ export default { ...@@ -2110,17 +2111,6 @@ export default {
}, },
// 切换table栏 // 切换table栏
getActive(active,Conditon,BOSSBtn){ getActive(active,Conditon,BOSSBtn){
// if(this.loading==true){
// this.Error("当前正在请求,请稍后片刻切换!");
// return
// }else{
// this.active = active
// this.msg.Conditon = Conditon
// if(BOSSBtn){
// this.BOSSBtn = false
// }
// this.getPageList(0,1)
// }
this.active = active this.active = active
this.msg.Conditon = Conditon this.msg.Conditon = Conditon
if(BOSSBtn){ if(BOSSBtn){
...@@ -2129,6 +2119,7 @@ export default { ...@@ -2129,6 +2119,7 @@ export default {
this.getPageList(0,1) this.getPageList(0,1)
}, },
getPageList(t,active) { getPageList(t,active) {
this.isTerminate++
// 获取列表数据 // 获取列表数据
this.loading = true; this.loading = true;
this.checkAllList = []; this.checkAllList = [];
...@@ -2202,7 +2193,9 @@ export default { ...@@ -2202,7 +2193,9 @@ export default {
} }
// this.queryInfoInit(); // this.queryInfoInit();
}, },
err => {} err => {},
'',
this.isTerminate,
); );
if (this.msg.Conditon == 7) { if (this.msg.Conditon == 7) {
this.getMyRejectFinanceCount(); this.getMyRejectFinanceCount();
......
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
path: path, path: path,
query: { query: {
PeriodId: this.$route.query.PeriodId, PeriodId: this.$route.query.PeriodId,
OutBranchId: item.RB_Branch_Id, // OutBranchId: item.RB_Branch_Id,
UserId: item.EmployeeId, UserId: item.EmployeeId,
blank: 'y', blank: 'y',
tab: '同业提现详情' tab: '同业提现详情'
......
...@@ -2436,10 +2436,8 @@ ...@@ -2436,10 +2436,8 @@
} }
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode; let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1 // 查看团队收支明细权限
||ActionMenuCode.indexOf('S_CheckAllOrder') != -1 if (ActionMenuCode.indexOf('isIncomeExpenditure') != -1){
||ActionMenuCode.indexOf('F_Query_SelfBranch') != -1
||ActionMenuCode.indexOf('F_Query_AllIncomPay') != -1){
this.isIncomeExpenditure = true this.isIncomeExpenditure = true
} }
this.checkHasAuth(); this.checkHasAuth();
......
...@@ -4,6 +4,7 @@ import co from 'co' ...@@ -4,6 +4,7 @@ import co from 'co'
import OSS from 'ali-oss' import OSS from 'ali-oss'
import MsgBus from '../assets/utils/msgBus' import MsgBus from '../assets/utils/msgBus'
import routerConfig from '../router/config'; import routerConfig from '../router/config';
import axios from 'axios'
export default { export default {
data: { data: {
loginUser: {}, loginUser: {},
...@@ -119,8 +120,8 @@ export default { ...@@ -119,8 +120,8 @@ export default {
let crmUrl = ""; //crm API let crmUrl = ""; //crm API
let locationName = window.location.hostname; let locationName = window.location.hostname;
// domainUrl = "http://192.168.10.128"; // domainUrl = "http://192.168.10.128";
// domainUrl = "http://192.168.10.9:8083" // 刘东电脑 domainUrl = "http://192.168.10.9:8083" // 刘东电脑
domainUrl = "http://192.168.10.226:8015"; // domainUrl = "http://192.168.10.226:8015";
// domainUrl = "http://reborn.oytour.com"; // domainUrl = "http://reborn.oytour.com";
let crmLocalFileStreamDownLoadUrl = ""; let crmLocalFileStreamDownLoadUrl = "";
crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com"; crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com";
...@@ -252,7 +253,7 @@ export default { ...@@ -252,7 +253,7 @@ export default {
} }
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline,isTerminate) {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 && if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 &&
this.$route.name.indexOf('confirmationOrderDownLoad') === -1 && this.$route.name.indexOf('PrintPage') === -1 && this.$route.name.indexOf('confirmationOrderDownLoad') === -1 && this.$route.name.indexOf('PrintPage') === -1 &&
this.$route.name.indexOf('TravelContractConfirm') === -1 && this.$route.name.indexOf('ViittoContractConfirm') === -1 && this.$route.name.indexOf('TravelContractConfirm') === -1 && this.$route.name.indexOf('ViittoContractConfirm') === -1 &&
...@@ -334,6 +335,16 @@ export default { ...@@ -334,6 +335,16 @@ export default {
"sign": md5Str, "sign": md5Str,
"languageId": tempLanguage "languageId": tempLanguage
} }
let pending = []; //声明一个数组用于存储每个请求的取消函数和axios标识
let cancelToken = axios.CancelToken;
let removePending = (config) => {
for(let p in pending){
if(pending[p].u === config.url + '&' + config.method) { //当当前请求在数组中存在时执行函数体
pending[p].f(); //执行取消操作
pending.splice(p, 1);
}
}
}
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
...@@ -351,6 +362,22 @@ export default { ...@@ -351,6 +362,22 @@ export default {
successCall(res); successCall(res);
} }
}, faildCall) }, faildCall)
if(isTerminate&&isTerminate>0){
this.$http.interceptors.request.use(config => {
removePending(config); //在一个axios发送前执行一下取消操作
config.cancelToken = new cancelToken((c)=>{
// 这里的axios标识我是用请求地址&请求方式拼接的字符串,当然你可以选择其他的一些方式
pending.push({ u: config.url + '&' + config.method, f: c });
});
return Promise.resolve(config)
}, error => {
return Promise.reject(error)
})
}
}, },
// CRM接口 // CRM接口
Vue.prototype.crmapipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.crmapipost = function (cmd, msg, successCall, faildCall, isOnline) {
......
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