Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+1
-1
@@ -3411,7 +3411,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
String fieldStr = fieldSb.substring(0, fieldSb.length() - 1);
|
String fieldStr = fieldSb.substring(0, fieldSb.length() - 1);
|
||||||
|
|
||||||
String field = " osf.id,bdl.serial_number,bdl.title,bdl.title_en,bdl.state,osf.file_name,osf.connect_id," + fieldStr
|
String field = " osf.id,bdl.id as \"buss_document_library_id\",bdl.serial_number,bdl.title,bdl.title_en,bdl.state,osf.file_name,osf.connect_id," + fieldStr
|
||||||
+ " from oss_file osf join buss_document_library bdl" + join.toString();
|
+ " from oss_file osf join buss_document_library bdl" + join.toString();
|
||||||
|
|
||||||
//查询条件
|
//查询条件
|
||||||
|
|||||||
@@ -1190,4 +1190,6 @@ module.exports = {
|
|||||||
selectDirectorylocation: 'Please select the directory location to add the folder',
|
selectDirectorylocation: 'Please select the directory location to add the folder',
|
||||||
Fileuploaded:'File uploaded, please wait',
|
Fileuploaded:'File uploaded, please wait',
|
||||||
uploadedbyyourself:'You can only delete files and data uploaded by yourself',
|
uploadedbyyourself:'You can only delete files and data uploaded by yourself',
|
||||||
|
Fileuploaded:'File uploading, please wait',
|
||||||
|
doNotHavePermissionDeleteData:'Do not have permission to delete this data,'
|
||||||
}
|
}
|
||||||
@@ -178,9 +178,9 @@ module.exports = {
|
|||||||
MenuType: '菜单类型',
|
MenuType: '菜单类型',
|
||||||
menu: '菜单',
|
menu: '菜单',
|
||||||
ButtonsPermissions: '按钮/权限',
|
ButtonsPermissions: '按钮/权限',
|
||||||
ConventionalExport:'常规导出',
|
ConventionalExport: '常规导出',
|
||||||
CustomExport:'自定义导出',
|
CustomExport: '自定义导出',
|
||||||
CustomTemplateName:'自定义模板名称',
|
CustomTemplateName: '自定义模板名称',
|
||||||
assembly: '组件',
|
assembly: '组件',
|
||||||
route: '路径',
|
route: '路径',
|
||||||
AddSubmenu: '添加子菜单',
|
AddSubmenu: '添加子菜单',
|
||||||
@@ -393,8 +393,8 @@ module.exports = {
|
|||||||
StandardDetails: '标准详情',
|
StandardDetails: '标准详情',
|
||||||
whole: '全部',
|
whole: '全部',
|
||||||
DocumentLibrary: '文档库',
|
DocumentLibrary: '文档库',
|
||||||
GeneralExportInformation:'常规导出信息',
|
GeneralExportInformation: '常规导出信息',
|
||||||
CustomizeExportInformation:'自定义导出信息',
|
CustomizeExportInformation: '自定义导出信息',
|
||||||
DocumentComparisonLibrary: '文档对比库',
|
DocumentComparisonLibrary: '文档对比库',
|
||||||
weekly: '周报',
|
weekly: '周报',
|
||||||
SyncLibrary: '同步至文档库',
|
SyncLibrary: '同步至文档库',
|
||||||
@@ -689,11 +689,11 @@ module.exports = {
|
|||||||
listConfirmation: '清单确认',
|
listConfirmation: '清单确认',
|
||||||
ListConfirmationDeadline: '清单确认截止时间',
|
ListConfirmationDeadline: '清单确认截止时间',
|
||||||
dataConfirmation: '请选择清单确认状态为未发起或拒绝的数据,以及法规工程师、认证工程师不为空',
|
dataConfirmation: '请选择清单确认状态为未发起或拒绝的数据,以及法规工程师、认证工程师不为空',
|
||||||
pleaseSelectinitiatedOrRejected:'请选择清单确认状态为未发起或拒绝的数据',
|
pleaseSelectinitiatedOrRejected: '请选择清单确认状态为未发起或拒绝的数据',
|
||||||
TheEngineerAndCertification:'的法规工程师、认证工程师不能为空',
|
TheEngineerAndCertification: '的法规工程师、认证工程师不能为空',
|
||||||
taskDataConfirmation: '请选择清单确认状态为接受及任务确认状态为未发起或拒绝的数据,以及工程接口人不为空',
|
taskDataConfirmation: '请选择清单确认状态为接受及任务确认状态为未发起或拒绝的数据,以及工程接口人不为空',
|
||||||
theProjectContactEmpty:'的工程接口人不能为空',
|
theProjectContactEmpty: '的工程接口人不能为空',
|
||||||
PleaseTaskConfirmationRejected:'请选择清单确认状态为接受及任务确认状态为未发起或拒绝的数据',
|
PleaseTaskConfirmationRejected: '请选择清单确认状态为接受及任务确认状态为未发起或拒绝的数据',
|
||||||
pleaseSelectPersonFirst: '请先选择人员',
|
pleaseSelectPersonFirst: '请先选择人员',
|
||||||
onlyOnePersonCanBeSelected: '只能选择一个人员',
|
onlyOnePersonCanBeSelected: '只能选择一个人员',
|
||||||
overrule: '驳回',
|
overrule: '驳回',
|
||||||
@@ -750,7 +750,7 @@ module.exports = {
|
|||||||
// 参数收集
|
// 参数收集
|
||||||
MaintainConfigureInfo: '维护配置信息',
|
MaintainConfigureInfo: '维护配置信息',
|
||||||
ParameteItemCollectionList: '参数项收集清单',
|
ParameteItemCollectionList: '参数项收集清单',
|
||||||
ParameterViewPage:'参数项查看页',
|
ParameterViewPage: '参数项查看页',
|
||||||
Areyousureparameteritems: '确认提交所选参数项嘛?',
|
Areyousureparameteritems: '确认提交所选参数项嘛?',
|
||||||
Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时,才能添加配置',
|
Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时,才能添加配置',
|
||||||
NoConfigurationNotStart: '未添加任何配置,无法开始收集,请检查',
|
NoConfigurationNotStart: '未添加任何配置,无法开始收集,请检查',
|
||||||
@@ -817,10 +817,10 @@ module.exports = {
|
|||||||
releaseVersion: '发布版本',
|
releaseVersion: '发布版本',
|
||||||
parameterTemplate: '参数模板',
|
parameterTemplate: '参数模板',
|
||||||
contentDescription: '内容说明',
|
contentDescription: '内容说明',
|
||||||
WhetherMergeParameters:'是否合并参数',
|
WhetherMergeParameters: '是否合并参数',
|
||||||
merge:'合并',
|
merge: '合并',
|
||||||
nonjoinder:'不合并',
|
nonjoinder: '不合并',
|
||||||
MergeSeparator:'合并分隔符',
|
MergeSeparator: '合并分隔符',
|
||||||
parameterTemplateExportName: '参数项列表',
|
parameterTemplateExportName: '参数项列表',
|
||||||
parameterDataExport: '参数项导出数据',
|
parameterDataExport: '参数项导出数据',
|
||||||
// 参数收集结束
|
// 参数收集结束
|
||||||
@@ -983,10 +983,10 @@ module.exports = {
|
|||||||
documentLibraryDetails: '文档库详情',
|
documentLibraryDetails: '文档库详情',
|
||||||
question: '催办',
|
question: '催办',
|
||||||
ConfirmQuestion: '确认催办?',
|
ConfirmQuestion: '确认催办?',
|
||||||
OnlyOrTaskconfirmationOut:'只有清单确认状态或任务确认状态为待确认时才可以进行催办',
|
OnlyOrTaskconfirmationOut: '只有清单确认状态或任务确认状态为待确认时才可以进行催办',
|
||||||
disableInput:'禁止输入',
|
disableInput: '禁止输入',
|
||||||
taskConfirmationDeadline:'任务确认截止时间',
|
taskConfirmationDeadline: '任务确认截止时间',
|
||||||
taskConfirmationResponsiblePerson:'责任人任务确认',
|
taskConfirmationResponsiblePerson: '责任人任务确认',
|
||||||
or: '或',
|
or: '或',
|
||||||
warningTime: '预警时间',
|
warningTime: '预警时间',
|
||||||
RegulationMonthlyManagement: '法规月报管理',
|
RegulationMonthlyManagement: '法规月报管理',
|
||||||
@@ -1025,23 +1025,23 @@ module.exports = {
|
|||||||
closingDate: '截止日期',
|
closingDate: '截止日期',
|
||||||
viewProcess: '查看流程',
|
viewProcess: '查看流程',
|
||||||
evaluationResults: '评估结果',
|
evaluationResults: '评估结果',
|
||||||
regulatoryTechnicalEvaluationResults:'法规技术评估结果',
|
regulatoryTechnicalEvaluationResults: '法规技术评估结果',
|
||||||
Assessor:'评估人',
|
Assessor: '评估人',
|
||||||
collectionOfRegulatoryOpinions:'法规意见收集',
|
collectionOfRegulatoryOpinions: '法规意见收集',
|
||||||
collectionOfRegulatoryOpinionsProcess:'法规意见收集流程',
|
collectionOfRegulatoryOpinionsProcess: '法规意见收集流程',
|
||||||
feedbackInformation:'反馈信息',
|
feedbackInformation: '反馈信息',
|
||||||
relevantSections:'相关章节',
|
relevantSections: '相关章节',
|
||||||
questionsSuggestions:'问题/建议',
|
questionsSuggestions: '问题/建议',
|
||||||
link: '链接',
|
link: '链接',
|
||||||
reason:'理由',
|
reason: '理由',
|
||||||
planNoChinese:'计划号',
|
planNoChinese: '计划号',
|
||||||
feedbackPoint:'反馈点',
|
feedbackPoint: '反馈点',
|
||||||
standardNameCn:'标准名称中文',
|
standardNameCn: '标准名称中文',
|
||||||
standardNameEn:'标准名称英文',
|
standardNameEn: '标准名称英文',
|
||||||
deadlineForComments:'征求意见截止日期',
|
deadlineForComments: '征求意见截止日期',
|
||||||
proposedTime:'提出时间',
|
proposedTime: '提出时间',
|
||||||
standardNo:'标准编号',
|
standardNo: '标准编号',
|
||||||
implemenDate:'实施日期',
|
implemenDate: '实施日期',
|
||||||
// 上报库
|
// 上报库
|
||||||
Enable: '启用',
|
Enable: '启用',
|
||||||
Latestupdatetime: '最新更新时间',
|
Latestupdatetime: '最新更新时间',
|
||||||
@@ -1078,7 +1078,7 @@ module.exports = {
|
|||||||
Btext: '文本+下拉多选',
|
Btext: '文本+下拉多选',
|
||||||
Ctext: '文本+附件',
|
Ctext: '文本+附件',
|
||||||
Dtext: '下拉单选+附件',
|
Dtext: '下拉单选+附件',
|
||||||
Etext:'下拉多选+附件',
|
Etext: '下拉多选+附件',
|
||||||
Ftext: '文本+下拉单选+附件',
|
Ftext: '文本+下拉单选+附件',
|
||||||
Gtext: '标题',
|
Gtext: '标题',
|
||||||
Nnothing: '无',
|
Nnothing: '无',
|
||||||
@@ -1193,4 +1193,106 @@ module.exports = {
|
|||||||
Checkthepermissions:'查看权限',
|
Checkthepermissions:'查看权限',
|
||||||
onlyFilesUploaded:'只能上传.docx、.doc文件',
|
onlyFilesUploaded:'只能上传.docx、.doc文件',
|
||||||
uploadedbyyourself:'只能删除自己上传的文件数据',
|
uploadedbyyourself:'只能删除自己上传的文件数据',
|
||||||
|
Fileuploaded:'文件上传中,请稍后',
|
||||||
|
English: '英文',
|
||||||
|
requiredParametersEmpty: '必填参数不能为空',
|
||||||
|
theResponsiblePersonAndDeadlineClank: '的责任人、截止时间不能为空',
|
||||||
|
bringInTheProjectInterface: '带入工程接口人',
|
||||||
|
theCurrentListSaved: '当前列表数据已全部提交,无法进行暂存',
|
||||||
|
defaultTemplate: '默认模板',
|
||||||
|
newRequestCommentListTemplate: '新征求意见清单模板',
|
||||||
|
NewReleasedStandardTemplate: '新发布标准模板',
|
||||||
|
pleaseSelectStandard: '请选择标准',
|
||||||
|
theResponsiblePersonEmpty: '的责任人不能为空',
|
||||||
|
theDeadlineEmpty: '的截止时间不能为空',
|
||||||
|
theDeliveryTypeCannotBeEmpty: '的交付物类型不能为空',
|
||||||
|
For: '针对于',
|
||||||
|
markedRejection: '标注的驳回意见',
|
||||||
|
RegulationListConfirmationTask: '清单确认任务',
|
||||||
|
RegulationListConfirmationNotification: '清单确认通知',
|
||||||
|
RegulationTaskConfirmation: '任务确认任务',
|
||||||
|
DesignComplianceTask: '设计符合性任务',
|
||||||
|
PreHomoTask: 'Pre-Homo任务',
|
||||||
|
ValidationTask: '验证符合性任务',
|
||||||
|
DesignComplianceNotification: '设计符合性通知',
|
||||||
|
PreHomoNotification: 'Pre-Homo通知',
|
||||||
|
ValidationComplianceNotification: '验证符合性通知',
|
||||||
|
RegulationTaskConfirmationNotification: '任务确认通知',
|
||||||
|
evaluationMethod: '评估方式',
|
||||||
|
uploadRelevantMaterials: '相关资料上传',
|
||||||
|
RelevantMaterials: '相关资料',
|
||||||
|
processBackground: '流程背景',
|
||||||
|
selectedStandard: '所选标准',
|
||||||
|
standardDecompositionDocument: '带入标准分解单',
|
||||||
|
pleaseSelectStandardFirst: '请先选择标准',
|
||||||
|
evaluatorFeedback: '评估人反馈',
|
||||||
|
nameTechnicalDocument: '技术文件名称',
|
||||||
|
chapter: '章节',
|
||||||
|
problemDescription: '问题说明',
|
||||||
|
filingExternalOpinions: '对外意见归档',
|
||||||
|
initiateProcessForCurrentStandard: '针对当前标准发起流程',
|
||||||
|
engineerFeedbackResults: '工程师反馈结果',
|
||||||
|
fileExport: '文件导出',
|
||||||
|
feedbackTime: '反馈时间',
|
||||||
|
regulatoryTechnologyAssessmentProcess: '法规技术评估流程',
|
||||||
|
feedbackEvaluation: '反馈评估',
|
||||||
|
clauseEvaluation: '条款评估',
|
||||||
|
standardDocuments: '标准文件',
|
||||||
|
pleaseCompleteTheEvaluationMethodorEvaluator: '请补全列表中评估方式或评估人',
|
||||||
|
reviewComments: '审核意见',
|
||||||
|
PleaseCompleteList: '请补全列表中符合性结果',
|
||||||
|
sponsorFeedback: '发起人反馈',
|
||||||
|
processNumber: '流程编号',
|
||||||
|
processName: '流程名称',
|
||||||
|
feedbackResults: '反馈结果',
|
||||||
|
theDoesNotSupportPreview: '当前文件格式不支持预览',
|
||||||
|
releaseSituation: '发布情况',
|
||||||
|
comparisonResults: '对比结果',
|
||||||
|
Published: '已发布',
|
||||||
|
initiateComparison: '发起对比',
|
||||||
|
translationLanguage: '翻译语言',
|
||||||
|
translationResults: '翻译结果',
|
||||||
|
conversionTime: '转换时间',
|
||||||
|
category: '类别',
|
||||||
|
RegulatoryProcessEvaluationResults: '法规流程评估结果',
|
||||||
|
ViewConformanceResults: '查看符合性结果',
|
||||||
|
CommentsCollectionResultsForReference: '意见收集结果参考',
|
||||||
|
TechnicalEvaluationResultsForReference: '技术评估结果参考',
|
||||||
|
ComplianceConfirmationRecord: '符合性确认记录',
|
||||||
|
complianceConfirmation: '符合性确认',
|
||||||
|
Deriveconformanceresults: '导出符合性结果',
|
||||||
|
Regulatorycompliancekanban: '法规符合性看板',
|
||||||
|
noComparisonDocumentSelected: '未选择对比文档',
|
||||||
|
RemarkInfo: '备注信息',
|
||||||
|
initiateDocumentComparison: '发起文档对比',
|
||||||
|
comparativeComments: '对比评论',
|
||||||
|
viewTheComparisonResults: '查看对比结果',
|
||||||
|
addFullTextComment: '添加全文评论',
|
||||||
|
turnOffAutomaticMatching: '关闭自动匹配',
|
||||||
|
exportComparisonReport: '导出对比报告',
|
||||||
|
comparisonDifferenceComment: '对比差异评论',
|
||||||
|
fullTextComments: '全文评论',
|
||||||
|
fileDeclaration: '文件说明',
|
||||||
|
FileForDetails: '文件详情',
|
||||||
|
Converting: '转换中',
|
||||||
|
convertNetwork: '转换完成',
|
||||||
|
convertFailed: '转换失败',
|
||||||
|
standardData: '标准数据',
|
||||||
|
Theorganization: '组织机构',
|
||||||
|
Addingfolder: '新增文件夹',
|
||||||
|
Addingsubfolders: '新增子文件夹',
|
||||||
|
Editfolder: '编辑文件夹',
|
||||||
|
Deletefolders: '删除文件夹',
|
||||||
|
Foldername: '文件夹名称',
|
||||||
|
Folderpermissions: '文件夹权限',
|
||||||
|
Folderorder: '文件夹顺序',
|
||||||
|
Downloadprivileges: '下载权限',
|
||||||
|
Openpersonnel: '开放人员',
|
||||||
|
originalText: '原文',
|
||||||
|
translatedText: '译文',
|
||||||
|
Administrativeprivileges: '管理权限',
|
||||||
|
Checkthepermissions: '查看权限',
|
||||||
|
onlyFilesUploaded: '只能上传.docx、.doc文件',
|
||||||
|
uploadedbyyourself: '只能删除自己上传的文件数据',
|
||||||
|
doNotHavePermissionDeleteData: '没有权限删除此数据'
|
||||||
}
|
}
|
||||||
+3
-1
@@ -257,7 +257,9 @@
|
|||||||
serialNumber: this.selectedRowKeysRecord[0].serial_number,
|
serialNumber: this.selectedRowKeysRecord[0].serial_number,
|
||||||
title: this.selectedRowKeysRecord[0].title,
|
title: this.selectedRowKeysRecord[0].title,
|
||||||
fileName: this.selectedRowKeysRecord[0].file_name,
|
fileName: this.selectedRowKeysRecord[0].file_name,
|
||||||
textStatus: this.selectedRowKeysRecord[0].text_info_id
|
textStatus: this.selectedRowKeysRecord[0].text_info_id,
|
||||||
|
sourceFileId:this.selectedRowKeysRecord[0].id,
|
||||||
|
bussDocumentLibraryId:this.selectedRowKeysRecord[0].buss_document_library_id
|
||||||
}
|
}
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
||||||
|
|||||||
+43
-105
@@ -16,52 +16,11 @@
|
|||||||
{{$t('originalText')}}
|
{{$t('originalText')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-text">
|
<div class="detail-text">
|
||||||
汽车用LED前照灯
|
<iframe :src="detailUrlLeft"
|
||||||
|
ref="iframeLeft"
|
||||||
1 范围
|
sandbox="allow-same-origin allow-scripts"
|
||||||
|
id="iframe-left"
|
||||||
本标准规定了汽车用LED光源/模块或含有LED光源/模块的前照灯配光性能、光色、温度循环等试验方法和检验规则等,
|
class="detail-text-iframe" frameborder="0"></iframe>
|
||||||
本标准适用于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>
|
</div>
|
||||||
<div class="detail-content-right">
|
<div class="detail-content-right">
|
||||||
@@ -69,64 +28,7 @@
|
|||||||
{{$t('translatedText')}}
|
{{$t('translatedText')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-text">
|
<div class="detail-text">
|
||||||
LED headlamp for automobile
|
<iframe :src="detailUrlRight" class="detail-text-iframe" frameborder="0"></iframe>
|
||||||
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>
|
||||||
@@ -136,18 +38,42 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Base64 } from 'js-base64'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'documentTranslationResults',
|
name: 'documentTranslationResults',
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {
|
||||||
|
detailUrlLeft: '',
|
||||||
|
detailUrlRight: '',
|
||||||
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
fileQuery: {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.fileQuery = this.$route.query
|
||||||
|
this.onlinePreview()
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.iframeLeft.contentWindow.document.body.style = 'background-color:#fff'
|
||||||
|
console.log(this.$refs.iframeLeft.contentWindow.document.body.style.backgroundColor)
|
||||||
|
})
|
||||||
|
}, 2000)
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
Fallback() {
|
Fallback() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/documentTranslation'
|
path: '/documentTranslation'
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
onlinePreview() {
|
||||||
|
let fileName = this.fileQuery.fileName
|
||||||
|
let index1 = fileName.lastIndexOf('.')
|
||||||
|
let index2 = fileName.length
|
||||||
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
|
this.detailUrlLeft = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + this.fileQuery.sourceFileId + fileSuffix)
|
||||||
|
this.detailUrlRight = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + this.fileQuery.targetFileId + fileSuffix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -225,10 +151,22 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #040B29;
|
color: #040B29;
|
||||||
|
height: calc(100vh - 230px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detail-text-iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.detail-text-iframe .container {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -100,6 +100,12 @@
|
|||||||
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
||||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="translationLanguage" slot-scope="text,record"
|
||||||
|
:title="record.sourceLanguage_dictText +' -- '+record.targetLanguage_dictText">
|
||||||
|
<span class="translationLanguageText" style="margin-top: -2px">{{record.sourceLanguage_dictText}}</span>
|
||||||
|
<a-icon class="translationLanguageText" type="arrow-right" style="font-size: 16px"/>
|
||||||
|
<span class="translationLanguageText">{{record.targetLanguage_dictText}}</span>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource && dataSource.length > 0">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
@@ -148,6 +154,7 @@
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
userInfoQuery: {},
|
userInfoQuery: {},
|
||||||
|
selectedRowKeysRecord: [],
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
@@ -179,7 +186,8 @@
|
|||||||
title: this.$t('translationLanguage'),
|
title: this.$t('translationLanguage'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'targetLanguage_dictText',
|
dataIndex: 'targetLanguage_dictText',
|
||||||
width: 170
|
width: 240,
|
||||||
|
scopedSlots: { customRender: 'translationLanguage' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('translationResults'),
|
title: this.$t('translationResults'),
|
||||||
@@ -269,12 +277,18 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value, record) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
this.selectedRowKeysRecord = record
|
||||||
},
|
},
|
||||||
viewClick(row) {
|
viewClick(row) {
|
||||||
let newUrl = this.$router.resolve({
|
let newUrl = this.$router.resolve({
|
||||||
path: '/documentTranslationResults'
|
path: '/documentTranslationResults',
|
||||||
|
query: {
|
||||||
|
targetFileId: row.targetFileId,
|
||||||
|
sourceFileId: row.sourceFileId,
|
||||||
|
fileName: row.fileName
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
@@ -322,16 +336,27 @@
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
let idList = []
|
||||||
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
|
||||||
if (res.success) {
|
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
if (selectedRowKeysRecord[i].createBy == _this.userInfo().username &&
|
||||||
_this.selectedRowKeys = []
|
selectedRowKeysRecord[i].releaseCondition == 'draft') {
|
||||||
_this.getList()
|
idList.push(selectedRowKeysRecord[i].id)
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.message)
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
if (idList.length > 0) {
|
||||||
|
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('doNotHavePermissionDeleteData'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -413,4 +438,9 @@
|
|||||||
color: red;
|
color: red;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.translationLanguageText {
|
||||||
|
margin-right: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('fileName')">{{$t('fileName')}}</span>
|
:title="$t('fileName')">{{$t('fileName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="sourceFileId">
|
<a-form-model-item class="itemModel" prop="fileKey">
|
||||||
<a-button type="primary" class="button-text"
|
<a-button type="primary" class="button-text"
|
||||||
@click="clickButtonToUpload('sourceFileId')">
|
@click="clickButtonToUpload('fileKey')">
|
||||||
{{ (formInline.sourceFileId === 'null' || formInline.sourceFileId === '' ||
|
{{ (formInline.fileKey === 'null' || formInline.fileKey === '' ||
|
||||||
formInline.sourceFileId == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
formInline.fileKey == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
}}
|
}}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -38,12 +38,12 @@
|
|||||||
<!-- <span class="Required">*</span>-->
|
<!-- <span class="Required">*</span>-->
|
||||||
<span class="title-text-text" :title="$t('fileDeclaration')">{{$t('fileDeclaration')}}</span>
|
<span class="title-text-text" :title="$t('fileDeclaration')">{{$t('fileDeclaration')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="description">
|
<a-form-model-item class="itemModel" prop="fileDescription">
|
||||||
<a-input class="box-input add-input"
|
<a-input class="box-input add-input"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
||||||
v-model="formInline.description"/>
|
v-model="formInline.fileDescription"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -86,17 +86,18 @@ export default {
|
|||||||
formInline: {},
|
formInline: {},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
spinning: false,
|
spinning: false,
|
||||||
|
menuId:'',
|
||||||
visible: false,
|
visible: false,
|
||||||
url: {
|
url: {
|
||||||
add: 'params/template/add',
|
add: 'com.jero.modules.extRepo/extRepoData/add',
|
||||||
edit: 'params/template/edit',
|
edit: 'com.jero.modules.extRepo/extRepoData/edit',
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
description:[
|
fileDescription:[
|
||||||
// { required: true, message: this.$t('PleaseEnter')+this.$t('fileDeclaration'), 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' },
|
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
sourceFileId: [
|
fileKey: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('fileName') + this.$t('cannotEmpty'),
|
message: this.$t('fileName') + this.$t('cannotEmpty'),
|
||||||
@@ -122,9 +123,10 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addModel() {
|
addModel(menuId) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = this.$t('UploadFile')
|
this.title = this.$t('UploadFile')
|
||||||
|
this.menuId = menuId
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['ruleForm'].clearValidate()
|
this.$refs['ruleForm'].clearValidate()
|
||||||
@@ -147,9 +149,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if(this.formInline.paramsTemplateName !== undefined) {
|
|
||||||
this.formInline.paramsTemplateName = this.formInline.paramsTemplateName.trim()
|
|
||||||
}
|
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.spinning = true
|
this.spinning = true
|
||||||
@@ -162,21 +161,23 @@ export default {
|
|||||||
url = this.url.add
|
url = this.url.add
|
||||||
Action = postAction
|
Action = postAction
|
||||||
}
|
}
|
||||||
|
this.formInline.supFolder = this.menuId
|
||||||
let query = JSON.parse(JSON.stringify(this.formInline))
|
let query = JSON.parse(JSON.stringify(this.formInline))
|
||||||
Object.keys(query).forEach(res => {
|
Object.keys(query).forEach(res => {
|
||||||
if (query[res] && query[res] instanceof Array) {
|
if (query[res] && query[res] instanceof Array) {
|
||||||
query[res] = query[res].join(',')
|
query[res] = query[res].join(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
postAction(url, query).then((res) => {
|
Action(url, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
// this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.$message.success(res.message)
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('addModelList')
|
this.$emit('addModelList')
|
||||||
} else {
|
} else {
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(res.message)
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -43,16 +43,16 @@
|
|||||||
<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('Addingfolder')}}
|
<a-menu-item key="1" @click="orgAdd" v-has="'externalReports:folder'">{{$t('Addingfolder')}}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="4" @click="orgAdds" v-if="deleteNode"
|
<a-menu-item key="4" @click="orgAdds" v-if="deleteNode"
|
||||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('Addingsubfolders')}}
|
v-has="'externalReports:folder'">{{$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="'externalReports:folder'">
|
||||||
{{$t('Editfolder')}}
|
{{$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('Deletefolders')}}
|
v-has="'externalReports:folder'">{{$t('Deletefolders')}}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
|
|
||||||
</a-menu>
|
</a-menu>
|
||||||
@@ -185,26 +185,26 @@
|
|||||||
:label-col="labelCol"
|
:label-col="labelCol"
|
||||||
:wrapper-col="wrapperCol"
|
:wrapper-col="wrapperCol"
|
||||||
>
|
>
|
||||||
<a-form-model-item :label="$t('Foldername')" prop="name">
|
<a-form-model-item :label="$t('Foldername')" prop="folderName">
|
||||||
<a-input class="box-input add-input" v-model="form.name" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
|
<a-input class="box-input add-input" v-model="form.folderName" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('Administrativeprivileges')" prop="Administrativeprivileges">
|
<a-form-model-item :label="$t('Administrativeprivileges')" prop="authManage">
|
||||||
<PersonnelSelection class="box-input add-input"
|
<PersonnelSelection class="box-input add-input"
|
||||||
:personneQuery="form"
|
:personneQuery="form"
|
||||||
:query="{db_field_name:'Administrativeprivileges',db_field_txt:$t('Administrativeprivileges')}"
|
:query="{db_field_name:'authManageIds',db_field_txt:$t('Administrativeprivileges')}"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
v-model="form.Administrativeprivileges"/>
|
v-model="form.authManage"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('Checkthepermissions')" prop="Checkthepermissions">
|
<a-form-model-item :label="$t('Checkthepermissions')" prop="authView">
|
||||||
<PersonnelSelection
|
<PersonnelSelection
|
||||||
class="box-input add-input"
|
class="box-input add-input"
|
||||||
:personneQuery="form"
|
:personneQuery="form"
|
||||||
:query="{db_field_name:'Checkthepermissions',db_field_txt:$t('Checkthepermissions')}"
|
:query="{db_field_name:'authViewIds',db_field_txt:$t('Checkthepermissions')}"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
v-model="form.Checkthepermissions"/>
|
v-model="form.authView"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('Folderorder')" prop="displaySeq">
|
<a-form-model-item :label="$t('Folderorder')" prop="orderId">
|
||||||
<a-input-number v-model="form.displaySeq" :min="1" :max="99999" class="box-input add-input"
|
<a-input-number v-model="form.orderId" :min="1" :max="99999" class="box-input add-input"
|
||||||
:placeholder="$t('PleaseEnter')+$t('Folderorder')" :formatter="limitNumber"
|
:placeholder="$t('PleaseEnter')+$t('Folderorder')" :formatter="limitNumber"
|
||||||
:parser="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" />-->
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import addModel from './components/addModel'
|
import addModel from './components/addModel'
|
||||||
import handleModel from './components/handle'
|
import handleModel from './components/handle'
|
||||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, deleteAction,putAction } from '@/api/manage'
|
||||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
// import exportTree from '@/components/exportTree/index'
|
// import exportTree from '@/components/exportTree/index'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
@@ -281,17 +281,17 @@ export default {
|
|||||||
menuRightVisible: false,
|
menuRightVisible: false,
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
folderName: [
|
||||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('Foldername'), trigger: 'blur' },
|
{ required: true, message: this.$t('PleaseEnter') + this.$t('Foldername'), trigger: 'blur' },
|
||||||
{ min: 1, max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' }
|
{ min: 1, max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
Administrativeprivileges: [
|
authManage: [
|
||||||
{ required: true, message: this.$t('PleaseSelect') + this.$t('Administrativeprivileges'), trigger: 'change' },
|
{ required: true, message: this.$t('PleaseSelect') + this.$t('Administrativeprivileges'), trigger: 'change' },
|
||||||
],
|
],
|
||||||
Checkthepermissions: [
|
authView: [
|
||||||
{ required: true, message: this.$t('PleaseSelect') + this.$t('Checkthepermissions'), trigger: 'change' },
|
{ required: true, message: this.$t('PleaseSelect') + this.$t('Checkthepermissions'), trigger: 'change' },
|
||||||
],
|
],
|
||||||
displaySeq: [
|
orderId: [
|
||||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('Folderorder'), 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' },
|
||||||
]
|
]
|
||||||
@@ -317,17 +317,17 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'serialNumber',
|
dataIndex: 'fileName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileDeclaration'),
|
title: this.$t('fileDeclaration'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'title',
|
dataIndex: 'fileDescription',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('uploadedBy'),
|
title: this.$t('uploadedBy'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'state_dicText',
|
dataIndex: 'updateBy',
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: this.$t('category'),
|
// title: this.$t('category'),
|
||||||
@@ -337,7 +337,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('uploadTime'),
|
title: this.$t('uploadTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'technologyTerritory_dicText',
|
dataIndex: 'updateTime',
|
||||||
width: 250
|
width: 250
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -349,7 +349,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: 'project/lawsComplianceBoard/page',
|
list: 'com.jero.modules.extRepo/extRepoData/page',
|
||||||
getSysCategoryTree: '/sys/category/getSysCategoryTree',
|
getSysCategoryTree: '/sys/category/getSysCategoryTree',
|
||||||
},
|
},
|
||||||
ids: '',
|
ids: '',
|
||||||
@@ -379,26 +379,9 @@ export default {
|
|||||||
const that = this
|
const that = this
|
||||||
let client = ''
|
let client = ''
|
||||||
let width = ''
|
let width = ''
|
||||||
// this.widthBrown = window.screenWidth || document.body.clientWidth;
|
|
||||||
// let iframeTop= document.querySelector('.split-detail-left').getBoundingClientRect().top
|
|
||||||
// document.querySelector('.split-detail-left').style.height = this.brownHeight-iframeTop-24 + 'px'
|
|
||||||
// console.log(iframeTop,'iframeTop2222')
|
|
||||||
// document.querySelector('.split-detail-table .ant-table-content').style.width = width - 20 + 'px'
|
|
||||||
// window.addEventListener('resize', () => {
|
|
||||||
// that.screenWidth = window.screenWidth || document.body.clientWidth;
|
|
||||||
// client = document.querySelector('.split-detail-table .ant-table-content').getBoundingClientRect()
|
|
||||||
// // console.log('screenWidth',that.screenWidth)
|
|
||||||
// width = that.screenWidth - client.left
|
|
||||||
// document.querySelector('.split-detail-table .ant-table-content').style.width = width - 20 + 'px'
|
|
||||||
// iframeTop= document.querySelector('.split-detail-left').getBoundingClientRect().top
|
|
||||||
// console.log(iframeTop,'iframeTop111')
|
|
||||||
// document.querySelector('.split-detail-left').style.height = this.brownHeight-iframeTop-24 + 'px'
|
|
||||||
// }, false);
|
|
||||||
|
|
||||||
|
|
||||||
this.userData = this.userInfo()
|
this.userData = this.userInfo()
|
||||||
this.infoId = this.$route.query.infoId
|
// this.infoId = this.$route.query.infoId
|
||||||
console.log('info', this.$route.query)
|
// console.log('info', this.$route.query)
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.generateList(this.gData)
|
this.generateList(this.gData)
|
||||||
@@ -467,13 +450,14 @@ export default {
|
|||||||
},
|
},
|
||||||
//获取左侧目录数据
|
//获取左侧目录数据
|
||||||
loadMenuData() {
|
loadMenuData() {
|
||||||
let params = {
|
// let params = {
|
||||||
infoId: this.infoId
|
// infoId: this.infoId
|
||||||
}
|
// }
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(`split/sarFileSplitMenu/getSplitMenusByInfoId`, params).then(res => {
|
getAction(`extRepo/extRepoFolder/list`, {}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.data = this.toTree(res.result)
|
// this.data = this.toTree(res.result)
|
||||||
|
this.data = res.result
|
||||||
this.gData = [...this.data]
|
this.gData = [...this.data]
|
||||||
Object.assign(this, {
|
Object.assign(this, {
|
||||||
expandedKeys: this.expandedKeys,
|
expandedKeys: this.expandedKeys,
|
||||||
@@ -485,51 +469,54 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
//将数据拼成树形结构
|
//将数据拼成树形结构
|
||||||
toTree(config) {
|
// toTree(config) {
|
||||||
// 删除 所有 children,以防止多次调用
|
// // 删除 所有 children,以防止多次调用
|
||||||
config.forEach(function(item) {
|
// config.forEach(function(item) {
|
||||||
delete item.children
|
// delete item.children
|
||||||
})
|
// })
|
||||||
// 将数据存储为 以 id 为 KEY 的 map 索引数据列
|
// // 将数据存储为 以 id 为 KEY 的 map 索引数据列
|
||||||
let map = {}
|
// let map = {}
|
||||||
config.forEach((item) => {
|
// config.forEach((item) => {
|
||||||
item.label = item.name
|
// item.label = item.title
|
||||||
item.key = item.id
|
// item.key = item.key
|
||||||
item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
|
// item.title = item.title
|
||||||
map[item.id] = item
|
// map[item.key] = item
|
||||||
})
|
// })
|
||||||
let val = []
|
// let val = []
|
||||||
config.forEach((item) => {
|
// config.forEach((item) => {
|
||||||
// 以当前遍历项,的pid,去map对象中找到索引的id
|
// // 以当前遍历项,的pid,去map对象中找到索引的id
|
||||||
let parent = map[item.pid]
|
// let parent = map[item.orderId]
|
||||||
// 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
// // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
||||||
if (parent) {
|
// if (parent) {
|
||||||
(parent.children || (parent.children = [])).push(item)
|
// (parent.children || (parent.children = [])).push(item)
|
||||||
} else {
|
// } else {
|
||||||
//如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
|
// //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
|
||||||
val.push(item)
|
// val.push(item)
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
return val
|
// return val
|
||||||
},
|
// },
|
||||||
//鼠标右键
|
//鼠标右键
|
||||||
rightClick({ event, node }) {
|
rightClick({ event, node }) {
|
||||||
|
|
||||||
this.deleteNode = node._props.dataRef.pid ? false : true
|
this.deleteNode = node._props.dataRef.level == 4 ? false : true
|
||||||
// console.log('eee',event,node)
|
// console.log('eee',event,node)
|
||||||
// this.NodeTreeItemVisible=true
|
// this.NodeTreeItemVisible=true
|
||||||
const x =
|
const x =
|
||||||
event.currentTarget.offsetLeft + event.currentTarget.clientWidth
|
event.currentTarget.offsetLeft + event.currentTarget.clientWidth
|
||||||
const y = event.currentTarget.offsetTop
|
const y = event.currentTarget.offsetTop
|
||||||
|
console.log(node._props.dataRef)
|
||||||
this.NodeTreeItem = {
|
this.NodeTreeItem = {
|
||||||
pageX: x,
|
pageX: x,
|
||||||
pageY: y,
|
pageY: y,
|
||||||
id: node._props.dataRef.id,
|
authManage: node._props.dataRef.authManage,
|
||||||
name: node._props.dataRef.name,
|
authViewIds: node._props.dataRef.authViewIds,
|
||||||
itemName: node._props.dataRef.itemName,
|
key: node._props.dataRef.key,
|
||||||
displaySeq: node._props.dataRef.displaySeq,
|
authManageIds: node._props.dataRef.authManageIds,
|
||||||
|
authView: node._props.dataRef.authView,
|
||||||
title: node._props.dataRef.title,
|
title: node._props.dataRef.title,
|
||||||
pid: node._props.dataRef.pid || null
|
folderName: node._props.dataRef.folderName,
|
||||||
|
orderId: node._props.dataRef.orderId,
|
||||||
}
|
}
|
||||||
this.nodeItem = JSON.parse(JSON.stringify(this.NodeTreeItem))
|
this.nodeItem = JSON.parse(JSON.stringify(this.NodeTreeItem))
|
||||||
// this.form.pid=this.NodeTreeItem.id
|
// this.form.pid=this.NodeTreeItem.id
|
||||||
@@ -556,12 +543,10 @@ export default {
|
|||||||
this.uploadMenuId = selectedKeys[0]
|
this.uploadMenuId = selectedKeys[0]
|
||||||
this.selectedKeys = selectedKeys
|
this.selectedKeys = selectedKeys
|
||||||
let queryParam = {
|
let queryParam = {
|
||||||
menu_id: this.menuId,
|
supFolder: this.menuId
|
||||||
info_id: this.infoId
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.parameter.info_id = this.infoId
|
this.parameter.supFolder = this.menuId
|
||||||
this.parameter.menu_id = this.menuId
|
|
||||||
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
||||||
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
||||||
// eventBUs.$emit('searchReset')
|
// eventBUs.$emit('searchReset')
|
||||||
@@ -573,6 +558,8 @@ export default {
|
|||||||
this.menuTitle = this.$t('Addingfolder')
|
this.menuTitle = this.$t('Addingfolder')
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.form = {}
|
this.form = {}
|
||||||
|
let supFolder = ''
|
||||||
|
this.supFolder = this.nodeItem.key
|
||||||
this.menuRightVisible = true
|
this.menuRightVisible = true
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -580,17 +567,22 @@ export default {
|
|||||||
this.menuTitle = this.$t('Addingsubfolders')
|
this.menuTitle = this.$t('Addingsubfolders')
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.form = {}
|
this.form = {}
|
||||||
|
let supFolder = ''
|
||||||
|
this.supFolder = this.nodeItem.key
|
||||||
this.menuRightVisible = true
|
this.menuRightVisible = true
|
||||||
},
|
},
|
||||||
//树形修改
|
//树形修改
|
||||||
orgEdit() {
|
orgEdit() {
|
||||||
this.menuTitle = this.$t('edit')
|
this.menuTitle = this.$t('Editfolder')
|
||||||
this.isEdit = true
|
this.isEdit = true
|
||||||
this.form.id = this.nodeItem.id
|
let supFolder = ''
|
||||||
this.form.pid = this.nodeItem.pid
|
this.form.id = this.nodeItem.key
|
||||||
this.form.name = this.nodeItem.name
|
this.form.authManageIds = this.nodeItem.authManageIds
|
||||||
this.form.itemName = this.nodeItem.itemName
|
this.form.authViewIds = this.nodeItem.authViewIds
|
||||||
this.form.displaySeq = this.nodeItem.displaySeq
|
this.form.authManage = this.nodeItem.authManage
|
||||||
|
this.form.authView = this.nodeItem.authView
|
||||||
|
this.form.folderName = this.nodeItem.folderName
|
||||||
|
this.form.orderId = this.nodeItem.orderId
|
||||||
this.menuRightVisible = true
|
this.menuRightVisible = true
|
||||||
},
|
},
|
||||||
//树形删除
|
//树形删除
|
||||||
@@ -599,13 +591,12 @@ export default {
|
|||||||
content: this.$t('deleteNodes'),
|
content: this.$t('deleteNodes'),
|
||||||
onOk:
|
onOk:
|
||||||
async () => {
|
async () => {
|
||||||
getAction(`split/sarFileSplitMenu/deleteMenu`, { id: this.nodeItem.id }).then(res => {
|
deleteAction(`extRepo/extRepoFolder/delete`, { id: this.nodeItem.key }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
let queryParam = {
|
let queryParam = {
|
||||||
menu_id: this.menuId,
|
supFolder: this.menuId
|
||||||
info_id: this.infoId
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
||||||
@@ -632,60 +623,54 @@ export default {
|
|||||||
},
|
},
|
||||||
//增加文件夹确定
|
//增加文件夹确定
|
||||||
hideModalMenuRight() {
|
hideModalMenuRight() {
|
||||||
|
|
||||||
let expandId = []
|
|
||||||
expandId.push(this.form.pid)
|
|
||||||
if (!this.isEdit) {
|
if (!this.isEdit) {
|
||||||
let params = {
|
let params = {
|
||||||
infoId: this.infoId,
|
supFolder: this.supFolder,
|
||||||
pid: this.nodeItem.id,
|
...this.form
|
||||||
...this.form
|
|
||||||
}
|
|
||||||
this.$refs.ruleForm.validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
|
|
||||||
// console.log('parms',this.params)
|
|
||||||
if (!this.flag) {
|
|
||||||
this.flag = true
|
|
||||||
postAction(`split/sarFileSplitMenu/addMenu`, params).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.menuRightVisible = false
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
// this.onExpand(expandId)
|
|
||||||
this.form = {}
|
|
||||||
this.expandedKeys.push(this.nodeItem.id)
|
|
||||||
// console.log('expandedKeys1111',this.expandedKeys)
|
|
||||||
this.loadMenuData()
|
|
||||||
let queryParam = {
|
|
||||||
menu_id: this.menuId,
|
|
||||||
info_id: this.infoId
|
|
||||||
|
|
||||||
}
|
|
||||||
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
|
||||||
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
|
||||||
// eventBUs.$emit('searchReset')
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
this.flag = false
|
|
||||||
this.menuRightVisible = false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
|
||||||
|
// console.log('parms',this.params)
|
||||||
|
if (!this.flag) {
|
||||||
|
this.flag = true
|
||||||
|
postAction(`extRepo/extRepoFolder/add`, params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.menuRightVisible = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
// this.onExpand(expandId)
|
||||||
|
this.form = {}
|
||||||
|
this.expandedKeys.push(this.nodeItem.id)
|
||||||
|
// console.log('expandedKeys1111',this.expandedKeys)
|
||||||
|
this.loadMenuData()
|
||||||
|
let queryParam = {
|
||||||
|
supFolder: this.menuId
|
||||||
|
|
||||||
|
}
|
||||||
|
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
||||||
|
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
||||||
|
// eventBUs.$emit('searchReset')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.flag = false
|
||||||
|
this.menuRightVisible = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
let params = {
|
let params = {
|
||||||
info_id: this.infoId,
|
|
||||||
...this.form
|
...this.form
|
||||||
}
|
}
|
||||||
if (!this.flag) {
|
if (!this.flag) {
|
||||||
this.flag = true
|
this.flag = true
|
||||||
// console.log('parms',params)
|
// console.log('parms',params)
|
||||||
putAction(`split/sarFileSplitMenu/updateMenu`, params).then(res => {
|
putAction(`extRepo/extRepoFolder/edit`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.onExpand(expandId)
|
|
||||||
this.form = {}
|
this.form = {}
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
} else {
|
} else {
|
||||||
@@ -704,20 +689,23 @@ export default {
|
|||||||
},
|
},
|
||||||
addModelList() {
|
addModelList() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.loadData()
|
let queryParam = {
|
||||||
|
supFolder: this.menuId
|
||||||
|
|
||||||
|
}
|
||||||
|
this.loadData(JSON.parse(JSON.stringify(queryParam)))
|
||||||
},
|
},
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
loadData(item) {
|
loadData(item) {
|
||||||
let params = {
|
let params = {
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
...item,
|
...item,
|
||||||
info_id: this.infoId
|
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
postAction(this.url.list, params).then(res => {
|
getAction(this.url.list, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result.records || []
|
this.dataSource = res.result.pageList.records || []
|
||||||
this.total = res.result.total
|
this.total = res.result.pageList.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -764,8 +752,7 @@ export default {
|
|||||||
// console.log('data111',data)
|
// console.log('data111',data)
|
||||||
if (status === 'success') {
|
if (status === 'success') {
|
||||||
let queryParam = {
|
let queryParam = {
|
||||||
menu_id: this.menuId,
|
supFolder: this.menuId
|
||||||
info_id: this.infoId
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
@@ -836,16 +823,21 @@ export default {
|
|||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
batchDel(val) {
|
batchDel(val) {
|
||||||
|
console.log(this.menuId)
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmDelete'),
|
content: _this.$t('ConfirmDelete'),
|
||||||
onOk() {
|
onOk() {
|
||||||
getAction(_this.url.deleteBatch, { id: val.id }).then((res) => {
|
let queryParam = {
|
||||||
|
supFolder: _this.menuId
|
||||||
|
}
|
||||||
|
deleteAction('com.jero.modules.extRepo/extRepoData/delete', { id: 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.loadData(JSON.parse(JSON.stringify(queryParam)))
|
||||||
} else {
|
} else {
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -859,11 +851,16 @@ export default {
|
|||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
getAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
let queryParam = {
|
||||||
|
supFolder: _this.menuId
|
||||||
|
|
||||||
|
}
|
||||||
|
deleteAction('com.jero.modules.extRepo/extRepoData/deleteBatch', { ids: idList.join(',') }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.selectedRowKeys = []
|
_this.selectedRowKeys = []
|
||||||
_this.getList()
|
|
||||||
|
_this.loadData(JSON.parse(JSON.stringify(queryParam)))
|
||||||
} else {
|
} else {
|
||||||
_this.$message.warning(res.message)
|
_this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
@@ -878,72 +875,6 @@ export default {
|
|||||||
sumber() {
|
sumber() {
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
},
|
},
|
||||||
//删除
|
|
||||||
deleteClick(val) {
|
|
||||||
let params = {
|
|
||||||
ids: val.id
|
|
||||||
}
|
|
||||||
this.$confirm({
|
|
||||||
title: this.$t('areYouSure'),
|
|
||||||
content: '',
|
|
||||||
onOk:
|
|
||||||
async () => {
|
|
||||||
axios({
|
|
||||||
url: '/jero-boot/split/sarFileSplitItems/batchDeleteItems',
|
|
||||||
method: 'post',
|
|
||||||
data: params,
|
|
||||||
transformRequest: [function(data) {
|
|
||||||
// Do whatever you want to transform the data
|
|
||||||
let ret = ''
|
|
||||||
for (let it in data) {
|
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}],
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
|
||||||
'X-Access-Token': this.token
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then((res) => {
|
|
||||||
if (res.data.success) {
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
this.loadMenuData()
|
|
||||||
let queryParam = {
|
|
||||||
menu_id: this.menuId,
|
|
||||||
info_id: this.infoId
|
|
||||||
|
|
||||||
}
|
|
||||||
// eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
|
||||||
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
|
||||||
// eventBUs.$emit('searchReset')
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.log(error)
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
// postAction(`split/sarFileSplitItems/batchDeleteItems`,params).then(res=> {
|
|
||||||
// if(res.success){
|
|
||||||
// this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
// // if(this.selecIds.length==this.tableData.length&&this.queryParams.pageNo!=1){
|
|
||||||
// // this.queryParams.pageNo=this.queryParams.pageNo-1
|
|
||||||
// // }
|
|
||||||
// // this.loadData()
|
|
||||||
// this.loadMenuData()
|
|
||||||
// eventBUs.$emit('searchReset')
|
|
||||||
// }else{
|
|
||||||
// this.$message.warning(this.$t('operationFailed'))
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
},
|
|
||||||
onCancel() {
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//选择框
|
//选择框
|
||||||
onSelectChange(selectedRowKeys, rows) {
|
onSelectChange(selectedRowKeys, rows) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
@@ -965,7 +896,7 @@ export default {
|
|||||||
// 上传文件
|
// 上传文件
|
||||||
handleuploadFile(e) {
|
handleuploadFile(e) {
|
||||||
if (this.menuId) {
|
if (this.menuId) {
|
||||||
this.$refs.addModelRef.addModel()
|
this.$refs.addModelRef.addModel(this.menuId)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectDirectorylocation'))
|
this.$message.warning(this.$t('selectDirectorylocation'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user