|
|
|
@ -23,6 +23,15 @@
|
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadNow(1)">立即下载基础信息</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadNow(2)">立即下载单据类型</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadNow(3)">立即下载扫码单据</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadNow(4)">立即下载国家库信息</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -128,6 +137,7 @@
|
|
|
|
|
import {filterLog, deleteLog, findConfig, updateConfig} from "../../api/thrsys/spsSyncDownload";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import ShowText from "../other/showText";
|
|
|
|
|
import {downloadNow} from "../../api/thrsys/spsSyncDownload";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -339,6 +349,19 @@
|
|
|
|
|
this.syncInfo = item.remark;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
downloadNow(type) {
|
|
|
|
|
//立即下载数据
|
|
|
|
|
let params = {type: type};
|
|
|
|
|
downloadNow(params).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("同步任务创建成功,稍后请刷新查看下载日志!");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|