59ded045 by 任超

style:loading

1 parent dca5777f
......@@ -12,11 +12,6 @@ const service = axios.create({
headers: {
'Content-Type': 'application/json; charset=utf-8',
'Authorization': 'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6'
//token列表
//'Authorization': 'bearer AT-12-eRKHta5I8ZWftIU86sSyJ8rUkPhMvMJU'
//renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI
//tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6
//zhangh:bearer AT-7-Tx8dlZH0LNRc33UjD1CX1xwa-1D7kQmQ
},
timeout: 15000
})
......@@ -24,7 +19,8 @@ const service = axios.create({
// request interceptor
service.interceptors.request.use(
config => {
if (config.headers.showLoading !== false) {
// config.headers.showLoading !== false
if (config.headers.target) {
startLoadingAddCount(config.headers.loadingTarget ? config.headers.loadingTarget : '正在加载中...',
config.headers.target ? config.headers.target : 'body');
}
......@@ -34,7 +30,8 @@ service.interceptors.request.use(
return config
},
error => {
if (error.headers.showLoading !== false) {
// error.headers.showLoading !== false
if (error.headers.target) {
endLoadingSubCount(config.headers.loadingTarget ? config.headers.loadingTarget : '正在加载中...',
config.headers.target ? config.headers.target : 'body');
}
......
......@@ -61,7 +61,6 @@ export default {
queryClick () {
this.fetchData();
},
// 初始化数据
fetchData () {
......@@ -74,7 +73,6 @@ export default {
handleSort (name, sort) {
console.log(name, sort);
},
// 查看
handleViewClick (scope) {
var sqcxBsm = scope.row.bsmSqcx;
......@@ -91,10 +89,10 @@ export default {
confirm: function () {
// that.loadBdcdylist();
}, //确认事件的回调
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......