From 6121e27379e7ddba2c63c183b95246aded7c15cb Mon Sep 17 00:00:00 2001 From: wanglei Date: Sat, 3 Aug 2024 11:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=87=87=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/api/dangan/collection.js | 8 ++++++++ dangan-ui/src/views/dangan/collection/index.vue | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) 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==' });