From 934f1a9770981676f91b8f11026f9eb48f98ce25 Mon Sep 17 00:00:00 2001 From: wanglei Date: Sat, 3 Aug 2024 11:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=87=87=E9=9B=86=E3=80=81?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E5=90=88=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/store/modules/user.js | 7 +++- dangan-ui/src/views/dangan/birthDJ/index.vue | 34 +++--------------- .../src/views/dangan/collection/index.vue | 8 ++--- dangan-ui/src/views/dangan/czrkdj/index.vue | 15 ++++---- .../src/views/dangan/pictureRecard/index.vue | 2 +- dangan-ui/src/views/dangan/qyz/index.vue | 16 +++------ dangan-ui/src/views/dangan/ytzm/index.vue | 24 +++---------- dangan-ui/src/views/dangan/zfnyhkcg/index.vue | 2 +- dangan-ui/src/views/dangan/zqz/index.vue | 36 ++++--------------- 9 files changed, 40 insertions(+), 104 deletions(-) diff --git a/dangan-ui/src/store/modules/user.js b/dangan-ui/src/store/modules/user.js index cdbab1e..4916d31 100644 --- a/dangan-ui/src/store/modules/user.js +++ b/dangan-ui/src/store/modules/user.js @@ -8,7 +8,8 @@ const user = { name: '', avatar: '', roles: [], - permissions: [] + permissions: [], + ip:"" }, mutations: { @@ -29,6 +30,9 @@ const user = { }, SET_PERMISSIONS: (state, permissions) => { state.permissions = permissions + }, + SET_IP: (state, ip) => { + state.ip = ip } }, @@ -65,6 +69,7 @@ const user = { commit('SET_ID', user.userId) commit('SET_NAME', user.userName) commit('SET_AVATAR', avatar) + commit('SET_IP', user.loginIp) resolve(res) }).catch(error => { reject(error) diff --git a/dangan-ui/src/views/dangan/birthDJ/index.vue b/dangan-ui/src/views/dangan/birthDJ/index.vue index 03b0e9a..38d9c94 100644 --- a/dangan-ui/src/views/dangan/birthDJ/index.vue +++ b/dangan-ui/src/views/dangan/birthDJ/index.vue @@ -9,14 +9,6 @@ @keyup.enter.native="handleQuery" /> - - - - + - +
- 点击上传 + 本地上传 扫描上传
创建识别任务 @@ -320,6 +320,7 @@ export default { dicts: ['total_task', 'tatal_task_pic', 'url'], data() { return { + Ip:null, // 档案类型 dAType: { // 弹出框 @@ -354,7 +355,7 @@ export default { ] }, // 颜色模式,0:黑白 1:灰色 2:彩色 - pixel: 1, + pixel: 2, // 是否单面 single: true, // 是否去白页 @@ -415,10 +416,9 @@ export default { WebScanInit(){ let _this = this; - let WebScanUrl = this.dict.type.url[0].value; _this.WebScan = new WebScan({ - url: WebScanUrl, + url: "http://"+this.$store.state.user.ip+":18989/WebScan", wsUrl:'http://localhost:28989/', licence:'V4tMKPYgFtW8vQr4C0s4/g==' }); diff --git a/dangan-ui/src/views/dangan/czrkdj/index.vue b/dangan-ui/src/views/dangan/czrkdj/index.vue index 13cc658..fbcd897 100644 --- a/dangan-ui/src/views/dangan/czrkdj/index.vue +++ b/dangan-ui/src/views/dangan/czrkdj/index.vue @@ -3,7 +3,7 @@ - + - + - + - + - + 导出 - + - - + - - + - + - - + @@ -33,30 +25,14 @@ @keyup.enter.native="handleQuery" /> - - +