<el-table
ref="multipleTable"
v-loading="loading"
element-loading-text="同步数据中..."
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)"
:data="tableDatas"
show-summary
:summary-method="getSummaries"
v-loading="loading"
element-loading-text="同步数据中..."
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)"
写在table上
loading:fales,
写在data上
// ERP同步
erpSync() {
this.loading = true;
this.$axios({
method: "post",
url: "/admin/other_out/erp_shere",
params: {}
})
.then(res => {
if (res.data.status == "ok") {
this.loading = false;
this.$message1(res.data.msg);
} else {
this.loading = false;
this.$message1(res.data.msg);
}
})
.catch(err => {
this.loading = false;
this.$message1(err.response.data.msg);
});
},
接口调用