{{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 @@
>
-
-
- {{ (queryParams.pageNo-1)*queryParams.pageSize+Number(index)+1 }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+