diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index 0c47ae9f5..62418cfb2 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -535,5 +535,10 @@ module.exports = {
theRelease: 'The release date should not exceed the standard implementation date',
zoneOfApplication: 'zone of application',
releaseTime: 'release Time',
- standardImplementationTime: 'Standard implementation time'
+ standardImplementationTime: 'Standard implementation time',
+ onlyPicture:'only upload pictures!',
+ fileUploadFailed:'file upload failed',
+ deletedSuccessfully:'deleted successfully',
+ uploadSuccessful:'upload successful',
+
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index 3654039b4..f916012a8 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -540,4 +540,9 @@ module.exports = {
zoneOfApplication:'适用地区',
releaseTime:'发布时间',
standardImplementationTime:'标准实施时间',
+ onlyPicture:'只能上传图片!',
+ fileUploadFailed:'文件上传失败',
+ deletedSuccessfully:'删除成功',
+ uploadSuccessful:'上传成功',
+
}
\ No newline at end of file
diff --git a/jero-web/src/components/ocrUpload/index.vue b/jero-web/src/components/ocrUpload/index.vue
index 2fd79aa8d..5ffacc934 100644
--- a/jero-web/src/components/ocrUpload/index.vue
+++ b/jero-web/src/components/ocrUpload/index.vue
@@ -6,6 +6,7 @@
:disabled="disabled"
class="ant-upload-list"
name="file"
+ :list-type="listType"
:file-list="myfileList"
:multiple="false"
:action = 'uploadAction'
@@ -25,7 +26,7 @@
import { ACCESS_TOKEN } from "@/store/mutation-types"
export default {
name: 'ocrUpload',
- props:['disableds','disabled','thisFileUploadUrl','readonly','thisFileType','accept'],
+ props:['disableds','disabled','thisFileUploadUrl','readonly','thisFileType','accept','title','listType'],
data(){
return{
visible:false,
@@ -35,7 +36,6 @@
fileList:[],
fileTypeSatus:false,
headers:{},
- title:this.$t('UploadFile')
}
},
created(){
diff --git a/jero-web/src/components/splitUpload/index.vue b/jero-web/src/components/splitUpload/index.vue
new file mode 100644
index 000000000..535fe5960
--- /dev/null
+++ b/jero-web/src/components/splitUpload/index.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+ {{this.$t('clickUpload')}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jero-web/src/components/tools/HeaderNotice.vue b/jero-web/src/components/tools/HeaderNotice.vue
index 56f68d64a..9f1c74ea9 100644
--- a/jero-web/src/components/tools/HeaderNotice.vue
+++ b/jero-web/src/components/tools/HeaderNotice.vue
@@ -68,7 +68,8 @@
lockReconnect: false,
heartCheck: null,
formData: {},
- openPath: ''
+ openPath: '',
+ timer:''
}
},
computed: {
@@ -82,6 +83,11 @@
this.initWebSocket()
this.heartCheckFun()
},
+ beforeDestroy() {
+ if(this.timer){
+ clearInterval(this.timer)
+ }
+ },
destroyed: function() { // 离开页面生命周期函数
this.websocketOnclose()
},
diff --git a/jero-web/src/views/documentManage/ocr/index.vue b/jero-web/src/views/documentManage/ocr/index.vue
index 4dfc90aa7..e3815a882 100644
--- a/jero-web/src/views/documentManage/ocr/index.vue
+++ b/jero-web/src/views/documentManage/ocr/index.vue
@@ -78,7 +78,7 @@
-
+
@@ -153,7 +153,9 @@
record:{},
accept:'application/pdf',
today:'',
- timer:''
+ timer:'',
+ title:this.$t('UploadFile'),
+ listType:'text',
}
},
props:{
@@ -182,7 +184,8 @@
console.log("------------WebSocket连接成功");
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
let userId = store.getters.userInfo.id;
- let url = window._CONFIG['domianWebSocketURL'].replace("https://","wss://").replace("http://","ws://") + '/websocket/' + userId;
+ let url = window._CONFIG['domianWebSocketURL'].replace("https://","wss://").replace("http://","ws://") + '/websocket/socketServer'
+ // let url = 'http://10.0.1.25:8080/jero-boot'.replace("https://","wss://").replace("http://","ws://") + '/websocket/socketServer'
this.websock = new WebSocket(url);
this.websock.onopen = this.websocketOnopen;
this.websock.onerror = this.websocketOnerror;
@@ -190,16 +193,30 @@
this.websock.onclose = this.websocketOnclose;
},
websocketOnopen: function (e) {
- console.log("WebSocket连接成功");
+ // console.log("WebSocket连接成功");
// console.log('eee',e)
+
+ // 添加心跳检测,每10秒发一次数据,防止连接断开(这跟服务器的设置有关,如果服务器没有设置每隔多长时间不发消息断开,可以不进行心跳设置)
+ let self = this;
+ this.timer = setInterval(() => {
+ try {
+ self.websock.send('test')
+ // console.log('发送消息');
+ }catch(err){
+ console.log('断开了:' + err);
+ self.connection()
+ }
+ }, 10000)
},
websocketOnerror: function (e) {
- console.log("WebSocket连接发生错误");
+ // console.log("WebSocket连接发生错误");
this.reconnect();
},
websocketOnmessage: function (e) {
- console.log("WebSocket连接数据");
-
+ // console.log("WebSocket连接数据1111");
+ if(e.data=='1'){
+ eventBUs.$emit('searchReset')
+ }
},
websocketOnclose: function (e) {
this.reconnect();
@@ -218,7 +235,7 @@
that.lockReconnect = true;
//没连接上会一直重连,设置延迟避免请求过多
setTimeout(function () {
- console.info("尝试重连...");
+ // console.info("尝试重连...");
that.initWebSocket();
that.lockReconnect = false;
}, 5000);
diff --git a/jero-web/src/views/documentManage/splitting/modules/imports.vue b/jero-web/src/views/documentManage/splitting/modules/imports.vue
index 588210520..f4e2ddcd4 100644
--- a/jero-web/src/views/documentManage/splitting/modules/imports.vue
+++ b/jero-web/src/views/documentManage/splitting/modules/imports.vue
@@ -160,8 +160,8 @@
this.visible = false;
this.$emit('visible',false)
},
- onSelectChange(){
-
+ onSelectChange(keys){
+ this.selectedRowKeys=keys
},
//搜索
diff --git a/jero-web/src/views/documentManage/splitting/modules/split.vue b/jero-web/src/views/documentManage/splitting/modules/split.vue
index 1f6b6a917..790e1f200 100644
--- a/jero-web/src/views/documentManage/splitting/modules/split.vue
+++ b/jero-web/src/views/documentManage/splitting/modules/split.vue
@@ -129,8 +129,8 @@
this.visible = false;
this.$emit('visible',false)
},
- onSelectChange(){
-
+ onSelectChange(keys){
+ this.selectedRowKeys=keys
},
//搜索
diff --git a/jero-web/src/views/documentManage/splitting/modules/splitAddForm.vue b/jero-web/src/views/documentManage/splitting/modules/splitAddForm.vue
index 674f9507f..5ec082241 100644
--- a/jero-web/src/views/documentManage/splitting/modules/splitAddForm.vue
+++ b/jero-web/src/views/documentManage/splitting/modules/splitAddForm.vue
@@ -58,13 +58,20 @@
{{$t('contentValidity')}}
+
-
+
+
-
{{$t('Add')}}
+
{{$t('Add')}}
{{$t('delete')}}
@@ -75,6 +82,18 @@
{{$t('cancel')}}
+
+
+
+
+
+
@@ -103,11 +124,16 @@