Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
@@ -440,7 +440,7 @@ CREATE TABLE `laws_weilai`.`doc_translation` (
|
|||||||
PRIMARY KEY (`id`) USING BTREE
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文档翻译表' ROW_FORMAT = Dynamic;
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文档翻译表' ROW_FORMAT = Dynamic;
|
||||||
|
|
||||||
-- 文档翻译-源语言数据字典
|
-- 文档翻译-源语言数据字典 2022-7-25 已同步生产环境
|
||||||
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550306517749547010', '文档翻译-翻译语言-源语言', 'source_language', '文档翻译-翻译语言-源语言', 0, 'admin', '2022-07-22 10:27:32', 'admin', '2022-07-22 10:29:17', NULL, NULL, 1, 0, '1', 2);
|
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550306517749547010', '文档翻译-翻译语言-源语言', 'source_language', '文档翻译-翻译语言-源语言', 0, 'admin', '2022-07-22 10:27:32', 'admin', '2022-07-22 10:29:17', NULL, NULL, 1, 0, '1', 2);
|
||||||
|
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('155030756958032691412', '1550306517749547010', '中文', 'zh', '中文', 2, 1, 'admin', '2022-07-22 10:31:43', 'admin', '2022-07-22 10:31:59', 1, NULL, NULL, '0', 'Chinese');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('155030756958032691412', '1550306517749547010', '中文', 'zh', '中文', 2, 1, 'admin', '2022-07-22 10:31:43', 'admin', '2022-07-22 10:31:59', 1, NULL, NULL, '0', 'Chinese');
|
||||||
@@ -459,7 +459,7 @@ INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_v
|
|||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503119403009474586', '1550306517749547010', '朝鲜语', 'ko', '朝鲜语', 15, 1, 'admin', '2022-07-22 10:49:05', NULL, NULL, 1, NULL, NULL, '0', 'Korean');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503119403009474586', '1550306517749547010', '朝鲜语', 'ko', '朝鲜语', 15, 1, 'admin', '2022-07-22 10:49:05', NULL, NULL, 1, NULL, NULL, '0', 'Korean');
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503120084961361947', '1550306517749547010', '越南语', 'vi', '越南语', 16, 1, 'admin', '2022-07-22 10:49:21', NULL, NULL, 1, NULL, NULL, '0', 'Vietnamese');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503120084961361947', '1550306517749547010', '越南语', 'vi', '越南语', 16, 1, 'admin', '2022-07-22 10:49:21', NULL, NULL, 1, NULL, NULL, '0', 'Vietnamese');
|
||||||
|
|
||||||
-- 文档翻译-目标语言数据字典
|
-- 文档翻译-目标语言数据字典 2022-7-25 已同步生产环境
|
||||||
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550306581909815297', '文档翻译-翻译语言-目标语言', 'target_language', '文档翻译-翻译语言-目标语言', 0, 'admin', '2022-07-22 10:27:47', 'admin', '2022-07-22 10:29:13', NULL, NULL, 1, 0, '1', 1);
|
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550306581909815297', '文档翻译-翻译语言-目标语言', 'target_language', '文档翻译-翻译语言-目标语言', 0, 'admin', '2022-07-22 10:27:47', 'admin', '2022-07-22 10:29:13', NULL, NULL, 1, 0, '1', 1);
|
||||||
|
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503075695803269141', '1550306581909815297', '中文', 'zh', '中文', 2, 1, 'admin', '2022-07-22 10:31:43', 'admin', '2022-07-22 10:31:59', 1, NULL, NULL, '0', 'Chinese');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('15503075695803269141', '1550306581909815297', '中文', 'zh', '中文', 2, 1, 'admin', '2022-07-22 10:31:43', 'admin', '2022-07-22 10:31:59', 1, NULL, NULL, '0', 'Chinese');
|
||||||
@@ -478,19 +478,19 @@ INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_v
|
|||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550311940300947458', '1550306581909815297', '朝鲜语', 'ko', '朝鲜语', 15, 1, 'admin', '2022-07-22 10:49:05', NULL, NULL, 1, NULL, NULL, '0', 'Korean');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550311940300947458', '1550306581909815297', '朝鲜语', 'ko', '朝鲜语', 15, 1, 'admin', '2022-07-22 10:49:05', NULL, NULL, 1, NULL, NULL, '0', 'Korean');
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550312008496136194', '1550306581909815297', '越南语', 'vi', '越南语', 16, 1, 'admin', '2022-07-22 10:49:21', NULL, NULL, 1, NULL, NULL, '0', 'Vietnamese');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550312008496136194', '1550306581909815297', '越南语', 'vi', '越南语', 16, 1, 'admin', '2022-07-22 10:49:21', NULL, NULL, 1, NULL, NULL, '0', 'Vietnamese');
|
||||||
|
|
||||||
-- 文档翻译-发布情况数据字典
|
-- 文档翻译-发布情况数据字典 2022-7-25 已同步生产环境
|
||||||
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550314527293128705', '文档翻译-发布情况', 'release_condition', '文档翻译-发布情况', 0, 'admin', '2022-07-22 10:59:21', 'admin', '2022-07-22 11:01:07', NULL, NULL, 1, 0, '1', 2);
|
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550314527293128705', '文档翻译-发布情况', 'release_condition', '文档翻译-发布情况', 0, 'admin', '2022-07-22 10:59:21', 'admin', '2022-07-22 11:01:07', NULL, NULL, 1, 0, '1', 2);
|
||||||
|
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550314666682433537', '1550314527293128705', '已发布', 'published', '已发布', 1, 1, 'admin', '2022-07-22 10:59:55', NULL, NULL, 1, NULL, NULL, '0', 'Have published');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550314666682433537', '1550314527293128705', '已发布', 'published', '已发布', 1, 1, 'admin', '2022-07-22 10:59:55', NULL, NULL, 1, NULL, NULL, '0', 'Have published');
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550314731320852482', '1550314527293128705', '草稿', 'draft', '草稿', 2, 1, 'admin', '2022-07-22 11:00:10', NULL, NULL, 1, NULL, NULL, '0', 'Draft');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550314731320852482', '1550314527293128705', '草稿', 'draft', '草稿', 2, 1, 'admin', '2022-07-22 11:00:10', NULL, NULL, 1, NULL, NULL, '0', 'Draft');
|
||||||
|
|
||||||
-- 文档翻译-翻译结果数据字典
|
-- 文档翻译-翻译结果数据字典 2022-7-25 已同步生产环境
|
||||||
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550314971079852034', '文档翻译-翻译结果', 'translation_result', '文档翻译-翻译结果', 0, 'admin', '2022-07-22 11:01:07', NULL, NULL, NULL, NULL, 1, 0, '1', 1);
|
INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1550314971079852034', '文档翻译-翻译结果', 'translation_result', '文档翻译-翻译结果', 0, 'admin', '2022-07-22 11:01:07', NULL, NULL, NULL, NULL, 1, 0, '1', 1);
|
||||||
|
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550315090797871105', '1550314971079852034', '翻译中', 'In the translation', '翻译中', 1, 1, 'admin', '2022-07-22 11:01:36', NULL, NULL, 1, NULL, NULL, '0', 'In the translation');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550315090797871105', '1550314971079852034', '翻译中', 'In the translation', '翻译中', 1, 1, 'admin', '2022-07-22 11:01:36', NULL, NULL, 1, NULL, NULL, '0', 'In the translation');
|
||||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550315193285689345', '1550314971079852034', '翻译完成', 'Translation done', '翻译完成', 2, 1, 'admin', '2022-07-22 11:02:00', NULL, NULL, 1, NULL, NULL, '0', 'Translation done');
|
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1550315193285689345', '1550314971079852034', '翻译完成', 'Translation done', '翻译完成', 2, 1, 'admin', '2022-07-22 11:02:00', NULL, NULL, 1, NULL, NULL, '0', 'Translation done');
|
||||||
|
|
||||||
-- 文档翻译表-增加字段 编号、标题
|
-- 文档翻译表-增加字段 编号、标题 2022-7-25 已同步生产环境
|
||||||
ALTER TABLE `laws_weilai`.`doc_translation`
|
ALTER TABLE `laws_weilai`.`doc_translation`
|
||||||
ADD COLUMN `serial_number` varchar(255) NULL COMMENT '编号' AFTER `buss_document_library_id`,
|
ADD COLUMN `serial_number` varchar(255) NULL COMMENT '编号' AFTER `buss_document_library_id`,
|
||||||
ADD COLUMN `title` varchar(255) NULL COMMENT '标题' AFTER `serial_number`;
|
ADD COLUMN `title` varchar(255) NULL COMMENT '标题' AFTER `serial_number`;
|
||||||
|
|||||||
+5
-1
@@ -1544,7 +1544,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
Map<String, String> msgMap = new HashMap<>();
|
Map<String, String> msgMap = new HashMap<>();
|
||||||
msgMap.put("nioNumber", paramsCollectManifestEO.getNioNumber());
|
msgMap.put("nioNumber", paramsCollectManifestEO.getNioNumber());
|
||||||
msgMap.put("state", paramsCollectManifestEO.getState());
|
msgMap.put("state", paramsCollectManifestEO.getState());
|
||||||
msgMap.put("state", "1");
|
msgMap.put("type", "1");
|
||||||
msgMapList.add(msgMap);
|
msgMapList.add(msgMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1581,6 +1581,10 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
String content = connectBuilder.substring(0, connectBuilder.toString().length() - 1) + " and other parameter items, please enter the link to handle it.";
|
String content = connectBuilder.substring(0, connectBuilder.toString().length() - 1) + " and other parameter items, please enter the link to handle it.";
|
||||||
|
|
||||||
SysUser sysUser = sysUserService.getUserByName(sdt);
|
SysUser sysUser = sysUserService.getUserByName(sdt);
|
||||||
|
if(sysUser == null){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
String[] thirdIds = new String[1];
|
String[] thirdIds = new String[1];
|
||||||
thirdIds[0] = sysUser.getThirdId();
|
thirdIds[0] = sysUser.getThirdId();
|
||||||
String urlParamsStr = parseUrlParams(paramsManifestEO);
|
String urlParamsStr = parseUrlParams(paramsManifestEO);
|
||||||
|
|||||||
+26
-7
@@ -4,13 +4,12 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
|
||||||
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
||||||
import com.jero.modules.docTranslation.service.IDocTranslationEOService;
|
import com.jero.modules.docTranslation.service.IDocTranslationEOService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -21,7 +20,6 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 文档翻译表
|
* @Description: 文档翻译表
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
@@ -53,9 +51,7 @@ public class DocTranslationEOController extends JeroController<DocTranslationEO,
|
|||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
@RequestParam(name="cut", defaultValue="cn") String cut,
|
@RequestParam(name="cut", defaultValue="cn") String cut,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<DocTranslationEO> queryWrapper = QueryGenerator.initQueryWrapper(docTranslationEO, req.getParameterMap());
|
IPage<DocTranslationEO> pageList = docTranslationEOService.queryPageList(docTranslationEO,pageNo,pageSize,cut,req);
|
||||||
Page<DocTranslationEO> page = new Page<DocTranslationEO>(pageNo, pageSize);
|
|
||||||
IPage<DocTranslationEO> pageList = docTranslationEOService.page(page, queryWrapper);
|
|
||||||
return Result.OK(cut,pageList);
|
return Result.OK(cut,pageList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,4 +164,27 @@ public class DocTranslationEOController extends JeroController<DocTranslationEO,
|
|||||||
return super.importExcel(request, response, DocTranslationEO.class);
|
return super.importExcel(request, response, DocTranslationEO.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量更新文档翻译表发布情况
|
||||||
|
* @param json
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "文档翻译表-批量更新发布情况")
|
||||||
|
@ApiOperation(value="文档翻译表-批量更新发布情况", notes="文档翻译表-批量更新发布情况")
|
||||||
|
@PostMapping(value = "/updateRleaseConditionBatch")
|
||||||
|
public Result<?> updateRleaseConditionBatch(@RequestBody JSONObject json) {
|
||||||
|
return this.docTranslationEOService.updateRleaseConditionBatch(json);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量更新文档翻译表状态
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "文档翻译表-查询文本状态下拉选项")
|
||||||
|
@ApiOperation(value="文档翻译表-查询文本状态下拉选项", notes="文档翻译表-查询文本状态下拉选项")
|
||||||
|
@GetMapping(value = "/queryTextStatusVal")
|
||||||
|
public Result<?> queryTextStatusVal() {
|
||||||
|
return this.docTranslationEOService.queryTextStatusVal();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -2,6 +2,7 @@ package com.jero.modules.docTranslation.entity;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -73,10 +74,12 @@ public class DocTranslationEO implements Serializable {
|
|||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
/**文本状态*/
|
/**文本状态*/
|
||||||
@Dict(dicCode = "state")
|
//@Dict(dicCode = "state")
|
||||||
@Excel(name = "文本状态", width = 15)
|
@Excel(name = "文本状态", width = 15)
|
||||||
@ApiModelProperty(value = "文本状态")
|
@ApiModelProperty(value = "文本状态")
|
||||||
private java.lang.String textStatus;
|
private java.lang.String textStatus;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String textStatus_dictText;
|
||||||
|
|
||||||
/**文件名称*/
|
/**文件名称*/
|
||||||
@Excel(name = "文件名称", width = 15)
|
@Excel(name = "文件名称", width = 15)
|
||||||
|
|||||||
+29
@@ -1,7 +1,12 @@
|
|||||||
package com.jero.modules.docTranslation.service;
|
package com.jero.modules.docTranslation.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,4 +63,28 @@ public interface IDocTranslationEOService extends IService<DocTranslationEO> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<DocTranslationEO> queryList();
|
List<DocTranslationEO> queryList();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询
|
||||||
|
* @param docTranslationEO
|
||||||
|
* @param pageNo
|
||||||
|
* @param pageSize
|
||||||
|
* @param cut
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
IPage<DocTranslationEO> queryPageList(DocTranslationEO docTranslationEO, Integer pageNo, Integer pageSize, String cut, HttpServletRequest req);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量更新发布情况
|
||||||
|
* @param json
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Result<?> updateRleaseConditionBatch(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询文本状态下拉选项(文档库中,文件类型字段)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Result<?> queryTextStatusVal();
|
||||||
}
|
}
|
||||||
|
|||||||
+98
@@ -1,20 +1,40 @@
|
|||||||
package com.jero.modules.docTranslation.service.impl;
|
package com.jero.modules.docTranslation.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.jero.common.api.vo.Result;
|
||||||
|
import com.jero.common.constant.enums.CutEnum;
|
||||||
|
import com.jero.common.constant.enums.ModuleEnum;
|
||||||
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
|
import com.jero.common.system.vo.LoginUser;
|
||||||
|
import com.jero.generater.modules.online.cgform.entity.OnlCgformField;
|
||||||
|
import com.jero.generater.modules.online.cgform.service.impl.OnlCgformFieldServiceImpl;
|
||||||
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
import com.jero.modules.docTranslation.entity.DocTranslationEO;
|
||||||
import com.jero.modules.docTranslation.enums.ReleaseConditionEnum;
|
import com.jero.modules.docTranslation.enums.ReleaseConditionEnum;
|
||||||
import com.jero.modules.docTranslation.enums.TranslationResultEnum;
|
import com.jero.modules.docTranslation.enums.TranslationResultEnum;
|
||||||
import com.jero.modules.docTranslation.mapper.DocTranslationEOMapper;
|
import com.jero.modules.docTranslation.mapper.DocTranslationEOMapper;
|
||||||
import com.jero.modules.docTranslation.service.IDocTranslationEOService;
|
import com.jero.modules.docTranslation.service.IDocTranslationEOService;
|
||||||
import com.jero.modules.docTranslation.utils.TranslationDocumentUtils;
|
import com.jero.modules.docTranslation.utils.TranslationDocumentUtils;
|
||||||
|
import com.jero.modules.document.enums.FieldTypeEnum;
|
||||||
import com.jero.modules.oss.entity.OSSFile;
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
|
import me.zhyd.oauth.utils.StringUtils;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.apache.shiro.SecurityUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 文档翻译表
|
* @Description: 文档翻译表
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
@@ -25,6 +45,8 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||||
public class DocTranslationEOServiceImpl extends ServiceImpl<DocTranslationEOMapper, DocTranslationEO> implements IDocTranslationEOService {
|
public class DocTranslationEOServiceImpl extends ServiceImpl<DocTranslationEOMapper, DocTranslationEO> implements IDocTranslationEOService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private OnlCgformFieldServiceImpl onlCgformFieldService;
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -103,4 +125,80 @@ public class DocTranslationEOServiceImpl extends ServiceImpl<DocTranslationEOMap
|
|||||||
public List<DocTranslationEO> queryList() {
|
public List<DocTranslationEO> queryList() {
|
||||||
return list();
|
return list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<DocTranslationEO> queryPageList(DocTranslationEO docTranslationEO, Integer pageNo, Integer pageSize, String cut, HttpServletRequest req) {
|
||||||
|
Page<DocTranslationEO> page = new Page<DocTranslationEO>(pageNo, pageSize);
|
||||||
|
|
||||||
|
QueryWrapper<DocTranslationEO> queryWrapper = QueryGenerator.initQueryWrapper(docTranslationEO, req.getParameterMap());
|
||||||
|
// 获取当前登录人
|
||||||
|
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
/**
|
||||||
|
* 数据权限:自己创建的、或发布情况为“已发布”的数据
|
||||||
|
*/
|
||||||
|
queryWrapper.lambda().and(query -> {
|
||||||
|
query.eq(DocTranslationEO::getCreateBy,currentUser.getUsername());
|
||||||
|
query.or(o -> {
|
||||||
|
o.eq(DocTranslationEO::getReleaseCondition,ReleaseConditionEnum.PUBLISHED.getValue());
|
||||||
|
});
|
||||||
|
});
|
||||||
|
IPage<DocTranslationEO> result = this.page(page, queryWrapper);
|
||||||
|
disposeData(result.getRecords(),cut);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理数据
|
||||||
|
* @param datas
|
||||||
|
* @param cut
|
||||||
|
*/
|
||||||
|
public void disposeData(List<DocTranslationEO> datas,String cut){
|
||||||
|
if(CollectionUtils.isNotEmpty(datas)){
|
||||||
|
for (DocTranslationEO data : datas) {
|
||||||
|
String textStatus_dictText = "";
|
||||||
|
OnlCgformField fileTypeField = this.onlCgformFieldService.queryById(data.getTextStatus());
|
||||||
|
if (ObjectUtil.isNotEmpty(fileTypeField)) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
textStatus_dictText = fileTypeField.getDbFieldTxt();
|
||||||
|
} else {
|
||||||
|
textStatus_dictText = fileTypeField.getDbFieldEnName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data.setTextStatus_dictText(textStatus_dictText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<?> updateRleaseConditionBatch(JSONObject json) {
|
||||||
|
String ids = json.getString("ids");
|
||||||
|
// 值对应枚举类 ReleaseConditionEnum 发布published 或撤回draft
|
||||||
|
String releaseCondition = json.getString("releaseCondition");
|
||||||
|
if (StringUtils.isNotEmpty(ids)) {
|
||||||
|
List<DocTranslationEO> docTranslationEOList = new ArrayList<>();
|
||||||
|
|
||||||
|
List<String> idList = Arrays.asList(ids.split(","));
|
||||||
|
idList.forEach(id -> {
|
||||||
|
DocTranslationEO docTranslationEO = new DocTranslationEO();
|
||||||
|
docTranslationEO.setId(id);
|
||||||
|
docTranslationEO.setReleaseCondition(releaseCondition);
|
||||||
|
docTranslationEOList.add(docTranslationEO);
|
||||||
|
});
|
||||||
|
this.updateBatchById(docTranslationEOList);
|
||||||
|
}
|
||||||
|
return new Result<>().success("操作成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<?> queryTextStatusVal() {
|
||||||
|
List<OnlCgformField> fieldList = this.onlCgformFieldService.getFieldList(ModuleEnum.DOCUMENT_LIBRARY.getValue());
|
||||||
|
List<OnlCgformField> result = fieldList.stream().filter(field -> {
|
||||||
|
boolean flag = false;
|
||||||
|
if(org.apache.commons.lang3.StringUtils.equals(field.getFieldShowType(), FieldTypeEnum.FILE.getValue())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
return Result.OK(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3189,7 +3189,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
//您订阅的XXX已被修改
|
//您订阅的XXX已被修改
|
||||||
content = "In the "+category + " " + serialNumber+" you subscribed to, has been modified,Please pay attention to check.";
|
content = "In the "+category + " " + serialNumber+" you subscribed to, has been modified,Please pay attention to check.";
|
||||||
String contentInfo = "In the "+category + " " + href+" you subscribed to, "+sysUser.getUsername()+" changed the "+ href + " " + sbStr.toString();
|
String contentInfo = "In the "+category + " " + href+" you subscribed to, "+sysUser.getUsername()+" changed the "+ href + " " + sbStr.toString();
|
||||||
String msgTitle = serialNumber + " you subsribed to has been updated";
|
String msgTitle = serialNumber + " you subscribed to has been updated";
|
||||||
//封装消息的实体类
|
//封装消息的实体类
|
||||||
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdListUpdate, msgTitle, content, contentInfo,MessageTypeEnum.READ.getValue(),MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdListUpdate, msgTitle, content, contentInfo,MessageTypeEnum.READ.getValue(),MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
||||||
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
||||||
|
|||||||
@@ -1173,4 +1173,21 @@ module.exports = {
|
|||||||
convertFailed:'Convert Failed',
|
convertFailed:'Convert Failed',
|
||||||
standardData:'Standard Data',
|
standardData:'Standard Data',
|
||||||
Theorganization:'The Organization',
|
Theorganization:'The Organization',
|
||||||
|
Addingfolder:'Adding a folder',
|
||||||
|
Addingsubfolders:'Adding Subfolders',
|
||||||
|
Editfolder:'Edit Folder',
|
||||||
|
Deletefolders:'Delete Folders',
|
||||||
|
Foldername:'Folder Name',
|
||||||
|
Folderpermissions:'Folder Permissions',
|
||||||
|
Folderorder:'Folder Order',
|
||||||
|
Downloadprivileges:'Download Privileges',
|
||||||
|
Openpersonnel:'Open Personnel',
|
||||||
|
originalText:'Original Text',
|
||||||
|
translatedText:'Translated Text',
|
||||||
|
Administrativeprivileges:'Administrativ Pprivileges',
|
||||||
|
Checkthepermissions:'Check The Permissions',
|
||||||
|
onlyFilesUploaded:'Only.Docx,.Doc files can be uploaded',
|
||||||
|
selectDirectorylocation: 'Please select the directory location to add the folder',
|
||||||
|
Fileuploaded:'File uploaded, please wait',
|
||||||
|
uploadedbyyourself:'You can only delete files and data uploaded by yourself',
|
||||||
}
|
}
|
||||||
@@ -577,6 +577,7 @@ module.exports = {
|
|||||||
documentSplitTemplate: '文档拆分模板',
|
documentSplitTemplate: '文档拆分模板',
|
||||||
batSetting: '批量设置',
|
batSetting: '批量设置',
|
||||||
selectDirectoryTerms: '请选择添加条款的目录位置',
|
selectDirectoryTerms: '请选择添加条款的目录位置',
|
||||||
|
selectDirectorylocation: '请选择添加文件夹的目录位置',
|
||||||
OnlyWordItem: '只有GSO文件类型,才能拆分pdf文件,请重新选择文件',
|
OnlyWordItem: '只有GSO文件类型,才能拆分pdf文件,请重新选择文件',
|
||||||
OnlyWord: '只能导入word文件',
|
OnlyWord: '只能导入word文件',
|
||||||
labelAreaDeleted: '若进行删除,则该展示区域下标签项都将被删除',
|
labelAreaDeleted: '若进行删除,则该展示区域下标签项都将被删除',
|
||||||
@@ -1177,4 +1178,19 @@ module.exports = {
|
|||||||
convertFailed:'转换失败',
|
convertFailed:'转换失败',
|
||||||
standardData:'标准数据',
|
standardData:'标准数据',
|
||||||
Theorganization:'组织机构',
|
Theorganization:'组织机构',
|
||||||
|
Addingfolder:'新增文件夹',
|
||||||
|
Addingsubfolders:'新增子文件夹',
|
||||||
|
Editfolder:'编辑文件夹',
|
||||||
|
Deletefolders:'删除文件夹',
|
||||||
|
Foldername:'文件夹名称',
|
||||||
|
Folderpermissions:'文件夹权限',
|
||||||
|
Folderorder:'文件夹顺序',
|
||||||
|
Downloadprivileges:'下载权限',
|
||||||
|
Openpersonnel:'开放人员',
|
||||||
|
originalText:'原文',
|
||||||
|
translatedText:'译文',
|
||||||
|
Administrativeprivileges:'管理权限',
|
||||||
|
Checkthepermissions:'查看权限',
|
||||||
|
onlyFilesUploaded:'只能上传.docx、.doc文件',
|
||||||
|
uploadedbyyourself:'只能删除自己上传的文件数据',
|
||||||
}
|
}
|
||||||
@@ -99,6 +99,7 @@
|
|||||||
this.$route.path == '/TaskPlanList' ||
|
this.$route.path == '/TaskPlanList' ||
|
||||||
this.$route.path == '/documentDataComparison' ||
|
this.$route.path == '/documentDataComparison' ||
|
||||||
this.$route.path == '/comparisonResults' ||
|
this.$route.path == '/comparisonResults' ||
|
||||||
|
this.$route.path == '/documentTranslationResults' ||
|
||||||
this.$route.path == '/initiateDocumentComparison' ||
|
this.$route.path == '/initiateDocumentComparison' ||
|
||||||
this.$route.path == '/evaluationProcess' ||
|
this.$route.path == '/evaluationProcess' ||
|
||||||
this.$route.path == '/evaluationResultsClause' ||
|
this.$route.path == '/evaluationResultsClause' ||
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-modal v-model="visible" :maskClosable="false" :footer="[]" :title="title">
|
<a-modal v-model="visible" :maskClosable="false" :footer="[]" :title="title">
|
||||||
<a-upload-dragger
|
<a-upload-dragger
|
||||||
accept='*.*'
|
:accept='accept'
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
class="ant-upload-list"
|
class="ant-upload-list"
|
||||||
:class="{'uploadFile':isUploadFile}"
|
:class="{'uploadFile':isUploadFile}"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'file',
|
name: 'file',
|
||||||
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple'],
|
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple', 'restrictUploads'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -48,7 +48,8 @@
|
|||||||
myfileList: [],
|
myfileList: [],
|
||||||
isLoding: false,
|
isLoding: false,
|
||||||
cut: '',
|
cut: '',
|
||||||
multiple: true
|
multiple: true,
|
||||||
|
accept: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
if (this.isMultiple) {
|
if (this.isMultiple) {
|
||||||
this.multiple = false
|
this.multiple = false
|
||||||
}
|
}
|
||||||
|
this.accept = this.restrictUploads ? '.docx,.doc' : '*.*'
|
||||||
// console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl);
|
// console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -84,10 +86,23 @@
|
|||||||
},
|
},
|
||||||
beforeUpload(file, fileList) {
|
beforeUpload(file, fileList) {
|
||||||
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
|
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
|
||||||
|
console.log(file)
|
||||||
this.fileTypeSatus = true
|
this.fileTypeSatus = true
|
||||||
if (this.isMultiple) {
|
if (this.isMultiple) {
|
||||||
if ((this.myfileList && this.myfileList.length == 1) || this.myfileList && this.myfileList.length > 1) {
|
if ((this.myfileList && this.myfileList.length == 1) || this.myfileList && this.myfileList.length > 1) {
|
||||||
this.$message.warning('只能上传一个文件')
|
this.$message.warning(this.$t('onlyOnefileUploaded'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.restrictUploads) {
|
||||||
|
let fileName = file.name
|
||||||
|
let index1 = fileName.lastIndexOf('.')
|
||||||
|
let index2 = fileName.length
|
||||||
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
|
if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('onlyFilesUploaded'))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -387,6 +387,11 @@ export const constantRouterMap = [
|
|||||||
name: 'initiateDocumentComparison',
|
name: 'initiateDocumentComparison',
|
||||||
component: () => import(/* webpackChunkName: "user" */ '@/views/documentTools/documentComparison/components/initiateComparison')
|
component: () => import(/* webpackChunkName: "user" */ '@/views/documentTools/documentComparison/components/initiateComparison')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/documentTranslationResults',
|
||||||
|
name: 'documentTranslationResults',
|
||||||
|
component: () => import(/* webpackChunkName: "user" */ '@/views/documentTools/documentTranslation/components/documentTranslationResults')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/documentDataComparison',
|
path: '/documentDataComparison',
|
||||||
name: 'documentDataComparison',
|
name: 'documentDataComparison',
|
||||||
|
|||||||
+62
-44
@@ -42,10 +42,10 @@
|
|||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%',y:'calc(100vh - 440px)'}"
|
||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:' ' }"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
@@ -68,38 +68,22 @@
|
|||||||
<span class="Required-One">*</span>
|
<span class="Required-One">*</span>
|
||||||
<span class="title-text-text-One" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span>
|
<span class="title-text-text-One" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="translationLanguage">
|
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="sourceLanguage">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
<j-dict-select-tag class="box-input" v-model="formInline.sourceLanguage"
|
||||||
class="box-input-One"
|
@input="handleInput('sourceLanguage')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
||||||
allowClear
|
:type="'select'"
|
||||||
v-model="formInline.translationLanguage">
|
:triggerChange="false" dictCode="source_language"/>
|
||||||
<a-select-option v-for="(item, key) in LanguageList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<span class="text-icon-One">
|
<span class="text-icon-One">
|
||||||
<a-icon type="arrow-right" style="font-size: 20px"/>
|
<a-icon type="arrow-right" style="font-size: 20px"/>
|
||||||
</span>
|
</span>
|
||||||
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="translationLanguageOne">
|
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="targetLanguage">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
<j-dict-select-tag class="box-input" v-model="formInline.targetLanguage"
|
||||||
class="box-input-One"
|
@input="handleInput('targetLanguage')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
||||||
allowClear
|
:type="'select'"
|
||||||
v-model="formInline.translationLanguageOne">
|
:triggerChange="false" dictCode="target_language"/>
|
||||||
<a-select-option v-for="(item, key) in LanguageList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -127,14 +111,14 @@
|
|||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
formInline: {},
|
formInline: {},
|
||||||
rules: {
|
rules: {
|
||||||
translationLanguage: [
|
sourceLanguage: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
translationLanguageOne: [
|
targetLanguage: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
||||||
@@ -166,19 +150,19 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('TextStatus'),
|
title: this.$t('TextStatus'),
|
||||||
dataIndex: 'TextStatus',
|
dataIndex: 'state',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'file_name',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('textInformation'),
|
title: this.$t('textInformation'),
|
||||||
dataIndex: 'textInformation',
|
dataIndex: 'text_info',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
}
|
}
|
||||||
@@ -189,19 +173,27 @@
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
fieldList: [],
|
selectedRowKeysRecord: []
|
||||||
queryConditionVOList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleInput(value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.validateField([value])
|
||||||
|
})
|
||||||
|
},
|
||||||
addModel() {
|
addModel() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
// this.replacePage()
|
this.replacePage()
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
@@ -222,13 +214,16 @@
|
|||||||
this.replacePage()
|
this.replacePage()
|
||||||
},
|
},
|
||||||
replacePage() {
|
replacePage() {
|
||||||
|
let pageNo = JSON.parse(JSON.stringify(this.pageNo))
|
||||||
|
let pageSize = JSON.parse(JSON.stringify(this.pageSize))
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: pageNo + '',
|
||||||
pageSize: this.pageSize,
|
pageSize: pageSize + '',
|
||||||
|
type: 'doc',
|
||||||
...this.queryParam
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
postAction('', query).then((res) => {
|
postAction('document/bussDocumentLibraryEO/ocrPageInfo', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataList = res.result.records || []
|
this.dataList = res.result.records || []
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
@@ -240,8 +235,15 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value, record) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
if (this.selectedRowKeys.length > 1) {
|
||||||
|
this.selectedRowKeys.shift()
|
||||||
|
}
|
||||||
|
this.selectedRowKeysRecord = record.filter(res => {
|
||||||
|
return res.id == this.selectedRowKeys[0]
|
||||||
|
})
|
||||||
|
this.selectedRowKeysRecord = [...this.selectedRowKeysRecord]
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
@@ -250,9 +252,25 @@
|
|||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
let query = {
|
||||||
|
...this.formInline,
|
||||||
|
serialNumber: this.selectedRowKeysRecord[0].serial_number,
|
||||||
|
title: this.selectedRowKeysRecord[0].title,
|
||||||
|
fileName: this.selectedRowKeysRecord[0].file_name,
|
||||||
|
textStatus: this.selectedRowKeysRecord[0].text_info_id
|
||||||
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
||||||
this.visible = false
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$emit('RetrieveFilesListForm')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('file')">{{$t('file')}}</span>
|
:title="$t('file')">{{$t('file')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="file">
|
<a-form-model-item class="itemModel" prop="sourceFileId">
|
||||||
<a-button type="primary" class="button-text"
|
<a-button type="primary" class="button-text"
|
||||||
@click="clickButtonToUpload('file')">
|
@click="clickButtonToUpload('sourceFileId')">
|
||||||
{{ (formInline.file === 'null' || formInline.file === '' ||
|
{{ (formInline.sourceFileId === 'null' || formInline.sourceFileId === '' ||
|
||||||
formInline.file == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
formInline.sourceFileId == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
}}
|
}}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -34,10 +34,10 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('standard')">{{$t('standard')}}</span>
|
<span class="title-text-text" :title="$t('standard')">{{$t('standard')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="standard">
|
<a-form-model-item class="itemModel" prop="serialNumber">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
readonly
|
readonly
|
||||||
v-model="formInline.standard"
|
v-model="formInline.serialNumber"
|
||||||
@click.native="standardClick"
|
@click.native="standardClick"
|
||||||
:placeholder="$t('PleaseSelect')+$t('standard')"/>
|
:placeholder="$t('PleaseSelect')+$t('standard')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -49,17 +49,17 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('TextStatus')">{{$t('TextStatus')}}</span>
|
<span class="title-text-text" :title="$t('TextStatus')">{{$t('TextStatus')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="translationResults">
|
<a-form-model-item class="itemModel" prop="textStatus">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('TextStatus')"
|
<a-select :placeholder="$t('PleaseSelect')+$t('TextStatus')"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
allowClear
|
allowClear
|
||||||
v-model="formInline.translationResults">
|
v-model="formInline.textStatus">
|
||||||
<a-select-option v-for="(item, key) in translationResultsList"
|
<a-select-option v-for="(item, key) in translationResultsList"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="item.value">
|
:value="item.id">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
<span style="display: inline-block;width: 100%" :title=" item.dbFieldTxt">
|
||||||
{{ item.name }}
|
{{ item.dbFieldTxt }}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -72,45 +72,29 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span>
|
<span class="title-text-text" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" style="width: calc(50% - 20px)" prop="translationLanguage">
|
<a-form-model-item class="itemModel" style="width: calc(50% - 20px)" prop="sourceLanguage">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
<j-dict-select-tag class="box-input" v-model="formInline.sourceLanguage"
|
||||||
class="box-input"
|
@input="handleInput('sourceLanguage')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
||||||
allowClear
|
:type="'select'"
|
||||||
v-model="formInline.translationLanguage">
|
:triggerChange="false" dictCode="source_language"/>
|
||||||
<a-select-option v-for="(item, key) in LanguageList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<span class="text-icon">
|
<span class="text-icon">
|
||||||
<a-icon type="arrow-right" style="font-size: 20px"/>
|
<a-icon type="arrow-right" style="font-size: 20px"/>
|
||||||
</span>
|
</span>
|
||||||
<a-form-model-item class="itemModel" style="width: calc(50% - 20px)" prop="translationLanguageOne">
|
<a-form-model-item class="itemModel" style="width: calc(50% - 20px)" prop="targetLanguage">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
<j-dict-select-tag class="box-input" v-model="formInline.targetLanguage"
|
||||||
class="box-input"
|
@input="handleInput('targetLanguage')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:placeholder="$t('PleaseSelect')+$t('translationLanguage')"
|
||||||
allowClear
|
:type="'select'"
|
||||||
v-model="formInline.translationLanguageOne">
|
:triggerChange="false" dictCode="target_language"/>
|
||||||
<a-select-option v-for="(item, key) in LanguageList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
<uploadFile ref="uploadFile" :restrictUploads="true" :isMultiple="true" @uploadSuccess="uploadSuccess"/>
|
||||||
<standardData ref="standardDataRef" @standardDataForm="standardDataForm"/>
|
<standardData ref="standardDataRef" @standardDataForm="standardDataForm"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -133,35 +117,35 @@
|
|||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
rules: {
|
rules: {
|
||||||
file: [
|
sourceFileId: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('file') + this.$t('cannotEmpty'),
|
message: this.$t('file') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
standard: [
|
serialNumber: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('standard') + this.$t('cannotEmpty'),
|
message: this.$t('standard') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
translationResults: [
|
textStatus: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('TextStatus') + this.$t('cannotEmpty'),
|
message: this.$t('TextStatus') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
translationLanguage: [
|
sourceLanguage: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
translationLanguageOne: [
|
targetLanguage: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
|
||||||
@@ -175,8 +159,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getTextStatus()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTextStatus() {
|
||||||
|
getAction('/docTranslation/docTranslationEO/queryTextStatusVal', {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.translationResultsList = res.result || []
|
||||||
|
} else {
|
||||||
|
this.translationResultsList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
add() {
|
add() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
@@ -193,18 +187,16 @@
|
|||||||
handleOk() {
|
handleOk() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let ids = JSON.parse(JSON.stringify(this.ids))
|
|
||||||
let query = {
|
let query = {
|
||||||
ids: ids.join(','),
|
|
||||||
...this.formInline
|
...this.formInline
|
||||||
}
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
postAction(this.url.setBatch, query).then((res) => {
|
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
this.$emit('batSettingList')
|
this.$emit('addModelForm')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
@@ -232,20 +224,36 @@
|
|||||||
/** 上传文件的回调 */
|
/** 上传文件的回调 */
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
|
let fileName = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
data.map(item => {
|
data.map(item => {
|
||||||
attIdList.push(item.id || data.name)
|
attIdList.push(item.id || data.name)
|
||||||
|
fileName.push(item.fileName)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.formInline[this.uploadName] = attIdList.join(',')
|
this.formInline[this.uploadName] = attIdList.join(',')
|
||||||
|
this.formInline.fileName = fileName.join(',')
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.formInline[this.uploadName]) {
|
||||||
|
this.$refs.ruleForm.validateField([this.uploadName])
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
standardClick() {
|
standardClick() {
|
||||||
this.$refs.standardDataRef.addModel()
|
this.$refs.standardDataRef.addModel()
|
||||||
},
|
},
|
||||||
standardDataForm() {
|
standardDataForm(row) {
|
||||||
|
this.formInline.serialNumber = row.serial_number
|
||||||
|
this.formInline.title = row.title
|
||||||
|
this.formInline.bussDocumentLibraryId = row.id
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.formInline.serialNumber) {
|
||||||
|
this.$refs.ruleForm.validateField(['serialNumber'])
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+234
@@ -0,0 +1,234 @@
|
|||||||
|
<template>
|
||||||
|
<div class="doc-detail">
|
||||||
|
<div class="doc-detail-wrap">
|
||||||
|
<div class="doc-detail-header" style="position: fixed;top: 0">
|
||||||
|
<div class="doc-detail-title">
|
||||||
|
<span style="line-height: 66px;display: inline-block;float: left" @click="Fallback">
|
||||||
|
<a-icon type="arrow-left" style="margin-right: 6px;"/>
|
||||||
|
</span>
|
||||||
|
<span> {{$t('DocumentTranslation')}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding-top: 68px;background: #fff">
|
||||||
|
<div class="detail-content">
|
||||||
|
<div class="detail-content-left">
|
||||||
|
<div class="detail-text-top">
|
||||||
|
{{$t('originalText')}}
|
||||||
|
</div>
|
||||||
|
<div class="detail-text">
|
||||||
|
汽车用LED前照灯
|
||||||
|
|
||||||
|
1 范围
|
||||||
|
|
||||||
|
本标准规定了汽车用LED光源/模块或含有LED光源/模块的前照灯配光性能、光色、温度循环等试验方法和检验规则等,
|
||||||
|
本标准适用于M、N类汽车使用的LED前照灯、或主要由LED光源或LED模块形成远光或近光的LED前照灯。
|
||||||
|
|
||||||
|
2 规范性引用文件
|
||||||
|
|
||||||
|
下列文件中的条款,通过本标准的引用而成为本标准的条款,凡是注日期的引用文件,其随后所有的修改单(不包括勘误的内容)或修订版均不适用于本标准,然而,鼓励根据本标准达成协议的各方研究是否可使用这些文件的最新版本。凡是不注日期的引用文件,其最新版本适用于本标准.
|
||||||
|
GB 4599—2007 汽车用灯丝灯泡前照灯
|
||||||
|
GB 4785 汽车及挂车外部照明和光信号装置的安装规定
|
||||||
|
GB/T 7922 照明光源颜色的测量方法
|
||||||
|
GB 15766.1 道路机动车辆灯丝灯泡 尺寸、光电性能要求
|
||||||
|
|
||||||
|
3 术语和定义
|
||||||
|
|
||||||
|
GB 4599—2007和GB 4785中确立的,以及下列术语和定义适用于本标准占
|
||||||
|
3. 1
|
||||||
|
目标光通量: objective luminous flux
|
||||||
|
可更换光源或光源模块光通量的设计值。
|
||||||
|
3.2
|
||||||
|
光源失效 failure of light source
|
||||||
|
LED或LED模块在正常使用条件下,一个或多个LED失去发光功能、变暗、色度超标、或出现闪烁的现象。
|
||||||
|
3.3
|
||||||
|
LED 模块 LED module
|
||||||
|
仅含有LED的光源模块。
|
||||||
|
|
||||||
|
4 前照灯的不同型式
|
||||||
|
|
||||||
|
在以下主要方面有差异的前照灯:
|
||||||
|
——商品名称或商标;
|
||||||
|
——光学系统的特性;
|
||||||
|
——通过反射、折射、吸收和/或工作时的变形,改变光学效果的部件;
|
||||||
|
——提供的光束种类(近光,远光或远、近光);
|
||||||
|
——配光镜及其涂层的材料;
|
||||||
|
|
||||||
|
|
||||||
|
——LED光源/模块类型和参数(电压、功率、光通量、色度、显色性九
|
||||||
|
5 要求
|
||||||
|
5.1 一般要求
|
||||||
|
5.1. 1 LED前照灯应设计和制造成在正常使用条件下,即使受到振动,仍能保证满足使用要求和符合本标准规定。
|
||||||
|
5.1.2 LED前照灯应具有良好的散热性,防止LED光源热堆积,LED前照灯即使在低温凝冻的环境下仍能正常工作,
|
||||||
|
5.1.3 LED前照灯应具有良好的电磁兼容性能。
|
||||||
|
5.1.4 当前照灯装有LED光源或LED模块时其性能均应满足本标准要求;当LED前照灯中装有灯丝灯泡或HID光源实现远光或近光功能时,其配光性能和检测应分别满足其相应标准的要求,
|
||||||
|
5.1.5 前照灯应具有光束调整装置,当近光灯和远光灯形成一组合体,并各自装有LED光源/模块、灯丝灯泡(或灯光组)时,调整装置应能对它们分别进行调整,这些要求不适用于远光灯和近光灯不能单独调节的前照灯,
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-content-right">
|
||||||
|
<div class="detail-text-top">
|
||||||
|
{{$t('translatedText')}}
|
||||||
|
</div>
|
||||||
|
<div class="detail-text">
|
||||||
|
LED headlamp for automobile
|
||||||
|
one Range
|
||||||
|
This standard specifies the test methods and inspection rules for light distribution performance, light
|
||||||
|
color, temperature cycle, etc. of automotive LED light source / module or headlamp containing LED light
|
||||||
|
source / module,
|
||||||
|
This standard is applicable to LED headlamps used by M and N vehicles, or LED headlamps that mainly form
|
||||||
|
high beam or low beam by LED light source or LED module.
|
||||||
|
two Normative references
|
||||||
|
The provisions in the following documents become the provisions of this standard through the reference of
|
||||||
|
this standard. For dated references, all subsequent amendments (excluding the contents of Corrigendum) or
|
||||||
|
revisions are not applicable to this standard. However, parties to agreements based on this standard are
|
||||||
|
encouraged to study whether the latest versions of these documents can be used. For undated references,
|
||||||
|
the latest edition is applicable to this standard
|
||||||
|
GB 4599—2007 Automotive filament bulb headlamps
|
||||||
|
GB 4785 Provisions for the installation of exterior lighting and light signalling devices for automobiles
|
||||||
|
and trailers
|
||||||
|
GB/T 7922 Methods of measuring the color of lighting sources
|
||||||
|
GB 15766.1 Requirements for dimensions and photoelectric performance of filament bulbs for road motor
|
||||||
|
vehicles
|
||||||
|
three Terms and definitions
|
||||||
|
The terms and definitions established in GB 4599-2007 and GB 4785 and the following terms and definitions
|
||||||
|
are applicable to this standard
|
||||||
|
3. 1
|
||||||
|
Objective luminous flux
|
||||||
|
Design value of luminous flux of replaceable light source or light source module.
|
||||||
|
three point two
|
||||||
|
Failure of light source
|
||||||
|
Under normal use conditions of LED or LED module, one or more LEDs lose light-emitting function, darken,
|
||||||
|
chromaticity exceeds the standard, or flicker.
|
||||||
|
three point three
|
||||||
|
LED module
|
||||||
|
Light source module with led only.
|
||||||
|
four Different types of headlamps
|
||||||
|
Headlamps that differ in the following main respects:
|
||||||
|
——Trade name or trademark;
|
||||||
|
——Characteristics of optical system;
|
||||||
|
——Components that change the optical effect through reflection, refraction, absorption and / or
|
||||||
|
deformation during operation;
|
||||||
|
——Type of beam provided (low beam, high beam or high beam and low beam);
|
||||||
|
——Materials of lens and its coating;
|
||||||
|
——LED light source / module type and parameters (voltage, power, luminous flux, chromaticity, color
|
||||||
|
rendering IX
|
||||||
|
five requirement
|
||||||
|
five point one general requirements
|
||||||
|
5.1. one The LED headlamp shall be designed and manufactured to ensure that it can meet the use
|
||||||
|
requirements and comply with the provisions of this standard even if it is vibrated under normal
|
||||||
|
conditions of use.
|
||||||
|
5.1.2 The LED headlamp shall have good heat dissipation to prevent thermal accumulation of LED light
|
||||||
|
source. The LED headlamp can work normally even in the low-temperature freezing environment,
|
||||||
|
5.1.3 LED headlamp shall have good electromagnetic compatibility performance.
|
||||||
|
5.1.4 When the headlamp is equipped with LED light source or LED module, its performance shall meet the
|
||||||
|
requirements of this standard; When the LED headlamp is equipped with filament bulb or HID light source to
|
||||||
|
realize the function of high beam or low beam, its Photometric Performance and detection shall meet the
|
||||||
|
requirements of corresponding standards respectively,
|
||||||
|
5.1.5 The headlamp shall have a beam adjustment device. When the dipped beam and the high beam form a
|
||||||
|
combination and each is equipped with an LED light source / module and a filament bulb (or light group),
|
||||||
|
the adjustment device shall be able to adjust them respectively. These requirements do not apply to
|
||||||
|
headlamps where the high beam and the low beam cannot be adjusted separately,
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'documentTranslationResults',
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
Fallback() {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/documentTranslation'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
|
.doc-detail {
|
||||||
|
background: #fff;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.doc-detail-wrap {
|
||||||
|
.doc-detail-header {
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
height: 68px;
|
||||||
|
line-height: 68px;
|
||||||
|
padding: 0 0 0 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
border-bottom: 2px #eff1f3 solid;
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
|
.doc-detail-title {
|
||||||
|
display: inline-block;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #040B29;
|
||||||
|
line-height: 68px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-content {
|
||||||
|
padding: 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-content-left {
|
||||||
|
width: calc(50% - 12px);
|
||||||
|
height: calc(100vh - 130px);
|
||||||
|
float: left;
|
||||||
|
border: 1px solid #CED0D8;
|
||||||
|
padding: 24px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-content-right {
|
||||||
|
float: left;
|
||||||
|
width: calc(50% - 12px);
|
||||||
|
padding: 24px 32px;
|
||||||
|
margin-left: 24px;
|
||||||
|
height: calc(100vh - 130px);
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #CED0D8;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-text-top {
|
||||||
|
height: 30px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #040B29;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-text {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #040B29;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
fieldList: [],
|
fieldList: [],
|
||||||
queryConditionVOList: [],
|
queryConditionVOList: [],
|
||||||
selectedRowKeysRecord:[],
|
selectedRowKeysRecord: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -214,12 +214,12 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value,record) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
if (this.selectedRowKeys.length > 1) {
|
if (this.selectedRowKeys.length > 1) {
|
||||||
this.selectedRowKeys.shift()
|
this.selectedRowKeys.shift()
|
||||||
}
|
}
|
||||||
this.selectedRowKeysRecord = record.filter(res=>{
|
this.selectedRowKeysRecord = record.filter(res => {
|
||||||
return res.id == this.selectedRowKeys[0]
|
return res.id == this.selectedRowKeys[0]
|
||||||
})
|
})
|
||||||
this.selectedRowKeysRecord = [...this.selectedRowKeysRecord]
|
this.selectedRowKeysRecord = [...this.selectedRowKeysRecord]
|
||||||
@@ -229,8 +229,7 @@
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.confirmLoading = true
|
this.$emit('standardDataForm', this.selectedRowKeysRecord[0])
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
|
||||||
this.visible = false
|
this.visible = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
|||||||
@@ -26,19 +26,10 @@
|
|||||||
<div class="title-text" :title="$t('translationResults')">
|
<div class="title-text" :title="$t('translationResults')">
|
||||||
<span>{{$t('translationResults')}}</span>
|
<span>{{$t('translationResults')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('translationResults')"
|
<j-dict-select-tag class="box-input" v-model="queryParam.translationResult"
|
||||||
class="box-input"
|
:placeholder="$t('PleaseSelect')+$t('translationResults')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:type="'select'"
|
||||||
allowClear
|
:triggerChange="false" dictCode="translation_result"/>
|
||||||
v-model="queryParam.translationResults">
|
|
||||||
<a-select-option v-for="(item, key) in translationResultsList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<template v-if="toggleSearchStatus">
|
||||||
@@ -47,19 +38,10 @@
|
|||||||
<div class="title-text" :title="$t('releaseSituation')">
|
<div class="title-text" :title="$t('releaseSituation')">
|
||||||
<span>{{$t('releaseSituation')}}</span>
|
<span>{{$t('releaseSituation')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('releaseSituation')"
|
<j-dict-select-tag class="box-input" v-model="queryParam.releaseCondition"
|
||||||
class="box-input"
|
:placeholder="$t('PleaseSelect')+$t('releaseSituation')"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:type="'select'"
|
||||||
allowClear
|
:triggerChange="false" dictCode="release_condition"/>
|
||||||
v-model="queryParam.flowStatus">
|
|
||||||
<a-select-option v-for="(item, key) in gatherResultList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -105,13 +87,18 @@
|
|||||||
<!-- -->
|
<!-- -->
|
||||||
<span slot="operation" slot-scope="text,record">
|
<span slot="operation" slot-scope="text,record">
|
||||||
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
|
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
|
||||||
<a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>
|
<!-- <a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>-->
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="subscribe(record)">
|
v-if="record.createBy == userInfoQuery.username"
|
||||||
{{!record.state || record.state == 0 ? $t('release') :$t('withdraw')}}
|
@click="subscribe(record)">
|
||||||
|
{{!record.releaseCondition || record.releaseCondition == 'draft' ? $t('release') :$t('withdraw')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="text-operation" @click="downloadData(record)">{{$t('download')}}</a>
|
<a class="text-operation"
|
||||||
<a class="text-operation" @click="deleteData(record)">{{$t('delete')}}</a>
|
v-if="record.translationResult == 'Translation done'"
|
||||||
|
@click="downloadData(record)">{{$t('download')}}</a>
|
||||||
|
<a class="text-operation"
|
||||||
|
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
||||||
|
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource && dataSource.length > 0">
|
||||||
@@ -133,9 +120,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||||
import addModel from './components/addModel'
|
import addModel from './components/addModel'
|
||||||
import RetrieveFilesList from './components/RetrieveFilesList'
|
import RetrieveFilesList from './components/RetrieveFilesList'
|
||||||
|
import eventBUs from '../../../common/event'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@@ -147,8 +136,8 @@
|
|||||||
return {
|
return {
|
||||||
//url传参严格按照当前命名
|
//url传参严格按照当前命名
|
||||||
url: {
|
url: {
|
||||||
list: '',
|
list: '/docTranslation/docTranslationEO/page',
|
||||||
deleteBatch: ''
|
deleteBatch: '/docTranslation/docTranslationEO/deleteBatch'
|
||||||
},
|
},
|
||||||
toggleSearchStatus: false,
|
toggleSearchStatus: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -158,30 +147,7 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
gatherResultList: [
|
userInfoQuery: {},
|
||||||
{
|
|
||||||
value: '1',
|
|
||||||
name: this.$t('draft')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2',
|
|
||||||
name: this.$t('Published')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
translationResultsList: [
|
|
||||||
{
|
|
||||||
value: '1',
|
|
||||||
name: this.$t('Converting')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2',
|
|
||||||
name: this.$t('convertNetwork')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '3',
|
|
||||||
name: this.$t('convertFailed')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
@@ -200,7 +166,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 170,
|
width: 170,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'TextStatus'
|
dataIndex: 'textStatus_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
@@ -212,13 +178,13 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('translationLanguage'),
|
title: this.$t('translationLanguage'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'translationLanguage',
|
dataIndex: 'targetLanguage_dictText',
|
||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('translationResults'),
|
title: this.$t('translationResults'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'translationResults',
|
dataIndex: 'translationResult_dictText',
|
||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -226,14 +192,14 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 170,
|
width: 170,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'conversionTime'
|
dataIndex: 'translationTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('releaseSituation'),
|
title: this.$t('releaseSituation'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 170,
|
width: 170,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'releaseSituation'
|
dataIndex: 'releaseCondition_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -247,12 +213,16 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.userInfoQuery = this.userInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
addModelForm() {
|
addModelForm() {
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
RetrieveFilesListForm() {
|
RetrieveFilesListForm() {
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
@@ -303,16 +273,42 @@
|
|||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
},
|
},
|
||||||
viewClick(row) {
|
viewClick(row) {
|
||||||
|
let newUrl = this.$router.resolve({
|
||||||
|
path: '/documentTranslationResults'
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
checkClick(row) {
|
// checkClick(row) {
|
||||||
|
//
|
||||||
|
// },
|
||||||
|
downloadData(fileQuery) {
|
||||||
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.targetFileId })
|
||||||
},
|
},
|
||||||
downloadData() {
|
subscribe(record) {
|
||||||
|
let _this = this
|
||||||
},
|
this.$confirm({
|
||||||
subscribe() {
|
content: record.releaseCondition == 'draft' ? _this.$t('confirmRelease') : _this.$t('confirmWithdraw'),
|
||||||
|
onOk() {
|
||||||
|
let releaseCondition = ''
|
||||||
|
if (record.releaseCondition == 'draft') {
|
||||||
|
releaseCondition = 'published'
|
||||||
|
} else {
|
||||||
|
releaseCondition = 'draft'
|
||||||
|
}
|
||||||
|
let query = {
|
||||||
|
releaseCondition: releaseCondition,
|
||||||
|
ids: record.id
|
||||||
|
}
|
||||||
|
postAction('/docTranslation/docTranslationEO/updateRleaseConditionBatch', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
uploadClick() {
|
uploadClick() {
|
||||||
this.$refs.addModelRef.add()
|
this.$refs.addModelRef.add()
|
||||||
@@ -320,15 +316,34 @@
|
|||||||
RetrieveFilesClick() {
|
RetrieveFilesClick() {
|
||||||
this.$refs.RetrieveFilesListRef.addModel()
|
this.$refs.RetrieveFilesListRef.addModel()
|
||||||
},
|
},
|
||||||
BatchDelete(){
|
BatchDelete() {
|
||||||
|
if (this.selectedRowKeys.length > 0) {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
|
onOk() {
|
||||||
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
|
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.selectedRowKeys = []
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteData(val) {
|
deleteData(val) {
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmDelete'),
|
content: _this.$t('ConfirmDelete'),
|
||||||
onOk() {
|
onOk() {
|
||||||
getAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.getList()
|
_this.getList()
|
||||||
|
|||||||
@@ -1,104 +1,108 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal
|
<div>
|
||||||
:title="title"
|
<a-modal
|
||||||
:maskClosable="false"
|
:title="title"
|
||||||
:width="800"
|
:maskClosable="false"
|
||||||
placement="right"
|
:width="800"
|
||||||
:closable="true"
|
placement="right"
|
||||||
@cancel="handleCancel"
|
:closable="true"
|
||||||
:visible="visible"
|
@cancel="handleCancel"
|
||||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
:visible="visible"
|
||||||
<a-spin :spinning="confirmLoading">
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
<a-form>
|
<a-spin :tip="this.$t('Fileuploaded')" :spinning='spinning'>
|
||||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
<a-form>
|
||||||
<a-row :gutter="24">
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
<a-col :span="12">
|
<a-row :gutter="24">
|
||||||
<div class="box-title-text">
|
<a-col :span="24">
|
||||||
<div class="title-text">
|
<div class="box-title-text">
|
||||||
<span class="Required">*</span>
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="Required">*</span>
|
||||||
:title="$t('parameterTemplate')">{{$t('parameterTemplate')}}</span>
|
<span class="title-text-text"
|
||||||
</div>
|
:title="$t('fileName')">{{$t('fileName')}}</span>
|
||||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
</div>
|
||||||
<a-input class="box-input"
|
<a-form-model-item class="itemModel" prop="sourceFileId">
|
||||||
:disabled="disabled"
|
<a-button type="primary" class="button-text"
|
||||||
v-model.trim="formInline.paramsTemplateName"
|
@click="clickButtonToUpload('sourceFileId')">
|
||||||
:placeholder="$t('PleaseEnter')+$t('parameterTemplate')"/>
|
{{ (formInline.sourceFileId === 'null' || formInline.sourceFileId === '' ||
|
||||||
</a-form-model-item>
|
formInline.sourceFileId == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
</div>
|
}}
|
||||||
</a-col>
|
</a-button>
|
||||||
<a-col :span="12">
|
</a-form-model-item>
|
||||||
<div class="box-title-text">
|
</div>
|
||||||
<div class="title-text">
|
</a-col>
|
||||||
<span class="Required">*</span>
|
</a-row>
|
||||||
<span class="title-text-text" :title="$t('zoneOfApplication')">{{$t('zoneOfApplication')}}</span>
|
<a-row :gutter="24">
|
||||||
</div>
|
<a-col :span="24">
|
||||||
<a-form-model-item class="itemModel" prop="region">
|
<div class="box-title-text">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.region"
|
<div class="title-text">
|
||||||
:disabled="disabled"
|
<!-- <span class="Required">*</span>-->
|
||||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
<span class="title-text-text" :title="$t('fileDeclaration')">{{$t('fileDeclaration')}}</span>
|
||||||
:type="'select'"
|
</div>
|
||||||
:triggerChange="false" :dictCode="'region'"/>
|
<a-form-model-item class="itemModel" prop="description">
|
||||||
</a-form-model-item>
|
<a-input class="box-input add-input"
|
||||||
</div>
|
type="textarea"
|
||||||
</a-col>
|
:disabled="disabled"
|
||||||
</a-row>
|
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
||||||
<a-row :gutter="24">
|
v-model="formInline.description"/>
|
||||||
<a-col :span="24">
|
</a-form-model-item>
|
||||||
<div class="box-title-text">
|
</div>
|
||||||
<div class="title-text">
|
</a-col>
|
||||||
<span class="title-text-text"
|
</a-row>
|
||||||
:title="$t('contentDescription')">{{$t('contentDescription')}}</span>
|
</a-form-model>
|
||||||
</div>
|
</a-form>
|
||||||
<a-form-model-item class="itemModel" prop="description">
|
</a-spin>
|
||||||
<a-input class="box-input add-input"
|
<div class="drawer-bootom-button">
|
||||||
type="textarea"
|
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
:disabled="disabled"
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
v-model="formInline.description"
|
</div>
|
||||||
:placeholder="$t('PleaseEnter')+$t('contentDescription')"/>
|
</a-modal>
|
||||||
</a-form-model-item>
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||||
</div>
|
<!-- <div class="loading-box" v-if="spinning">-->
|
||||||
</a-col>
|
<!-- <div class="loading-content">-->
|
||||||
</a-row>
|
<!-- <a-icon class="loading" type="loading"/>-->
|
||||||
</a-form-model>
|
<!-- <div class="loading-tips">-->
|
||||||
</a-form>
|
<!-- {{this.$t('Fileuploaded')}}...-->
|
||||||
</a-spin>
|
<!-- </div>-->
|
||||||
<div class="drawer-bootom-button">
|
<!-- </div>-->
|
||||||
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
<!-- </div>-->
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
</div>
|
||||||
</div>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||||
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'addModel',
|
name: 'addModel',
|
||||||
components: {
|
components: {
|
||||||
PersonnelSelection
|
PersonnelSelection,
|
||||||
|
uploadFile
|
||||||
},
|
},
|
||||||
props: ['url'],
|
// props: ['url'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {},
|
formInline: {},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
|
spinning: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
url: {
|
||||||
|
add: 'params/template/add',
|
||||||
|
edit: 'params/template/edit',
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
paramsTemplateName:[
|
|
||||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('parameterTemplate'), trigger: 'blur' },
|
|
||||||
{ min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), trigger: 'blur' },
|
|
||||||
],
|
|
||||||
description:[
|
description:[
|
||||||
{ min:1, max: 300, message: this.$t('cantExeed')+'300'+this.$t('characters'), trigger: 'blur' },
|
// { required: true, message: this.$t('PleaseEnter')+this.$t('fileDeclaration'), trigger: 'blur' },
|
||||||
|
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
state: [
|
sourceFileId: [
|
||||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('status'), trigger: 'change' },
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('fileName') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
],
|
],
|
||||||
region: [
|
|
||||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('zoneOfApplication'), trigger: 'change' },
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
projectNameList: [],
|
projectNameList: [],
|
||||||
@@ -135,7 +139,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
if(this.spinning == true){
|
||||||
|
this.visible = true
|
||||||
|
return
|
||||||
|
}else{
|
||||||
|
this.visible = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if(this.formInline.paramsTemplateName !== undefined) {
|
if(this.formInline.paramsTemplateName !== undefined) {
|
||||||
@@ -143,6 +152,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.spinning = true
|
||||||
let url = ''
|
let url = ''
|
||||||
let Action
|
let Action
|
||||||
if (this.formInline.id) {
|
if (this.formInline.id) {
|
||||||
@@ -158,14 +168,14 @@ export default {
|
|||||||
query[res] = query[res].join(',')
|
query[res] = query[res].join(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.confirmLoading = true
|
postAction(url, query).then((res) => {
|
||||||
Action(url, query).then((res) => {
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.confirmLoading = false
|
this.spinning = false
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('addModelList')
|
this.$emit('addModelList')
|
||||||
} else {
|
} else {
|
||||||
|
this.spinning = false
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
}
|
}
|
||||||
@@ -186,6 +196,30 @@ export default {
|
|||||||
projectNameChange(value){
|
projectNameChange(value){
|
||||||
console.log(value)
|
console.log(value)
|
||||||
},
|
},
|
||||||
|
/** 上传文件的回调 */
|
||||||
|
uploadSuccess(data) {
|
||||||
|
let attIdList = []
|
||||||
|
if (data && data.length > 0) {
|
||||||
|
data.map(item => {
|
||||||
|
attIdList.push(item.id || data.name)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/** 赋值给当前对应的表单文件 */
|
||||||
|
this.formInline[this.uploadName] = attIdList.join(',')
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
clickButtonToUpload(item) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
this.$refs.uploadFile.visible = true
|
||||||
|
this.uploadName = item
|
||||||
|
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||||
|
} else {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -306,4 +340,40 @@ export default {
|
|||||||
.ant-input-disabled {
|
.ant-input-disabled {
|
||||||
color: rgba(0, 0, 0, 0.65) !important;
|
color: rgba(0, 0, 0, 0.65) !important;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="less">
|
||||||
|
.loading-box {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999900;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(255, 255, 255, 0.9);
|
||||||
|
border-radius: 8px;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
.loading-content {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
color: #21c9cc;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spin-loading {
|
||||||
|
animation: rotating 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-tips {
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
<a-input-search style="margin-bottom: 8px" :placeholder="$t('NodeQuickLookup')" @change="onLeftChange"
|
<a-input-search style="margin-bottom: 8px" :placeholder="$t('NodeQuickLookup')" @change="onLeftChange"
|
||||||
@search="onSearch"/>
|
@search="onSearch"/>
|
||||||
<a-tree
|
<a-tree
|
||||||
v-if="gData.length>0"
|
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
:expanded-keys.sync="expandedKeys"
|
:expanded-keys.sync="expandedKeys"
|
||||||
:auto-expand-parent="autoExpandParent"
|
:auto-expand-parent="autoExpandParent"
|
||||||
@@ -44,17 +43,18 @@
|
|||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu
|
<a-menu
|
||||||
@click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)">
|
@click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)">
|
||||||
<a-menu-item key="1" @click="orgAdd" v-has="'split:sarFileSplitMenu:add'">{{$t('newNode')}}
|
<a-menu-item key="1" @click="orgAdd" v-has="'split:sarFileSplitMenu:add'">{{$t('Addingfolder')}}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="4" @click="orgAdds" v-if="deleteNode"
|
||||||
|
v-has="'split:sarFileSplitMenu:delete'">{{$t('Addingsubfolders')}}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="2" @click="orgEdit" v-has="'split:sarFileSplitMenu:update'">
|
<a-menu-item key="2" @click="orgEdit" v-has="'split:sarFileSplitMenu:update'">
|
||||||
{{$t('modifyNode')}}
|
{{$t('Editfolder')}}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="3" @click="orgDelete"
|
<a-menu-item key="3" @click="orgDelete"
|
||||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('deleteNode')}}
|
v-has="'split:sarFileSplitMenu:delete'">{{$t('Deletefolders')}}
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item key="4" @click="orgDelete" v-if="deleteNode"
|
|
||||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('add')}}
|
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
|
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
<div class="title-text" :title="$t('uploadTime')">
|
<div class="title-text" :title="$t('uploadTime')">
|
||||||
<span>{{ $t('uploadTime') }}</span>
|
<span>{{ $t('uploadTime') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-date-picker class="box-input"
|
<a-range-picker
|
||||||
style='width: 264px'
|
style='width: 264px'
|
||||||
:placeholder="$t('PleaseSelect')+$t('uploadTime')"
|
:placeholder="$t('PleaseSelect')+$t('uploadTime')"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span slot="operation" slot-scope="text,record">
|
<span slot="operation" slot-scope="text,record">
|
||||||
<a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>
|
<!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>-->
|
||||||
<a class="text-operation" @click="download(record)">{{$t('download')}}</a>
|
<a class="text-operation" @click="download(record)">{{$t('download')}}</a>
|
||||||
<a class="text-operation" @click="handleEdit(record)">{{$t('edit')}}</a>
|
<a class="text-operation" @click="handleEdit(record)">{{$t('edit')}}</a>
|
||||||
<a class="text-operation" @click="batchDel(record)">{{$t('delete')}}</a>
|
<a class="text-operation" @click="batchDel(record)">{{$t('delete')}}</a>
|
||||||
@@ -163,13 +163,14 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 上传文件-->
|
<!-- 上传文件-->
|
||||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
<addModel ref="addModelRef" @addModelList="addModelList"/>
|
||||||
<!-- 文件详情-->
|
<!-- 文件详情-->
|
||||||
<handleModel :url="url" ref="handleModelRef" />
|
<handleModel :url="url" ref="handleModelRef" />
|
||||||
<!-- 添加节点-->
|
<!-- 添加节点-->
|
||||||
<a-modal
|
<a-modal
|
||||||
class="add-menus"
|
class="add-menus"
|
||||||
:title="menuTitle"
|
:title="menuTitle"
|
||||||
|
:width="600"
|
||||||
:visible="menuRightVisible"
|
:visible="menuRightVisible"
|
||||||
:confirm-loading="confirmLoading"
|
:confirm-loading="confirmLoading"
|
||||||
@cancel="handleCancelMenuRight"
|
@cancel="handleCancelMenuRight"
|
||||||
@@ -184,16 +185,28 @@
|
|||||||
:label-col="labelCol"
|
:label-col="labelCol"
|
||||||
:wrapper-col="wrapperCol"
|
:wrapper-col="wrapperCol"
|
||||||
>
|
>
|
||||||
<a-form-model-item :label="$t('clauseNo')" prop="name">
|
<a-form-model-item :label="$t('Foldername')" prop="name">
|
||||||
<a-input v-model="form.name" :placeholder="$t('PleaseEnter')+$t('clauseNo')"/>
|
<a-input class="box-input add-input" v-model="form.name" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('clauseName')" prop="itemName">
|
<a-form-model-item :label="$t('Administrativeprivileges')" prop="Administrativeprivileges">
|
||||||
<a-input v-model="form.itemName" :placeholder="$t('PleaseEnter')+$t('clauseName')"/>
|
<PersonnelSelection class="box-input add-input"
|
||||||
|
:personneQuery="form"
|
||||||
|
:query="{db_field_name:'Administrativeprivileges',db_field_txt:$t('Administrativeprivileges')}"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
v-model="form.Administrativeprivileges"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('serialNumber')" prop="displaySeq">
|
<a-form-model-item :label="$t('Checkthepermissions')" prop="Checkthepermissions">
|
||||||
<a-input-number v-model="form.displaySeq" :min="1" :max="99999"
|
<PersonnelSelection
|
||||||
:placeholder="$t('PleaseEnter')+$t('serialNumber')" :formatter="limitNumber"
|
class="box-input add-input"
|
||||||
:parser="limitNumber" style="width: 100%"/>
|
:personneQuery="form"
|
||||||
|
:query="{db_field_name:'Checkthepermissions',db_field_txt:$t('Checkthepermissions')}"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
v-model="form.Checkthepermissions"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
<a-form-model-item :label="$t('Folderorder')" prop="displaySeq">
|
||||||
|
<a-input-number v-model="form.displaySeq" :min="1" :max="99999" class="box-input add-input"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('Folderorder')" :formatter="limitNumber"
|
||||||
|
:parser="limitNumber" />
|
||||||
<!-- <a-input-number v-model="rowCount" :min="1" :placeholder="$t('pleaseEnter')+$t('numberRows')" :formatter="limitNumber" :parser="limitNumber" />-->
|
<!-- <a-input-number v-model="rowCount" :min="1" :placeholder="$t('pleaseEnter')+$t('numberRows')" :formatter="limitNumber" :parser="limitNumber" />-->
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
@@ -220,13 +233,14 @@ import Vue from 'vue'
|
|||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import eventBUs from '@/common/event'
|
import eventBUs from '@/common/event'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SplitDetail',
|
name: 'SplitDetail',
|
||||||
components: {
|
components: {
|
||||||
addModel,
|
addModel,
|
||||||
handleModel,
|
handleModel,
|
||||||
// exportTree,
|
PersonnelSelection,
|
||||||
globalAdvancedQuery
|
globalAdvancedQuery
|
||||||
// ImportFile
|
// ImportFile
|
||||||
},
|
},
|
||||||
@@ -242,6 +256,7 @@ export default {
|
|||||||
},
|
},
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
disabled:false,
|
||||||
total: 0,
|
total: 0,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
@@ -267,15 +282,17 @@ export default {
|
|||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('clauseNo'), trigger: 'blur' },
|
{ required: true, message: this.$t('PleaseEnter') + this.$t('Foldername'), trigger: 'blur' },
|
||||||
{ min: 1, max: 200, message: this.$t('cantExeed') + '200' + this.$t('characters'), trigger: 'blur' }
|
{ min: 1, max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
itemName: [
|
Administrativeprivileges: [
|
||||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('clauseName'), trigger: 'blur' },
|
{ required: true, message: this.$t('PleaseSelect') + this.$t('Administrativeprivileges'), trigger: 'change' },
|
||||||
{ min: 1, max: 200, message: this.$t('cantExeed') + '200' + this.$t('characters'), trigger: 'blur' }
|
],
|
||||||
|
Checkthepermissions: [
|
||||||
|
{ required: true, message: this.$t('PleaseSelect') + this.$t('Checkthepermissions'), trigger: 'change' },
|
||||||
],
|
],
|
||||||
displaySeq: [
|
displaySeq: [
|
||||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('serialNumber'), trigger: 'blur' }
|
{ required: true, message: this.$t('PleaseEnter') + this.$t('Folderorder'), trigger: 'blur' }
|
||||||
// { min: 1, max: 99999, message: this.$t('cantExeed') + '99999' + this.$t('characters'), trigger: 'blur' },
|
// { min: 1, max: 99999, message: this.$t('cantExeed') + '99999' + this.$t('characters'), trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -393,6 +410,10 @@ export default {
|
|||||||
this.contentVisible = true
|
this.contentVisible = true
|
||||||
this.contentValue = val
|
this.contentValue = val
|
||||||
},
|
},
|
||||||
|
PersonnelSelectionChange(value, id) {
|
||||||
|
this.form[value] = id
|
||||||
|
this.form = { ...this.form }
|
||||||
|
},
|
||||||
//关闭条款内容弹框
|
//关闭条款内容弹框
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.contentVisible = false
|
this.contentVisible = false
|
||||||
@@ -549,12 +570,18 @@ export default {
|
|||||||
},
|
},
|
||||||
//树形新增
|
//树形新增
|
||||||
orgAdd() {
|
orgAdd() {
|
||||||
this.menuTitle = this.$t('add')
|
this.menuTitle = this.$t('Addingfolder')
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.form = {}
|
this.form = {}
|
||||||
this.menuRightVisible = true
|
this.menuRightVisible = true
|
||||||
|
|
||||||
},
|
},
|
||||||
|
orgAdds(){
|
||||||
|
this.menuTitle = this.$t('Addingsubfolders')
|
||||||
|
this.isEdit = false
|
||||||
|
this.form = {}
|
||||||
|
this.menuRightVisible = true
|
||||||
|
},
|
||||||
//树形修改
|
//树形修改
|
||||||
orgEdit() {
|
orgEdit() {
|
||||||
this.menuTitle = this.$t('edit')
|
this.menuTitle = this.$t('edit')
|
||||||
@@ -603,7 +630,7 @@ export default {
|
|||||||
handleCancelMenuRight() {
|
handleCancelMenuRight() {
|
||||||
this.menuRightVisible = false
|
this.menuRightVisible = false
|
||||||
},
|
},
|
||||||
//增加条款确定
|
//增加文件夹确定
|
||||||
hideModalMenuRight() {
|
hideModalMenuRight() {
|
||||||
|
|
||||||
let expandId = []
|
let expandId = []
|
||||||
@@ -783,8 +810,15 @@ export default {
|
|||||||
|
|
||||||
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
|
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
|
||||||
},
|
},
|
||||||
onChange(){
|
onChange(value,dateString){
|
||||||
|
if (this.queryParams.uploadTime && this.queryParams.uploadTime.length > 0) {
|
||||||
|
let dateOne = moment(dateString[0]).format('YYYY-MM-DD')
|
||||||
|
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
|
||||||
|
this.queryParams.uploadTime = [dateOne, dateTwo]
|
||||||
|
} else {
|
||||||
|
this.queryParams.uploadTime = []
|
||||||
|
// this.queryParamOne[item + '_name'] = []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
selectClear() {
|
selectClear() {
|
||||||
this.$refs.splitDetailTabel.selectedRowKeys = []
|
this.$refs.splitDetailTabel.selectedRowKeys = []
|
||||||
@@ -930,7 +964,12 @@ export default {
|
|||||||
},
|
},
|
||||||
// 上传文件
|
// 上传文件
|
||||||
handleuploadFile(e) {
|
handleuploadFile(e) {
|
||||||
this.$refs.addModelRef.addModel()
|
if (this.menuId) {
|
||||||
|
this.$refs.addModelRef.addModel()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectDirectorylocation'))
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onSearch() {
|
onSearch() {
|
||||||
let self = this
|
let self = this
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('certificationCategory')">
|
<div class="title-text" :title="$t('certificationCategory')">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span>{{$t('certificationCategory')}}</span>
|
<span>{{$t('certificationCategory')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="certCategory">
|
<a-form-model-item class="itemModel" prop="certCategory">
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('configure')">
|
<div class="title-text" :title="$t('configure')">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span>{{$t('configure')}}</span>
|
<span>{{$t('configure')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="configIds">
|
<a-form-model-item class="itemModel" prop="configIds">
|
||||||
@@ -59,6 +61,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('WhetherMergeParameters')">{{$t('WhetherMergeParameters')}}</span>
|
:title="$t('WhetherMergeParameters')">{{$t('WhetherMergeParameters')}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
||||||
<div class="Virtual-detail-title">
|
<div class="Virtual-detail-title">
|
||||||
<span>
|
<span>
|
||||||
{{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}}) — {{$t(this.paramsManifest.title)}}
|
{{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}}) — {{$t(this.$route.query.title)}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<!-- // R&H Manager manager-->
|
<!-- // R&H Manager manager-->
|
||||||
<!-- // 系统管理员 admin-->
|
<!-- // 系统管理员 admin-->
|
||||||
<!-- // 游客 guest-->
|
<!-- // 游客 guest-->
|
||||||
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight" v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight" v-if='currentPersonRole == "homo"'>
|
||||||
<template slot="title" id="popconfirm">
|
<template slot="title" id="popconfirm">
|
||||||
<!-- 添加-->
|
<!-- 添加-->
|
||||||
<div @click="handleAdd" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
<div @click="handleAdd" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
@@ -121,10 +121,9 @@
|
|||||||
<!-- {{$t('distributionAndCollection')}}-->
|
<!-- {{$t('distributionAndCollection')}}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- 导出-->
|
<!-- 导出-->
|
||||||
<div @click="handleExport" class="operator-text-title"
|
<div @click="handleExport" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
|
||||||
<a-icon type="export"/>
|
<a-icon type="export"/>
|
||||||
{{$t('export')}}
|
{{$t('dataExport')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 一键下发收集 -->
|
<!-- 一键下发收集 -->
|
||||||
<div @click="defOneclickCollection" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
<div @click="defOneclickCollection" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
@@ -171,6 +170,11 @@
|
|||||||
<a-icon type="copy"/>
|
<a-icon type="copy"/>
|
||||||
{{$t('Assignedby')}}
|
{{$t('Assignedby')}}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 导出-->
|
||||||
|
<div @click="handleExport" class="operator-text" v-if='currentPersonRole == "sdt"'>
|
||||||
|
<a-icon type="export"/>
|
||||||
|
{{$t('dataExport')}}
|
||||||
|
</div>
|
||||||
<!-- 引用参数-->
|
<!-- 引用参数-->
|
||||||
<div @click="referenceparameter" class="operator-text" v-if='currentPersonRole == "dre" '>
|
<div @click="referenceparameter" class="operator-text" v-if='currentPersonRole == "dre" '>
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
@@ -194,7 +198,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 强制撤回-->
|
<!-- 强制撤回-->
|
||||||
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text"
|
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text"
|
||||||
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt" ||currentPersonRole == "dre"'>
|
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{$t('CompulsoryWithdrawal')}}
|
{{$t('CompulsoryWithdrawal')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -204,7 +208,7 @@
|
|||||||
v-if="!this.$route.query.it"
|
v-if="!this.$route.query.it"
|
||||||
@click="roleSwitchingClick">
|
@click="roleSwitchingClick">
|
||||||
<a-icon type="select"/>
|
<a-icon type="select"/>
|
||||||
{{ $t('roleSwitching') }}
|
{{ $t('roleSwitching') }} ({{ $t(this.rolename)}})
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
@@ -584,6 +588,7 @@
|
|||||||
configureareaVisible: false, // 配置的彈框
|
configureareaVisible: false, // 配置的彈框
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
rolename:'',
|
||||||
total: 0,
|
total: 0,
|
||||||
selectedRowKeysArray: '',
|
selectedRowKeysArray: '',
|
||||||
templatetitle: '',
|
templatetitle: '',
|
||||||
@@ -643,7 +648,6 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.GetgetLoginUserType()
|
this.GetgetLoginUserType()
|
||||||
console.log(this.currentPersonRole)
|
console.log(this.currentPersonRole)
|
||||||
// this.LoginUserType()
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.currentPersonRole == 'dre') {
|
if (this.currentPersonRole == 'dre') {
|
||||||
this.handlePreservation()
|
this.handlePreservation()
|
||||||
@@ -690,6 +694,11 @@
|
|||||||
this.visibleRoleSwitching = false
|
this.visibleRoleSwitching = false
|
||||||
this.confirmLoadingRoleSwitching = false
|
this.confirmLoadingRoleSwitching = false
|
||||||
localStorage.setItem('currentPersonRole', JSON.stringify(this.formInlineRoleSwitching.roleSwitchingCode))
|
localStorage.setItem('currentPersonRole', JSON.stringify(this.formInlineRoleSwitching.roleSwitchingCode))
|
||||||
|
this.RoleType.forEach((item,index) => {
|
||||||
|
if(item.value == this.currentPersonRole){
|
||||||
|
this.rolename = item.label
|
||||||
|
}
|
||||||
|
})
|
||||||
this.selectedRowKeysValue = []
|
this.selectedRowKeysValue = []
|
||||||
} else {
|
} else {
|
||||||
this.confirmLoadingRoleSwitching = false
|
this.confirmLoadingRoleSwitching = false
|
||||||
@@ -1025,6 +1034,11 @@
|
|||||||
this.currentPersonRole = currentPersonRole || userType || val[0].value
|
this.currentPersonRole = currentPersonRole || userType || val[0].value
|
||||||
}
|
}
|
||||||
this.RoleType = val
|
this.RoleType = val
|
||||||
|
this.RoleType.forEach((item,index) => {
|
||||||
|
if(item.value == this.currentPersonRole){
|
||||||
|
this.rolename = item.label
|
||||||
|
}
|
||||||
|
})
|
||||||
this.formInlineRoleSwitching.roleSwitchingCode = currentPersonRole || userType || val[0].value
|
this.formInlineRoleSwitching.roleSwitchingCode = currentPersonRole || userType || val[0].value
|
||||||
this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching }
|
this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching }
|
||||||
},
|
},
|
||||||
@@ -1103,7 +1117,7 @@
|
|||||||
},
|
},
|
||||||
getFreeze(callback) {
|
getFreeze(callback) {
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { paramsManifestId: this.paramsManifest.id, configFlag: 1 }
|
let param = { paramsManifestId: this.$route.query.id, configFlag: 1 }
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/getConfigLableList',
|
url: '/jero-boot/params/collectManifest/getConfigLableList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -1659,7 +1673,6 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.operator-text-title {
|
.operator-text-title {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 22px;
|
margin-right: 22px;
|
||||||
@@ -1808,4 +1821,9 @@
|
|||||||
.text-wraning{
|
.text-wraning{
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style lang='less'>
|
||||||
|
.ant-popover-message-title{
|
||||||
|
margin-bottom: -30px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -33,9 +33,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text tree-select">
|
||||||
<div class="title-text" :title="$t('technicalField')">
|
<div class="title-text" :title="$t('technicalField')">
|
||||||
<span>{{ $t('technicalField') }}</span>
|
<span>{{$t('technicalField')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
@@ -48,10 +48,6 @@
|
|||||||
tree-checkable
|
tree-checkable
|
||||||
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
||||||
/>
|
/>
|
||||||
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.technologyTerritory"-->
|
|
||||||
<!-- :placeholder="$t('PleaseSelect')+$t('technicalField')"-->
|
|
||||||
<!-- :type="'select'"-->
|
|
||||||
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
|
|||||||
Reference in New Issue
Block a user