From e214d98d161febeb885279e46fab307499fe5765 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 1 Mar 2022 14:24:34 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E4=B8=AD=E8=8B=B1=E6=96=87=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 15 ++++++++++++++- jero-web/src/common/lang/zh-cn.js | 14 ++++++++++++++ .../src/components/Standardselection/index.vue | 6 +++--- jero-web/src/components/addForm/index.vue | 2 +- .../src/components/dict/JDictSelectTag.vue | 4 ++-- .../src/components/dict/JMultiSelectTag.vue | 10 +++++----- .../src/components/libraryAddForm/index.vue | 4 ++-- jero-web/src/components/search/index.vue | 2 +- jero-web/src/components/tableDate/index.vue | 8 ++++---- jero-web/src/components/uploadFile/file.vue | 4 ++-- .../src/views/documentManage/library/index.vue | 18 +++++++++--------- .../documentManage/library/modules/addForm.vue | 4 ++-- 12 files changed, 59 insertions(+), 32 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 189827cb1..7b67fcac7 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -361,5 +361,18 @@ module.exports = { BatchCancel:'Batch cancel collection', SubscriptionManagement:'Subscription domain management', BatchCancellation:'Batch cancellation', - + clickUpload:'Click upload', + viewUploadedFiles:'View uploaded files', + standardSelection:'Standard selection', + Collection:'Collection', + CancelCollection:'Cancel collection', + deleteLib:'delete', + subscribe:'Subscribe', + CancelSubscribe:'Cancel Subscribe', + ConfirmCollection:'Confirm collection ?', + cancelConfirmCollection:'Are you sure you want to cancel the collection', + ConfirmSubscribe:'Confirm Subscribe ?', + cancelConfirmSubscribe:'Are you sure you want to cancel the subscribe', + ConfirmDelete:'Confirm Delete ?', + ConfirmBatchDeletion:'Confirm Batch Deletion ? ', } \ 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 8922f5048..592e35521 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -365,4 +365,18 @@ module.exports = { BatchCancellation:'批量取消', enterMenuEnName:'请输入菜单英文名称', MenuEnName:'菜单英文名称', + clickUpload:'点击上传', + viewUploadedFiles:'查看已上传文件', + standardSelection:'标准选择', + Collection:'收藏', + CancelCollection:'取消收藏', + deleteLib:'删除', + subscribe:'订阅', + CancelSubscribe:'取消订阅', + ConfirmCollection:'确定收藏?', + cancelConfirmCollection:'确定取消收藏?', + ConfirmSubscribe:'确定订阅?', + cancelConfirmSubscribe:'确定取消订阅?', + ConfirmDelete:'确定删除?', + ConfirmBatchDeletion:'确定批量删除?', } \ No newline at end of file diff --git a/jero-web/src/components/Standardselection/index.vue b/jero-web/src/components/Standardselection/index.vue index fbf24fdd7..863e55918 100644 --- a/jero-web/src/components/Standardselection/index.vue +++ b/jero-web/src/components/Standardselection/index.vue @@ -9,11 +9,11 @@ - 标准选择 + {{this.$t('standardSelection')}} {{ (formInline[item.db_field_name] === 'null' || formInline[item.db_field_name] === '' || - formInline[item.db_field_name] == null) ? '点击上传' : '查看已上传文件' + formInline[item.db_field_name] == null) ? $t('clickUpload') : $t('viewUploadedFiles') }} diff --git a/jero-web/src/components/dict/JDictSelectTag.vue b/jero-web/src/components/dict/JDictSelectTag.vue index 0c991d188..ebd996ede 100644 --- a/jero-web/src/components/dict/JDictSelectTag.vue +++ b/jero-web/src/components/dict/JDictSelectTag.vue @@ -69,10 +69,10 @@ methods: { initDictData() { //优先从缓存中读取字典配置 - if(getDictItemsFromCache(this.dictCode)){ +/* if(getDictItemsFromCache(this.dictCode)){ this.dictOptions = getDictItemsFromCache(this.dictCode); return - } + }*/ //根据字典Code, 初始化字典数组 ajaxGetDictItems(this.dictCode, null).then((res) => { diff --git a/jero-web/src/components/dict/JMultiSelectTag.vue b/jero-web/src/components/dict/JMultiSelectTag.vue index 66f9ba9dd..16d05aec8 100644 --- a/jero-web/src/components/dict/JMultiSelectTag.vue +++ b/jero-web/src/components/dict/JMultiSelectTag.vue @@ -88,11 +88,11 @@ this.dictOptions = [...this.options] }else{ //优先从缓存中读取字典配置 - let cacheOption = getDictItemsFromCache(this.dictCode) - if(cacheOption && cacheOption.length>0){ - this.dictOptions = cacheOption - return - } + // let cacheOption = getDictItemsFromCache(this.dictCode) + // if(cacheOption && cacheOption.length>0){ + // this.dictOptions = cacheOption + // return + // } //根据字典Code, 初始化字典数组 ajaxGetDictItems(this.dictCode, null).then((res) => { if (res.success) { diff --git a/jero-web/src/components/libraryAddForm/index.vue b/jero-web/src/components/libraryAddForm/index.vue index 777c291e8..068d1bcd9 100644 --- a/jero-web/src/components/libraryAddForm/index.vue +++ b/jero-web/src/components/libraryAddForm/index.vue @@ -112,7 +112,7 @@ {{ (formInline[item.db_field_name] === 'null' || formInline[item.db_field_name] === '' || - formInline[item.db_field_name] == null) ? '点击上传' : '查看已上传文件' + formInline[item.db_field_name] == null) ? $t('clickUpload') : $t('viewUploadedFiles') }} @@ -590,7 +590,7 @@ .button-text { height: 38px; - width: calc(100% - 120px); + width: calc(100% - 100px); line-height: 38px; background: #fff; border: 1px #00B3BE solid; diff --git a/jero-web/src/components/search/index.vue b/jero-web/src/components/search/index.vue index 34a68b282..e9bcba633 100644 --- a/jero-web/src/components/search/index.vue +++ b/jero-web/src/components/search/index.vue @@ -53,7 +53,7 @@ - + {{$t('query')}} {{$t('reset')}} diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index 75953d36a..293cd1f5e 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -15,11 +15,11 @@ - - {{!record.collectFlag || record.collectFlag == 0 ? '收藏' :'取消收藏'}} + + {{!record.collectFlag || record.collectFlag == 0 ? $t('Collection') :$t('CancelCollection')}} - - {{!record.subscribeFlag || record.subscribeFlag == 0 ? '订阅' :'取消订阅'}} + + {{!record.subscribeFlag || record.subscribeFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}} {{ol.text}} diff --git a/jero-web/src/components/uploadFile/file.vue b/jero-web/src/components/uploadFile/file.vue index 5b0d8d09b..2e2f81ab2 100644 --- a/jero-web/src/components/uploadFile/file.vue +++ b/jero-web/src/components/uploadFile/file.vue @@ -14,7 +14,7 @@ :remove='remove' @change="handleChange">

-

点击上传

+

{{this.$t('clickUpload')}}

@@ -29,7 +29,7 @@ data(){ return{ visible:false, - title:'上传文件', + title:this.$t('clickUpload'), uploadAction:window._CONFIG['domianURL']+"/sys/common/upload", myuploadAction:window._CONFIG['domianURL']+this.thisFileUploadUrl, upDataList:[], diff --git a/jero-web/src/views/documentManage/library/index.vue b/jero-web/src/views/documentManage/library/index.vue index 5cfa8d248..0f502c258 100644 --- a/jero-web/src/views/documentManage/library/index.vue +++ b/jero-web/src/views/documentManage/library/index.vue @@ -90,19 +90,19 @@ return { OperationList: [ { - text: '取消收藏', + text: this.$t('CancelCollection'), ClickEvent: 'Collection' }, { - text: '取消订阅', + text: this.$t('CancelSubscribe'), ClickEvent: 'subscribe' }, { - text: '编辑', + text: this.$t('edit'), ClickEvent: 'editTable' }, { - text: '删除', + text: this.$t('deleteLib'), ClickEvent: 'deleteTable' } ], @@ -146,7 +146,7 @@ let query = { ...this.$refs.searchRef.queryParam, id: this.idList.join(','), - flag:'file' + flag: 'file' } downloadFile('document/bussDocumentLibraryEO/exportZip', '文档库.zip', query, this.Deselect) }, @@ -163,7 +163,7 @@ if (this.idList.length > 0) { let _this = this this.$confirm({ - content: '确认删除?', + content: _this.$t('ConfirmBatchDeletion'), onOk() { deleteAction(_this.url.deleteBatch, { ids: _this.idList.join(',') }).then((res) => { if (res.success) { @@ -198,7 +198,7 @@ deleteTable(val) { let _this = this this.$confirm({ - content: '确认删除?', + content: _this.$t('ConfirmDelete'), onOk() { deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => { if (res.success) { @@ -215,7 +215,7 @@ Collection(val) { let _this = this this.$confirm({ - content: val.collectFlag == 0 || !val.collectFlag ? '确认收藏?' : '确定取消收藏?', + content: val.collectFlag == 0 || !val.collectFlag ? _this.$t('ConfirmCollection') : _this.$t('cancelConfirmCollection'), onOk() { let url = '' if (val.collectFlag == 0 || !val.collectFlag) { @@ -238,7 +238,7 @@ subscribe(val) { let _this = this this.$confirm({ - content: val.subscribeFlag == 0 || !val.subscribeFlag ? '确认订阅?' : '确定取消订阅?', + content: val.subscribeFlag == 0 || !val.subscribeFlag ? _this.$t('ConfirmSubscribe') : _this.$t('cancelConfirmSubscribe'), onOk() { let url = '' if (val.subscribeFlag == 0 || !val.subscribeFlag) { diff --git a/jero-web/src/views/documentManage/library/modules/addForm.vue b/jero-web/src/views/documentManage/library/modules/addForm.vue index 2dfafcea2..3e06a0394 100644 --- a/jero-web/src/views/documentManage/library/modules/addForm.vue +++ b/jero-web/src/views/documentManage/library/modules/addForm.vue @@ -59,14 +59,14 @@ this.visible = false }, add() { - this.title = '新增' + this.title = this.$t('add') this.visible = true this.$nextTick(() => { this.$refs.addFormDataRef.add() }) }, edit(item) { - this.title = '编辑' + this.title = this.$t('edit') this.visible = true this.$nextTick(() => { this.$refs.addFormDataRef.edit(item) From f013bc065e7a975bd7a7df7cd185ec6a7635b41c Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 1 Mar 2022 14:25:55 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/tableDate/index.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index 293cd1f5e..2dbc052af 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -187,9 +187,6 @@ postAction(this.url.tableList, params).then((res) => { if (res.success) { this.dataSource = res.result.records - this.dataSource.forEach((val) => { - val.function_territory = val.function_territory + 'dsfsdfs 收到付款了山东黄搞定;分两个地方骨科大夫的咖啡馆里的法国金弗兰克是的积分流口水的房间的斯洛伐克第三方' - }) this.total = res.result.total this.loading = false } else { From 4f0f83e87ea8efdf81ecb7cc64b839084482ae16 Mon Sep 17 00:00:00 2001 From: xiejunyu Date: Tue, 1 Mar 2022 14:45:29 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/SysDictController.java | 31 +++++++------------ .../controller/SysDictItemController.java | 7 +++-- .../modules/system/entity/SysCategory.java | 2 +- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictController.java index 7f1704646..585aa4081 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictController.java @@ -343,11 +343,7 @@ public class SysDictController { public Result add(@RequestBody SysDict sysDict) { Result result = new Result(); try { - Integer count=sysDictService.queryExitData(sysDict); - if (count > 0) { - sysDict.setDelFlag(0); - } else { - if(StringUtils.isEmpty(sysDict.getDictCode())){ + if(StringUtils.isEmpty(sysDict.getDictName())){ sysDict.setDictCode(sysDict.getDictName()); }else { sysDict.setCreateTime(new Date()); @@ -358,7 +354,7 @@ public class SysDictController { //添加成功后需要刷新缓存 sysDictService.refreshCache(); } - } + } catch (Exception e) { log.error(e.getMessage(),e); result.error500("操作失败"); @@ -381,22 +377,17 @@ public class SysDictController { result.error500("未找到对应实体"); }else { if (org.apache.commons.lang3.StringUtils.isNotBlank(String.valueOf(sysDict.getIsReadOnly()))) { - /*if (sysDict.getIsReadOnly() == 1) { + if (sysDict.getIsReadOnly() == 1) { result.error500("固定字段,不可删除"); - }else{*/ - /*if(sysDict.getIsTagDict() == 1) { - sysDict.setDictEnName(sysDict.getDictCode().replace("_", " ")); + }else{ + sysDict.setUpdateTime(new Date()); + boolean ok = sysDictService.updateById(sysDict); + if (ok) { + result.success("编辑成功!"); + //编辑成功后需要刷新缓存 + sysDictService.refreshCache(); } - else {*/ - sysDict.setUpdateTime(new Date()); - boolean ok = sysDictService.updateById(sysDict); - if (ok) { - result.success("编辑成功!"); - //编辑成功后需要刷新缓存 - sysDictService.refreshCache(); - } - //} - // } + } } } return result; diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictItemController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictItemController.java index 25513d70b..127cd74a8 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictItemController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysDictItemController.java @@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.jero.common.api.vo.Result; import com.jero.common.constant.CacheConstant; import com.jero.common.system.query.QueryGenerator; +import com.jero.modules.enums.FixedFieldEnum; import com.jero.modules.system.entity.SysDictItem; import com.jero.modules.system.service.ISysDictItemService; import io.swagger.annotations.ApiOperation; @@ -97,7 +98,7 @@ public class SysDictItemController { result.error500("未找到对应实体"); } else { if (org.apache.commons.lang3.StringUtils.isNotBlank(String.valueOf(sysDictItem.getIsReadOnly()))) { - if (sysDictItem.getIsReadOnly() == 1) { + if (FixedFieldEnum.FIXED_FIELD_ENUM.getValue().equals(sysDictItem.getIsReadOnly())) { result.error500("固定字段,不可删除"); } else { sysDictItem.setUpdateTime(new Date()); @@ -128,7 +129,7 @@ public class SysDictItemController { result.error500("未找到对应实体"); }else { if (org.apache.commons.lang3.StringUtils.isNotBlank(String.valueOf(joinSystem.getIsReadOnly()))) { - if (joinSystem.getIsReadOnly() == 1) { + if (FixedFieldEnum.FIXED_FIELD_ENUM.getValue().equals(joinSystem.getIsReadOnly())) { result.error500("固定字段,不可删除"); } else { @@ -159,7 +160,7 @@ public class SysDictItemController { } else { if (org.apache.commons.lang3.StringUtils.isNotBlank(String.valueOf(sysDictItem.getIsReadOnly()))) { - if (sysDictItem.getIsReadOnly() == 1) { + if (FixedFieldEnum.FIXED_FIELD_ENUM.getValue().equals(sysDictItem.getIsReadOnly())) { result.error500("固定字段,不可删除"); } else { this.sysDictItemService.removeByIds(Arrays.asList(ids.split(","))); diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java index d7b913b18..5f0872c06 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java @@ -61,7 +61,7 @@ public class SysCategory implements Serializable,Comparable{ @Excel(name = "数据字典id", width = 15) @Dict(dictTable = "sys_dict", dicText = "id", dicCode = "id") @ApiModelProperty(value = "是否为标签内容-数据字典(1是 0否)") - private java.lang.Integer sysDictId; + private java.lang.String sysDictId; /**是否有子节点*/ @Excel(name = "是否有子节点(1:有)", width = 15) From f3dd356fc965830461a072cb8c81b6e3e06ccd1c Mon Sep 17 00:00:00 2001 From: xiejunyu Date: Tue, 1 Mar 2022 15:17:31 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jero/modules/system/entity/SysCategory.java | 2 +- .../src/main/java/com/jero/modules/system/entity/SysDict.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java index 5f0872c06..1b85303bb 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java @@ -76,7 +76,7 @@ public class SysCategory implements Serializable,Comparable{ private java.lang.String description; /**是否为标签内容-数据字典(1是 0否)*/ - @Excel(name = "是否为标签内容-数据字典(1是 0否)", width = 15) + @Excel(name = "是否为标签内容-数据字典(1是 0否)", width = 15, dicText = "is_tag_dict", dicCode = "is_tag_dict") @Dict(dictTable = "onl_cgform_field", dicText = "is_tag_dict", dicCode = "is_tag_dict") @ApiModelProperty(value = "是否为标签内容-数据字典(1是 0否)") private java.lang.Integer isTagDict; diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysDict.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysDict.java index 7066fc941..914d8f508 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysDict.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysDict.java @@ -91,7 +91,8 @@ public class SysDict implements Serializable { /** * 是否为标签内容-数据字典(1是 0否) */ - @Excel(name = "是否为标签内容", width = 15) + @Excel(name = "是否为标签内容-数据字典(1是 0否)", width = 15, dicText = "is_tag_dict", dicCode = "is_tag_dict") + @Dict(dictTable = "onl_cgform_field", dicText = "is_tag_dict", dicCode = "is_tag_dict") private java.lang.Integer isTagDict; /** From ace2989e516a5910e5aabd1b9be0088e54359eb7 Mon Sep 17 00:00:00 2001 From: caoyang Date: Tue, 1 Mar 2022 15:47:04 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E5=AD=97=E5=85=B8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SysCategoryController.java | 2 +- .../documentManage/ocr/modules/docTable.vue | 109 ++++++++++++------ .../documentManage/tags/dialog/dicList.vue | 71 ++++++++---- 3 files changed, 123 insertions(+), 59 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysCategoryController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysCategoryController.java index d75163837..12e9c089c 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysCategoryController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/SysCategoryController.java @@ -57,7 +57,7 @@ public class SysCategoryController { * @param req * @return */ - @RequiresPermissions("sys:category:list") +// @RequiresPermissions("sys:category:list") @GetMapping(value = "/rootList") public Result> queryPageList(SysCategory sysCategory, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, diff --git a/jero-web/src/views/documentManage/ocr/modules/docTable.vue b/jero-web/src/views/documentManage/ocr/modules/docTable.vue index a372082c6..73178ff1c 100644 --- a/jero-web/src/views/documentManage/ocr/modules/docTable.vue +++ b/jero-web/src/views/documentManage/ocr/modules/docTable.vue @@ -4,7 +4,6 @@ class="doc-table-drawer" title="调取已入库文件" placement="right" - v-if="visible" :visible="visible" :after-visible-change="afterVisibleChange" @close="onClose" @@ -12,46 +11,54 @@ >
- - - - - - - - - - - - - - - {{$t('query')}} - 清空 - - - - + + + + + + + + + + + + + + + + + + + + +
- - - {{ (queryParams.pageNo-1)*queryParams.pageSize+Number(index)+1 }} - - -
- -
+
+ + + + + + + + + + + + + + + + +