Commit d97de990 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 66652be9 aa92220f
#宜宾环境 #宜宾环境
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_API_BASE_URL=/basics_api VUE_APP_API_BASE_URL=/basics_api
VUE_APP_API_portal_URL=/portal_home VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file VUE_APP_API_IMG_URL = ""
\ No newline at end of file
...@@ -376,12 +376,28 @@ export default { ...@@ -376,12 +376,28 @@ export default {
this.$refs.addsite.onEdit(data); this.$refs.addsite.onEdit(data);
}, },
// 同步数据 // 同步数据
async handleSync(id) { handleSync(id) {
let res = await SyncSiteData({ id }); let _this = this;
let { code, msg } = res.data; this.$confirm({
if (code == 1) { title: "系统提示",
this.$message.success(msg); content: "确定要同步更新站点数据吗?",
} okText: "确定",
okType: "primary",
cancelText: "取消",
centered: true,
maskClosable: true,
icon: "question",
async onOk() {
let res = await SyncSiteData({ id });
let { code, msg } = res.data;
if (code == 1) {
_this.$message.success(msg);
}
},
onCancel() {
console.log("Cancel");
},
});
}, },
}, },
}; };
......
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