diff --git a/dangan-ui/src/api/dangan/collection.js b/dangan-ui/src/api/dangan/collection.js index c946323..6cdd1f7 100644 --- a/dangan-ui/src/api/dangan/collection.js +++ b/dangan-ui/src/api/dangan/collection.js @@ -34,6 +34,14 @@ export function collectRecongnize(data) { }) }*/ +// 查询档案目录详细 +export function getIp() { + return request({ + url: '/dangan/search/ip', + method: 'get' + }) +} + // 重新提交识别 export function reRecongnize(data) { diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index 67083c3..79c7ff5 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -310,7 +310,7 @@ import { listCatalog } from "@/api/dangan/catalog"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import { getCabinetTree } from "@/api/dangan/cabinet"; -import { collectSaves, collectRecongnize, reRecongnize } from "@/api/dangan/collection"; +import { collectSaves, collectRecongnize, getIp } from "@/api/dangan/collection"; import { listTask } from "@/api/dangan/task"; import '@/utils/WebScan'; @@ -410,15 +410,20 @@ export default { }, created() { this.getDeptTree(); + this.getIpAdress(); }, methods: { + getIpAdress(){ + getIp().then(response => { + this.Ip = response + }); + }, // 初始化 WebScanInit(){ let _this = this; - _this.WebScan = new WebScan({ - url: "http://"+this.$store.state.user.ip+":18989/WebScan", + url: "http://"+this.Ip+":18989/WebScan", wsUrl:'http://localhost:28989/', licence:'V4tMKPYgFtW8vQr4C0s4/g==' });