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" /> - - +