diff --git a/src/api/UDIDownload/fileInfo.js b/src/api/UDIDownload/fileInfo.js index 155bd61..9fff324 100644 --- a/src/api/UDIDownload/fileInfo.js +++ b/src/api/UDIDownload/fileInfo.js @@ -12,6 +12,6 @@ export function exportToFile(param){ return request({ url:"/file/exportToFile", method:"post", - data:param + params:param }) } diff --git a/src/api/UDIDownload/udiSingle.js b/src/api/UDIDownload/udiSingle.js new file mode 100644 index 0000000..12d6d9f --- /dev/null +++ b/src/api/UDIDownload/udiSingle.js @@ -0,0 +1,28 @@ +import request from "@/utils/request"; + +/** + * di查询 + * @param deviceId + * @returns {*} + */ +export function downloadSingle(deviceId){ + return request({ + url: "/udidl/device/downloadSingle", + method: "post", + params:{deviceId} + }) +} + +/** + * 下载历史记录 + * @param deviceId + * @returns {*} + */ +export function downloadHistory(key){ + return request({ + url: "/udidl/device/downloadHistory", + method: "post", + params:{key} + }) +} + diff --git a/src/main.js b/src/main.js index 90c0122..40ac7d2 100644 --- a/src/main.js +++ b/src/main.js @@ -35,6 +35,7 @@ let startApp = function () { getUrl = res.data.BASE_URL; myReq.defaults.baseURL = getUrl; request.defaults.baseURL = res.data.Download_URL; + console.log(res.data); new Vue({ router, store, diff --git a/src/router/index.js b/src/router/index.js index e5ad6c8..08103f2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,8 +54,7 @@ import UnitRelevance from "../views/product/UnitRelevance.vue"; import customerCodeContrast from "../views/sale/customerCodeContrast.vue"; import codecontrast from "../views/sale/codeContrast.vue"; import udiTrace from "../views/warehouse/udiTrace.vue"; -import jobLog from"../views/UDIDownload/jobLog" -import fileInfo from "../views/UDIDownload/fielInfo" + import mipsOrder from "../views/manuorder/manuOrder.vue" import manuDetail from "../views/manuorder/manuOrderDetail.vue" @@ -71,7 +70,10 @@ import udiPublish from "../views/publish/udiPublish.vue" import registerCert from "../views/basic/registerCert.vue" import facidentcode from "../views/basic/facidentcode.vue" - +//数据同步相关 +import jobLog from"../views/UDIDownload/jobLog" +import fileInfo from "../views/UDIDownload/fielInfo" +import udiSingle from "../views/UDIDownload/udiSingle"; const err401 = r => require.ensure([], () => r(require("../views/error/err401.vue")), "home"); @@ -655,6 +657,14 @@ export const asyncRouterMap = [ meta: { authRule: ["UDIDownload/fileInfo"] }, + }, + { + name: "DI查询", + path: "udiSingle", + component: udiSingle, + meta: { + authRule: ["UDIDownload/udiSingle"] + }, } ] } diff --git a/src/views/UDIDownload/fielInfo.vue b/src/views/UDIDownload/fielInfo.vue index 42c730c..2532205 100644 --- a/src/views/UDIDownload/fielInfo.vue +++ b/src/views/UDIDownload/fielInfo.vue @@ -24,7 +24,7 @@ >重新下载 - 刷新 + 刷新 @@ -34,6 +34,11 @@ {{ scope.row.fileName }} --> + + +