From 1ff17b34d25930bb16ed20c025aac03d4246e6cf Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Thu, 4 May 2023 20:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sync/spsSyncStatus.js | 8 +++++ src/views/sync/SysUdimsData.vue | 52 +++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/src/api/sync/spsSyncStatus.js b/src/api/sync/spsSyncStatus.js index e73dad7d..b574ece5 100644 --- a/src/api/sync/spsSyncStatus.js +++ b/src/api/sync/spsSyncStatus.js @@ -68,4 +68,12 @@ export function downloadFile(query) { }); } +export function uploadData(query) { + return axios({ + url: "/spssync/udiinfo/uploadData", + method: "post", + data: query + }); +} + diff --git a/src/views/sync/SysUdimsData.vue b/src/views/sync/SysUdimsData.vue index e9a13542..b220416d 100644 --- a/src/views/sync/SysUdimsData.vue +++ b/src/views/sync/SysUdimsData.vue @@ -25,17 +25,21 @@ 重置 查询 - - - - - + 同步第三方基础数据 + + 同步用户信息 + + 同步系统设置信息 + @@ -95,7 +99,8 @@ import { createSchedule, findConfig, updateConfig, - infoByStatus + infoByStatus, + uploadData } from "@/api/sync/spsSyncStatus"; import store from "@/store"; @@ -140,9 +145,9 @@ export default { syncTime: null, }, uploadFileUrl: null, - uploadData: { - thirdSys: "thirdId", - }, + //uploadData: { + // thirdSys: "thirdId", + //}, templateDlUrl: null, checked: false, configParms: {}, @@ -349,6 +354,29 @@ export default { this.syncInfo = item.remark; } }) + }, + uploadData(exportType){ + if(!this.filterQuery.syncTime){ + this.$message.error("请选择同步时间"); + return false + } + let param = { + exportType : exportType, + syncTime: this.filterQuery.syncTime + } + uploadData(param).then((response) => { + if (response.code == 20000) { + this.filterQuery.page = 1 + this.$message.success("操作成功"); + } else { + this.$message.error(response.message); + } + this.filterQuery.syncTime=null + setTimeout(()=>{ + this.getList(); + },1000) + }) + .catch(() => {}); } },