Merge branch 'dev_2nd_period_test' into 'feature_dev_20221008_TODO'
# Conflicts: # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsManifestEOMapper.xml
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -3,11 +3,11 @@ module.exports = {
|
||||
account: 'User Account',
|
||||
EnterAccountFuzzyQuery: 'Enter Account Fuzzy Search',
|
||||
Gender: 'Gender',
|
||||
pleaseSelect: 'Please Select',
|
||||
pleaseSelect: 'Please Select ',
|
||||
male: 'Male',
|
||||
female: 'Female',
|
||||
RealName: 'User Name',
|
||||
pleaseEnter: 'Please Enter',
|
||||
pleaseEnter: 'Please Enter ',
|
||||
phoneNumber: 'Phone Number',
|
||||
query: 'Search',
|
||||
userStatues: 'User Status',
|
||||
@@ -193,8 +193,15 @@ module.exports = {
|
||||
OperationLog: 'Operation Log',
|
||||
SearchLog: 'Search Log',
|
||||
enterSearchKeyword: 'Please enter a search keyword',
|
||||
enterSearchContent:'Please enter Search Content',
|
||||
enterStandard:'Please enter Number',
|
||||
entertitle:'Please enter Title',
|
||||
OperationType: 'Operation Type',
|
||||
selectOperationType: 'Please select Operation type',
|
||||
selectProblemClassification:'Please select Problem Classification',
|
||||
selectClassification:'Please select Classification',
|
||||
selectTranslationResults:'Please select Translation results',
|
||||
selectMarket:'Please select Market',
|
||||
RequestMethod: 'Request Method',
|
||||
RequestParameters: 'Request Parameters',
|
||||
logManagementPage: 'This is the log management page',
|
||||
@@ -343,8 +350,8 @@ module.exports = {
|
||||
standard: 'Number',
|
||||
title: 'Title',
|
||||
TextStatus: 'Text Status',
|
||||
PleaseEnter: 'Please enter',
|
||||
PleaseSelect: 'Please select',
|
||||
PleaseEnter: 'Please enter ',
|
||||
PleaseSelect: 'Please select ',
|
||||
PleaseEnterOrSelect: 'Please Enter Or Select',
|
||||
ModificationTime: 'Modification Time',
|
||||
ModificationContent: 'Modification Content',
|
||||
@@ -386,7 +393,7 @@ module.exports = {
|
||||
DocumentComparison: 'Doc Comparison',
|
||||
KnowledgeDatabase: 'Q&A Knowledge',
|
||||
StandardDetails: 'Standard Details',
|
||||
whole: 'Whole',
|
||||
whole: 'All',
|
||||
DocumentLibrary: 'Document Library',
|
||||
GeneralExportInformation: 'General export information',
|
||||
CustomizeExportInformation: 'Customize export information',
|
||||
@@ -500,7 +507,7 @@ module.exports = {
|
||||
ProcessName: 'Process Name',
|
||||
ProcessType: 'Process Type',
|
||||
AddProcess: 'Add Process',
|
||||
RelatedItems: 'Relevant Project',
|
||||
RelatedItems: 'Project',
|
||||
Sponsor: 'Creator',
|
||||
CurrentProcessor: 'Current Processor',
|
||||
LastProcessor: 'Last Processor',
|
||||
@@ -721,7 +728,7 @@ module.exports = {
|
||||
directoryName: 'Catalogue Name',
|
||||
batch: 'Batch',
|
||||
uploadTime: 'Upload Time',
|
||||
enclosure: 'Enclosure',
|
||||
enclosure: 'Attachments',
|
||||
// 认证
|
||||
// 认证状态
|
||||
timeOperation: 'You have permission to operate this button.',
|
||||
@@ -786,6 +793,7 @@ module.exports = {
|
||||
parameter: 'Parameter',
|
||||
changeExtension: 'Change Extension',
|
||||
addDetailList: 'Add',
|
||||
editDetailList:'Edit DetailList',
|
||||
detailedList: 'DetailedList',
|
||||
copyParamDetailList: 'Copy Parameter List',
|
||||
collectionCompletionTime: 'Collection Completed',
|
||||
@@ -916,7 +924,7 @@ module.exports = {
|
||||
deliveryHistory: 'Delivery History',
|
||||
projectDeliveryRequirements: 'Project delivery requirements',
|
||||
personLiableConfirm: 'PersonLiable Confirm',
|
||||
complianceResults: 'Compliance Results',
|
||||
complianceResults: 'Feedback',
|
||||
noData: 'No Data',
|
||||
confirmOperation: 'Confirm Operation',
|
||||
sponsorReview: 'Sponsor Review',
|
||||
@@ -983,25 +991,25 @@ module.exports = {
|
||||
taskConfirmationResponsiblePerson: 'Task confirmation of responsible person',
|
||||
or: 'or',
|
||||
warningTime: 'Warning Time',
|
||||
RegulationMonthlyManagement: 'Regulation Monthly Management',
|
||||
RegulationMonthlyFill: 'Regulation Monthly Fill',
|
||||
RegulationMonthlyName: 'Regulation monthly name',
|
||||
monthlyLanguage: 'Monthly Language',
|
||||
RegulationMonthlyManagement: 'Manage Monthly Report',
|
||||
RegulationMonthlyFill: 'Fill in Monthly Report',
|
||||
RegulationMonthlyName: 'Report Name',
|
||||
monthlyLanguage: 'Language',
|
||||
releaseStatus: 'Release Status',
|
||||
uploadedBy: 'Uploaded By',
|
||||
uploadMonthly: 'Upload Monthly',
|
||||
chapterContents: 'Chapter Contents',
|
||||
uploadMonthly: 'Upload Report',
|
||||
chapterContents: 'Chapter',
|
||||
chineseTitle: 'Chinese Title',
|
||||
englishTitle: 'English Title',
|
||||
regulatoryContact: 'Regulatory Contact',
|
||||
regulatoryContact: 'Reg. Contact',
|
||||
exportStatus: 'Export Status',
|
||||
monthlyTitleTemplate: 'Monthly Title Template',
|
||||
monthlyIntegrationAndExport: 'Monthly integration and export',
|
||||
monthlyTitleTemplate: 'Title Template',
|
||||
monthlyIntegrationAndExport: 'Export Report',
|
||||
addContent: 'Add Content',
|
||||
editContent: 'Edit Content',
|
||||
viewContent: 'View Content',
|
||||
fillInTheMonth: 'Fill in the month',
|
||||
monthSelection: 'Month Selection',
|
||||
fillInTheMonth: 'Filled in (Month)',
|
||||
monthSelection: 'Select Month',
|
||||
bringInStandardInformation: 'Bring in standard Information',
|
||||
contentTemplate: 'Content Template',
|
||||
moveUp: 'Move Up',
|
||||
@@ -1009,32 +1017,32 @@ module.exports = {
|
||||
vehicleType: 'Vehicle Type',
|
||||
usage: 'Usage',
|
||||
implementationModel: 'Implementation Model',
|
||||
primaryCoverageCn: 'Primary Coverage (Cn)',
|
||||
primaryCoverageEn: 'Primary Coverage (En)',
|
||||
primaryCoverageCn: 'Description (Cn)',
|
||||
primaryCoverageEn: 'Description (En)',
|
||||
workProgressCn: 'NIO Work Progress (Cn)',
|
||||
workProgressEn: 'NIO Work Progress (En)',
|
||||
initiatingProcess: 'Initiating Process',
|
||||
initiatingProcess: 'Initiate Process',
|
||||
collectResults: 'Collect Results',
|
||||
dateOfInitiation: 'Date Of Initiation',
|
||||
closingDate: 'Closing Date',
|
||||
closingDate: 'Due Date',
|
||||
viewProcess: 'View Process',
|
||||
evaluationResults: 'Evaluation Results',
|
||||
Assessor: 'Assessor',
|
||||
collectionOfRegulatoryOpinions: 'Collection Of Regulatory Opinions',
|
||||
collectionOfRegulatoryOpinionsProcess: 'Collection Of Regulatory Opinions Process',
|
||||
feedbackInformation: 'Feedback Information',
|
||||
relevantSections: 'Relevant Sections',
|
||||
questionsSuggestions: 'Questions Or Suggestions',
|
||||
feedbackInformation: 'Feedback',
|
||||
relevantSections: 'Chapter',
|
||||
questionsSuggestions: 'Questions/Suggestions',
|
||||
reason: 'Reason',
|
||||
proposedTime: 'Proposed Time',
|
||||
feedbackPoint: 'Feedback Point',
|
||||
link: 'Link',
|
||||
planNoChinese: 'Plan No.',
|
||||
standardNameCn: 'Standard Name Cn',
|
||||
standardNameEn: 'Standard Name En',
|
||||
deadlineForComments: 'Deadline for comments',
|
||||
standardNameCn: 'Standard Title Cn',
|
||||
standardNameEn: 'Standard Title En',
|
||||
deadlineForComments: 'Deadline for Comments',
|
||||
standardNo: 'Standard No',
|
||||
implemenDate: 'Implementation Date',
|
||||
implemenDate: 'Effective Date',
|
||||
// 上报库
|
||||
Enable: 'Enable',
|
||||
Latestupdatetime: 'Latest Update Time',
|
||||
@@ -1115,7 +1123,7 @@ module.exports = {
|
||||
PreHomoNotification: 'Pre-Homo Notification',
|
||||
ValidationComplianceNotification: 'Validation Compliance Notification',
|
||||
RegulationTaskConfirmationNotification: 'Regulation Task Confirmation Notification',
|
||||
evaluationMethod: 'Evaluation method',
|
||||
evaluationMethod: 'Check Method',
|
||||
uploadRelevantMaterials: 'Upload relevant materials',
|
||||
processBackground: 'Process Background',
|
||||
selectedStandard: 'Selected Standard',
|
||||
@@ -1123,13 +1131,13 @@ module.exports = {
|
||||
pleaseSelectStandardFirst: 'Please select a standard first',
|
||||
RelevantMaterials: 'RelevantMaterials',
|
||||
evaluatorFeedback: 'Evaluator Feedback',
|
||||
nameTechnicalDocument: 'Name of technical document',
|
||||
nameTechnicalDocument: 'Technical Document',
|
||||
chapter: 'Chapter',
|
||||
problemDescription: 'Problem Description',
|
||||
filingExternalOpinions: 'Filing of external opinions',
|
||||
regulatoryTechnicalEvaluationResults: 'Regulatory technical evaluation results',
|
||||
initiateProcessForCurrentStandard: 'Initiate process for current standard',
|
||||
engineerFeedbackResults: 'Engineer feedback results',
|
||||
engineerFeedbackResults: 'Engineer Feedback',
|
||||
fileExport: 'File Export',
|
||||
feedbackTime: 'Feedback Time',
|
||||
regulatoryTechnologyAssessmentProcess: 'Regulatory technology assessment process',
|
||||
@@ -1147,29 +1155,30 @@ module.exports = {
|
||||
releaseSituation: 'Release situation',
|
||||
comparisonResults: 'Comparison results',
|
||||
Published: 'Published',
|
||||
initiateComparison: 'Initiate comparison',
|
||||
initiateComparison: 'Initiate Comparison',
|
||||
translationLanguage: 'Translation language',
|
||||
translationResults: 'Translation results',
|
||||
conversionTime: 'Conversion time',
|
||||
category: 'Category',
|
||||
RegulatoryProcessEvaluationResults: 'Regulatory Process Evaluation Results',
|
||||
ViewConformanceResults: 'View Conformance Results',
|
||||
CommentsCollectionResultsForReference: 'Comments Collection Results For',
|
||||
TechnicalEvaluationResultsForReference: 'Technical Evaluation Results For',
|
||||
CommentsCollectionResultsForReference: 'Opinion Collection Results',
|
||||
TechnicalEvaluationResultsForReference: 'Technical Assessment Results',
|
||||
ComplianceConfirmationRecord: 'Compliance Confirmation Record',
|
||||
complianceConfirmation: 'Compliance Confirmation',
|
||||
noComparisonDocumentSelected: 'No comparison document selected',
|
||||
RemarkInfo: 'Remarks Info',
|
||||
initiateDocumentComparison: 'Initiate Document Comparison',
|
||||
comparativeComments: 'Comparative Comments',
|
||||
viewTheComparisonResults: 'View The Comparison Results',
|
||||
addFullTextComment: 'Add Full Text Comment',
|
||||
turnOffAutomaticMatching: 'Turn Off Automatic Matching',
|
||||
Deriveconformanceresults: 'Derive Conformance Results',
|
||||
viewTheComparisonResults: 'View Results',
|
||||
addFullTextComment: 'Full Text Comment',
|
||||
turnOffAutomaticMatching: 'Turn Off Auto Match',
|
||||
Deriveconformanceresults: 'Export Results',
|
||||
Regulatorycompliancekanban: 'Regulatory Compliance Kanban',
|
||||
exportComparisonReport: 'Export Comparison Report',
|
||||
comparisonDifferenceComment: 'Comparison Difference Comment',
|
||||
fullTextComments: 'Full text comments',
|
||||
fullTextComments: 'Full Text Comment',
|
||||
pleaseEnterfullTextComments:'Please enter Full Text Comment',
|
||||
fileDeclaration: 'File Declaration',
|
||||
FileForDetails: 'File For Details',
|
||||
Converting: 'Converting',
|
||||
@@ -1177,7 +1186,7 @@ module.exports = {
|
||||
convertFailed: 'Convert Failed',
|
||||
standardData: 'Standard Data',
|
||||
Theorganization: 'The Organization',
|
||||
Addingfolder: 'Adding a folder',
|
||||
Addingfolder: 'Create New Folder',
|
||||
Addingsubfolders: 'Adding Subfolders',
|
||||
Editfolder: 'Edit Folder',
|
||||
Deletefolders: 'Delete Folders',
|
||||
@@ -1188,8 +1197,8 @@ module.exports = {
|
||||
Openpersonnel: 'Open Personnel',
|
||||
originalText: 'Original Text',
|
||||
translatedText: 'Translated Text',
|
||||
Administrativeprivileges: 'Administrativ Pprivileges',
|
||||
Checkthepermissions: 'Check The Permissions',
|
||||
Administrativeprivileges: 'Administrative Permissions',
|
||||
Checkthepermissions: 'Read Permissions',
|
||||
onlyFilesUploaded: 'Only.Docx,.Doc files can be uploaded',
|
||||
selectDirectorylocation: 'Please select the directory location to add the folder',
|
||||
Fileuploaded: 'File uploaded, please wait',
|
||||
@@ -1199,10 +1208,10 @@ module.exports = {
|
||||
Parametercollection: 'Parameter Collection',
|
||||
Collectlist: 'Colle Ctlist',
|
||||
Statisticalmodels: 'Statisti Calmodels',
|
||||
Inthecollection: 'In the collection',
|
||||
Notatthe: 'Not at the',
|
||||
Inthecollection: 'During collection',
|
||||
Notatthe: 'Not started',
|
||||
Thepercentage: 'The Percentage',
|
||||
problemKnowledgeBase: 'Problem Knowledge Base',
|
||||
problemKnowledgeBase: 'Q&A Knowledge',
|
||||
recentHotSpots: 'Recent Hot Spots',
|
||||
disseminationMaterials: 'Dissemination Materials',
|
||||
informationSafety: 'Information Safety',
|
||||
@@ -1211,36 +1220,37 @@ module.exports = {
|
||||
productHighlights: 'Product Highlights',
|
||||
financialReimbursement: 'Financial Reimbursement',
|
||||
classificationMaintenance: 'Classification Maintenance',
|
||||
managePublishing: 'Manage Publishing',
|
||||
displayPermission: 'Display permission',
|
||||
managePublishing: 'Release Management',
|
||||
displayPermission: 'Display Permission',
|
||||
authorizedUser: 'Authorized user',
|
||||
problemClassification: 'Problem classification',
|
||||
problemClassification: 'Problem Classification',
|
||||
market: 'Market',
|
||||
documentNumber: 'Document Number',
|
||||
documentTitle: 'Document Title',
|
||||
bringInDocumentInformation: 'Bring in document information',
|
||||
addStandardInformation:'Add standard information',
|
||||
thereWhichCannotDeleted: 'There are sub headings under this title, which cannot be deleted',
|
||||
sdt: 'Sdt',
|
||||
dre: 'Dre',
|
||||
applicableInstructionsMarketList: 'Applicable instructions of market list',
|
||||
pleaseSelectTheDataCompared: 'Please select the data to be compared',
|
||||
problemLabel: 'Problem label',
|
||||
problemLabel: 'Topic Tag',
|
||||
personCharge: 'Person in charge',
|
||||
addLabel: 'Add Label',
|
||||
addLabel: 'Add Tag',
|
||||
editLabel: 'Edit Label',
|
||||
applicableMarket: 'Applicable market',
|
||||
templateMaintenance: 'Template maintenance',
|
||||
applicableMarket: 'Applicable Market',
|
||||
templateMaintenance: 'Template Maintenance',
|
||||
associatedWebsite: 'Associated website',
|
||||
dropDownOptions: 'Drop down options',
|
||||
dropDownOptionMaintenance: 'Drop down option maintenance',
|
||||
displayInformation: 'Display information',
|
||||
addComparison: 'Add comparison',
|
||||
displayInformation: 'Display Information',
|
||||
addComparison: 'Add Comparison',
|
||||
showOrNot: 'Show or not',
|
||||
comparisonMarket: 'Comparison Market',
|
||||
share: 'Share',
|
||||
simplifiedChinese:'Simplified Chinese',
|
||||
uploadOnly:'Upload only',
|
||||
turnOnAutoMatch:'Turn on auto match',
|
||||
turnOnAutoMatch:'Turn On Auto Match',
|
||||
Adjustareasofresponsibility:'Adjust areas of responsibility',
|
||||
regulatoryTechnicalAssessment:'Regulatory Technical Assessment',
|
||||
punctuationmark:'You can only enter English punctuation marks except the # sign and commas',
|
||||
@@ -1266,8 +1276,8 @@ module.exports = {
|
||||
onlyTheDataWhoseStatusNotInitiatedAcceptedChanged:'Only the data whose list confirmation status is accepted and the task list status is not initiated or the task list status is accepted can be changed',
|
||||
thereTitleWhichCannotBeDeleted:'There are new contents under this title, which cannot be deleted',
|
||||
industryInformationDynamicTemplate:'Industry information dynamic template',
|
||||
relatedFields:'Related fields',
|
||||
relatedFieldsEn:'Related fields (English)',
|
||||
relatedFields:'Relaevant Area',
|
||||
relatedFieldsEn:'Relaevant Area (English)',
|
||||
source:'Source',
|
||||
sourceEn:'Source (English)',
|
||||
onlyone:'Only one merge delimiter can be entered',
|
||||
@@ -1307,16 +1317,26 @@ module.exports = {
|
||||
inRecentYear2:'In recent 2 year',
|
||||
selectAll:'Select All',
|
||||
importLocalDisassemblyOrder:'Import local disassembly order',
|
||||
notExport:'Not export',
|
||||
hasBeenExport:'Has been export',
|
||||
firstLevelDirectory:'First level directory',
|
||||
notExport:'Not exported',
|
||||
hasBeenExport:'Exported',
|
||||
firstLevelDirectory:'Primary Directory',
|
||||
deselectAll:'Deselect All',
|
||||
classification:'Classification',
|
||||
consistentAssessment:'Consistent assessment',
|
||||
viewConsistentAssessment:'View Consistent Assessment',
|
||||
consistentAssessment:'Consistent',
|
||||
viewConsistentAssessment:'View Consistent',
|
||||
viewVarianceAssessment:'View Variance',
|
||||
viewAll:'View All',
|
||||
endProcess:'End Process',
|
||||
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
|
||||
secondaryDirectory:'Secondary Directory',
|
||||
OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
|
||||
projectVersion:'Project Version',
|
||||
softwareVersion:'Authentication Software version',
|
||||
versionStatistics:'Version statistics',
|
||||
addSubproject:'Add Subproject',
|
||||
Topping:'Topping',
|
||||
cancelTopping:'Cancel Topping',
|
||||
relatedProjectVersion:'Related project version',
|
||||
taskType:'Task Type',
|
||||
taskStatus:'Task Status',
|
||||
taskConfirmationHandling:'Task confirmation handling',
|
||||
@@ -1330,4 +1350,15 @@ module.exports = {
|
||||
listToConfirm:'List to confirm',
|
||||
toSubmit:'To submit',
|
||||
toAudit:'To audit',
|
||||
secondaryDirectory:'Secondary Directory',
|
||||
OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
|
||||
projectVersion:'Project Version',
|
||||
softwareVersion:'Authentication Software version',
|
||||
versionStatistics:'Version statistics',
|
||||
addSubproject:'Add Subproject',
|
||||
Topping:'Topping',
|
||||
cancelTopping:'Cancel Topping',
|
||||
relatedProjectVersion:'Related project version',
|
||||
Importfailure:'Import failure',
|
||||
CuiBan:'CuiBan',
|
||||
}
|
||||
@@ -195,8 +195,15 @@ module.exports = {
|
||||
OperationLog: '操作日志',
|
||||
SearchLog: '搜索日志',
|
||||
enterSearchKeyword: '请输入搜索关键词',
|
||||
enterSearchContent:'请输入搜索内容',
|
||||
enterStandard:'请输入编号',
|
||||
entertitle:'请输入标题',
|
||||
OperationType: '操作类型',
|
||||
selectOperationType: '请选择操作类型',
|
||||
selectProblemClassification:'请选择问题分类',
|
||||
selectClassification:'请选择分类',
|
||||
selectTranslationResults:'请选择翻译结果',
|
||||
selectMarket:'请选择市场',
|
||||
RequestMethod: '请求方法',
|
||||
RequestParameters: '请求参数',
|
||||
logManagementPage: '这是日志管理页面',
|
||||
@@ -802,6 +809,7 @@ module.exports = {
|
||||
parameter: '参数',
|
||||
changeExtension: '变更扩展',
|
||||
addDetailList: '添加清单',
|
||||
editDetailList:'编辑清单',
|
||||
detailedList: '清单',
|
||||
copyParamDetailList: '复制参数清单',
|
||||
collectionCompletionTime: '收集完成时间',
|
||||
@@ -1173,6 +1181,7 @@ module.exports = {
|
||||
exportComparisonReport: '导出对比报告',
|
||||
comparisonDifferenceComment: '对比差异评论',
|
||||
fullTextComments: '全文评论',
|
||||
pleaseEnterfullTextComments:'请输入全文评论',
|
||||
fileDeclaration: '文件说明',
|
||||
FileForDetails: '文件详情',
|
||||
Converting: '转换中',
|
||||
@@ -1321,6 +1330,7 @@ module.exports = {
|
||||
documentNumber: '文档编号',
|
||||
documentTitle: '文档标题',
|
||||
bringInDocumentInformation: '带入文档信息',
|
||||
addStandardInformation:'添加标准信息',
|
||||
thereWhichCannotDeleted: '该标题下存在子标题无法进行删除',
|
||||
sdt: '工程接口人',
|
||||
dre: '填写人',
|
||||
@@ -1413,11 +1423,21 @@ module.exports = {
|
||||
firstLevelDirectory:'一级目录',
|
||||
deselectAll:'取消全选',
|
||||
classification:'分类',
|
||||
consistentAssessment:'一致评估',
|
||||
viewConsistentAssessment:'查看一致评估',
|
||||
consistentAssessment:'一致',
|
||||
viewConsistentAssessment:'查看一致项',
|
||||
viewVarianceAssessment:'查看差异项',
|
||||
viewAll:'查看全部',
|
||||
endProcess:'结束流程',
|
||||
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
||||
secondaryDirectory:'二级目录',
|
||||
OnlyPersonsCanBeSelected:'超出最大上限;最多只能选择100个人员',
|
||||
projectVersion:'项目版本',
|
||||
softwareVersion:'认证软件版本',
|
||||
versionStatistics:'版本统计',
|
||||
addSubproject:'添加子项目',
|
||||
Topping:'置顶',
|
||||
cancelTopping:'取消置顶',
|
||||
relatedProjectVersion:'相关项目版本',
|
||||
taskType:'任务类型',
|
||||
taskStatus:'任务状态',
|
||||
taskConfirmationHandling:'任务确认办理',
|
||||
@@ -1431,4 +1451,15 @@ module.exports = {
|
||||
listToConfirm:'待确认',
|
||||
toSubmit:'待提交',
|
||||
toAudit:'待审核',
|
||||
secondaryDirectory:'二级目录',
|
||||
OnlyPersonsCanBeSelected:'超出最大上限;最多只能选择100个人员',
|
||||
projectVersion:'项目版本',
|
||||
softwareVersion:'认证软件版本',
|
||||
versionStatistics:'版本统计',
|
||||
addSubproject:'添加子项目',
|
||||
Topping:'置顶',
|
||||
cancelTopping:'取消置顶',
|
||||
relatedProjectVersion:'相关项目版本',
|
||||
Importfailure:'导入失败',
|
||||
CuiBan:'催办',
|
||||
}
|
||||
@@ -29,6 +29,7 @@
|
||||
:disabled="item.isLock == '1' ? true: false"
|
||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||
@input="onInput"
|
||||
:maxLength="1000"
|
||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||
v-model="item.dataValue"/>
|
||||
</div>
|
||||
@@ -652,7 +653,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<uploadFileChangeDown ref="uploadFile" @uploadSuccess="uploadSuccess"
|
||||
:detailDate='detailDate'></uploadFileChangeDown>
|
||||
:detailDate='detailDate' watermark='download'></uploadFileChangeDown>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -667,6 +668,10 @@
|
||||
type: Object,
|
||||
default: {},
|
||||
require: true
|
||||
},
|
||||
watermark: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
<a-input class="box-input inputWid"
|
||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||
@input="onInput"
|
||||
:maxLength="1000"
|
||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||
v-model="item.dataValue"/>
|
||||
</div>
|
||||
|
||||
@@ -54,6 +54,10 @@ export default {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
paramsManifestId: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
projectLibraryId: {
|
||||
type: String,
|
||||
default: ''
|
||||
@@ -76,6 +80,8 @@ export default {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId
|
||||
} else if (this.projectLibraryId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectLibraryId=' + this.projectLibraryId
|
||||
} else if (this.paramsManifestId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msManifestId=' + this.paramsManifestId
|
||||
}
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
|
||||
}
|
||||
|
||||
@@ -0,0 +1,284 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-upload name="file" :showUploadList="false"
|
||||
class="upload-text"
|
||||
:multiple="false" :headers="tokenHeader"
|
||||
:action="importUrl"
|
||||
@change="handleImport"
|
||||
:accept="accept">
|
||||
<a-icon type="import" :rotate="270"/>
|
||||
{{$t('import')}}
|
||||
</a-upload>
|
||||
<div class="loading-box" v-if="spinning">
|
||||
<div class="loading-content">
|
||||
<a-icon class="loading" type="loading"/>
|
||||
<div class="loading-tips">
|
||||
{{this.$t('Importing')}}...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 错误数据提示-->
|
||||
<a-modal
|
||||
:title="$t('Importfailure')"
|
||||
:width="860"
|
||||
v-model="visibleoperationFailed"
|
||||
:maskClosable="false"
|
||||
:footer="null"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div>
|
||||
<span style='font-size: 16px;margin-bottom: 20px;' v-for='(item,key) in operationFailedValue'>
|
||||
<span v-html="item"></span>
|
||||
</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div class="imports-footer">
|
||||
<div class="imports-footer-wrap">
|
||||
<a-button class="imports-btn" type="primary" @click="cancleoperationFailed">{{$t('cancel')}}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import {ACCESS_TOKEN} from '@/store/mutation-types'
|
||||
import eventBUs from '../../common/event'
|
||||
import {Modal} from 'ant-design-vue'
|
||||
import store from '@/store'
|
||||
export default {
|
||||
name: 'index',
|
||||
props: {
|
||||
url: {
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
//判断当前文档库还是其余的页面
|
||||
isTrue: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
accept: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
projectId: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
dummyInventoryBaseId: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
paramsTemplateId: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
paramsManifestId: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
projectLibraryId: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
||||
spinning: false,
|
||||
operationFailedValue:[],
|
||||
visibleoperationFailed: false, // 数据失败的弹框
|
||||
cut: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
importUrl() {
|
||||
if (this.projectId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectId=' + this.projectId
|
||||
} else if (this.dummyInventoryBaseId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&dummyInventoryBaseId=' + this.dummyInventoryBaseId
|
||||
} else if (this.paramsTemplateId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId
|
||||
} else if (this.projectLibraryId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectLibraryId=' + this.projectLibraryId
|
||||
} else if (this.paramsManifestId) {
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msManifestId=' + this.paramsManifestId
|
||||
}
|
||||
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let long = localStorage.getItem('language')
|
||||
this.cut = ''
|
||||
if (long && long == 'zh-cn') {
|
||||
this.cut = 'cn'
|
||||
} else if (long && long == 'en-us') {
|
||||
this.cut = 'en'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleImport(info) {
|
||||
this.spinning = true
|
||||
if (info.file.status !== 'uploading') {
|
||||
this.$emit('getList')
|
||||
}
|
||||
|
||||
if (info.file.status === 'done') {
|
||||
if (info.file.response.success) {
|
||||
if (info.file.response.code === 201) {
|
||||
let {message} = info.file.response
|
||||
let {name} = info.file
|
||||
let content = []
|
||||
if (message) {
|
||||
message = message.split('</br>')
|
||||
message.forEach(res => {
|
||||
if (res) {
|
||||
content.push( < div > {res} < /div>)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.$warning({
|
||||
title: name,
|
||||
content: (
|
||||
< div >
|
||||
{content}
|
||||
< /div>
|
||||
)
|
||||
})
|
||||
} else {
|
||||
if (this.isTrue) {
|
||||
this.$emit('getList')
|
||||
} else {
|
||||
eventBUs.$emit('searchReset')
|
||||
}
|
||||
console.log(info.file.response.message)
|
||||
if(info.file.response.message == null){
|
||||
console.log(111)
|
||||
this.operationFailedValue = info.file.response.result
|
||||
this.visibleoperationFailed = true
|
||||
}else{
|
||||
this.$message.success(info.file.response.message || `${info.file.name} 文件导入成功`)
|
||||
}
|
||||
}
|
||||
this.spinning = false
|
||||
} else {
|
||||
let data = info.file.response
|
||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||
if ((token && data.message.includes('Token失效')) || (token && data.message.includes('token')) || (token && data.message.includes('用户不存在'))) {
|
||||
this.spinning = false
|
||||
Modal.error({
|
||||
title: '登录已过期',
|
||||
content: '很抱歉,登录已过期,请重新登录',
|
||||
okText: '重新登录',
|
||||
mask: false,
|
||||
onOk: () => {
|
||||
store.dispatch('Logout').then(() => {
|
||||
Vue.ls.remove(ACCESS_TOKEN)
|
||||
window.location.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
let {message} = info.file.response
|
||||
let {name} = info.file
|
||||
let content = []
|
||||
if (message) {
|
||||
message = message.split('</br>')
|
||||
message.forEach(res => {
|
||||
if (res) {
|
||||
content.push( < div > {res} < /div>)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.$warning({
|
||||
title: name,
|
||||
content: (
|
||||
< div >
|
||||
{content}
|
||||
< /div>
|
||||
)
|
||||
})
|
||||
this.spinning = false
|
||||
}
|
||||
} else if (info.file.status === 'error') {
|
||||
if (info.file.response.status === 500) {
|
||||
let data = info.file.response
|
||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||
if ((token && data.message.includes('Token失效')) || (token && data.message.includes('token')) || (token && data.message.includes('用户不存在'))) {
|
||||
Modal.error({
|
||||
title: '登录已过期',
|
||||
content: '很抱歉,登录已过期,请重新登录',
|
||||
okText: '重新登录',
|
||||
mask: false,
|
||||
onOk: () => {
|
||||
store.dispatch('Logout').then(() => {
|
||||
Vue.ls.remove(ACCESS_TOKEN)
|
||||
window.location.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
this.spinning = false
|
||||
} else {
|
||||
this.$message.error(`文件导入失败: ${info.file.msg} `)
|
||||
this.spinning = false
|
||||
}
|
||||
}
|
||||
},
|
||||
// 错误数据的弹框
|
||||
cancleoperationFailed() {
|
||||
this.operationFailedValue = []
|
||||
this.visibleoperationFailed = false
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.upload-text .ant-upload {
|
||||
font-size: 14px !important;
|
||||
font-weight: 400 !important;
|
||||
color: #040B29 !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>
|
||||
@@ -21,11 +21,11 @@
|
||||
<!-- <span v-if="ol.text==$t('check')">-->
|
||||
<!-- {{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}-->
|
||||
<!-- </span>-->
|
||||
<span v-if="ol.text==$t('download') && record.createBy == userData.username"
|
||||
<span v-if="ol.text==$t('download') && (record.createBy == userData.username || administrators)"
|
||||
v-has="'ocr:ocrRestful:downFile'">
|
||||
{{record.resultContent=='转换成功'?ol.text:''}}
|
||||
</span>
|
||||
<span v-if="ol.text==$t('delete') && record.createBy == userData.username" v-has="'ocr:ocrRecord:delete'">
|
||||
<span v-if="ol.text==$t('delete') && (record.createBy == userData.username || administrators)" v-has="'ocr:ocrRecord:delete'">
|
||||
{{ol.text}}
|
||||
</span>
|
||||
</a>
|
||||
@@ -105,7 +105,8 @@
|
||||
searchParmes: {},
|
||||
loading: false,
|
||||
orderBy: '1',
|
||||
orderByField: ''
|
||||
orderByField: '',
|
||||
administrators:false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -131,6 +132,14 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
this.userData = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
|
||||
@@ -1,16 +1,33 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="box-title-text" v-if="!isInput">
|
||||
<a-input class="box-input" :value="value" @input="indexclick($event)"
|
||||
:disabled="true"
|
||||
:title="value"
|
||||
:placeholder="$t('PleaseSelect')+query.db_field_txt"/>
|
||||
<div class="itemModelStand-select" v-if="!isInput">
|
||||
<a-select
|
||||
class="itemModelStand-input"
|
||||
:value="valueSelect"
|
||||
@change="onChange"
|
||||
mode="multiple"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseSelect')+query.db_field_txt"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode">
|
||||
<a-select-option
|
||||
v-for="(item,index) in dictOptions"
|
||||
:key="index"
|
||||
:value="item.value">
|
||||
<span class="itemOption" :title="item.title">
|
||||
{{ item.title }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<!-- <a-input class="box-input" :value="value" @input="indexclick($event)"-->
|
||||
<!-- :disabled="true"-->
|
||||
<!-- :title="value"-->
|
||||
<!-- :placeholder="$t('PleaseSelect')+query.db_field_txt"/>-->
|
||||
<a-button type="primary" class="button-box" :disabled="disabled" @click="standardClick">
|
||||
{{this.$t('PersonnelSelection')}}
|
||||
</a-button>
|
||||
<a-button type="primary" v-if='isDelete' class="button-box" @click="standardDelete">
|
||||
{{this.$t('delete')}}
|
||||
</a-button>
|
||||
<!-- <a-button type="primary" v-if='isDelete' class="button-box" @click="standardDelete">-->
|
||||
<!-- {{this.$t('delete')}}-->
|
||||
<!-- </a-button>-->
|
||||
</div>
|
||||
<div class="box-title-text" v-if="isInput">
|
||||
<a-input :class="{'box-input':!isClass}" :value="value"
|
||||
@@ -34,24 +51,23 @@
|
||||
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
|
||||
<!-- <virtualNodeTree-->
|
||||
<!-- v-if="treeVisible"-->
|
||||
<!-- ref="virtualNodeTreeRef"-->
|
||||
<!-- :keeps="40"-->
|
||||
<!-- show-checkbox-->
|
||||
<!-- v-model="checkboxList"-->
|
||||
<!-- class="treeWrap"-->
|
||||
<!-- :props="{-->
|
||||
<!-- isLeaf: 'leaf'-->
|
||||
<!-- }"-->
|
||||
<!-- :defaultCheckedKeys="defaultCheckedKeys"-->
|
||||
<!-- :defaultExpandAll="defaultExpandAll"-->
|
||||
<!-- :check-strictly="false"-->
|
||||
<!-- node-key="id"-->
|
||||
<!-- @check-change="handleCheckChange"-->
|
||||
<!-- @check="handleCheckChange"-->
|
||||
<!-- @check-change="checkChange"-->
|
||||
<!-- :data.sync="gData">-->
|
||||
<!-- <span slot-scope="{ data }">-->
|
||||
<!-- <span :class="{'active':data.color ? true:false}">-->
|
||||
<!-- {{ data.title }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span slot-scope="{ data }">-->
|
||||
<!-- <span :class="{'active':data.color ? true:false}">-->
|
||||
<!-- {{ data.title }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </virtualNodeTree>-->
|
||||
<a-tree
|
||||
style="margin-bottom: 60px;height: 600px"
|
||||
@@ -72,7 +88,6 @@
|
||||
<a-button @click="handleSubmit" type="primary">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -92,6 +107,8 @@
|
||||
return {
|
||||
loading: false,
|
||||
gData: [],
|
||||
valueSelect: [],
|
||||
dictOptions: [],
|
||||
autoExpandParent: false,
|
||||
checkboxList: [],
|
||||
expandedKeys: [],
|
||||
@@ -107,29 +124,71 @@
|
||||
defaultCheckedKeysName: [],
|
||||
content: [],
|
||||
dataList: [],
|
||||
defaultExpandAll: false
|
||||
defaultExpandAll: false,
|
||||
searchData: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.valueSelect = []
|
||||
this.dictOptions = []
|
||||
setTimeout(() => {
|
||||
if (this.value) {
|
||||
let contentName = []
|
||||
let contentId = []
|
||||
if (this.personneQuery[this.query.db_field_name + 'Name']) {
|
||||
contentName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
|
||||
} else if (this.personneQuery[this.query.db_field_name]) {
|
||||
contentName = this.personneQuery[this.query.db_field_name].split(',')
|
||||
} else {
|
||||
contentName = []
|
||||
}
|
||||
if (this.personneQuery[this.query.db_field_name + '_id']) {
|
||||
contentId = this.personneQuery[this.query.db_field_name + '_id'].split(',')
|
||||
} else if (this.personneQuery[this.query.db_field_name]) {
|
||||
contentId = this.personneQuery[this.query.db_field_name].split(',')
|
||||
} else {
|
||||
contentId = []
|
||||
}
|
||||
contentId.forEach((res, index) => {
|
||||
this.dictOptions.push({
|
||||
value: res,
|
||||
title: contentName[index]
|
||||
})
|
||||
this.valueSelect.push(res)
|
||||
})
|
||||
}
|
||||
}, 600)
|
||||
},
|
||||
methods: {
|
||||
// handleCheckChange(val, checked, indeterminate) {
|
||||
// if (checked) {
|
||||
// this.userName.push(val.title)
|
||||
// this.userIds.push(val.id)
|
||||
// } else {
|
||||
// for (let i = 0; i < this.userName.length; i++) {
|
||||
// if (this.userName[i] == val.title) {
|
||||
// checkChange(val, checked, indeterminate) {
|
||||
// if (!checked && this.searchData) {
|
||||
// this.userName = this.userName.filter(res => {
|
||||
// return res != val.title
|
||||
// })
|
||||
// this.userIds = this.userIds.filter(res => {
|
||||
// return res != val.id
|
||||
// })
|
||||
// for (let i = 0; i < this.userIds.length; i++) {
|
||||
// if (this.userIds[i] == val.parentId) {
|
||||
// this.userIds.splice(i, 1)
|
||||
// this.userName.splice(i, 1)
|
||||
// i--
|
||||
// }
|
||||
// }
|
||||
// for (let i = 0; i < this.userIds.length; i++) {
|
||||
// if (this.userIds[i] == val.id) {
|
||||
// this.userIds.splice(i, 1)
|
||||
// i--
|
||||
// }
|
||||
// } else if (checked && this.searchData) {
|
||||
// this.userName.push(val.title)
|
||||
// this.userIds.push(val.id)
|
||||
// }
|
||||
// },
|
||||
// handleCheckChange(val, data, checked) {
|
||||
// if (!this.searchData) {
|
||||
// this.userName = []
|
||||
// this.userIds = []
|
||||
// if (data.checkedNodes && data.checkedNodes.length > 0) {
|
||||
// data.checkedNodes.forEach(res => {
|
||||
// this.userName.push(res.title)
|
||||
// this.userIds.push(res.id)
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
@@ -137,6 +196,7 @@
|
||||
this.treeVisible = false
|
||||
this.departId = ''
|
||||
this.searchModel = ''
|
||||
this.searchData = ''
|
||||
this.userIds = []
|
||||
this.userName = []
|
||||
this.queryDepartUserTreeList(1)
|
||||
@@ -181,8 +241,28 @@
|
||||
// }
|
||||
// }, 200)
|
||||
},
|
||||
// deleteChildren(value, arr) {
|
||||
// let newarr = []
|
||||
// arr.forEach(element => {
|
||||
// if (element.title.indexOf(value) > -1) { // 判断条件
|
||||
// newarr.push(element)
|
||||
// } else {
|
||||
// if (element.children && element.children.length > 0) {
|
||||
// let redata = this.deleteChildren(value, element.children)
|
||||
// if (redata && redata.length > 0) {
|
||||
// let obj = {
|
||||
// ...element,
|
||||
// children: redata
|
||||
// }
|
||||
// newarr.push(obj)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// return newarr
|
||||
// },
|
||||
//将数据拼成树形结构
|
||||
// toTree(config) {
|
||||
// toTree(config, num) {
|
||||
// // 删除 所有 children,以防止多次调用
|
||||
// config.forEach(function(item) {
|
||||
// delete item.children
|
||||
@@ -200,6 +280,7 @@
|
||||
// config.forEach((item) => {
|
||||
// // 以当前遍历项,的pid,去map对象中找到索引的id
|
||||
// let parent = map[item.parentId]
|
||||
//
|
||||
// // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
||||
// if (parent) {
|
||||
// (parent.children || (parent.children = [])).push(item)
|
||||
@@ -279,6 +360,28 @@
|
||||
this.visible = false
|
||||
this.treeVisible = false
|
||||
},
|
||||
onChange(value) {
|
||||
this.valueSelect = value
|
||||
console.log(this.valueSelect)
|
||||
console.log(this.dictOptions)
|
||||
this.userIds = []
|
||||
this.userName = []
|
||||
if (this.valueSelect && this.valueSelect.length > 0) {
|
||||
value.forEach(res => {
|
||||
this.dictOptions.forEach(val => {
|
||||
if (res == val.value) {
|
||||
this.userIds.push(val.value)
|
||||
this.userName.push(val.title)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||
let userName = JSON.parse(JSON.stringify(this.userName))
|
||||
console.log(userIds)
|
||||
this.$emit('input', userName.join(','))
|
||||
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
|
||||
},
|
||||
handleSubmit() {
|
||||
// if (this.userIds && this.userIds.length > 0) {
|
||||
if (this.isSingleChoice) {
|
||||
@@ -295,6 +398,19 @@
|
||||
// userIds = userIds.filter(function(item, index) {
|
||||
// return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
||||
// })
|
||||
if (!this.isInput) {
|
||||
this.dictOptions = []
|
||||
this.valueSelect = []
|
||||
if (userIds && userIds.length > 0) {
|
||||
userIds.forEach((res, index) => {
|
||||
this.dictOptions.push({
|
||||
title: userName[index],
|
||||
value: res
|
||||
})
|
||||
this.valueSelect.push(res)
|
||||
})
|
||||
}
|
||||
}
|
||||
this.$emit('input', userName.join(','))
|
||||
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
|
||||
this.visible = false
|
||||
@@ -312,12 +428,12 @@
|
||||
this.defaultCheckedKeys = []
|
||||
},
|
||||
onSearch(e) {
|
||||
// this.loading = true
|
||||
// this.treeVisible = false
|
||||
// let p = new Promise((resolve, reject) => {
|
||||
// resolve()
|
||||
// })
|
||||
// p.then(() => {
|
||||
// this.searchData = e
|
||||
// let gData = localStorage.getItem('gData')
|
||||
// let content = []
|
||||
// if (gData) {
|
||||
@@ -328,15 +444,18 @@
|
||||
// res.color = true
|
||||
// content.push(res)
|
||||
// }
|
||||
// } else if (res.type == 'Depart') {
|
||||
// if (!this.selectDepartment) {
|
||||
// res.disabled = true
|
||||
// }
|
||||
// content.push(res)
|
||||
// }
|
||||
// // else if(res.type == 'Depart'){
|
||||
// // content.push(res)
|
||||
// // }
|
||||
// })
|
||||
// let gDataAdmin = this.toTree(content)
|
||||
// this.gData = this.deleteChildren(e, gDataAdmin)
|
||||
// this.defaultExpandAll = true
|
||||
// this.gData = this.toTree(content)
|
||||
// this.treeVisible = true
|
||||
// this.defaultCheckedKeys = this.userIds
|
||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||
// this.loading = false
|
||||
// } else {
|
||||
// let content = JSON.parse(gData)
|
||||
// if (!this.selectDepartment) {
|
||||
@@ -348,12 +467,12 @@
|
||||
// }
|
||||
// this.gData = this.toTree(content)
|
||||
// this.defaultExpandAll = false
|
||||
// this.defaultCheckedKeys = this.userIds
|
||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||
// this.treeVisible = true
|
||||
// this.loading = false
|
||||
// }
|
||||
// }
|
||||
// this.defaultCheckedKeys = this.userIds
|
||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||
// this.treeVisible = true
|
||||
// this.loading = false
|
||||
// })
|
||||
this.gData = []
|
||||
this.departId = ''
|
||||
@@ -476,11 +595,18 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModelStand-input {
|
||||
width: calc(100% - 100px);
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.button-box {
|
||||
width: 90px;
|
||||
margin-left: 10px;
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
|
||||
float: right;
|
||||
}
|
||||
|
||||
.drawer-bootom-button {
|
||||
@@ -552,4 +678,18 @@
|
||||
color: #21c9cc;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.itemOption {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.itemModelStand-select .ant-select-dropdown--multiple {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
@@ -18,7 +18,7 @@
|
||||
<!-- <span class="text">-->
|
||||
<!-- {{ol.text}}-->
|
||||
<!-- </span>-->
|
||||
<span v-if="ol.text==$t('backDocument')&&record.flag==0 && record.createBy == userData.username"
|
||||
<span v-if="ol.text==$t('backDocument') && record.flag==0 && (record.createBy == userData.username || administrators)"
|
||||
class="text"
|
||||
v-has="'split:sarFileSplitInfo:bind'">
|
||||
{{ol.text}}
|
||||
@@ -27,7 +27,7 @@
|
||||
v-has="'split:sarFileSplitItems:page'">
|
||||
{{ol.text}}
|
||||
</span>
|
||||
<span v-if="ol.text==$t('delete') && record.createBy == userData.username"
|
||||
<span v-if="ol.text==$t('delete') && (record.createBy == userData.username || administrators)"
|
||||
v-has="'split:sarFileSplitInfo:delete'">
|
||||
{{ol.text}}
|
||||
</span>
|
||||
@@ -109,7 +109,8 @@
|
||||
loading: false,
|
||||
orderBy: '1',
|
||||
userData: {},
|
||||
orderByField: ''
|
||||
orderByField: '',
|
||||
administrators:false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -141,6 +142,14 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
this.userData = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
eventBUs.$off('searchQuery')
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
return str
|
||||
},
|
||||
handleOk() {
|
||||
// if (!this.isNullArray(this.queryParamsModel)) {
|
||||
if (!this.isNullArray(this.queryParamsModel)) {
|
||||
let event = {
|
||||
matchType: this.matchType,
|
||||
params: this.removeEmptyObject(this.queryParamsModel)
|
||||
@@ -407,9 +407,9 @@
|
||||
this.visible = false
|
||||
}
|
||||
this.emitCallback(event)
|
||||
// } else {
|
||||
// this.$message.warn(this.$t('CannotQueryEmpty'))
|
||||
// }
|
||||
} else {
|
||||
this.$message.warn(this.$t('CannotQueryEmpty'))
|
||||
}
|
||||
},
|
||||
emitCallback(event = {}) {
|
||||
let { params = [], matchType = this.matchType } = event
|
||||
|
||||
@@ -150,6 +150,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||
<PersonnelSelection :query="item"
|
||||
v-if="isFormInline"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
|
||||
@@ -15,6 +15,26 @@
|
||||
allowClear
|
||||
:placeholder="$t('NodeQuickLookup')"/>
|
||||
<div class="drawer-content">
|
||||
<!-- <virtualNodeTree-->
|
||||
<!-- v-if="treeVisible"-->
|
||||
<!-- ref="virtualNodeTreeRef"-->
|
||||
<!-- :keeps="40"-->
|
||||
<!-- show-checkbox-->
|
||||
<!-- v-model="checkboxList"-->
|
||||
<!-- class="treeWrap"-->
|
||||
<!-- :defaultCheckedKeys="defaultCheckedKeys"-->
|
||||
<!-- :defaultExpandAll="defaultExpandAll"-->
|
||||
<!-- :check-strictly="false"-->
|
||||
<!-- node-key="id"-->
|
||||
<!-- @check="handleCheckChange"-->
|
||||
<!-- @check-change="checkChange"-->
|
||||
<!-- :data.sync="gData">-->
|
||||
<!-- <span slot-scope="{ data }">-->
|
||||
<!-- <span :class="{'active':data.color ? true:false}">-->
|
||||
<!-- {{ data.title }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </virtualNodeTree>-->
|
||||
<a-tree
|
||||
v-if="visibleTree"
|
||||
style="margin-bottom: 60px;height: 600px"
|
||||
@@ -40,15 +60,20 @@
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import eventBUs from '../../common/event'
|
||||
import virtualNodeTree from '@/components/virtualNodeTree/tree'
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
components: {
|
||||
virtualNodeTree
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
gData: [],
|
||||
searchModel: '',
|
||||
autoExpandParent: true,
|
||||
expandedKeys: [],
|
||||
checkboxList: [],
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
selectedKey: [],
|
||||
@@ -56,28 +81,135 @@
|
||||
userIds: [],
|
||||
departId: '',
|
||||
defaultExpandedKeys: [],
|
||||
defaultExpandAll: false,
|
||||
defaultCheckedKeys: [],
|
||||
content: [],
|
||||
userName: [],
|
||||
submitLoading: false,
|
||||
visibleTree: false
|
||||
visibleTree: false,
|
||||
treeVisible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// checkChange(val, checked, indeterminate) {
|
||||
// if (!checked && this.searchData) {
|
||||
// this.userName = this.userName.filter(res => {
|
||||
// return res != val.title
|
||||
// })
|
||||
// this.userIds = this.userIds.filter(res => {
|
||||
// return res != val.id
|
||||
// })
|
||||
// for (let i = 0; i < this.userIds.length; i++) {
|
||||
// if (this.userIds[i] == val.parentId) {
|
||||
// this.userIds.splice(i, 1)
|
||||
// this.userName.splice(i, 1)
|
||||
// i--
|
||||
// }
|
||||
// }
|
||||
// } else if (checked && this.searchData) {
|
||||
// this.userName.push(val.title)
|
||||
// this.userIds.push(val.id)
|
||||
// }
|
||||
// },
|
||||
// handleCheckChange(val, data, checked) {
|
||||
// if (!this.searchData) {
|
||||
// this.userName = []
|
||||
// this.userIds = []
|
||||
// if (data.checkedNodes && data.checkedNodes.length > 0) {
|
||||
// data.checkedNodes.forEach(res => {
|
||||
// this.userName.push(res.title)
|
||||
// this.userIds.push(res.id)
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
getPush(data) {
|
||||
this.tableKey = data
|
||||
this.userName = []
|
||||
this.userIds = []
|
||||
this.content = []
|
||||
this.defaultCheckedKeys = []
|
||||
this.searchModel = ''
|
||||
this.visible = true
|
||||
this.visibleTree = false
|
||||
this.treeVisible = false
|
||||
this.$nextTick(() => {
|
||||
this.departId = ''
|
||||
this.queryDepartUserTreeList()
|
||||
})
|
||||
// let gData = localStorage.getItem('gData')
|
||||
// if (gData) {
|
||||
// let dataList = JSON.parse(gData)
|
||||
// dataList.forEach(res => {
|
||||
// if (res.type == 'Depart') {
|
||||
// res.disabled = true
|
||||
// }
|
||||
// })
|
||||
// this.dataList = this.toTree(dataList)
|
||||
// }
|
||||
// setTimeout(() => {
|
||||
// if (gData) {
|
||||
// this.gData = this.dataList
|
||||
// this.gData = [...this.gData]
|
||||
// this.treeVisible = true
|
||||
// } else {
|
||||
// this.queryDepartUserTreeList(1)
|
||||
// }
|
||||
// }, 200)
|
||||
},
|
||||
// deleteChildren(value, arr) {
|
||||
// let newarr = []
|
||||
// arr.forEach(element => {
|
||||
// if (element.title.indexOf(value) > -1) { // 判断条件
|
||||
// newarr.push(element)
|
||||
// } else {
|
||||
// if (element.children && element.children.length > 0) {
|
||||
// let redata = this.deleteChildren(value, element.children)
|
||||
// if (redata && redata.length > 0) {
|
||||
// let obj = {
|
||||
// ...element,
|
||||
// children: redata
|
||||
// }
|
||||
// newarr.push(obj)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// return newarr
|
||||
// },
|
||||
// // 将数据拼成树形结构
|
||||
// toTree(config, num) {
|
||||
// // 删除 所有 children,以防止多次调用
|
||||
// config.forEach(function(item) {
|
||||
// delete item.children
|
||||
// })
|
||||
// // 将数据存储为 以 id 为 KEY 的 map 索引数据列
|
||||
// let map = {}
|
||||
// config.forEach((item) => {
|
||||
// item.label = item.name
|
||||
// item.key = item.id
|
||||
//
|
||||
// item.title = item.name + (item.itemName ? ' ' + item.itemName : '')
|
||||
// map[item.id] = item
|
||||
// })
|
||||
// let val = []
|
||||
// config.forEach((item) => {
|
||||
// // 以当前遍历项,的pid,去map对象中找到索引的id
|
||||
// let parent = map[item.parentId]
|
||||
//
|
||||
// // 如果找到索引,那么说明此项不在顶级当中,那么需要把此项添加到,他对应的父级中
|
||||
// if (parent) {
|
||||
// (parent.children || (parent.children = [])).push(item)
|
||||
// } else {
|
||||
// //如果没有在map中找到对应的索引ID,那么直接把 当前的item添加到 val结果集中,作为顶级
|
||||
// val.push(item)
|
||||
// }
|
||||
// })
|
||||
// return val
|
||||
// },
|
||||
onSelect(selectedKeys) {
|
||||
this.selectedKey = selectedKeys
|
||||
},
|
||||
@@ -125,6 +257,47 @@
|
||||
})
|
||||
},
|
||||
onSearch(e) {
|
||||
// this.treeVisible = false
|
||||
// let p = new Promise((resolve, reject) => {
|
||||
// resolve()
|
||||
// })
|
||||
// p.then(() => {
|
||||
// this.searchData = e
|
||||
// let gData = localStorage.getItem('gData')
|
||||
// let content = []
|
||||
// if (gData) {
|
||||
// if (e) {
|
||||
// JSON.parse(gData).forEach(res => {
|
||||
// if (res.type == 'User') {
|
||||
// if (res.name.includes(e)) {
|
||||
// res.color = true
|
||||
// content.push(res)
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// let gDataAdmin = this.toTree(content)
|
||||
// this.gData = this.deleteChildren(e, gDataAdmin)
|
||||
// this.defaultExpandAll = true
|
||||
// this.treeVisible = true
|
||||
// this.defaultCheckedKeys = this.userIds
|
||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||
// this.loading = false
|
||||
// } else {
|
||||
// let content = JSON.parse(gData)
|
||||
// content.forEach(res => {
|
||||
// if (res.type == 'Depart') {
|
||||
// res.disabled = true
|
||||
// }
|
||||
// })
|
||||
// this.gData = this.toTree(content)
|
||||
// this.defaultExpandAll = false
|
||||
// this.defaultCheckedKeys = this.userIds
|
||||
// this.defaultCheckedKeys = [...this.defaultCheckedKeys]
|
||||
// this.treeVisible = true
|
||||
// this.loading = false
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
this.gData = []
|
||||
this.departId = ''
|
||||
this.visibleTree = false
|
||||
@@ -136,8 +309,8 @@
|
||||
},
|
||||
getUserAndDepart() {
|
||||
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
||||
if (res){
|
||||
this.gData = res.filter(ele => ele.flag === 'DEPART');
|
||||
if (res) {
|
||||
this.gData = res.filter(ele => ele.flag === 'DEPART')
|
||||
} else {
|
||||
this.gData = []
|
||||
}
|
||||
@@ -159,8 +332,20 @@
|
||||
}).then((res) => {
|
||||
this.confirmLoading = false
|
||||
if (res.success) {
|
||||
// let content = JSON.parse(JSON.stringify(res.result))
|
||||
// res.result.forEach(res => {
|
||||
// if (res.type == 'Depart') {
|
||||
// res.disabled = true
|
||||
// }
|
||||
// })
|
||||
// localStorage.removeItem('gData')
|
||||
// localStorage.setItem('gData', JSON.stringify(content))
|
||||
// this.gData = this.toTree(res.result)
|
||||
this.gData = res.result
|
||||
this.defaultExpandedKeys = [this.departId]
|
||||
this.gData = [...this.gData]
|
||||
// this.defaultExpandedKeys = [this.departId]
|
||||
this.defaultExpandAll = false
|
||||
this.treeVisible = true
|
||||
this.visibleTree = true
|
||||
} else {
|
||||
this.gData = []
|
||||
@@ -243,4 +428,13 @@
|
||||
height: calc(100% - 60px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.treeWrap {
|
||||
height: calc(100vh - 240px);
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #21c9cc;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
:data-source="dataSource"
|
||||
:loading="loading"
|
||||
sticky
|
||||
:components="components"
|
||||
:columns="columns"
|
||||
:rowClassName="rowClassName"
|
||||
@change="tableOnChange"
|
||||
@@ -20,12 +19,16 @@
|
||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||
{{ text }}
|
||||
</span>
|
||||
<span slot="paramsName" slot-scope="text,record">
|
||||
<span class="textName" :title="text">{{text}}</span>
|
||||
</span>
|
||||
<div :slot="'titleName'+(index+1)" v-for="(item,index) in content">
|
||||
<span v-if='item.isLock == 1' style='padding-right: 20px'><a-icon type="lock" theme="twoTone" two-tone-color="#00B3BE" /></span>
|
||||
<span style='padding-right: 10px;margin-left: -16px'>{{ item.db_field_txt }} </span>
|
||||
<span v-if='item.isLock == 1' style='padding-right: 20px'><a-icon type="lock" theme="twoTone"
|
||||
two-tone-color="#00B3BE"/></span>
|
||||
<span style='padding-right: 10px'>{{ item.db_field_txt }} </span>
|
||||
<a-button @click='onClickSee(item)'>{{$t('See')}}</a-button>
|
||||
</div>
|
||||
<!-- {{ text && text.length > 8 ? text.slice(0, 7) + '...' : text }}-->
|
||||
<!-- {{ text && text.length > 8 ? text.slice(0, 7) + '...' : text }}-->
|
||||
<span slot="ParameterDescription" slot-scope="text,record" :title="text">
|
||||
|
||||
<a-button @click='onClickTitle(record)'>{{$t('See')}}</a-button>
|
||||
@@ -56,7 +59,7 @@
|
||||
<span
|
||||
v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "To be collected" || record.state == "Rejected by eng. interface"'>
|
||||
<span :title='record.dataValue'
|
||||
@click='ondataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||
@click='ondataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||
</span>
|
||||
<span v-else>
|
||||
<span :title='record.dataValue' @click='dataValueTobe(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue }}</span>
|
||||
@@ -136,14 +139,14 @@
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='24'>
|
||||
<a-form-model-item ref='region' :label="$t('areaOfResponsibility')" prop='queryzr'>
|
||||
<!-- <a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
||||
<!-- v-model="Dateline.querySdt">-->
|
||||
<!-- <a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">-->
|
||||
<!-- <span style="display: inline-block;width: 100%" :title=" item.label ">-->
|
||||
<!-- {{ item.label }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-select-option>-->
|
||||
<!-- </a-select>-->
|
||||
<!-- <a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
||||
<!-- v-model="Dateline.querySdt">-->
|
||||
<!-- <a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">-->
|
||||
<!-- <span style="display: inline-block;width: 100%" :title=" item.label ">-->
|
||||
<!-- {{ item.label }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-select-option>-->
|
||||
<!-- </a-select>-->
|
||||
<j-dict-select-tag class="box-input" v-model="Dateline.queryzr"
|
||||
@input="handleInput('queryzr')"
|
||||
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||
@@ -156,7 +159,8 @@
|
||||
<div class="imports-footer">
|
||||
<div class="imports-footer-wrap">
|
||||
|
||||
<a-button class="imports-btn imports-sub" :loading="confirmLoading" type="primary" @click="handleSubmitzr">{{$t('preservation')}}
|
||||
<a-button class="imports-btn imports-sub" :loading="confirmLoading" type="primary" @click="handleSubmitzr">
|
||||
{{$t('preservation')}}
|
||||
</a-button>
|
||||
<a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button>
|
||||
</div>
|
||||
@@ -236,7 +240,7 @@
|
||||
default: {},
|
||||
require: true
|
||||
},
|
||||
description:'',
|
||||
description: '',
|
||||
formInline: {
|
||||
type: Object,
|
||||
default: true
|
||||
@@ -301,7 +305,7 @@
|
||||
indeterminate: false,
|
||||
columns: [],
|
||||
content: [],
|
||||
confirmLoading:false,
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
selectedRowrowValue: [],
|
||||
dataSource: [],
|
||||
@@ -317,7 +321,7 @@
|
||||
sdt: 0, // 工程接口人
|
||||
dre: 0, // 填写人
|
||||
areaVisible: false,
|
||||
areaVisiblezr:false,
|
||||
areaVisiblezr: false,
|
||||
form: {},
|
||||
rules: {
|
||||
querySdt: [
|
||||
@@ -343,13 +347,13 @@
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 }
|
||||
},
|
||||
queryParamQuery:{},
|
||||
queryParam:{},
|
||||
queryParamQuery: {},
|
||||
queryParam: {},
|
||||
querySdtList: [], // 工程接口人
|
||||
Dateline: {},
|
||||
getquerySdtId: '', // 当前工程接口人的id
|
||||
areaVisibleView: false, // 查看配置得弹框
|
||||
seeVisibleView:false,
|
||||
seeVisibleView: false,
|
||||
configDetail: {} // 查看配置得详细信息
|
||||
}
|
||||
},
|
||||
@@ -395,7 +399,7 @@
|
||||
this.$emit('handlePreservation')
|
||||
this.getTableList()
|
||||
},
|
||||
onClickTitle(val){
|
||||
onClickTitle(val) {
|
||||
console.log(val)
|
||||
this.description = val.description
|
||||
this.seeVisibleView = true
|
||||
@@ -456,7 +460,11 @@
|
||||
// 责任领域 保存
|
||||
handleSubmitzr(record) {
|
||||
let _this = this
|
||||
let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
|
||||
let param = {
|
||||
dutyTerritory: this.Dateline.queryzr,
|
||||
ids: this.getquerySdtId,
|
||||
paramsManifestId: this.$route.query.id
|
||||
}
|
||||
this.$refs.ruleFormOne.validate(valid => {
|
||||
if (valid) {
|
||||
this.confirmLoading = true
|
||||
@@ -539,7 +547,7 @@
|
||||
this.areaVisible = false
|
||||
this.$refs['ruleForm'].resetFields()
|
||||
},
|
||||
cancel(){
|
||||
cancel() {
|
||||
this.areaVisiblezr = false
|
||||
this.$refs['ruleFormOne'].resetFields()
|
||||
},
|
||||
@@ -598,16 +606,18 @@
|
||||
}
|
||||
getAction('/params/userTypeLog/queryCurrentType', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.queryParamQuery = {...this.queryParamQuery}
|
||||
this.queryParamQuery = { ...this.queryParamQuery }
|
||||
|
||||
if (res.result && res.result.userType) {
|
||||
if (!(result.some(val => val.value == res.result.userType))) {
|
||||
res.result.userType = result[0] ? result[0].value : ''
|
||||
}
|
||||
this.getTableList(res.result.userType)
|
||||
this.getHeader(res.result.userType)
|
||||
|
||||
} else {
|
||||
this.getTableList(result[0].value)
|
||||
this.getHeader(result[0].value)
|
||||
}
|
||||
this.$emit('LoginUserType', result, this.currentPersonRole, res.result.userType)
|
||||
} else {
|
||||
@@ -615,7 +625,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
getHeader() {
|
||||
getHeader(userType) {
|
||||
let paramsManifestid
|
||||
let url
|
||||
if (this.$route.query.it === undefined) {
|
||||
@@ -660,25 +670,27 @@
|
||||
dataIndex: res.db_field_name,
|
||||
align: 'center',
|
||||
// ellipsis: true,
|
||||
fixed: res.click5?'left':'',
|
||||
fixed: res.click5 ? 'left' : '',
|
||||
sorter: res.sort,
|
||||
width: 160
|
||||
})
|
||||
console.log(res)
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'titleName'
|
||||
}
|
||||
if(res.click1){
|
||||
if (res.db_field_name == 'nioNumber') {
|
||||
this.columns[index].width = 100
|
||||
}
|
||||
if (res.click1) {
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'operationzr'
|
||||
}
|
||||
}
|
||||
if(res.click2){
|
||||
if (res.click2) {
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'ParameterDescription'
|
||||
}
|
||||
}
|
||||
if(res.click3){
|
||||
if (res.click3) {
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'paramsNameDescription'
|
||||
}
|
||||
@@ -689,6 +701,12 @@
|
||||
customRender: 'operationbtn'
|
||||
}
|
||||
}
|
||||
if (res.db_field_name == 'paramsName') {
|
||||
this.columns[index].width = 300
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'paramsName'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.columns = [...this.columns]
|
||||
@@ -705,7 +723,7 @@
|
||||
let params = {
|
||||
paramsManifestId: this.$route.query.id,
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
pageSize: this.pageSize
|
||||
// userTypes: this.currentPersonRole
|
||||
}
|
||||
let url
|
||||
@@ -810,7 +828,7 @@
|
||||
// })
|
||||
let tt = []
|
||||
if (this.currentPersonRole !== 'dre') {
|
||||
console.log(res.result.records,'res.result.records')
|
||||
console.log(res.result.records, 'res.result.records')
|
||||
res.result.records.forEach((Obj) => {
|
||||
Object.keys(Obj).forEach((item) => {
|
||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||
@@ -910,6 +928,7 @@
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
//::v-deep .ant-table-row:first-child {
|
||||
// background: #fff!important;
|
||||
// /*opacity: 0.9;*/
|
||||
@@ -950,6 +969,7 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.textfield {
|
||||
width: 100%;
|
||||
margin-bottom: 8px;
|
||||
@@ -979,6 +999,19 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.textName {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
text-overflow: ellipsis;
|
||||
/*! autoprefixer: off */
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
/*! autoprefixer: on;*/
|
||||
text-justify: inter-ideograph;
|
||||
word-break: break-all
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.resize-table-th {
|
||||
@@ -999,7 +1032,7 @@
|
||||
}
|
||||
|
||||
.rowClassRed {
|
||||
background: #f3d9de ;
|
||||
background: #f3d9de;
|
||||
}
|
||||
|
||||
.rowClassRedYellow {
|
||||
|
||||
@@ -28,22 +28,25 @@
|
||||
|
||||
<a-button @click='onClickTitle(record)'>{{$t('See')}}</a-button>
|
||||
</span>
|
||||
<!-- <span slot="operationbtn" slot-scope="record">-->
|
||||
<!-- <span v-if='currentPersonRole === "homo"'>-->
|
||||
<!--<!– 认证工程师 –>-->
|
||||
<!-- <span-->
|
||||
<!-- v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>-->
|
||||
<!--<!– <span–>-->
|
||||
<!--<!– @click='ondataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>–>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span v-else>-->
|
||||
<!-- <span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span v-else>-->
|
||||
<!-- <span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<span slot="paramsName" slot-scope="text,record">
|
||||
<span class="textName" :title="text">{{text}}</span>
|
||||
</span>
|
||||
<!-- <span slot="operationbtn" slot-scope="record">-->
|
||||
<!-- <span v-if='currentPersonRole === "homo"'>-->
|
||||
<!--<!– 认证工程师 –>-->
|
||||
<!-- <span-->
|
||||
<!-- v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>-->
|
||||
<!--<!– <span–>-->
|
||||
<!--<!– @click='ondataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>–>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span v-else>-->
|
||||
<!-- <span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span v-else>-->
|
||||
<!-- <span @click='dataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<span slot="detailClick" slot-scope="text,record">
|
||||
<collection-type :detailDate='text'/>
|
||||
</span>
|
||||
@@ -99,7 +102,8 @@
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 配置信息--->
|
||||
<a-modal v-model="areaVisibleView" :title="$t('configurationInformation')" width='550px' :footer="null" @cancel="hideModal">
|
||||
<a-modal v-model="areaVisibleView" :title="$t('configurationInformation')" width='550px' :footer="null"
|
||||
@cancel="hideModal">
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('configurationName')">{{$t('configurationName')}}:</span>
|
||||
@@ -246,7 +250,7 @@
|
||||
sdt: 0, // 工程接口人
|
||||
dre: 0, // 填写人
|
||||
areaVisible: false,
|
||||
seeVisibleView:false,
|
||||
seeVisibleView: false,
|
||||
form: {},
|
||||
rules: {
|
||||
querySdt: [
|
||||
@@ -293,7 +297,7 @@
|
||||
return 'rowClassRed'
|
||||
}
|
||||
},
|
||||
onClickTitle(val){
|
||||
onClickTitle(val) {
|
||||
console.log(val)
|
||||
this.description = val.description
|
||||
this.seeVisibleView = true
|
||||
@@ -310,7 +314,7 @@
|
||||
// this.$emit('handlePreservation')
|
||||
this.getTableList()
|
||||
},
|
||||
hideModal(){
|
||||
hideModal() {
|
||||
this.areaVisibleView = false
|
||||
},
|
||||
// 查看配置详细信息
|
||||
@@ -507,17 +511,27 @@
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'titleName'
|
||||
}
|
||||
if (res.db_field_name == 'nioNumber') {
|
||||
this.columns[index].width = 100
|
||||
}
|
||||
if (res.click) {
|
||||
// 工程接口人列表修改
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'operationbtn'
|
||||
}
|
||||
}
|
||||
if(res.click2){
|
||||
if (res.click2) {
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'ParameterDescription'
|
||||
}
|
||||
}
|
||||
if (res.db_field_name == 'paramsName') {
|
||||
this.columns[index].width = 300
|
||||
this.columns[index].ellipsis = false
|
||||
this.columns[index].scopedSlots = {
|
||||
customRender: 'paramsName'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.columns = [...this.columns]
|
||||
@@ -532,8 +546,8 @@
|
||||
let params = {
|
||||
paramsManifestId: this.$route.query.id,
|
||||
userTypes: this.currentPersonRole,
|
||||
pageNo:this.pageNo,
|
||||
pageSize:this.pageSize
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
this.loading = true
|
||||
this.$emit('listReset', '')
|
||||
@@ -723,14 +737,16 @@
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-row:first-child {
|
||||
background: #fff!important;
|
||||
background: #fff !important;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent!important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.textfield {
|
||||
width: 100%;
|
||||
margin-bottom: 8px;
|
||||
@@ -759,6 +775,7 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.content-text {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@@ -791,6 +808,19 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.textName {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
text-overflow: ellipsis;
|
||||
/*! autoprefixer: off */
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
/*! autoprefixer: on;*/
|
||||
text-justify: inter-ideograph;
|
||||
word-break: break-all
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.resize-table-th {
|
||||
|
||||
@@ -15,7 +15,10 @@
|
||||
<a-list-item :key="index" v-for="(record, index) in announcement1" v-if="index <= 4">
|
||||
<div style="margin-left: 5%;width: 80%;">
|
||||
<p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE">
|
||||
<a :title="record.titile" @click="showAnnouncement(record)">{{ record.titile }}</a>
|
||||
<a :title="language == 'zh-cn'?record.msgContentCn:record.msgContent"
|
||||
@click="showAnnouncement(record)">
|
||||
{{ language == 'zh-cn'?record.msgContentCn:record.msgContent }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</a-list-item>
|
||||
@@ -50,6 +53,7 @@
|
||||
data() {
|
||||
return {
|
||||
loadding: false,
|
||||
language: '',
|
||||
url: {
|
||||
listCementByUser: '/sys/sysAnnouncementSend/getMessageUnreadList',
|
||||
editCementSend: '/sys/sysAnnouncementSend/editByAnntIdAndUserId',
|
||||
@@ -91,6 +95,7 @@
|
||||
},
|
||||
created() {
|
||||
this.loadData()
|
||||
this.language = localStorage.getItem('language') || ''
|
||||
// this.initWebSocket()
|
||||
if (store.getters.userInfo) {
|
||||
this.$socketPublic.dispatch('webSocketInit')//初始化ws
|
||||
@@ -110,6 +115,11 @@
|
||||
// clearInterval(this.timer)
|
||||
// },
|
||||
methods: {
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
loadData() {
|
||||
getAction(this.url.listCementByUser).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -134,9 +144,16 @@
|
||||
showAnnouncement(record) {
|
||||
getAction(this.url.readAllMsg, { ids: record.id }).then((res) => {
|
||||
})
|
||||
if (this.language == 'zh-cn') {
|
||||
localStorage.setItem('msgContent', record.msgContentCn)
|
||||
} else {
|
||||
localStorage.setItem('msgContent', record.msgContent)
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/system/MessageDetails',
|
||||
query: record
|
||||
path: '/isps/userAnnouncement',
|
||||
query: {
|
||||
Date: Date.now()
|
||||
}
|
||||
})
|
||||
},
|
||||
toMyAnnouncement() {
|
||||
|
||||
@@ -43,7 +43,7 @@ import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'file',
|
||||
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate'],
|
||||
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate','watermark'],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -91,7 +91,11 @@ import { mapGetters } from 'vuex'
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
download() {
|
||||
downloadFile('/sys/common/downLoadFile', this.template.templateName, { id: this.template.templateId })
|
||||
if(this.watermark == 'download'){
|
||||
downloadFile('/sys/common/downLoadFileNOMark', this.template.templateName, { id: this.template.templateId })
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', this.template.templateName, { id: this.template.templateId })
|
||||
}
|
||||
},
|
||||
perentHandleFunc(data) {
|
||||
this.myfileList = data
|
||||
@@ -220,7 +224,11 @@ import { mapGetters } from 'vuex'
|
||||
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
// window.open(url, '_blank')
|
||||
// } else {
|
||||
if(this.watermark == 'download'){
|
||||
downloadFile('/sys/common/downLoadFileNOMark', fileQuery.fileName, { id: fileQuery.id })
|
||||
}else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
loading: false,
|
||||
visibleFile:false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
columnsFile: [
|
||||
{
|
||||
title: this.$t('fileName'),
|
||||
@@ -78,10 +79,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
|
||||
@@ -41,9 +41,8 @@ export default {
|
||||
return getNodeKey(this.tree.nodeKey, node.data);
|
||||
},
|
||||
|
||||
handleSelectChange(checked, indeterminate) {
|
||||
handleSelectChange(checked, indeterminate,source) {
|
||||
const node = this.node || this.source;
|
||||
|
||||
if (this.oldChecked !== checked && this.oldIndeterminate !== indeterminate) {
|
||||
this.tree.$emit('check-change', node.data, checked, indeterminate);
|
||||
}
|
||||
@@ -95,7 +94,6 @@ export default {
|
||||
|
||||
handleCheckChange(_, ev) {
|
||||
const node = this.node || this.source;
|
||||
|
||||
node.setChecked(ev.target.checked, !this.tree.checkStrictly);
|
||||
this.$nextTick(() => {
|
||||
const store = this.tree.store;
|
||||
@@ -103,8 +101,9 @@ export default {
|
||||
checkedNodes: store.getCheckedNodes(),
|
||||
checkedKeys: store.getCheckedKeys(),
|
||||
halfCheckedNodes: store.getHalfCheckedNodes(),
|
||||
halfCheckedKeys: store.getHalfCheckedKeys()
|
||||
});
|
||||
halfCheckedKeys: store.getHalfCheckedKeys(),
|
||||
getCurrentNode:store.getCurrentNode()
|
||||
},this.source.checked);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ export default class TreeStore {
|
||||
|
||||
if (node.visible && !node.isLeaf && !lazy) node.expand();
|
||||
};
|
||||
|
||||
traverse(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,11 +115,11 @@
|
||||
},
|
||||
watch: {
|
||||
'source.indeterminate'(val) {
|
||||
this.handleSelectChange(this.source.checked, val);
|
||||
this.handleSelectChange(this.source.checked, val,this.source);
|
||||
},
|
||||
|
||||
'source.checked'(val) {
|
||||
this.handleSelectChange(val, this.source.indeterminate);
|
||||
this.handleSelectChange(val, this.source.indeterminate,this.source);
|
||||
},
|
||||
|
||||
'source.expanded'(val) {
|
||||
|
||||
@@ -759,8 +759,8 @@
|
||||
}
|
||||
|
||||
.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before {
|
||||
background-color: #c0c4cc;
|
||||
border-color: #c0c4cc
|
||||
background-color: #fff;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
||||
@@ -927,7 +927,6 @@
|
||||
.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner {
|
||||
border-left-color: #409eff
|
||||
}
|
||||
|
||||
.el-checkbox-button.is-disabled .el-checkbox-button__inner {
|
||||
color: #c0c4cc;
|
||||
cursor: not-allowed;
|
||||
|
||||
@@ -11,6 +11,7 @@ import {
|
||||
CACHE_INCLUDED_ROUTES
|
||||
} from '@/store/mutation-types'
|
||||
import { welcome } from '@/utils/util'
|
||||
import { LZString } from '@/utils/compressedData'
|
||||
import { queryPermissionsByUser } from '@/api/api'
|
||||
import { getAction } from '@/api/manage'
|
||||
|
||||
@@ -146,7 +147,8 @@ const user = {
|
||||
// if (!gData) {
|
||||
// getAction('sys/user/queryUserTreeList', {}).then((res) => {
|
||||
// if (res.success) {
|
||||
// localStorage.setItem('gData', JSON.stringify(res.result))
|
||||
// let index = LZString.compressToUint8Array(JSON.stringify(res.result)).join(',')
|
||||
// localStorage.setItem('gData', LZString.compressToEncodedURIComponent(index))
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
@@ -0,0 +1,313 @@
|
||||
export const LZString = function() {
|
||||
function f(h, e) {
|
||||
if (!b[h]) {
|
||||
b[h] = {};
|
||||
for (var i = 0; i < h.length; i++) {
|
||||
b[h][h.charAt(i)] = i
|
||||
}
|
||||
}
|
||||
return b[h][e]
|
||||
}
|
||||
|
||||
var c = String.fromCharCode,
|
||||
g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
||||
d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",
|
||||
b = {},
|
||||
a = {
|
||||
compressToBase64: function(h) {
|
||||
if (null == h) {
|
||||
return ""
|
||||
}
|
||||
var e = a._compress(h, 6,
|
||||
function(i) {
|
||||
return g.charAt(i)
|
||||
});
|
||||
switch (e.length % 4) {
|
||||
default:
|
||||
case 0:
|
||||
return e;
|
||||
case 1:
|
||||
return e + "===";
|
||||
case 2:
|
||||
return e + "==";
|
||||
case 3:
|
||||
return e + "="
|
||||
}
|
||||
},
|
||||
decompressFromBase64: function(e) {
|
||||
return null == e ? "": "" == e ? null: a._decompress(e.length, 32,
|
||||
function(h) {
|
||||
return f(g, e.charAt(h))
|
||||
})
|
||||
},
|
||||
compressToUTF16: function(e) {
|
||||
return null == e ? "": a._compress(e, 15,
|
||||
function(h) {
|
||||
return c(h + 32)
|
||||
}) + " "
|
||||
},
|
||||
decompressFromUTF16: function(e) {
|
||||
return null == e ? "": "" == e ? null: a._decompress(e.length, 16384,
|
||||
function(h) {
|
||||
return e.charCodeAt(h) - 32
|
||||
})
|
||||
},
|
||||
compressToUint8Array: function(l) {
|
||||
for (var j = a.compress(l), m = new Uint8Array(2 * j.length), k = 0, h = j.length; h > k; k++) {
|
||||
var i = j.charCodeAt(k);
|
||||
m[2 * k] = i >>> 8,
|
||||
m[2 * k + 1] = i % 256
|
||||
}
|
||||
return m
|
||||
},
|
||||
decompressFromUint8Array: function(k) {
|
||||
if (null === k || void 0 === k) {
|
||||
return a.decompress(k)
|
||||
}
|
||||
for (var l = new Array(k.length / 2), j = 0, h = l.length; h > j; j++) {
|
||||
l[j] = 256 * k[2 * j] + k[2 * j + 1]
|
||||
}
|
||||
var i = [];
|
||||
return l.forEach(function(e) {
|
||||
i.push(c(e))
|
||||
}),
|
||||
a.decompress(i.join(""))
|
||||
},
|
||||
compressToEncodedURIComponent: function(e) {
|
||||
return null == e ? "": a._compress(e, 6,
|
||||
function(h) {
|
||||
return d.charAt(h)
|
||||
})
|
||||
},
|
||||
decompressFromEncodedURIComponent: function(e) {
|
||||
return null == e ? "": "" == e ? null: (e = e.replace(/ /g, "+"), a._decompress(e.length, 32,
|
||||
function(h) {
|
||||
return f(d, e.charAt(h))
|
||||
}))
|
||||
},
|
||||
compress: function(e) {
|
||||
return a._compress(e, 16,
|
||||
function(h) {
|
||||
return c(h)
|
||||
})
|
||||
},
|
||||
_compress: function(q, j, w) {
|
||||
if (null == q) {
|
||||
return ""
|
||||
}
|
||||
var C, I, z, J = {},
|
||||
k = {},
|
||||
H = "",
|
||||
E = "",
|
||||
F = "",
|
||||
y = 2,
|
||||
B = 3,
|
||||
A = 2,
|
||||
D = [],
|
||||
x = 0,
|
||||
G = 0;
|
||||
for (z = 0; z < q.length; z += 1) {
|
||||
if (H = q.charAt(z), Object.prototype.hasOwnProperty.call(J, H) || (J[H] = B++, k[H] = !0), E = F + H, Object.prototype.hasOwnProperty.call(J, E)) {
|
||||
F = E
|
||||
} else {
|
||||
if (Object.prototype.hasOwnProperty.call(k, F)) {
|
||||
if (F.charCodeAt(0) < 256) {
|
||||
for (C = 0; A > C; C++) {
|
||||
x <<= 1,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++
|
||||
}
|
||||
for (I = F.charCodeAt(0), C = 0; 8 > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
} else {
|
||||
for (I = 1, C = 0; A > C; C++) {
|
||||
x = x << 1 | I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I = 0
|
||||
}
|
||||
for (I = F.charCodeAt(0), C = 0; 16 > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
}
|
||||
y--,
|
||||
0 == y && (y = Math.pow(2, A), A++),
|
||||
delete k[F]
|
||||
} else {
|
||||
for (I = J[F], C = 0; A > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
}
|
||||
y--,
|
||||
0 == y && (y = Math.pow(2, A), A++),
|
||||
J[E] = B++,
|
||||
F = String(H)
|
||||
}
|
||||
}
|
||||
if ("" !== F) {
|
||||
if (Object.prototype.hasOwnProperty.call(k, F)) {
|
||||
if (F.charCodeAt(0) < 256) {
|
||||
for (C = 0; A > C; C++) {
|
||||
x <<= 1,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++
|
||||
}
|
||||
for (I = F.charCodeAt(0), C = 0; 8 > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
} else {
|
||||
for (I = 1, C = 0; A > C; C++) {
|
||||
x = x << 1 | I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I = 0
|
||||
}
|
||||
for (I = F.charCodeAt(0), C = 0; 16 > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
}
|
||||
y--,
|
||||
0 == y && (y = Math.pow(2, A), A++),
|
||||
delete k[F]
|
||||
} else {
|
||||
for (I = J[F], C = 0; A > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
}
|
||||
y--,
|
||||
0 == y && (y = Math.pow(2, A), A++)
|
||||
}
|
||||
for (I = 2, C = 0; A > C; C++) {
|
||||
x = x << 1 | 1 & I,
|
||||
G == j - 1 ? (G = 0, D.push(w(x)), x = 0) : G++,
|
||||
I >>= 1
|
||||
}
|
||||
for (;;) {
|
||||
if (x <<= 1, G == j - 1) {
|
||||
D.push(w(x));
|
||||
break
|
||||
}
|
||||
G++
|
||||
}
|
||||
return D.join("")
|
||||
},
|
||||
decompress: function(e) {
|
||||
return null == e ? "": "" == e ? null: a._decompress(e.length, 32768,
|
||||
function(h) {
|
||||
return e.charCodeAt(h)
|
||||
})
|
||||
},
|
||||
_decompress: function(B, C, I) {
|
||||
var r, F, x, z, q, K, L, E, H = [],
|
||||
G = 4,
|
||||
J = 4,
|
||||
D = 3,
|
||||
k = "",
|
||||
j = [],
|
||||
y = {
|
||||
val: I(0),
|
||||
position: C,
|
||||
index: 1
|
||||
};
|
||||
for (F = 0; 3 > F; F += 1) {
|
||||
H[F] = F
|
||||
}
|
||||
for (z = 0, K = Math.pow(2, 2), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
switch (r = z) {
|
||||
case 0:
|
||||
for (z = 0, K = Math.pow(2, 8), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
E = c(z);
|
||||
break;
|
||||
case 1:
|
||||
for (z = 0, K = Math.pow(2, 16), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
E = c(z);
|
||||
break;
|
||||
case 2:
|
||||
return ""
|
||||
}
|
||||
for (H[3] = E, x = E, j.push(E);;) {
|
||||
if (y.index > B) {
|
||||
return ""
|
||||
}
|
||||
for (z = 0, K = Math.pow(2, D), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
switch (E = z) {
|
||||
case 0:
|
||||
for (z = 0, K = Math.pow(2, 8), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
H[J++] = c(z),
|
||||
E = J - 1,
|
||||
G--;
|
||||
break;
|
||||
case 1:
|
||||
for (z = 0, K = Math.pow(2, 16), L = 1; L != K;) {
|
||||
q = y.val & y.position,
|
||||
y.position >>= 1,
|
||||
0 == y.position && (y.position = C, y.val = I(y.index++)),
|
||||
z |= (q > 0 ? 1 : 0) * L,
|
||||
L <<= 1
|
||||
}
|
||||
H[J++] = c(z),
|
||||
E = J - 1,
|
||||
G--;
|
||||
break;
|
||||
case 2:
|
||||
return j.join("")
|
||||
}
|
||||
if (0 == G && (G = Math.pow(2, D), D++), H[E]) {
|
||||
k = H[E]
|
||||
} else {
|
||||
if (E !== J) {
|
||||
return null
|
||||
}
|
||||
k = x + x.charAt(0)
|
||||
}
|
||||
j.push(k),
|
||||
H[J++] = x + k.charAt(0),
|
||||
G--,
|
||||
x = k,
|
||||
0 == G && (G = Math.pow(2, D), D++)
|
||||
}
|
||||
}
|
||||
};
|
||||
return a
|
||||
} ();
|
||||
|
||||
// module.exports = LZString
|
||||
+1
-1
@@ -209,7 +209,7 @@
|
||||
actiProcInstId: this.actiProcInstId
|
||||
}
|
||||
downloadFile('/lawsOpinionGather/lawsOpinionAssessmentResultEO/exportXls',
|
||||
this.$t('evaluationResults') + '.zip', query)
|
||||
this.$route.query.serialNumber+ ' ' +this.$t('evaluationResults') + '.zip', query)
|
||||
},
|
||||
getData() {
|
||||
this.formInline = JSON.parse(JSON.stringify(this.$route.query))
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
<template v-if="toggleSearchStatus">
|
||||
<a-col :md="6" :sm="8">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('collectResults')">
|
||||
<span>{{$t('collectResults')}}</span>
|
||||
<div class="title-text" :title="$t('ProcessStatus')">
|
||||
<span>{{$t('ProcessStatus')}}</span>
|
||||
</div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('collectResults')"
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('ProcessStatus')"
|
||||
class="box-input"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
allowClear
|
||||
@@ -187,12 +187,19 @@
|
||||
dataIndex: 'technologyTerritoryName'
|
||||
},
|
||||
{
|
||||
title: this.$t('collectResults'),
|
||||
title: this.$t('ProcessStatus'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
ellipsis: true,
|
||||
dataIndex: 'gatherResultShow'
|
||||
},
|
||||
{
|
||||
title: this.$t('Sponsor'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
ellipsis: true,
|
||||
dataIndex: 'createBy'
|
||||
},
|
||||
{
|
||||
title: this.$t('dateOfInitiation'),
|
||||
align: 'center',
|
||||
|
||||
+1
@@ -34,6 +34,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="chargePersonIdName">
|
||||
<PersonnelSelection
|
||||
v-if="visible"
|
||||
:isSingleChoice="true"
|
||||
:query="{db_field_name:'chargePersonId',db_field_txt:$t('personCharge')}"
|
||||
:personneQuery="formInline"
|
||||
|
||||
+3
-1
@@ -36,7 +36,9 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="box-content-right">
|
||||
<div @click="managePublishingClick" class="operator-text">
|
||||
<div @click="managePublishingClick"
|
||||
v-has="'countryCard:managePublishing'"
|
||||
class="operator-text">
|
||||
<a-icon type="carry-out"/>
|
||||
{{$t('managePublishing')}}
|
||||
</div>
|
||||
|
||||
+5
-2
@@ -127,6 +127,7 @@
|
||||
applyMarkets: '',
|
||||
header_text: '',
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
url: {
|
||||
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
||||
deleteOne: ''
|
||||
@@ -153,10 +154,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.contentFileName, { id: fileQuery.id })
|
||||
}
|
||||
|
||||
+43
-17
@@ -32,11 +32,12 @@
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('problemClassification')">{{$t('problemClassification')}}</span>
|
||||
:title="$t('classification')">{{$t('classification')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="problemType">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('problemClassification')"
|
||||
<a-form-model-item class="itemModel itemModel-multi" prop="problemType">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('classification')"
|
||||
@change="problemTypeChange"
|
||||
mode="multiple"
|
||||
v-model="formInline.problemType">
|
||||
<a-select-option v-for="(item, key) in problemTypeList"
|
||||
:key="key"
|
||||
@@ -94,7 +95,7 @@
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('authorizedUser')">{{$t('authorizedUser')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="studioEngineerName">
|
||||
<a-form-model-item class="itemModel-multi" prop="studioEngineerName">
|
||||
<PersonnelSelection :query="{db_field_name:'studioEngineer',db_field_txt:$t('authorizedUser')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
@@ -124,14 +125,16 @@
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-button class="box-button-index"
|
||||
:title="$t('bringInDocumentInformation')"
|
||||
type="primary" @click="bringInDocumentInformationClick">
|
||||
{{$t('bringInDocumentInformation')}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-button class="box-button-index"
|
||||
:title="$t('addStandardInformation')"
|
||||
type="primary" @click="bringInDocumentInformationClick">
|
||||
{{$t('addStandardInformation')}}
|
||||
</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24" style="height: 380px">
|
||||
@@ -178,7 +181,10 @@
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
<div class="submit-button">
|
||||
<a-button class="box-button" type="primary" @click="submit">{{$t('submit')}}</a-button>
|
||||
<a-button class="box-button" type="primary" @click="submit('Draft')">
|
||||
{{$t('tempSave')}}
|
||||
</a-button>
|
||||
<a-button class="box-button" type="primary" @click="submit('Have released')">{{$t('release')}}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -356,7 +362,7 @@
|
||||
document.title = this.$t('problemKnowledgeBase') + this.$t('edit')
|
||||
} else {
|
||||
this.isDisplayIndex = true
|
||||
this.$nextTick(()=>{
|
||||
this.$nextTick(() => {
|
||||
this.myQuillEditor()
|
||||
})
|
||||
document.title = this.$t('problemKnowledgeBase') + this.$t('newlyAdded')
|
||||
@@ -476,6 +482,11 @@
|
||||
} else {
|
||||
this.formInline.standNumber = []
|
||||
}
|
||||
if (this.formInline.problemType) {
|
||||
this.formInline.problemType = this.formInline.problemType.split(',')
|
||||
} else {
|
||||
this.formInline.problemType = []
|
||||
}
|
||||
this.formInline = { ...this.formInline }
|
||||
} else {
|
||||
this.formInline = {}
|
||||
@@ -491,7 +502,7 @@
|
||||
this.$router.go(-1)
|
||||
},
|
||||
onEditorReady(quill) {
|
||||
if (this.formInlineOne.content){
|
||||
if (this.formInlineOne.content) {
|
||||
document.getElementsByClassName('ql-editor')[0].innerHTML = this.formInlineOne.content
|
||||
}
|
||||
},
|
||||
@@ -595,14 +606,20 @@
|
||||
this.formInline[this.uploadName] = attIdList.join(',')
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
submit() {
|
||||
tempSaveClick() {
|
||||
|
||||
},
|
||||
submit(releaseStatus) {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let formInline = JSON.parse(JSON.stringify(this.formInline))
|
||||
// if (formInline.standNumber && formInline.standNumber.length > 0) {
|
||||
if (formInline.standNumber instanceof Array){
|
||||
if (formInline.standNumber instanceof Array) {
|
||||
formInline.standNumber = formInline.standNumber.join(',')
|
||||
}
|
||||
if (formInline.problemType instanceof Array) {
|
||||
formInline.problemType = formInline.problemType.join(',')
|
||||
}
|
||||
// }
|
||||
this.loading = true
|
||||
this.confirmLoading = true
|
||||
@@ -624,6 +641,7 @@
|
||||
})
|
||||
})
|
||||
}
|
||||
formInline.releaseStatus = releaseStatus
|
||||
Action(url, formInline).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
@@ -775,6 +793,7 @@
|
||||
.box-button {
|
||||
height: 38px;
|
||||
margin-top: 4px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.box-button-index {
|
||||
@@ -782,8 +801,9 @@
|
||||
width: 120px;
|
||||
overflow: hidden;
|
||||
padding: 0 0;
|
||||
float: right;
|
||||
/*float: right;*/
|
||||
text-align: center;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
::v-deep .box-button-index span {
|
||||
@@ -826,12 +846,18 @@
|
||||
}
|
||||
|
||||
.box-input-index {
|
||||
width: calc(100% - 130px);
|
||||
/*width: calc(100% - 130px);*/
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
::v-deep .box-input-index .ant-select-selection--multiple::-webkit-scrollbar {
|
||||
/*height: 52px!important;*/
|
||||
display: block;
|
||||
}
|
||||
|
||||
.itemOption {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
||||
+67
-18
@@ -15,7 +15,9 @@
|
||||
</template>
|
||||
</div>
|
||||
<div class="box-content-content">
|
||||
<div class="box-content-content-index" :title="$t('classificationMaintenance')"
|
||||
<div class="box-content-content-index"
|
||||
v-has="'problemKnowledgeBase:classificationMaintenance'"
|
||||
:title="$t('classificationMaintenance')"
|
||||
@click="classificationClick">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('classificationMaintenance')}}
|
||||
@@ -42,11 +44,15 @@
|
||||
<!-- <a-icon type="setting"/>-->
|
||||
<!-- {{$t('classificationMaintenance')}}-->
|
||||
<!-- </div>-->
|
||||
<div @click="managePublishingClick" class="operator-text-text-index">
|
||||
<div @click="managePublishingClick"
|
||||
v-has="'problemKnowledgeBase:release'"
|
||||
class="operator-text-text-index">
|
||||
<a-icon type="carry-out"/>
|
||||
{{$t('managePublishing')}}
|
||||
</div>
|
||||
<div @click="newlyAddedClick" class="operator-text-text-index">
|
||||
<div @click="newlyAddedClick"
|
||||
v-has="'problemKnowledgeBase:add'"
|
||||
class="operator-text-text-index">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('newlyAdded')}}
|
||||
</div>
|
||||
@@ -65,16 +71,16 @@
|
||||
{{val}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="content-box-content" @click="detailClcik(item)">
|
||||
<div class="content-box-content-top" v-html="item.contentOne">
|
||||
|
||||
<div class="content-box-content">
|
||||
<div class="content-box-content-top" @click="detailClcik(item)"
|
||||
v-html="item.contentOne">
|
||||
</div>
|
||||
<div class="content-box-content-botton">
|
||||
<div class="content-box-content-botton-text"
|
||||
v-if="item.accessoryFileNameList && item.accessoryFileNameList.length > 0"
|
||||
:title="val.fileName"
|
||||
v-for="val in item.accessoryFileNameList">
|
||||
{{val.fileName}}
|
||||
<span @click="fileClick(val)">{{val.fileName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -85,9 +91,17 @@
|
||||
<a-icon type="user"/>
|
||||
{{item.createBy}}
|
||||
</div>
|
||||
<div class="content-box-button-text">
|
||||
<div class="content-box-button-text" v-if="item.standNumber">
|
||||
<a-icon type="audit"/>
|
||||
{{item.problemTypeName}}
|
||||
{{item.standNumber}}
|
||||
</div>
|
||||
<div class="content-box-button-text" v-if="item.targetMarket_dicText">
|
||||
<img src="../../../../assets/ditu.png" style="width: 15px;margin-top: -3px" alt="">
|
||||
{{item.targetMarket_dicText}}
|
||||
</div>
|
||||
<div class="content-box-button-text" v-if="item.showPermissions_dicText">
|
||||
<a-icon type="eye" />
|
||||
{{item.showPermissions_dicText}}
|
||||
</div>
|
||||
<div class="content-box-button-text">
|
||||
<a-icon type="history"/>
|
||||
@@ -170,6 +184,7 @@
|
||||
import SelectedBy from '@/components/SelectedBy/index'
|
||||
import problemKnowledgeBaseListView from './problemKnowledgeBaseListView'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { Base64 } from 'js-base64'
|
||||
|
||||
export default {
|
||||
name: 'problemKnowledgeBaseList',
|
||||
@@ -193,6 +208,7 @@
|
||||
queryForm: {},
|
||||
tagList: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
pageNo: 1,
|
||||
url: {
|
||||
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page'
|
||||
@@ -207,6 +223,17 @@
|
||||
localStorage.removeItem('serial_number')
|
||||
}
|
||||
this.isTrue = true
|
||||
let BaseQuery = localStorage.getItem('problemknowledgeBase')
|
||||
if (BaseQuery) {
|
||||
let content = JSON.parse(BaseQuery)
|
||||
if (content.id) {
|
||||
this.isTrue = false
|
||||
this.$nextTick(() => {
|
||||
this.$refs.problemKnowledgeBaseListViewRef.getData(JSON.parse(JSON.stringify(content)))
|
||||
})
|
||||
}
|
||||
localStorage.removeItem('problemknowledgeBase')
|
||||
}
|
||||
this.getList()
|
||||
this.replacePage()
|
||||
},
|
||||
@@ -255,6 +282,26 @@
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
fileClick(fileQuery) {
|
||||
let fileName = fileQuery.fileName
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
let index2 = fileName.length
|
||||
let fileSuffix = fileName.substring(index1, index2)
|
||||
if (fileSuffix == '.pdf') {
|
||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id + '&userName=' + this.userInfo().username))
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
},
|
||||
problemKnowledgeBase() {
|
||||
this.pageNo = 1
|
||||
this.isTrue = true
|
||||
@@ -309,7 +356,8 @@
|
||||
},
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
getList() {
|
||||
let selectedTags = JSON.parse(JSON.stringify(this.selectedTags))
|
||||
@@ -317,7 +365,8 @@
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
searchStr: this.searchStr,
|
||||
problemTypes: selectedTags.join(',')
|
||||
problemTypes: selectedTags.join(','),
|
||||
releaseStatus: 'Have released'
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.getInfoList, query).then((res) => {
|
||||
@@ -629,7 +678,7 @@
|
||||
background: #DBF2F3;
|
||||
border-radius: 3px;
|
||||
margin-left: 6px;
|
||||
max-width: 120px;
|
||||
max-width: 140px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -662,22 +711,22 @@
|
||||
margin-top: 10px;
|
||||
|
||||
.content-box-content-botton-text {
|
||||
width: 118px;
|
||||
/*max-width: 198px;*/
|
||||
height: 32px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 32px;
|
||||
padding: 0 6px;
|
||||
background: #EFF1F3;
|
||||
/*background: #EFF1F3;*/
|
||||
border-radius: 4px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
margin-right: 10px;
|
||||
margin-right: 20px;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -789,7 +838,7 @@
|
||||
background: #fff;
|
||||
background: rgba(4, 11, 41, 0.06);
|
||||
color: #363C54;
|
||||
max-width: 150px;
|
||||
max-width: 280px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
+81
-15
@@ -33,9 +33,17 @@
|
||||
<a-icon type="user"/>
|
||||
{{queryForm.createBy}}
|
||||
</div>
|
||||
<div class="content-box-button-text">
|
||||
<a-icon type="audit"/>
|
||||
{{queryForm.problemTypeName}}
|
||||
<div class="content-box-button-text" v-if="queryForm.standNumber">
|
||||
<a-icon type="file-markdown"/>
|
||||
{{queryForm.standNumber}}
|
||||
</div>
|
||||
<div class="content-box-button-text" v-if="queryForm.targetMarket_dicText">
|
||||
<img src="../../../../assets/ditu.png" style="width: 15px;margin-top: -3px" alt="">
|
||||
{{queryForm.targetMarket_dicText}}
|
||||
</div>
|
||||
<div class="content-box-button-text" v-if="queryForm.showPermissions_dicText">
|
||||
<a-icon type="eye" />
|
||||
{{queryForm.showPermissions_dicText}}
|
||||
</div>
|
||||
<div class="content-box-button-text">
|
||||
<a-icon type="history"/>
|
||||
@@ -96,8 +104,16 @@
|
||||
<div class="commentContent-content">
|
||||
{{item.commentContent}}
|
||||
</div>
|
||||
<div class="answer-text" style="margin-bottom: 14px" @click="messageClick(item)">
|
||||
{{$t('answer')}}
|
||||
<div class="answer-text-index"
|
||||
style="margin-bottom: 14px">
|
||||
<span class="answer-text" @click="messageClick(item)">
|
||||
{{$t('answer')}}
|
||||
</span>
|
||||
<span class="answer-text"
|
||||
v-if="administrators || item.createBy == userInfoQuery.username"
|
||||
@click="deleteClick(item)">
|
||||
{{$t('delete')}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="commentContent-text-one" v-for="(val,index1) in item.problemKnowledgeBaseCommentVOList"
|
||||
v-if="item.problemKnowledgeBaseCommentVOList && item.problemKnowledgeBaseCommentVOList.length > 0">
|
||||
@@ -109,8 +125,15 @@
|
||||
<div class="commentContent-content">
|
||||
{{val.commentContent}}
|
||||
</div>
|
||||
<div class="answer-text" @click="messageClick(item)">
|
||||
<div class="answer-text-index">
|
||||
<span class="answer-text" @click="messageClick(item)">
|
||||
{{$t('answer')}}
|
||||
</span>
|
||||
<span class="answer-text"
|
||||
v-if="administrators || val.createBy == userInfoQuery.username"
|
||||
@click="deleteClick(val)">
|
||||
{{$t('delete')}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,6 +181,7 @@
|
||||
import SelectedBy from '@/components/SelectedBy/index'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { deleteAction } from '../../../../api/manage'
|
||||
|
||||
export default {
|
||||
name: 'problemKnowledgeBaseListView',
|
||||
@@ -167,6 +191,8 @@
|
||||
data() {
|
||||
return {
|
||||
visibleComment: false,
|
||||
administrators: false,
|
||||
userInfoQuery: {},
|
||||
releaseList: [],
|
||||
loading: false,
|
||||
formInline: {},
|
||||
@@ -200,11 +226,20 @@
|
||||
queryForm: {},
|
||||
isPraise: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
isCollect: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.administrators = false
|
||||
this.userInfoQuery = this.userInfo()
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
@@ -218,14 +253,38 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
},
|
||||
deleteClick(item) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmDelete'),
|
||||
onOk() {
|
||||
let url = ''
|
||||
if (item.problemKnowledgeBaseId) {
|
||||
url = '/problemKnowledgeBase/problemKnowledgeBaseCommentEO/deleteBatch'
|
||||
} else {
|
||||
url = '/project/problemKnowledgeBaseReplyEO/deleteBatch'
|
||||
}
|
||||
deleteAction(url, { ids: item.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.releaseData()
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
download(item) {
|
||||
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
|
||||
},
|
||||
@@ -491,34 +550,37 @@
|
||||
margin-top: 10px;
|
||||
|
||||
.content-box-content-botton-text {
|
||||
width: 140px;
|
||||
/*max-width: 200px;*/
|
||||
/*min-width: 120px;*/
|
||||
height: 32px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 32px;
|
||||
padding: 0 6px;
|
||||
background: #EFF1F3;
|
||||
/*padding: 0 10px;*/
|
||||
/*background: #EFF1F3;*/
|
||||
border-radius: 4px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
margin-right: 10px;
|
||||
margin-right: 20px;
|
||||
cursor: pointer;
|
||||
|
||||
.file-text {
|
||||
width: 90px;
|
||||
width: calc(100% - 30px);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-decoration: underline;
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-text {
|
||||
width: 24px;
|
||||
font-size: 16px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 9px;
|
||||
@@ -627,6 +689,10 @@
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.answer-text-index {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.answer-text {
|
||||
display: inline-block;
|
||||
padding: 3px 14px;
|
||||
|
||||
+95
-24
@@ -3,25 +3,49 @@
|
||||
<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="backClick">-->
|
||||
<!-- <a-icon type="arrow-left" style="margin-right: 6px;"/>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span style="line-height: 66px;display: inline-block;float: left" @click="backClick">-->
|
||||
<!-- <a-icon type="arrow-left" style="margin-right: 6px;"/>-->
|
||||
<!-- </span>-->
|
||||
{{$t('managePublishing')}}
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-top: 68px;background: #fff">
|
||||
<div class="detail-content" style="padding: 30px">
|
||||
<div class="search-detail-wrap">
|
||||
<a-form layout="inline" @keyup.enter.native="onSearch">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('searchContent')">
|
||||
<span>{{$t('searchContent')}}</span>
|
||||
<a-form layout="inline" style="width: 1200px;margin: 0 auto" @keyup.enter.native="onSearch">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="10">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('searchContent')">
|
||||
<span>{{$t('searchContent')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')"
|
||||
v-model="queryParam.searchStr"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="10">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('releaseStatus')">
|
||||
<span>{{$t('releaseStatus')}}</span>
|
||||
</div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('releaseStatus')"
|
||||
v-model="queryParam.releaseStatus">
|
||||
<a-select-option v-for="(item, key) in releaseStatusList"
|
||||
:key="key"
|
||||
:value="item.value">
|
||||
<span class="selectText" :title=" item.name ">
|
||||
{{ item.name}}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</a-col>
|
||||
<div style="text-align: right">
|
||||
<a-button class="box-button" type="primary" @click="onSearch">{{$t('query')}}</a-button>
|
||||
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}
|
||||
</a-button>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')"
|
||||
v-model="searchStr"></a-input>
|
||||
<a-button class="box-button" type="primary" @click="onSearch">{{$t('query')}}</a-button>
|
||||
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}</a-button>
|
||||
</div>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<div v-if="conList.length > 0" style="height: calc(100vh - 240px);overflow:auto;">
|
||||
@@ -41,9 +65,17 @@
|
||||
<div class="text-content">
|
||||
{{item.contentOne}}
|
||||
</div>
|
||||
<div class="text-text-right-text-Two">
|
||||
{{item.showPermissions_dicText}}
|
||||
</div>
|
||||
<div class="text-text-right-text-One">
|
||||
{{item.releaseStatus == 'Draft'?$t('draft'):$t('HaveReleased')}}
|
||||
</div>
|
||||
<div class="text-text-right-text">
|
||||
<a style="margin-right: 10px" @click="edit(item)">{{$t('edit')}}</a>
|
||||
<a @click="deleteData(item)">{{$t('delete')}}</a>
|
||||
<a style="margin-right: 10px" @click="edit(item)"
|
||||
v-if="userInfoQuery.username == item.createBy || administrators">{{$t('edit')}}</a>
|
||||
<a @click="deleteData(item)"
|
||||
v-if="userInfoQuery.username == item.createBy || administrators">{{$t('delete')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,10 +115,22 @@
|
||||
conList: [],
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
searchStr: '',
|
||||
queryParam: {},
|
||||
releaseStatusList: [
|
||||
{
|
||||
name: this.$t('draft'),
|
||||
value: 'Draft'
|
||||
},
|
||||
{
|
||||
name: this.$t('HaveReleased'),
|
||||
value: 'Have released'
|
||||
}
|
||||
],
|
||||
loading: false,
|
||||
administrators: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
pageNo: 1,
|
||||
userInfoQuery: {},
|
||||
url: {
|
||||
getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page',
|
||||
deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseEO/deleteBatch'
|
||||
@@ -96,6 +140,15 @@
|
||||
mounted() {
|
||||
this.getList()
|
||||
document.title = this.$t('managePublishing')
|
||||
this.administrators = false
|
||||
this.userInfoQuery = this.userInfo()
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
@@ -113,20 +166,21 @@
|
||||
this.getList()
|
||||
},
|
||||
ResetSearch() {
|
||||
this.searchStr = ''
|
||||
this.queryParam = {}
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
getList() {
|
||||
let query = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
createBy: this.userInfo().username,
|
||||
searchStr: this.searchStr
|
||||
...this.queryParam
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.getInfoList, query).then((res) => {
|
||||
@@ -271,11 +325,31 @@
|
||||
|
||||
.text-text-right {
|
||||
padding: 19px 19px;
|
||||
width: calc(100% - 180px);
|
||||
width: calc(100% - 420px);
|
||||
box-sizing: border-box;
|
||||
/*margin-left: 38px;*/
|
||||
}
|
||||
|
||||
.text-text-right-text-Two {
|
||||
width: 120px;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 300px;
|
||||
top: 50%;
|
||||
transform: translate-Y(-50%);
|
||||
}
|
||||
|
||||
.text-text-right-text-One {
|
||||
width: 120px;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 180px;
|
||||
top: 50%;
|
||||
transform: translate-Y(-50%);
|
||||
}
|
||||
|
||||
.text-text-right-text {
|
||||
width: 180px;
|
||||
height: 100%;
|
||||
@@ -351,16 +425,13 @@
|
||||
|
||||
.search-detail-wrap {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
@@ -380,7 +451,7 @@
|
||||
.box-input {
|
||||
/*min-width: 200px;*/
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
margin-top: 2px;
|
||||
margin-right: 16px;
|
||||
|
||||
+55
-16
@@ -44,19 +44,27 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="monthlyTitleTemplateClick" class="operator-text">
|
||||
<div @click="monthlyTitleTemplateClick"
|
||||
v-has="'monthlyReportFilling:titleTemplate'"
|
||||
class="operator-text">
|
||||
<a-icon type="apartment"/>
|
||||
{{$t('monthlyTitleTemplate')}}
|
||||
</div>
|
||||
<div @click="monthlyIntegrationAndExportClick" class="operator-text">
|
||||
<div @click="monthlyIntegrationAndExportClick"
|
||||
v-has="'monthlyReportFilling:integratedExport'"
|
||||
class="operator-text">
|
||||
<a-icon type="import"/>
|
||||
{{$t('monthlyIntegrationAndExport')}}
|
||||
</div>
|
||||
<div @click="addContentClick" class="operator-text">
|
||||
<div @click="addContentClick"
|
||||
v-has="'monthlyReportFilling:adding'"
|
||||
class="operator-text">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('addContent')}}
|
||||
</div>
|
||||
<div @click="BatchDeleteClick" class="operator-text">
|
||||
<div @click="BatchDeleteClick"
|
||||
v-has="'monthlyReportFilling:batchDelete'"
|
||||
class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -74,10 +82,28 @@
|
||||
:columns="columns"
|
||||
>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="copyClick(record)">{{$t('copy')}}</a>
|
||||
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
|
||||
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'monthlyReportFilling:copy'"
|
||||
@click="copyClick(record)">
|
||||
{{$t('copy')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-has="'monthlyReportFilling:view'"
|
||||
@click="viewClick(record)">
|
||||
{{$t('view')}}
|
||||
</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation"
|
||||
v-has="'monthlyReportFilling:edit'"
|
||||
@click="edit(record)">
|
||||
{{$t('edit')}}
|
||||
</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation"
|
||||
v-has="'monthlyReportFilling:delete'"
|
||||
@click="deleteLib(record)">
|
||||
{{$t('deleteLib')}}
|
||||
</a>
|
||||
</span>
|
||||
</a-table>
|
||||
<div class="page" v-if="dataSource && dataSource.length > 0">
|
||||
@@ -103,6 +129,7 @@
|
||||
import fillTable from './modules/fillTable'
|
||||
import fillAdd from './modules/fillAdd'
|
||||
import moment from 'moment'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'RegulationMonthlyFill',
|
||||
@@ -118,14 +145,14 @@
|
||||
list: '/report/lawsMonthlyReportWriteEO/page',
|
||||
exportData: '/report/lawsMonthlyReportWriteEO/exportMonthlyReport'
|
||||
},
|
||||
exportStatusList:[
|
||||
exportStatusList: [
|
||||
{
|
||||
value:'2',
|
||||
name:this.$t('hasBeenExport')
|
||||
value: '2',
|
||||
name: this.$t('hasBeenExport')
|
||||
},
|
||||
{
|
||||
value:'1',
|
||||
name:this.$t('notExport')
|
||||
value: '1',
|
||||
name: this.$t('notExport')
|
||||
}
|
||||
],
|
||||
loading: false,
|
||||
@@ -144,7 +171,7 @@
|
||||
width: 170
|
||||
},
|
||||
{
|
||||
title: this.$t('chapterContents'),
|
||||
title: this.$t('secondaryDirectory'),
|
||||
align: 'center',
|
||||
dataIndex: 'memoriesChapterName',
|
||||
ellipsis: true,
|
||||
@@ -192,15 +219,27 @@
|
||||
width: 190,
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
}
|
||||
]
|
||||
],
|
||||
userData:{},
|
||||
administrators:false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.queryParam.month = moment(new Date()).format('YYYY-MM')
|
||||
this.getList()
|
||||
this.userData = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
copyClick(row){
|
||||
...mapGetters(['userInfo']),
|
||||
copyClick(row) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmReplication'),
|
||||
|
||||
+19
-5
@@ -22,7 +22,7 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="uploadMonthlyClick" class="operator-text">
|
||||
<div @click="uploadMonthlyClick" v-has="'monthlyReportManagement:upload'" class="operator-text">
|
||||
<a-icon type="cloud-upload"/>
|
||||
{{$t('uploadMonthly')}}
|
||||
</div>
|
||||
@@ -51,14 +51,16 @@
|
||||
</span>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userData.username"
|
||||
v-has="'monthlyReportManagement:release'"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
@click="withdraw(record)">
|
||||
{{record.issueStatus == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userData.username && record.issueStatus == 2"
|
||||
v-if="(record.createBy == userData.username || administrators) && record.issueStatus == 2"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'monthlyReportManagement:download'"
|
||||
v-if="record.createBy == userData.username || record.issueStatus == 1"
|
||||
@click="download(record)">{{$t('download')}}</a>
|
||||
</span>
|
||||
@@ -108,7 +110,9 @@
|
||||
pageNo: 1,
|
||||
queryParam: {},
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
userData: {},
|
||||
administrators:false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('RegulationMonthlyName'),
|
||||
@@ -160,6 +164,14 @@
|
||||
mounted() {
|
||||
this.getList()
|
||||
this.userData = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
@@ -216,10 +228,12 @@
|
||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
if (item.createBy == this.userInfo().username) {
|
||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||
|
||||
+108
-58
@@ -4,28 +4,38 @@
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('title')">{{$t('title')}}</span>
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('title')">{{$t('title')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="titleCn">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.titleCn"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"/>
|
||||
<a-textarea
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model.trim="formInline.titleCn" :rows="3"/>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model.trim="formInline.titleCn"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('title')"/>-->
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="titleEn">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.titleEn"
|
||||
:placeholder="$t('PleaseEnter')+$t('englishTitle')"/>
|
||||
<a-textarea
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseEnter')+$t('englishTitle')"
|
||||
v-model.trim="formInline.titleEn" :rows="3"/>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model.trim="formInline.titleEn"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('englishTitle')"/>-->
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -34,10 +44,11 @@
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('technicalField')">{{$t('technicalField')}}</span>
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('technicalField')">{{$t('technicalField')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi" prop="technologyTerritory">
|
||||
<a-form-model-item class="itemModel" prop="technologyTerritory">
|
||||
<a-tree-select
|
||||
tree-node-filter-prop="title"
|
||||
v-model="formInline.technologyTerritory"
|
||||
@@ -53,20 +64,20 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('implementationModel')">{{$t('implementationModel')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="implementCar">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.implementCar"
|
||||
:placeholder="$t('PleaseEnter')+$t('implementationModel')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<!-- <a-col :span="12">-->
|
||||
<!-- <div class="box-title-text">-->
|
||||
<!-- <div class="title-text">-->
|
||||
<!-- <span class="title-text-text"-->
|
||||
<!-- :title="$t('implementationModel')">{{$t('implementationModel')}}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <a-form-model-item class="itemModel" prop="implementCar">-->
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model.trim="formInline.implementCar"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('implementationModel')"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :span="12">-->
|
||||
<!-- <div class="box-title-text">-->
|
||||
<!-- <div class="title-text">-->
|
||||
@@ -95,7 +106,7 @@
|
||||
:placeholder="$t('PleaseSelect')+$t('scopeOfApplication')"
|
||||
:type="'checkbox'"
|
||||
:disabled="disabled"
|
||||
:triggerChange="false" :dictCode="'apply_scope'"/>
|
||||
:triggerChange="false" :dictCode="'fa3_gui1_yue4_bao4_-_shi4_yong4_fan4_wei2'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -108,11 +119,11 @@
|
||||
:title="$t('status')">{{$t('status')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
||||
<j-multi-select-tag class="box-input" v-model="formInline.state"
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.state"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseSelect')+$t('status')"
|
||||
:type="'checkbox'"
|
||||
:triggerChange="false" :dictCode="'state'"/>
|
||||
:type="'radio'"
|
||||
:triggerChange="false" :dictCode="'fa3_gui1_yue4_bao4_tian2_xie3_-_-_zhuang4_tai4'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -125,9 +136,9 @@
|
||||
:title="$t('usage')">{{$t('usage')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi itemModel-multi-one">
|
||||
<j-multi-select-tag class="box-input" v-model="formInline.useMethod"
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.useMethod"
|
||||
:placeholder="$t('PleaseSelect')+$t('usage')"
|
||||
:type="'checkbox'"
|
||||
:type="'radio'"
|
||||
:disabled="disabled"
|
||||
:triggerChange="false" :dictCode="'yong4_fa3'"/>
|
||||
</a-form-model-item>
|
||||
@@ -153,13 +164,14 @@
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('ImplementationDate')">{{$t('ImplementationDate')}}</span>
|
||||
:title="$t('releaseDate')">{{$t('releaseDate')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="newCarImplementTime">
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('ImplementationDate')"-->
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.newCarImplementTime"
|
||||
:placeholder="$t('PleaseEnter')+$t('ImplementationDate')"/>
|
||||
:placeholder="'202X.X.X'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -167,13 +179,14 @@
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('vehicleInProductionDate')">{{$t('vehicleInProductionDate')}}</span>
|
||||
:title="$t('implemenDate')">{{$t('implemenDate')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="productionCarImplementTime">
|
||||
<!-- $t('PleaseEnter')+$t('vehicleInProductionDate')-->
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.productionCarImplementTime"
|
||||
:placeholder="$t('PleaseEnter')+$t('vehicleInProductionDate')"/>
|
||||
:placeholder="'202X.X.X'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -185,6 +198,7 @@
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="contentCn">
|
||||
@@ -200,6 +214,7 @@
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="contentEn">
|
||||
@@ -245,9 +260,10 @@
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text" :title="$t('regulatoryContact')">{{$t('regulatoryContact')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel">
|
||||
<a-form-model-item class="itemModel-multi" prop="lawsContactName">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'lawsContact',db_field_txt:$t('regulatoryContact')}"
|
||||
:personneQuery="formInline"
|
||||
@@ -290,7 +306,19 @@
|
||||
data() {
|
||||
return {
|
||||
rules: {
|
||||
lawsContactName:[
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('regulatoryContact') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
titleCn: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('title') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
@@ -298,6 +326,11 @@
|
||||
}
|
||||
],
|
||||
titleEn: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('englishTitle') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
@@ -306,65 +339,82 @@
|
||||
],
|
||||
productionCarImplementTime: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('vehicleInProductionDate') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('implemenDate') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
newCarImplementTime: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('ImplementationDate') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('releaseDate') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
issueTime: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('releaseDate') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('releaseDate') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
implementCar: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('implementationModel') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('implementationModel') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
link: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('link') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 5000,
|
||||
message: this.$t('link') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
workProgressEn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('workProgressEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
max: 5000,
|
||||
message: this.$t('workProgressEn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
workProgressCn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('workProgressEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
max: 5000,
|
||||
message: this.$t('workProgressEn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
contentEn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
required: true,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 5000,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
contentCn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
required: true,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 5000,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
technologyTerritory: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('technicalField') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
+56
-24
@@ -4,28 +4,38 @@
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('title')">{{$t('title')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="titleCn">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.titleCn"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"/>
|
||||
<a-textarea
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model.trim="formInline.titleCn" :rows="3"/>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model.trim="formInline.titleCn"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('title')"/>-->
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('englishTitle')">{{$t('englishTitle')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="titleEn">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.titleEn"
|
||||
:placeholder="$t('PleaseEnter')+$t('englishTitle')"/>
|
||||
<a-textarea
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseEnter')+$t('englishTitle')"
|
||||
v-model.trim="formInline.titleEn" :rows="3"/>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model.trim="formInline.titleEn"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('englishTitle')"/>-->
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -110,6 +120,7 @@
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text" :title="$t('primaryCoverageCn')">{{$t('primaryCoverageCn')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="contentCn">
|
||||
@@ -125,6 +136,7 @@
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required" v-if="!disabled">*</span>
|
||||
<span class="title-text-text" :title="$t('primaryCoverageEn')">{{$t('primaryCoverageEn')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="contentEn">
|
||||
@@ -165,6 +177,11 @@
|
||||
return {
|
||||
rules: {
|
||||
titleCn: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('title') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
@@ -172,6 +189,11 @@
|
||||
}
|
||||
],
|
||||
titleEn: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('englishTitle') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
@@ -180,57 +202,67 @@
|
||||
],
|
||||
relatedAreasEn: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('relatedFieldsEn') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('relatedFieldsEn') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
relatedAreasCn: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('relatedFields') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('relatedFields') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
sourceCn: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('source') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('source') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
sourceEn: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('sourceEn') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('sourceEn') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
time: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('date') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 500,
|
||||
message: this.$t('date') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
link: [
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('link') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
max: 5000,
|
||||
message: this.$t('link') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
contentEn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
required: true,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 5000,
|
||||
message: this.$t('primaryCoverageEn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
contentCn: [
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
required: true,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 5000,
|
||||
message: this.$t('primaryCoverageCn') + this.$t('cannotExceed') + 5000 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
|
||||
+3
-3
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.standardNumber'"
|
||||
:rules="[{max: 100,message: $t('standardNo') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('standardNo') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.standardNameCn'"
|
||||
:rules="[{max: 100,message: $t('standardNameCn') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('standardNameCn') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.standardNameEn'"
|
||||
:rules="[{max: 100,message: $t('standardNameEn') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('standardNameEn') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
|
||||
+3
-3
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.planNumberCn'"
|
||||
:rules="[{max: 100,message: $t('planNoChinese') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('planNoChinese') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.standardNameCn'"
|
||||
:rules="[{max: 100,message: $t('standardNameCn') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('standardNameCn') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.standardNameEn'"
|
||||
:rules="[{max: 100,message: $t('standardNameEn') + $t('cannotExceed') + 100 + $t('Characters'),trigger: 'blur'
|
||||
:rules="[{max: 500,message: $t('standardNameEn') + $t('cannotExceed') + 500 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
|
||||
+6
-5
@@ -6,13 +6,14 @@
|
||||
:visible="visible"
|
||||
:confirm-loading="confirmLoading"
|
||||
:maskClosable="false"
|
||||
:footer="null"
|
||||
@cancel="visible = false"
|
||||
>
|
||||
<template slot="footer">
|
||||
<a-button key="back" @click="visible = false">
|
||||
{{$t('cancel')}}
|
||||
</a-button>
|
||||
</template>
|
||||
<!-- <template slot="footer">-->
|
||||
<!-- <a-button key="back" @click="visible = false">-->
|
||||
<!-- {{$t('cancel')}}-->
|
||||
<!-- </a-button>-->
|
||||
<!-- </template>-->
|
||||
<div style="margin-bottom: 10px;text-align: center">
|
||||
<div @click="handleModule" class="operator-text">
|
||||
<a-icon type="download"/>
|
||||
|
||||
+2
-1
@@ -306,7 +306,8 @@
|
||||
let query = {
|
||||
...this.queryParam,
|
||||
ids: selectedRowKeys.join(','),
|
||||
lawsTechnologyEvaluationId: this.$route.query.id
|
||||
lawsTechnologyEvaluationId: this.$route.query.id,
|
||||
serialNumber: this.$route.query.serialNumber
|
||||
}
|
||||
downloadFile(this.url.exportData, this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults') + '.zip',
|
||||
query, this.Deselect)
|
||||
|
||||
+65
-14
@@ -39,22 +39,22 @@
|
||||
<!-- </div>-->
|
||||
<a-card :bordered="false" class="box-clause" style="margin-top: 20px"
|
||||
v-for="(item,index) in dataSource">
|
||||
<div class="table-operator-admin">
|
||||
<div class="operator-text" v-if="item.id" :class="{'operator-text-feed':index == 0 ? true:false}"
|
||||
style="font-size: 16px">
|
||||
{{$t('engineer')+item.createBy+$t('feedbackResults')}}
|
||||
</div>
|
||||
<div class="text-results" v-if="item.id">
|
||||
{{$t('complianceResults')}}:{{item.complianceResultName}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="table-operator-admin">-->
|
||||
<!-- <div class="operator-text" v-if="item.id" :class="{'operator-text-feed':index == 0 ? true:false}"-->
|
||||
<!-- style="font-size: 16px">-->
|
||||
<!-- {{$t('engineer')+item.createBy+$t('feedbackResults')}}-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="text-results" v-if="item.id">-->
|
||||
<!-- {{$t('complianceResults')}}:{{item.complianceResultName}}-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="table-operator-admin-right">
|
||||
<div @click="fileExportClick" v-if="index == 0" class="operator-text-index">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('fileExport')}}
|
||||
</div>
|
||||
<!-- style="margin-left: 18px"-->
|
||||
<a-table
|
||||
style="margin-left: 18px"
|
||||
ref="table"
|
||||
size="middle"
|
||||
:loading="loading"
|
||||
@@ -96,8 +96,8 @@
|
||||
return {
|
||||
queryParam: {},
|
||||
dataSource: [],
|
||||
userInfoQuery:{},
|
||||
administrators:false,
|
||||
userInfoQuery: {},
|
||||
administrators: false,
|
||||
url: {
|
||||
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/list',
|
||||
exportData: 'lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/exportZip'
|
||||
@@ -106,6 +106,44 @@
|
||||
loading: false,
|
||||
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('engineer'),
|
||||
dataIndex: 'createBy',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
customRender: (value, row, index) => {
|
||||
const obj = {
|
||||
children: value,
|
||||
attrs: {}
|
||||
}
|
||||
if (index === 0) {
|
||||
obj.attrs.rowSpan = row.indexData
|
||||
} else {
|
||||
obj.attrs.rowSpan = 0
|
||||
}
|
||||
return obj
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('complianceResults'),
|
||||
dataIndex: 'complianceResultName',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
customRender: (value, row, index) => {
|
||||
const obj = {
|
||||
children: value,
|
||||
attrs: {}
|
||||
}
|
||||
if (index === 0) {
|
||||
obj.attrs.rowSpan = row.indexData
|
||||
} else {
|
||||
obj.attrs.rowSpan = 0
|
||||
}
|
||||
return obj
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('relevantSections'),
|
||||
dataIndex: 'relatedSection',
|
||||
@@ -190,6 +228,18 @@
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result || []
|
||||
if (this.dataSource && this.dataSource.length > 0) {
|
||||
this.dataSource.forEach(val => {
|
||||
if (val.lawsTechnologyEvaluationResultEOList && val.lawsTechnologyEvaluationResultEOList.length > 0) {
|
||||
val.lawsTechnologyEvaluationResultEOList.forEach(ol => {
|
||||
ol.indexData = val.lawsTechnologyEvaluationResultEOList.length
|
||||
ol.complianceResultName = val.complianceResultName
|
||||
ol.createBy = val.createBy
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
console.log(this.dataSource)
|
||||
if (this.dataSource.length == 0) {
|
||||
this.dataSource.push({
|
||||
name: ''
|
||||
@@ -353,9 +403,10 @@
|
||||
|
||||
.table-operator-admin-right {
|
||||
float: left;
|
||||
width: calc(100% - 240px);
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
border-left: 1px solid #e8e8e8;
|
||||
margin-bottom: 20px;
|
||||
/*border-left: 1px solid #e8e8e8;*/
|
||||
}
|
||||
|
||||
.operator-text-index {
|
||||
|
||||
@@ -262,6 +262,13 @@
|
||||
ellipsis: true,
|
||||
dataIndex: 'flowStatusName'
|
||||
},
|
||||
{
|
||||
title: this.$t('Sponsor'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
ellipsis: true,
|
||||
dataIndex: 'createBy'
|
||||
},
|
||||
{
|
||||
title: this.$t('dateOfInitiation'),
|
||||
align: 'center',
|
||||
@@ -464,8 +471,8 @@
|
||||
lawsTechnologyEvaluationId: row.id,
|
||||
standId: row.standId,
|
||||
remark: row.remark,
|
||||
createBy:row.createBy,
|
||||
flowStatus:row.flowStatus
|
||||
createBy: row.createBy,
|
||||
flowStatus: row.flowStatus
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
@@ -479,8 +486,8 @@
|
||||
lawsTechnologyEvaluationId: row.id,
|
||||
standId: row.standId,
|
||||
remark: row.remark,
|
||||
createBy:row.createBy,
|
||||
flowStatus:row.flowStatus
|
||||
createBy: row.createBy,
|
||||
flowStatus: row.flowStatus
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
monthlyReportRegulationsList: [],
|
||||
loading: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
url: {
|
||||
list: '/report/lawsMonthlyReportManageEO/page'
|
||||
}
|
||||
@@ -74,10 +75,12 @@
|
||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
if (item.createBy == this.userInfo().username){
|
||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<div class="myNews-box-content-box" v-for="(item,index) in dataSource" :key="index" @click="magClick(item)">
|
||||
<img src="../../../assets/wdxx.png" alt="">
|
||||
<div class="content-box">
|
||||
<div class="top" :title="item.titile">
|
||||
{{item.titile}}
|
||||
<div class="top" :title="language == 'zh-cn'?item.msgContentCn:item.msgContent">
|
||||
{{language == 'zh-cn'?item.msgContentCn:item.msgContent}}
|
||||
</div>
|
||||
<div class="botton">
|
||||
{{item.sendTime}}
|
||||
@@ -44,11 +44,13 @@
|
||||
loading: false,
|
||||
pageNo: 1,
|
||||
pageSize: 4,
|
||||
dataSource: []
|
||||
dataSource: [],
|
||||
language: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
this.language = localStorage.getItem('language') || ''
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
@@ -69,9 +71,16 @@
|
||||
magClick(row) {
|
||||
getAction(this.url.readAllMsg, { ids: row.id }).then((res) => {
|
||||
})
|
||||
if (this.language == 'zh-cn'){
|
||||
localStorage.setItem('msgContent', row.msgContentCn)
|
||||
}else{
|
||||
localStorage.setItem('msgContent', row.msgContent)
|
||||
}
|
||||
this.$router.push({
|
||||
path: '/system/MessageDetails',
|
||||
query: row
|
||||
path: '/isps/userAnnouncement',
|
||||
query: {
|
||||
Date: Date.now()
|
||||
}
|
||||
})
|
||||
},
|
||||
moreClick() {
|
||||
|
||||
+2
-1
@@ -205,7 +205,8 @@
|
||||
},
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
getList() {
|
||||
let query = {
|
||||
|
||||
@@ -319,6 +319,7 @@
|
||||
serial_number: '',
|
||||
confirmLoading: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
loading: false,
|
||||
dataSource: [],
|
||||
pageNo: 1,
|
||||
@@ -462,10 +463,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||
<PersonnelSelection :query="item"
|
||||
v-if="visible"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
form: {},
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('clauseNo'), trigger: 'blur' },
|
||||
// { required: true, message: this.$t('PleaseEnter') + this.$t('clauseNo'), trigger: 'blur' },
|
||||
{ min: 1, max: 200, message: this.$t('cantExeed') + '200' + this.$t('characters'), trigger: 'blur' }
|
||||
],
|
||||
itemName: [
|
||||
|
||||
+114
-18
@@ -9,12 +9,21 @@
|
||||
<span> {{$t('comparisonResults')}}</span>
|
||||
</div>
|
||||
<div class="doc-detail-right">
|
||||
<div @click="viewVarianceAssessmentClick"
|
||||
class="operator-text-text"
|
||||
:class="{'operator-text-text-text':isVarianceOne?true:false}"
|
||||
:title="$t('viewVarianceAssessment')">
|
||||
<a-icon type="eye"/>
|
||||
{{$t('viewVarianceAssessment')}}
|
||||
</div>
|
||||
<div @click="viewConsistentAssessmentClick" class="operator-text-text"
|
||||
:class="{'operator-text-text-text':isVarianceTwo?true:false}"
|
||||
:title="$t('viewConsistentAssessment')">
|
||||
<a-icon type="eye"/>
|
||||
{{$t('viewConsistentAssessment')}}
|
||||
</div>
|
||||
<div @click="viewAllClick" class="operator-text-text"
|
||||
:class="{'operator-text-text-text':isVarianceThe?true:false}"
|
||||
:title="$t('viewAll')">
|
||||
<a-icon type="eye"/>
|
||||
{{$t('viewAll')}}
|
||||
@@ -40,12 +49,21 @@
|
||||
<div class="detail-content-header-content-left"
|
||||
:title="resultData.serialNumberLeft + resultData.fileNameLeft"
|
||||
:class="{'detail-content-header-content-left-active':isDisplay}">
|
||||
{{$t('selectedStandard')}}:{{resultData.serialNumberLeft}} {{resultData.fileNameLeft}}
|
||||
{{$t('selectedStandard')}}:{{resultData.serialNumberLeft}}
|
||||
<span style="cursor: pointer"
|
||||
@click="fileClick(resultData.fileNameLeft,resultData.fileIdLeft)">{{resultData.fileNameLeft}}</span>
|
||||
</div>
|
||||
<div class="detail-content-header-content-content"
|
||||
:title="resultData.serialNumberRight + resultData.fileNameRight"
|
||||
:class="{'detail-content-header-content-left-active':isDisplay}">
|
||||
{{$t('selectedStandard')}}:{{resultData.serialNumberRight}} {{resultData.fileNameRight}}
|
||||
{{$t('selectedStandard')}}:{{resultData.serialNumberRight}}
|
||||
<span style="cursor: pointer"
|
||||
@click="fileClick(resultData.fileNameRight,resultData.fileIdRight)">{{resultData.fileNameRight}}</span>
|
||||
</div>
|
||||
<div class="detail-content-header-content-rightOne"
|
||||
:class="{'detail-content-header-content-rightOne-active':isDisplay}"
|
||||
:title="$t('comparisonDifferenceComment')">
|
||||
{{$t('comparisonDifferenceComment')}}
|
||||
</div>
|
||||
<div class="detail-content-header-content-right" v-if="!isDisplay">
|
||||
{{$t('operation')}}
|
||||
@@ -75,19 +93,24 @@
|
||||
</div>
|
||||
<div class="detail-content-left-button" v-html="item.itemsTextRight"></div>
|
||||
</div>
|
||||
<div class="detail-content-bottom"
|
||||
:class="{'detail-content-bottom-color':checkboxList.join(',').includes(item.id)}">
|
||||
<div class="detail-content-bottom-left"
|
||||
:class="{'detail-content-bottom-left-text':language == 'en-us' ? true:false}"
|
||||
:title="$t('comparisonDifferenceComment')">
|
||||
<a-icon type="message"/>
|
||||
{{$t('comparisonDifferenceComment')}}:
|
||||
</div>
|
||||
<div class="detail-content-bottom-right"
|
||||
:class="{'detail-content-bottom-right-text':language == 'en-us' ? true:false}">
|
||||
<div class="detail-content-right-one">
|
||||
<div class="detail-content-left-button">
|
||||
{{item.comment}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="detail-content-bottom"-->
|
||||
<!-- :class="{'detail-content-bottom-color':checkboxList.join(',').includes(item.id)}">-->
|
||||
<!-- <div class="detail-content-bottom-left"-->
|
||||
<!-- :class="{'detail-content-bottom-left-text':language == 'en-us' ? true:false}"-->
|
||||
<!-- :title="$t('comparisonDifferenceComment')">-->
|
||||
<!-- <a-icon type="message"/>-->
|
||||
<!-- {{$t('comparisonDifferenceComment')}}:-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="detail-content-bottom-right"-->
|
||||
<!-- :class="{'detail-content-bottom-right-text':language == 'en-us' ? true:false}">-->
|
||||
<!-- {{item.comment}}-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="detail-content-content-text-right" v-if="!isDisplay">
|
||||
<span class="text-button-one">
|
||||
@@ -141,7 +164,7 @@
|
||||
<span>{{$t('fullTextComments')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" style="width: calc(100% - 113px)" prop="comment">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('fullTextComments')"
|
||||
<a-textarea :placeholder="$t('pleaseEnterfullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:rows="4"/>
|
||||
</a-form-model-item>
|
||||
@@ -167,6 +190,8 @@
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import commentList from './commentList'
|
||||
import { putAction } from '../../../../api/manage'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'comparisonResults',
|
||||
@@ -177,7 +202,12 @@
|
||||
return {
|
||||
loading: false,
|
||||
checkboxList: [],
|
||||
isVarianceOne: false,
|
||||
isVarianceTwo: false,
|
||||
isVarianceThe: false,
|
||||
confirmLoading: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
visible: false,
|
||||
formInlineText: {},
|
||||
rulesText: {},
|
||||
@@ -205,6 +235,7 @@
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
Fallback() {
|
||||
this.$router.push({
|
||||
path: '/documentComparison'
|
||||
@@ -232,12 +263,45 @@
|
||||
},
|
||||
viewConsistentAssessmentClick() {
|
||||
this.comment = '一致'
|
||||
this.isVarianceTwo = true
|
||||
this.isVarianceOne = false
|
||||
this.isVarianceThe = false
|
||||
this.getData()
|
||||
},
|
||||
viewVarianceAssessmentClick() {
|
||||
this.isVarianceOne = true
|
||||
this.isVarianceTwo = false
|
||||
this.isVarianceThe = false
|
||||
this.comment = '差异'
|
||||
this.getData()
|
||||
},
|
||||
viewAllClick() {
|
||||
this.comment = ''
|
||||
this.isVarianceThe = true
|
||||
this.isVarianceOne = false
|
||||
this.isVarianceTwo = false
|
||||
this.getData()
|
||||
},
|
||||
fileClick(name, id) {
|
||||
let fileName = name
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
let index2 = fileName.length
|
||||
let fileSuffix = fileName.substring(index1, index2)
|
||||
if (fileSuffix == '.pdf') {
|
||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + id + '&userName=' + this.userInfo().username))
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||
}
|
||||
},
|
||||
getData() {
|
||||
let query = {
|
||||
id: this.$route.query.id,
|
||||
@@ -432,6 +496,7 @@
|
||||
.operator-text-text {
|
||||
cursor: pointer;
|
||||
margin-right: 53px;
|
||||
max-width: 138px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
@@ -466,7 +531,7 @@
|
||||
color: #040B29;
|
||||
|
||||
.detail-content-header-content-left {
|
||||
width: calc(50% - 64px);
|
||||
width: calc(50% - 194px);
|
||||
height: 56px;
|
||||
display: inline-block;
|
||||
background: rgba(4, 11, 41, 0.0300);
|
||||
@@ -479,7 +544,7 @@
|
||||
}
|
||||
|
||||
.detail-content-header-content-content {
|
||||
width: calc(50% - 64px);
|
||||
width: calc(50% - 194px);
|
||||
display: inline-block;
|
||||
height: 56px;
|
||||
background: rgba(4, 11, 41, 0.0300);
|
||||
@@ -491,6 +556,23 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.detail-content-header-content-rightOne {
|
||||
width: 260px;
|
||||
display: inline-block;
|
||||
height: 56px;
|
||||
background: rgba(4, 11, 41, 0.0300);
|
||||
border-radius: 4px 0px 0px 4px;
|
||||
padding-left: 24px;
|
||||
border-right: 1px #EFF1F3 solid;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.detail-content-header-content-rightOne-active {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.detail-content-header-content-right {
|
||||
width: 128px;
|
||||
display: inline-block;
|
||||
@@ -562,7 +644,7 @@
|
||||
}
|
||||
|
||||
.detail-content-left {
|
||||
width: 50%;
|
||||
width: calc(50% - 130px);
|
||||
display: inline-block;
|
||||
float: left;
|
||||
padding-right: 24px;
|
||||
@@ -570,10 +652,20 @@
|
||||
}
|
||||
|
||||
.detail-content-right {
|
||||
width: 50%;
|
||||
width: calc(50% - 104px);
|
||||
display: inline-block;
|
||||
float: left;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
border-right: 1px #EFF1F3 solid;
|
||||
}
|
||||
|
||||
.detail-content-right-one {
|
||||
width: 234px;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
padding-left: 24px;
|
||||
/*border-right: 1px #EFF1F3 solid;*/
|
||||
}
|
||||
|
||||
.detail-content-left-top {
|
||||
@@ -665,7 +757,7 @@
|
||||
}
|
||||
|
||||
.detail-content-header-content-left-active {
|
||||
width: 50% !important;
|
||||
width: calc(50% - 130px) !important;
|
||||
}
|
||||
|
||||
.detail-content-bottom-left-text {
|
||||
@@ -675,4 +767,8 @@
|
||||
.detail-content-bottom-right-text {
|
||||
width: calc(50% - 256px);
|
||||
}
|
||||
|
||||
.operator-text-text-text {
|
||||
color: #00B3BE !important;
|
||||
}
|
||||
</style>
|
||||
+10
-6
@@ -91,7 +91,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="Remarks">
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
<a-form-model :model="formInline"
|
||||
class="formAdd" :rules="rules"
|
||||
ref="ruleForm">
|
||||
<div class="box-title-text-Remarks">
|
||||
<div class="title-text-Remarks" :title="$t('comparativeComments')">
|
||||
<span>{{$t('comparativeComments')}}</span>
|
||||
@@ -99,7 +101,7 @@
|
||||
<a-form-model-item class="itemModel" prop="comment">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('comparativeComments')"
|
||||
v-model="formInline.comment"
|
||||
:rows="4"/>
|
||||
:rows="3"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-form-model>
|
||||
@@ -135,7 +137,7 @@
|
||||
<span>{{$t('fullTextComments')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" style="width: calc(100% - 113px)" prop="comment">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('fullTextComments')"
|
||||
<a-textarea :placeholder="$t('PleaseEnter')+' '+$t('fullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:rows="4"/>
|
||||
</a-form-model-item>
|
||||
@@ -536,7 +538,7 @@
|
||||
.detail-content-left {
|
||||
width: 50%;
|
||||
float: left;
|
||||
height: 620px;
|
||||
height: calc(100vh - 210px);
|
||||
border-right: 2px #EFF1F3 solid;
|
||||
padding: 24px 32px;
|
||||
box-sizing: border-box;
|
||||
@@ -545,7 +547,7 @@
|
||||
|
||||
.detail-content-right {
|
||||
width: 50%;
|
||||
height: 620px;
|
||||
height: calc(100vh - 210px);
|
||||
float: left;
|
||||
padding: 24px 32px;
|
||||
box-sizing: border-box;
|
||||
@@ -593,6 +595,7 @@
|
||||
.Remarks {
|
||||
margin-top: 20px;
|
||||
width: 50%;
|
||||
display: inline-block;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -602,7 +605,8 @@
|
||||
}
|
||||
|
||||
.submit-button {
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
margin-top: 20px;
|
||||
text-align: right;
|
||||
padding: 0 32px;
|
||||
|
||||
+5
-2
@@ -196,6 +196,7 @@
|
||||
pageNoRight: 1,
|
||||
formInline: {},
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
rules: {
|
||||
remark: [
|
||||
{
|
||||
@@ -388,10 +389,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.fileId })
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="title-text" :title="$t('standard')">
|
||||
<span>{{$t('standard')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||
<a-input class="box-input" :placeholder="$t('enterStandard')"
|
||||
v-model="queryParam.serialNumber"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="title-text" :title="$t('title')">
|
||||
<span>{{$t('title')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||
<a-input class="box-input" :placeholder="$t('entertitle')"
|
||||
v-model="queryParam.title"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -42,11 +42,11 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="initiatingProcessClick" class="operator-text">
|
||||
<div @click="initiatingProcessClick" v-has="'documentComparison:Initiate'" class="operator-text">
|
||||
<a-icon type="apartment"/>
|
||||
{{$t('initiateComparison')}}
|
||||
</div>
|
||||
<div @click="BatchDelete" class="operator-text">
|
||||
<div @click="BatchDelete" v-has="'documentComparison:batchDelete'" class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -67,15 +67,15 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="comparisonResultsClick(record)">{{$t('comparisonResults')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username"
|
||||
v-if="record.createBy == userInfoQuery.username || administrators"
|
||||
@click="subscribe(record)">
|
||||
{{!record.releaseState || record.releaseState == 'draft' ? $t('release') :$t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username && record.releaseState == 'draft'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username && record.releaseState == 'draft'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||
</span>
|
||||
<span slot="serialNumberRight" :title="text" slot-scope="text,record">
|
||||
@@ -126,15 +126,17 @@
|
||||
dataSource: [],
|
||||
selectedRowKeys: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
queryParam: {},
|
||||
userInfoQuery: {},
|
||||
administrators:false,
|
||||
selectedRowKeysRecord: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('standard') + 1,
|
||||
title: this.$t('standard') + ' 1',
|
||||
align: 'center',
|
||||
dataIndex: 'serialNumberLeft',
|
||||
width: 170,
|
||||
@@ -142,7 +144,7 @@
|
||||
scopedSlots: { customRender: 'serialNumberLeft' }
|
||||
},
|
||||
{
|
||||
title: this.$t('title') + 1,
|
||||
title: this.$t('title') + ' 1',
|
||||
align: 'center',
|
||||
dataIndex: 'titleLeft',
|
||||
width: 170,
|
||||
@@ -150,7 +152,7 @@
|
||||
scopedSlots: { customRender: 'serialNumberLeft' }
|
||||
},
|
||||
{
|
||||
title: this.$t('TextStatus') + 1,
|
||||
title: this.$t('TextStatus') + ' 1',
|
||||
align: 'center',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
@@ -165,7 +167,7 @@
|
||||
// scopedSlots: { customRender: 'fileNameLeft' }
|
||||
// },
|
||||
{
|
||||
title: this.$t('standard') + 2,
|
||||
title: this.$t('standard') + ' 2',
|
||||
align: 'center',
|
||||
dataIndex: 'serialNumberRight',
|
||||
ellipsis: true,
|
||||
@@ -173,7 +175,7 @@
|
||||
width: 170
|
||||
},
|
||||
{
|
||||
title: this.$t('title') + 2,
|
||||
title: this.$t('title') + ' 2',
|
||||
align: 'center',
|
||||
dataIndex: 'titleRight',
|
||||
scopedSlots: { customRender: 'serialNumberRight' },
|
||||
@@ -181,7 +183,7 @@
|
||||
width: 170
|
||||
},
|
||||
{
|
||||
title: this.$t('TextStatus') + 2,
|
||||
title: this.$t('TextStatus') + ' 2',
|
||||
align: 'center',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
@@ -232,6 +234,14 @@
|
||||
this.queryParam = { ...this.queryParam }
|
||||
}
|
||||
this.userInfoQuery = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
@@ -422,10 +432,12 @@
|
||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdLeft + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + row.fileIdLeft + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', row.fileNameLeft, { id: row.fileIdLeft })
|
||||
}
|
||||
@@ -440,10 +452,12 @@
|
||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + row.fileIdRight + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + row.fileIdRight + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', row.fileNameRight, { id: row.fileIdRight })
|
||||
}
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@
|
||||
...this.queryParam
|
||||
}
|
||||
this.loading = true
|
||||
postAction('document/bussDocumentLibraryEO/ocrPageInfo', query).then((res) => {
|
||||
postAction('document/bussDocumentLibraryEO/transPageInfo', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataList = res.result.records || []
|
||||
this.total = res.result.total
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="title-text" :title="$t('standard')">
|
||||
<span>{{$t('standard')}}</span>
|
||||
</div>
|
||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||
<j-input class="box-input" :placeholder="$t('enterStandard')"
|
||||
v-model="queryParam.serialNumber"></j-input>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="title-text" :title="$t('title')">
|
||||
<span>{{$t('title')}}</span>
|
||||
</div>
|
||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||
<j-input class="box-input" :placeholder="$t('entertitle')"
|
||||
v-model="queryParam.title"></j-input>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -27,7 +27,7 @@
|
||||
<span>{{$t('translationResults')}}</span>
|
||||
</div>
|
||||
<j-dict-select-tag class="box-input" v-model="queryParam.translationResult"
|
||||
:placeholder="$t('PleaseSelect')+$t('translationResults')"
|
||||
:placeholder="$t('selectTranslationResults')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" dictCode="translation_result"/>
|
||||
</div>
|
||||
@@ -59,15 +59,15 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="uploadClick" class="operator-text">
|
||||
<div @click="uploadClick" v-has="'documentTranslation:upload'" class="operator-text">
|
||||
<a-icon type="cloud-upload"/>
|
||||
{{$t('upload1')}}
|
||||
</div>
|
||||
<div @click="RetrieveFilesClick" class="operator-text">
|
||||
<div @click="RetrieveFilesClick" v-has="'documentTranslation:retrieval'" class="operator-text">
|
||||
<a-icon type="database"/>
|
||||
{{$t('RetrieveFiles')}}
|
||||
</div>
|
||||
<div @click="BatchDelete" class="operator-text">
|
||||
<div @click="BatchDelete" v-has="'documentTranslation:batchDeletion'" class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -86,18 +86,22 @@
|
||||
>
|
||||
<!-- -->
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentTranslation:view'"
|
||||
@click="viewClick(record)">{{$t('view')}}</a>
|
||||
<!-- <a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>-->
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username"
|
||||
v-if="record.createBy == userInfoQuery.username || administrators"
|
||||
@click="subscribe(record)">
|
||||
{{!record.releaseCondition || record.releaseCondition == 'draft' ? $t('release') :$t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentTranslation:download'"
|
||||
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'"
|
||||
v-has="'documentTranslation:delete'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseCondition == 'draft'"
|
||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||
</span>
|
||||
<span slot="standardTitle" slot-scope="text,record" :title="text">
|
||||
@@ -158,6 +162,7 @@
|
||||
queryParam: {},
|
||||
userInfoQuery: {},
|
||||
selectedRowKeysRecord: [],
|
||||
administrators:false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('standard'),
|
||||
@@ -233,6 +238,14 @@
|
||||
}
|
||||
this.getList()
|
||||
this.userInfoQuery = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
|
||||
@@ -352,6 +352,7 @@
|
||||
selectModel: '',
|
||||
fileList: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
queryParamSeach: '',
|
||||
mapOne: {},
|
||||
mapTwo: {},
|
||||
@@ -696,10 +697,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
||||
}
|
||||
|
||||
+9
-4
@@ -92,6 +92,7 @@
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
pageNo: 1,
|
||||
queryParam: {}
|
||||
}
|
||||
@@ -129,10 +130,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
},
|
||||
ResetSearch() {
|
||||
@@ -151,10 +154,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<div class="text-left">
|
||||
<div class="text-left-wrap">
|
||||
<div class="text-left-select">
|
||||
<span class="text-sel" :title="$t('problemClassification')">{{$t('problemClassification')}}</span>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('problemClassification')"
|
||||
<span class="text-sel" :title="$t('classification')">{{$t('classification')}}</span>
|
||||
<a-select :placeholder="$t('selectClassification')"
|
||||
class="text-select"
|
||||
mode="multiple"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
@@ -23,7 +23,7 @@
|
||||
<div class="text-left-select">
|
||||
<span class="text-sel" :title="$t('market')">{{$t('market')}}</span>
|
||||
<j-multi-select-tag class="text-select" v-model="queryParamOne.target_market"
|
||||
:placeholder="$t('PleaseSelect')+$t('market')"
|
||||
:placeholder="$t('selectMarket')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'region'"/>
|
||||
</div>
|
||||
@@ -132,6 +132,7 @@
|
||||
loading: false,
|
||||
fileList: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
mapOne: {},
|
||||
mapTwo: {},
|
||||
queryParamOne: {},
|
||||
@@ -175,13 +176,20 @@
|
||||
})
|
||||
},
|
||||
checkedClick(item) {
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/problemKnowledgeBaseView',
|
||||
localStorage.setItem('problemknowledgeBase',JSON.stringify(item))
|
||||
this.$router.push({
|
||||
path: '/problemknowledgeBase',
|
||||
query: {
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
// let newUrl = this.$router.resolve({
|
||||
// path: '/problemknowledgeBase',
|
||||
// query: {
|
||||
// id: item.id
|
||||
// }
|
||||
// })
|
||||
// window.open(newUrl.href, '_blank')
|
||||
},
|
||||
pageOnChange(page, pageSize) {
|
||||
this.pageNo = page
|
||||
@@ -221,7 +229,8 @@
|
||||
},
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
getParagraphInfoList() {
|
||||
let queryParamIndex = JSON.parse(JSON.stringify(this.queryParam))
|
||||
@@ -267,10 +276,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName || fileQuery.file_name, { id: fileQuery.id })
|
||||
}
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
pageNo: 1,
|
||||
queryParam: {}
|
||||
}
|
||||
@@ -170,10 +171,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
||||
}
|
||||
@@ -198,7 +201,8 @@
|
||||
},
|
||||
getText(str) {
|
||||
let words = str.replace(/<[^<>]+>/g, '').replace(/ /gi, '') //这里是去除标签
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
//.replace(/\s/g, '') //这里是去除空格
|
||||
return words
|
||||
},
|
||||
getList() {
|
||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||
@@ -239,10 +243,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.file_id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
},
|
||||
titleClick(item) {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
v-else-if="active === $t('whole') || active === $t('problemKnowledgeBase')
|
||||
|| active === $t('monthlyReportRegulations')"
|
||||
class="inputSearch"
|
||||
:placeholder="$t('pleaseEnter')+$t('searchContent')"
|
||||
:placeholder="$t('enterSearchContent')"
|
||||
></a-input>
|
||||
<a-button class="textSearch"
|
||||
v-if="active === $t('DocumentLibrary')"
|
||||
|
||||
@@ -279,6 +279,7 @@
|
||||
components: {},
|
||||
visibleFile: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
dataSourceFile: [],
|
||||
columnsFile: [
|
||||
{
|
||||
@@ -830,10 +831,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
@@ -848,10 +851,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||
}
|
||||
|
||||
@@ -65,16 +65,16 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="edit(record)"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
v-if="record.createBy == userData.username"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
:disabled="record.state == 1?true:false">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userData.username"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
v-has="'dummyInventoryBase:issue'"
|
||||
@click="withdraw(record)">
|
||||
{{record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-if="record.createBy == userData.username"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
@click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
|
||||
<a class="text-operation"
|
||||
@@ -84,7 +84,7 @@
|
||||
</a>
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
v-if="record.createBy == userData.username"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
@@ -244,13 +244,21 @@
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
}
|
||||
],
|
||||
queryParam: {}
|
||||
|
||||
queryParam: {},
|
||||
administrators:false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
this.userData = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('file')">{{$t('file')}}</span>
|
||||
:title="$t('fileName')">{{$t('fileName')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="fileKey">
|
||||
<a-button type="primary" class="button-text"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -225,6 +225,7 @@
|
||||
<a-input class="box-input add-input"
|
||||
:disabled="disabled"
|
||||
type="textarea"
|
||||
@input="onInput"
|
||||
v-model.trim="formInline.controlValues"
|
||||
:placeholder="$t('PleaseEnter')+$t('NcontrolAlternatives')"/>
|
||||
</a-form-model-item>
|
||||
@@ -415,6 +416,7 @@ export default {
|
||||
controlValues: [
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('controlAlternatives'), trigger: 'blur' },
|
||||
{ min:1, max: 500, message: this.$t('cantExeed')+'500'+this.$t('characters'), trigger: 'blur' },
|
||||
{ validator: this.test }
|
||||
],
|
||||
titleDefaultValue: [
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('DefaultValue'), trigger: 'blur' },
|
||||
@@ -452,6 +454,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
test(rule, value, callback) {
|
||||
var money = /^[^##!!]*$/
|
||||
if (money.test(value)) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error(this.$t('disableInput') + '!#'))
|
||||
}
|
||||
},
|
||||
getcontentListedEdit() {
|
||||
getAction('sys/dict/getDictItems/cert_category', { }).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -600,9 +610,12 @@ export default {
|
||||
};
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
},
|
||||
onInput(r) {
|
||||
let value = r.target.value
|
||||
r.target.value = value.replace(/[!!#]/g, '')
|
||||
this.formInline.controlValues = r.target.value
|
||||
this.formInline = {...this.formInline}
|
||||
},
|
||||
getSysCategoryTree() {
|
||||
getAction('/sys/category/getSysCategoryTree', {}).then((res) => {
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -8,24 +8,24 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-content">
|
||||
<div class="operator-text"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
|
||||
@click="distributionEngineerClick($t('distributionEngineer'),1)">
|
||||
<a-icon type="audit"/>
|
||||
{{ $t('distributionEngineer') }}
|
||||
</div>
|
||||
<div class="operator-text"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
|
||||
@click="reminderHandling()">
|
||||
<a-icon type="sound"/>
|
||||
{{ $t('reminderHandling') }}
|
||||
</div>
|
||||
<div class="operator-text"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
|
||||
@click="distributionEngineerClick($t('addFeedback'),2)">
|
||||
<a-icon type="plus-circle"/>
|
||||
{{ $t('addFeedback') }}
|
||||
</div>
|
||||
<a-button class="header-btn submit"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
|
||||
@click="distributionEngineerClick($t('distributionEngineer'),1)"
|
||||
type="primary">
|
||||
{{$t('distributionEngineer')}}
|
||||
</a-button>
|
||||
<a-button class="header-btn submit"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
|
||||
@click="distributionEngineerClick($t('addFeedback'),2)"
|
||||
type="primary">
|
||||
{{$t('addFeedback')}}
|
||||
</a-button>
|
||||
<!-- <div class="operator-text"-->
|
||||
<!-- v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"-->
|
||||
<!-- @click="reminderHandling()">-->
|
||||
<!-- <a-icon type="sound"/>-->
|
||||
<!-- {{ $t('reminderHandling') }}-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<a-table
|
||||
ref="table"
|
||||
@@ -74,6 +74,11 @@
|
||||
@click="deleted(result)">
|
||||
{{$t('deleteLib')}}
|
||||
</a>
|
||||
<a class="text"
|
||||
@click="reminderClick(result)"
|
||||
v-if="$route.query.TaskKey == 'zrrclrw' && !result.createUser">
|
||||
{{ $t('reminderHandling') }}
|
||||
</a>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-modal
|
||||
@@ -99,6 +104,7 @@
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'userId',db_field_txt:$t('engineer')}"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
:distributionEngineerList="distributionEngineerList"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.userIdName"/>
|
||||
@@ -278,31 +284,31 @@
|
||||
</div>
|
||||
<JLoading :loading="pageLoading">{{$t('dataLoading')}}</JLoading>
|
||||
</a-modal>
|
||||
<a-modal
|
||||
:title="$t('reminderHandling')"
|
||||
:width="800"
|
||||
:visible="visibleTable"
|
||||
:maskClosable="false"
|
||||
@cancel="visibleTable = false"
|
||||
>
|
||||
<template slot="footer">
|
||||
<a-button key="back" @click="visibleTable = false">
|
||||
{{$t('cancel')}}
|
||||
</a-button>
|
||||
</template>
|
||||
<a-table
|
||||
ref="table"
|
||||
:loading="loadingTable"
|
||||
:pagination="false"
|
||||
:scroll="{x: true,y:400}"
|
||||
:data-source="dataSourceTable"
|
||||
:columns="columnsTable"
|
||||
>
|
||||
<span slot="operationTable" slot-scope="result">
|
||||
<a @click="reminderClick(result)">{{$t('reminder')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</a-modal>
|
||||
<!-- <a-modal-->
|
||||
<!-- :title="$t('reminderHandling')"-->
|
||||
<!-- :width="800"-->
|
||||
<!-- :visible="visibleTable"-->
|
||||
<!-- :maskClosable="false"-->
|
||||
<!-- @cancel="visibleTable = false"-->
|
||||
<!-- >-->
|
||||
<!-- <template slot="footer">-->
|
||||
<!-- <a-button key="back" @click="visibleTable = false">-->
|
||||
<!-- {{$t('cancel')}}-->
|
||||
<!-- </a-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- <a-table-->
|
||||
<!-- ref="table"-->
|
||||
<!-- :loading="loadingTable"-->
|
||||
<!-- :pagination="false"-->
|
||||
<!-- :scroll="{x: true,y:400}"-->
|
||||
<!-- :data-source="dataSourceTable"-->
|
||||
<!-- :columns="columnsTable"-->
|
||||
<!-- >-->
|
||||
<!-- <span slot="operationTable" slot-scope="result">-->
|
||||
<!-- <a @click="reminderClick(result)">{{$t('reminder')}}</a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-table>-->
|
||||
<!-- </a-modal>-->
|
||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||
<viewFileModel ref="viewFileModelRef"/>
|
||||
</div>
|
||||
@@ -435,7 +441,7 @@
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
align: 'left',
|
||||
width: 160,
|
||||
width: 190,
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
}
|
||||
],
|
||||
@@ -721,7 +727,7 @@
|
||||
_this.formInline.userId.splice(num, 1)
|
||||
_this.formInline.userId = _this.formInline.userId.join(',')
|
||||
_this.formInline = { ..._this.formInline }
|
||||
if (id){
|
||||
if (id) {
|
||||
deleteAction('/project/projectTaskInventoryDetailEO/delete', { id: id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
@@ -828,7 +834,7 @@
|
||||
line-height: 80px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
@@ -959,4 +965,9 @@
|
||||
line-height: 200px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
height: 38px;
|
||||
margin-left: 16px;
|
||||
}
|
||||
</style>
|
||||
@@ -384,7 +384,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -478,7 +478,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -31,26 +31,31 @@
|
||||
:rules="[{ required: true, message: $t('relevantSections') + $t('cannotEmpty'), trigger: 'blur'},
|
||||
{max: 300,message: $t('relevantSections') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
:title="item.relatedSection"
|
||||
v-model="item.relatedSection"
|
||||
:placeholder="$t('PleaseEnter')+$t('relevantSections')"/>
|
||||
<a-textarea :placeholder="$t('PleaseEnter')+$t('relevantSections')"
|
||||
:disabled="disabled"
|
||||
:title="item.relatedSection"
|
||||
v-model="item.relatedSection" :rows="4"/>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model="item.relatedSection"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('relevantSections')"/>-->
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span>
|
||||
<span class="title-text-text" :title="$t('clauseContent')">{{$t('clauseContent')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="accessoryFile">
|
||||
<a-button type="primary" class="button-text"
|
||||
@click="clickButtonToUpload('accessoryFile',index)">
|
||||
{{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
|
||||
item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.clauseContent'"
|
||||
:rules="[
|
||||
{max: 300,message: $t('clauseContent') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-textarea :placeholder="$t('PleaseEnter')+$t('clauseContent')"
|
||||
:disabled="disabled"
|
||||
:title="item.clauseContent"
|
||||
v-model="item.clauseContent" :rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -98,17 +103,15 @@
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('clauseContent')">{{$t('clauseContent')}}</span>
|
||||
<span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="'dataList.'+index+'.clauseContent'"
|
||||
:rules="[
|
||||
{max: 300,message: $t('clauseContent') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
|
||||
}]">
|
||||
<a-textarea :placeholder="$t('PleaseEnter')+$t('clauseContent')"
|
||||
:disabled="disabled"
|
||||
:title="item.clauseContent"
|
||||
v-model="item.clauseContent" :rows="4"/>
|
||||
<a-form-model-item class="itemModel" prop="accessoryFile">
|
||||
<a-button type="primary" class="button-text"
|
||||
@click="clickButtonToUpload('accessoryFile',index)">
|
||||
{{ (item.accessoryFile === 'null' || item.accessoryFile === '' ||
|
||||
item.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -235,7 +238,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
line-height: 80px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
return {
|
||||
dataSource: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('ProcessType'),
|
||||
@@ -187,10 +188,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
@@ -205,10 +208,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
line-height: 40px;
|
||||
|
||||
.header-text {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #000F16;
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@
|
||||
}
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@
|
||||
this.edit()
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -57,6 +57,12 @@
|
||||
<a-icon type="profile"/>
|
||||
{{$t('TaskParameterCollection')}}
|
||||
</div>
|
||||
<div class="Virtual-detail-left-text"
|
||||
:title="$t('projectStatus')"
|
||||
@click="textClick(5,$t('projectStatus'))">
|
||||
<a-icon type="cluster" />
|
||||
{{$t('projectStatus')}}
|
||||
</div>
|
||||
<a-icon @click="textIconClick" type="menu-fold" class="text-icon"/>
|
||||
</div>
|
||||
<div v-if="!isDisplay" class="Virtual-detail-left-One">
|
||||
@@ -85,17 +91,24 @@
|
||||
@click="textClick(4,$t('TaskParameterCollection'))">
|
||||
<a-icon type="profile"/>
|
||||
</div>
|
||||
<div class="Virtual-detail-left-text"
|
||||
:title="$t('projectStatus')"
|
||||
@click="textClick(5,$t('projectStatus'))">
|
||||
<a-icon type="cluster" />
|
||||
</div>
|
||||
<a-icon @click="textIconClick" type="menu-unfold" class="text-icon-one"/>
|
||||
</div>
|
||||
<div class="Virtual-detail-right"
|
||||
:style="{'width':isDisplay?'calc(100% - 240px)':'calc(100% - 66px)'}">
|
||||
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === $t('projectDetails')"/>
|
||||
<ProjectDetailsName v-if="textTitle === $t('projectDetails')"/>
|
||||
<listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"
|
||||
:areaOfResponsibilityList="areaOfResponsibilityList"/>
|
||||
:areaOfResponsibilityList="areaOfResponsibilityList"/>
|
||||
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
|
||||
v-else-if="textTitle === $t('taskList')"/>
|
||||
<TaskParameterCollection v-else-if="textTitle === $t('TaskParameterCollection')"/>
|
||||
<nonConformance v-else-if="textTitle === $t('nonConformance')"/>
|
||||
<projectStatus @TaskListChange="TaskListChange"
|
||||
v-else-if="textTitle === $t('projectStatus')"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,6 +125,7 @@
|
||||
import ProjectDetailsName from '../components/ProjectDetails'
|
||||
import TaskParameterCollection from '../components/TaskParameterCollection'
|
||||
import nonConformance from '../components/nonConformance'
|
||||
import projectStatus from '../components/projectStatus'
|
||||
import updateLog from '@/components/UpdateLog/index'
|
||||
import historicalVersionList from '../components/historicalVersionList'
|
||||
import commentList from '../components/commentList'
|
||||
@@ -128,7 +142,8 @@
|
||||
nonConformance,
|
||||
updateLog,
|
||||
historicalVersionList,
|
||||
commentList
|
||||
commentList,
|
||||
projectStatus
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -138,7 +153,7 @@
|
||||
isTrue: true,
|
||||
loading: false,
|
||||
isDisplay: true,
|
||||
areaOfResponsibilityList:{},
|
||||
areaOfResponsibilityList: {},
|
||||
url: {
|
||||
logList: '/project/projectLawsInventoryLogEO/page',
|
||||
historicalVersionUrl: '',
|
||||
@@ -150,7 +165,7 @@
|
||||
},
|
||||
created() {
|
||||
document.title = this.$route.query.projectName ? this.$t('projectDetails') + '-' + this.$route.query.projectName : this.$t('projectDetails')
|
||||
this.title = this.$route.query.projectName && this.$route.query.targetMarket ? this.$route.query.projectName + '-' + this.$route.query.targetMarket : this.$t('projectDetails')
|
||||
this.title = this.$route.query.projectName
|
||||
},
|
||||
mounted() {
|
||||
this.getTaskId()
|
||||
@@ -288,10 +303,10 @@
|
||||
})
|
||||
},
|
||||
TaskListChange(item) {
|
||||
if (item.isListing && item.isListing == '1'){
|
||||
if (item.isListing && item.isListing == '1') {
|
||||
this.areaOfResponsibilityList = item
|
||||
this.textTitle = this.$t('listOfRegulations')
|
||||
}else{
|
||||
} else {
|
||||
this.areaOfResponsibility = item
|
||||
this.textTitle = this.$t('taskList')
|
||||
}
|
||||
|
||||
@@ -5,8 +5,12 @@
|
||||
<a-row :gutter="24">
|
||||
<a-col :md="6" :sm="10">
|
||||
<a-form-item :label="$t('Collectlist')">
|
||||
<a-select v-model="queryParam.ctype" @change="getonChange" :getPopupContainer="triggerNode => triggerNode.parentNode" :popper-append-to-body="false">
|
||||
<a-select-option v-for="d in options" :key="d.value" :value="d.value" >{{ d.label }}</a-select-option>
|
||||
<a-select v-model="queryParam.ctype" @change="getonChange" style='width: 183px' :getPopupContainer="triggerNode => triggerNode.parentNode" :popper-append-to-body="false">
|
||||
<a-select-option v-for="d in options" :key="d.value" :value="d.value" >
|
||||
<span style="display: inline-block;width: 80%" :title=" d.label">
|
||||
{{ d.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -47,6 +51,12 @@
|
||||
components: {
|
||||
responsibilityList
|
||||
},
|
||||
props: {
|
||||
idList: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
queryParam:{
|
||||
@@ -99,7 +109,13 @@
|
||||
})
|
||||
},
|
||||
getoptions(){
|
||||
getAction('project/projectLibraryBase/getProjectDetailsStatisticsCollectManifestLabel', {id:this.$route.query.id}).then((res) => {
|
||||
let id = ''
|
||||
if (this.idList && this.idList.length > 0) {
|
||||
id = this.idList.join(',')
|
||||
} else {
|
||||
id = this.$route.query.id
|
||||
}
|
||||
getAction('project/projectLibraryBase/getProjectDetailsStatisticsCollectManifestLabel', {id:id}).then((res) => {
|
||||
if (res.success) {
|
||||
this.options = res.result
|
||||
this.queryParam.ctype = this.options[0].value
|
||||
@@ -354,6 +370,12 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
width: calc(70% - 100px);
|
||||
height: 38px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.box-content-right {
|
||||
width: calc(50% - 12px);
|
||||
|
||||
@@ -210,6 +210,16 @@
|
||||
<a-icon type="delete"/>
|
||||
{{$t('sendBack')}}
|
||||
</div>
|
||||
<!-- 导入-->
|
||||
<div class="operator-text" v-if='currentPersonRole == "dre"'>
|
||||
<ImportFileOnlyList :url="url" :isTrue="false" :accept="'.zip'" :paramsManifestId='this.$route.query.id' @getList='getList'/>
|
||||
</div>
|
||||
<!-- 填写人导出-->
|
||||
<div @click="handleExportDre" class="operator-text"
|
||||
v-if='currentPersonRole == "dre"'>
|
||||
<a-icon type="export"/>
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
<!-- 强制撤回-->
|
||||
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text"
|
||||
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
||||
@@ -443,7 +453,7 @@
|
||||
|
||||
<script>
|
||||
import TableCollection from '@/components/tableCollection/index'
|
||||
import { getAction, postAction } from '../../../api/manage'
|
||||
import { getAction, postAction, downloadFile } from '../../../api/manage'
|
||||
import eventBUs from '../../../common/event'
|
||||
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
@@ -453,6 +463,7 @@
|
||||
import AdjustareaSofrespon from '@/components/AdjustareaSofrespon/index'
|
||||
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
||||
import AssignedBy from '@/components/AssignedBy/index'
|
||||
import ImportFileOnlyList from '@/components/ImportFileOnlyListtag/index'
|
||||
import axios from 'axios'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import Vue from 'vue'
|
||||
@@ -465,6 +476,7 @@
|
||||
ParameterLibraryAdd,
|
||||
AssignedBy,
|
||||
AdjustareaSofrespon,
|
||||
ImportFileOnlyList,
|
||||
TaskCutOffTime,
|
||||
ReferenceParameter,
|
||||
SynchronousSubmissionLibrary,
|
||||
@@ -603,6 +615,7 @@
|
||||
getLoginUserType: 'params/collectManifest/getLoginUserType', // 获取当前登陆人
|
||||
getquerySdtList: 'params/collectManifest/querySdtList', // 获取工程接口人的列表
|
||||
updateSdt: 'params/collectManifest/updateSdt', // 提交工程接口人
|
||||
importZipUrl: 'params/collectManifest/importDre', // 导入
|
||||
deleteBatch: 'params/collectManifest/deleteBatch'
|
||||
},
|
||||
loading: false,
|
||||
@@ -619,6 +632,7 @@
|
||||
rowId: '',
|
||||
version: 0,
|
||||
confirmLoading: false,
|
||||
importsVisible: false,
|
||||
itemId: '',
|
||||
selectedRowKeysValue: [], // table列表所选得数据
|
||||
token: Vue.ls.get(ACCESS_TOKEN),
|
||||
@@ -902,6 +916,36 @@
|
||||
this.textLoading = false
|
||||
})
|
||||
},
|
||||
//填写人导出
|
||||
handleExportDre(){
|
||||
let long = localStorage.getItem('language')
|
||||
this.cut = ''
|
||||
if (long && long === 'zh-cn') {
|
||||
this.cut = 'cn'
|
||||
} else if (long && long === 'en-us') {
|
||||
this.cut = 'en'
|
||||
}
|
||||
console.log(this.formInline)
|
||||
let query = {
|
||||
paramsManifestId: this.paramsManifest.id,
|
||||
cut: this.cut,
|
||||
...this.formInline,
|
||||
...this.queryParamQuery,
|
||||
ids: this.selectedRowKeys.join(','),
|
||||
exportName:this.$route.query.projectName + '(' + this.$route.query.title + ')'
|
||||
}
|
||||
let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip'
|
||||
downloadFile('/params/collectManifest/exportDre', name , query , this.selectClear)
|
||||
},
|
||||
getList(){
|
||||
this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
|
||||
},
|
||||
iVisible(val,num) {
|
||||
this.importsVisible = val
|
||||
if (num == 1){
|
||||
eventBUs.$emit('searchGetData')
|
||||
}
|
||||
},
|
||||
// 高级搜索
|
||||
handleSuperQuery(params, matchType) {
|
||||
let sqp = {}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{{$t('basicInformationOfParameters')}}
|
||||
</div>
|
||||
<div class="header-tight">
|
||||
<a-button v-if="this.$route.query.studioEngineer == this.userInfo().id" class="box-button"
|
||||
<a-button v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators" class="box-button"
|
||||
style="line-height: 32px" @click="edit">
|
||||
{{$t('edit')}}
|
||||
</a-button>
|
||||
@@ -23,13 +23,18 @@
|
||||
<span class="text-field-right" :title="queryForm.targetMarket_dictText"
|
||||
>{{queryForm.targetMarket_dictText}}</span>
|
||||
</div>
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('projectVersion')">{{$t('projectVersion')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.projectVersion"
|
||||
>{{queryForm.projectVersion}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('projectStatus')">{{$t('projectStatus')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.projectStatus_dictText"
|
||||
>{{queryForm.projectStatus_dictText}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('DigitalPlatform')">{{$t('DigitalPlatform')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.digitalPlatform"
|
||||
@@ -43,17 +48,10 @@
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.studioEngineerName"
|
||||
>{{queryForm.studioEngineerName}}</span>
|
||||
<span class="text-field-left" :title="$t('softwareVersion')">{{$t('softwareVersion')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.softwareVersion"
|
||||
>{{queryForm.softwareVersion}}</span>
|
||||
</div>
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.certificationEngineerName"
|
||||
>{{queryForm.certificationEngineerName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('IPDInformation')">{{$t('IPDInformation')}}</span>
|
||||
<span class="text-field-right text-field-right-color"
|
||||
@@ -61,6 +59,8 @@
|
||||
@click="urlClick(queryForm.ipdInfo)"
|
||||
>{{queryForm.ipdInfo}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('certificationProgram')">{{$t('certificationProgram')}}</span>
|
||||
<span class="text-field-right text-field-right-color"
|
||||
@@ -77,23 +77,46 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field" style="width: 50%">
|
||||
<span class="text-field-left" :title="$t('ListOfRelevantPersonnel')">{{$t('ListOfRelevantPersonnel')}}</span>
|
||||
<div class="text-field-content">
|
||||
<span class="text-field-left" :title="$t('explain')">{{$t('explain')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.explanation"
|
||||
>{{queryForm.explanation}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.studioEngineerName"
|
||||
>{{queryForm.studioEngineerName}}</span>
|
||||
</div>
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||
<span class="text-field-right" :title="queryForm.certificationEngineerName"
|
||||
>{{queryForm.certificationEngineerName}}</span>
|
||||
</div>
|
||||
<div class="text-field">
|
||||
<span class="text-field-left" style="float: left;margin-top: 3px" :title="$t('ListOfRelevantPersonnel')">{{$t('ListOfRelevantPersonnel')}}</span>
|
||||
<span class="text-field-right"
|
||||
>
|
||||
<a-button type="primary" v-has="'projectRelatedPersonnel:page'" class="button-text"
|
||||
<a-button type="primary" v-has="'projectRelatedPersonnel:page'"
|
||||
:title="$t('ListOfRelevantPersonnel')"
|
||||
class="button-text"
|
||||
@click="ListOfRelevantPersonnelClick">
|
||||
{{$t('ListOfRelevantPersonnel')}}
|
||||
</a-button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-text">
|
||||
|
||||
</div>
|
||||
<div class="box-text">
|
||||
<div class="header-text">
|
||||
{{$t('regulatoryCertificationTaskPlan')}}
|
||||
</div>
|
||||
<div class="header-tight">
|
||||
<a-button class="box-button" v-if="this.$route.query.studioEngineer == this.userInfo().id"
|
||||
<a-button class="box-button"
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators"
|
||||
style="line-height: 32px"
|
||||
@click="settingClick">{{$t('setting')}}
|
||||
</a-button>
|
||||
@@ -114,21 +137,21 @@
|
||||
</div>
|
||||
<div class="process-content-right-xian"></div>
|
||||
</div>
|
||||
<a-tabs style="margin-top: 20px" v-model="activeKey" class="ant-tabs">
|
||||
<a-tab-pane :key="$t('CurrentStatusOfTheProject')" :tab="$t('CurrentStatusOfTheProject')">
|
||||
<currentStatusOfTheProjectEcharts @currentStatus="currentStatus"
|
||||
v-if="activeKey == $t('CurrentStatusOfTheProject')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('DeliverableStatus')" :tab="$t('DeliverableStatus')">
|
||||
<deliverableStatusEchart @currentStatus="currentStatus" v-if="activeKey == $t('DeliverableStatus')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('CertificationProgress')" :tab="$t('CertificationProgress')">
|
||||
<certificationProgressEchart @currentStatus="currentStatus" v-if="activeKey == $t('CertificationProgress')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('Parametercollection')" :tab="$t('Parametercollection')">
|
||||
<ParameterCollectionEchart @currentStatus="currentStatus" v-if="activeKey == $t('Parametercollection')"/>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
<!-- <a-tabs style="margin-top: 20px" v-model="activeKey" class="ant-tabs">-->
|
||||
<!-- <a-tab-pane :key="$t('CurrentStatusOfTheProject')" :tab="$t('CurrentStatusOfTheProject')">-->
|
||||
<!-- <currentStatusOfTheProjectEcharts @currentStatus="currentStatus"-->
|
||||
<!-- v-if="activeKey == $t('CurrentStatusOfTheProject')"/>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('DeliverableStatus')" :tab="$t('DeliverableStatus')">-->
|
||||
<!-- <deliverableStatusEchart @currentStatus="currentStatus" v-if="activeKey == $t('DeliverableStatus')"/>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('CertificationProgress')" :tab="$t('CertificationProgress')">-->
|
||||
<!-- <certificationProgressEchart @currentStatus="currentStatus" v-if="activeKey == $t('CertificationProgress')"/>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('Parametercollection')" :tab="$t('Parametercollection')">-->
|
||||
<!-- <ParameterCollectionEchart @currentStatus="currentStatus" v-if="activeKey == $t('Parametercollection')"/>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<!-- </a-tabs>-->
|
||||
<listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/>
|
||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||
<settingList :url="url" ref="settingListRef" @settingListForm="settingListForm"/>
|
||||
@@ -161,6 +184,7 @@
|
||||
data() {
|
||||
return {
|
||||
queryForm: {},
|
||||
administrators:false,
|
||||
activeKey: this.$t('CurrentStatusOfTheProject'),
|
||||
url: {
|
||||
queryById: 'project/projectLibraryBase/queryById',
|
||||
@@ -177,6 +201,14 @@
|
||||
mounted() {
|
||||
this.getForm()
|
||||
this.getSetting()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
@@ -189,9 +221,9 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
currentStatus(item) {
|
||||
this.$emit('TaskListChange', item)
|
||||
},
|
||||
// currentStatus(item) {
|
||||
// this.$emit('TaskListChange', item)
|
||||
// },
|
||||
getSetting() {
|
||||
getAction(this.url.queryByProjectId, { projectId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -273,6 +305,35 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.text-field-content {
|
||||
width: 100%;
|
||||
margin-bottom: 8px;
|
||||
|
||||
.text-field-left {
|
||||
width: 124px;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #6F7385;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
margin-right: 24px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.text-field-right {
|
||||
width: calc(100% - 200px);
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
float: left;
|
||||
word-break: break-word;
|
||||
color: #040B29;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.process-content {
|
||||
@@ -354,4 +415,8 @@
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
}
|
||||
|
||||
.button-text {
|
||||
padding: 0 13px;
|
||||
}
|
||||
</style>
|
||||
@@ -76,10 +76,10 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<!-- <div class="operator-text" @click="batSettingClick">-->
|
||||
<!-- <a-icon type="setting"/>-->
|
||||
<!-- {{ $t('batSetting') }}-->
|
||||
<!-- </div>-->
|
||||
<div class="operator-text" @click="cuibanClick">
|
||||
<a-icon type="sound"/>
|
||||
{{ $t('CuiBan') }}
|
||||
</div>
|
||||
<div @click="BatchMaintenanceProgress" class="operator-text">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('BatchMaintenanceProgress')}}
|
||||
@@ -189,7 +189,9 @@
|
||||
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
||||
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
||||
<batchChangeModel @batchChangeModel="batchChangeModel" ref="batchChangeModelRef"/>
|
||||
<cuibanModel @cibanModel="cibanModel" ref="cModelRef"/>
|
||||
<batchModel @batchModel="batchModel" ref="batchModelRef"/>
|
||||
<cuibanModel @cibanModel="cibanModel" ref="cModelRef"/>
|
||||
<!-- 错误数据提示-->
|
||||
<a-modal
|
||||
:title="$t('operationFailed')"
|
||||
@@ -221,7 +223,9 @@
|
||||
import batchChangeModel from './batchChangeModel'
|
||||
import batchModel from './batchModel'
|
||||
import TaskListModel from './TaskListModel'
|
||||
import cuibanModel from './cuibanModel'
|
||||
import taskBatSetting from './taskBatSetting'
|
||||
import cuibanModel from './cuibanModel'
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import { mapGetters } from 'vuex'
|
||||
import store from '@/store/'
|
||||
@@ -233,6 +237,7 @@
|
||||
TaskListModel,
|
||||
batchChangeModel,
|
||||
batchModel,
|
||||
cuibanModel,
|
||||
taskBatSetting
|
||||
},
|
||||
props: ['isDisplayNum', 'areaOfResponsibility'],
|
||||
@@ -536,6 +541,17 @@
|
||||
let item = JSON.parse(JSON.stringify(val))
|
||||
this.$refs.TaskListModelRef.getData(item, this.$t('CurrentStatus'))
|
||||
},
|
||||
// 催办
|
||||
cuibanClick(){
|
||||
if(this.selectionRowsArray.length <1){
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}else{
|
||||
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
||||
}
|
||||
},
|
||||
cibanModel(){
|
||||
this.getList()
|
||||
},
|
||||
//批量维护进度
|
||||
|
||||
BatchMaintenanceProgress() {
|
||||
@@ -604,6 +620,17 @@
|
||||
}
|
||||
|
||||
},
|
||||
// 催办
|
||||
cuibanClick(){
|
||||
if(this.selectionRowsArray.length <1){
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}else{
|
||||
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
||||
}
|
||||
},
|
||||
cibanModel(){
|
||||
this.getList()
|
||||
},
|
||||
cancleoperationFailed(){
|
||||
this.visibleoperationFailed = false
|
||||
},
|
||||
|
||||
@@ -84,11 +84,21 @@
|
||||
/>
|
||||
</div>
|
||||
<!-- 参数模板-->
|
||||
<a-modal v-model="areaVisible" :maskClosable="false" :title="$t('parameterTemplate')" width='750px' :footer="null">
|
||||
<a-drawer
|
||||
:visible="areaVisible"
|
||||
:maskClosable="false"
|
||||
@close="handleCancel"
|
||||
:title="areaTitle"
|
||||
width='850px'
|
||||
style="height: 100%;overflow: auto;padding-bottom: 53px;"
|
||||
placement="right"
|
||||
:footer="null">
|
||||
<parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel'
|
||||
:version='version'
|
||||
:projectId='this.$route.query.id'></parameter-template-add>
|
||||
</a-modal>
|
||||
:projectId='this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id'>
|
||||
|
||||
</parameter-template-add>
|
||||
</a-drawer>
|
||||
<!-- 配置-->
|
||||
<configure ref="configureRef" :url='url' :itemId='itemId' :itemRow='itemRow'/>
|
||||
<!-- 历史版本-->
|
||||
@@ -96,12 +106,23 @@
|
||||
<historical-version v-if='historicalVisible' :historicalRow='historicalRow'></historical-version>
|
||||
</a-modal>
|
||||
<!-- 复制参数模板-->
|
||||
<a-modal class="show-drawer" :title="$t('Copyparameterlist')" width="700px" v-model="drawerVisible" :footer="null">
|
||||
<a-drawer
|
||||
class="show-drawer"
|
||||
:maskClosable="false"
|
||||
:visible="drawerVisible"
|
||||
style="height: 100%;overflow: auto;padding-bottom: 53px;"
|
||||
placement="right"
|
||||
@close="drawerhandleCancel"
|
||||
:title="$t('Copyparameterlist')"
|
||||
width="850px"
|
||||
:footer="null">
|
||||
<project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel'
|
||||
:templateTitle='templatetitle' @copysubmit='copysubmit'
|
||||
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
|
||||
:projectId='this.$route.query.id'></project-collection-parameters>
|
||||
</a-modal>
|
||||
:projectId='this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id'>
|
||||
|
||||
</project-collection-parameters>
|
||||
</a-drawer>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -151,6 +172,13 @@
|
||||
ellipsis: true,
|
||||
dataIndex: 'paramsTemplateName'
|
||||
},
|
||||
{
|
||||
title: this.$t('relatedProjectVersion'),
|
||||
align: 'center',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
dataIndex: 'projectVersion'
|
||||
},
|
||||
{
|
||||
title: this.$t('collectionCompletionTime'),
|
||||
align: 'center',
|
||||
@@ -214,6 +242,7 @@
|
||||
selectedRowKeysArray: '',
|
||||
templatetitle: '',
|
||||
templatetitleId: '',
|
||||
areaTitle:'',
|
||||
rowId: '',
|
||||
version: 0,
|
||||
itemId: '', // 配置id
|
||||
@@ -237,8 +266,8 @@
|
||||
//处理接收到的消息
|
||||
handler: function(res) {
|
||||
let that = this
|
||||
if (res.data == '1'){
|
||||
this.getlist()
|
||||
if (res.data == '1') {
|
||||
this.getlist()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -255,8 +284,8 @@
|
||||
// localStorage.setItem('paramsManifest', JSON.stringify(item))
|
||||
let newUrl = _this.$router.resolve({
|
||||
path: '/ParameterItemCollection',
|
||||
query: item
|
||||
// projectName:this.$route.query.projectName
|
||||
query: item
|
||||
// projectName:this.$route.query.projectName
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
} else {
|
||||
@@ -299,12 +328,12 @@
|
||||
this.$refs.configureRef.addModel(item.id, item)
|
||||
},
|
||||
handleCancel(val) {
|
||||
this.areaVisible = val
|
||||
this.areaVisible = false
|
||||
this.getlist()
|
||||
},
|
||||
// 项目收集参数
|
||||
drawerhandleCancel(val) {
|
||||
this.drawerVisible = val
|
||||
this.drawerVisible = false
|
||||
},
|
||||
copysubmit() {
|
||||
this.drawerVisible = false
|
||||
@@ -326,11 +355,13 @@
|
||||
},
|
||||
edit(edit) {
|
||||
this.areaVisible = true
|
||||
this.areaTitle = this.$t('editDetailList')
|
||||
setTimeout(() => {
|
||||
this.$refs.templateRef.editData(edit)
|
||||
}, 50)
|
||||
},
|
||||
handleAdd() {
|
||||
this.areaTitle = this.$t('addDetailList')
|
||||
this.areaVisible = true
|
||||
},
|
||||
// 变更扩展
|
||||
@@ -402,7 +433,7 @@
|
||||
},
|
||||
getlist() {
|
||||
let query = {
|
||||
projectId: this.$route.query.id,
|
||||
projectId: this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id,
|
||||
pageSize: this.pageSize,
|
||||
pageNo: this.pageNo,
|
||||
...this.queryParam
|
||||
@@ -561,13 +592,14 @@
|
||||
text-justify: inter-ideograph;
|
||||
word-break: break-all
|
||||
}
|
||||
|
||||
::v-deep .ant-table-row:first-child {
|
||||
background: #fff!important;
|
||||
background: #fff !important;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent!important;
|
||||
background: transparent !important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
@@ -69,6 +69,22 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('projectVersion')">{{$t('projectVersion')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="projectVersion">
|
||||
<a-input class="box-input"
|
||||
:disabled="true"
|
||||
v-model="formInline.projectVersion"
|
||||
:placeholder="$t('PleaseEnter')+$t('projectVersion')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -85,41 +101,41 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'studioEngineerName'">
|
||||
<a-form-model-item class="itemModel-multi" :prop="'studioEngineerName'">
|
||||
<PersonnelSelection :query="{db_field_name:'studioEngineer',db_field_txt:$t('StudioEngineer')}"
|
||||
:isSingleChoice="true"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.studioEngineerName"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'certificationEngineerName'">
|
||||
<a-form-model-item class="itemModel-multi" :prop="'certificationEngineerName'">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.certificationEngineerName"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -133,6 +149,8 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -146,8 +164,6 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -163,6 +179,8 @@
|
||||
<!-- ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$
|
||||
-->
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -177,8 +195,6 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
@@ -193,6 +209,36 @@
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('softwareVersion')">{{$t('softwareVersion')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'softwareVersion'">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.softwareVersion"
|
||||
:placeholder="$t('PleaseEnter')+$t('softwareVersion')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('explain')">{{$t('explain')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="explanation">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('explain')"
|
||||
v-model="formInline.explanation"
|
||||
:rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</a-spin>
|
||||
<div class="drawer-bootom-button">
|
||||
@@ -242,6 +288,13 @@
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
explanation: [
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
attestationPlan: [
|
||||
{
|
||||
pattern: /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%$#_]*)?/,
|
||||
@@ -267,6 +320,13 @@
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
softwareVersion:[
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('softwareVersion') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
projectNameId: [
|
||||
{
|
||||
required: true,
|
||||
@@ -349,6 +409,7 @@
|
||||
this.getNameList()
|
||||
this.formInline.studioEngineerName = this.userInfo().username
|
||||
this.formInline.studioEngineer = this.userInfo().id
|
||||
this.formInline.projectVersion = '00'
|
||||
this.formInline = { ...this.formInline }
|
||||
this.$nextTick(() => {
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
|
||||
@@ -33,6 +33,12 @@
|
||||
components: {
|
||||
responsibilityList
|
||||
},
|
||||
props: {
|
||||
idList: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
@@ -79,7 +85,13 @@
|
||||
this.$emit('currentStatus', item)
|
||||
},
|
||||
getData() {
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: this.$route.query.id }).then((res) => {
|
||||
let id = ''
|
||||
if (this.idList && this.idList.length > 0) {
|
||||
id = this.idList.join(',')
|
||||
} else {
|
||||
id = this.$route.query.id
|
||||
}
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: id }).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result) {
|
||||
let certificationProgressMap = res.result.certificationProgressMap ? res.result.certificationProgressMap.certificationProgressMapList : []
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
<!--催办-->
|
||||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:width="700"
|
||||
:visible="visible"
|
||||
:confirm-loading="confirmLoading"
|
||||
:maskClosable="false"
|
||||
@ok="handleOk"
|
||||
@cancel="visible = false"
|
||||
>
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('taskType')">{{$t('taskType')}}</span>
|
||||
</div>
|
||||
<!-- mode="multiple"-->
|
||||
<a-form-model-item class="itemModel" prop="type">
|
||||
<a-select v-model="formInline.type"
|
||||
class='box-input'
|
||||
:placeholder="$t('PleaseSelect') + $t('taskType')"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
allowClear>
|
||||
<a-select-option v-for="(item, key) in cuibanList" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
{{ item.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { postAction, putAction, getAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'TaskListModel',
|
||||
data() {
|
||||
return {
|
||||
formInline: {},
|
||||
selectionRowsArray:[],
|
||||
rules: {
|
||||
type: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('PleaseSelect') + this.$t('taskType'),
|
||||
trigger: 'change'
|
||||
}
|
||||
]
|
||||
},
|
||||
title:'',
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
studioList: [],
|
||||
cuibanList:[
|
||||
{ label: this.$t('confirmationOfDesignConformity'), value: '2' },
|
||||
{ label: this.$t('PrehomoConfirmation'), value: '3' },
|
||||
{ label: this.$t('verificationAndConformityconfirmation'), value: '4' },
|
||||
],
|
||||
ids:'',
|
||||
disabled: false,
|
||||
url: {
|
||||
edit: '/project/projectTaskInventoryEO/edit',
|
||||
addOrUpdate: '/project/projectTaskInventoryConditionAssessmentEO/addOrUpdate',
|
||||
list: '/project/projectTaskInventoryConditionAssessmentEO/list'
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getData(val) {
|
||||
this.visible = true
|
||||
this.title = this.$t('CuiBan')
|
||||
this.selectionRowsArray = val
|
||||
this.$nextTick(() => {
|
||||
this.formInline = {}
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
},
|
||||
getList(val) {
|
||||
getAction(this.url.list, { projectLawsInventoryId: val.projectLawsInventoryId }).then((res) => {
|
||||
if (res.success) {
|
||||
this.studioList = res.result || []
|
||||
} else {
|
||||
this.studioList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
handleInput(value) {
|
||||
this.$nextTick(() => {
|
||||
this.formInline = { ...this.formInline }
|
||||
this.$refs.ruleForm.validateField([value])
|
||||
})
|
||||
},
|
||||
handleOk() {
|
||||
if (this.disabled) {
|
||||
this.visible = false
|
||||
return
|
||||
}
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let ProjectTaskUrgVo = {}
|
||||
let projectLawsInventoryId = []
|
||||
this.selectionRowsArray.forEach((item) => {
|
||||
if(item.projectLawsInventoryId){
|
||||
projectLawsInventoryId.push(item.projectLawsInventoryId)
|
||||
}
|
||||
})
|
||||
ProjectTaskUrgVo = {
|
||||
projectLawsInventoryIds: projectLawsInventoryId.join(','),
|
||||
type: this.formInline.type,
|
||||
}
|
||||
this.confirmLoading = true
|
||||
postAction('/project/projectLawsInventoryEO/taskUrg', ProjectTaskUrgVo).then((res) => {
|
||||
if (res.success) {
|
||||
this.visible = false
|
||||
this.confirmLoading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$emit('cibanModel')
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 134px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.headerText {
|
||||
margin-left: 30px;
|
||||
color: #040B29;
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
+13
-1
@@ -40,6 +40,12 @@
|
||||
components: {
|
||||
responsibilityList
|
||||
},
|
||||
props: {
|
||||
idList: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
@@ -77,7 +83,13 @@
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: this.$route.query.id }).then((res) => {
|
||||
let id = ''
|
||||
if (this.idList && this.idList.length > 0) {
|
||||
id = this.idList.join(',')
|
||||
} else {
|
||||
id = this.$route.query.id
|
||||
}
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: id }).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result) {
|
||||
let dataSource = res.result.currentProjectStatusMap ? res.result.currentProjectStatusMap.currentProjectStatusMapList : []
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
components: {
|
||||
responsibilityList
|
||||
},
|
||||
props: {
|
||||
idList: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
url: {
|
||||
@@ -52,10 +58,15 @@
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: this.$route.query.id }).then((res) => {
|
||||
let id = ''
|
||||
if (this.idList && this.idList.length > 0) {
|
||||
id = this.idList.join(',')
|
||||
} else {
|
||||
id = this.$route.query.id
|
||||
}
|
||||
getAction(this.url.getProjectDetailsStatistics, { id: id }).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result) {
|
||||
|
||||
let listingToConfirmMap = res.result.listingToConfirmMap ? res.result.listingToConfirmMap.listingToConfirmMapList : []
|
||||
let taskToConfirmMap = res.result.taskToConfirmMap ? res.result.taskToConfirmMap.taskToConfirmMapList : []
|
||||
let designComplianceMap = res.result.designComplianceMap ? res.result.designComplianceMap.designComplianceMapList : []
|
||||
@@ -67,7 +78,6 @@
|
||||
this.dataEchartsOne(prehomoMap, 2)
|
||||
this.dataEchartsOne(verifyComplianceMap, 3)
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -173,7 +173,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!isDisplay" style="float: right;margin-top: 1px;margin-bottom: 0px">
|
||||
<div @click="handleExport" v-has="'projectLawsInventory:exportData'" v-if="isRoleSwitching"
|
||||
<div @click="handleExport" v-has="'projectLawsInventory:exportData'"
|
||||
v-if="isRoleSwitching || formInlineRoleSwitching.roleSwitchingCode == '12'"
|
||||
class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('export') }}
|
||||
@@ -848,6 +849,7 @@
|
||||
AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit'
|
||||
},
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
loading: false,
|
||||
dataSource: [],
|
||||
isResultReported: false,
|
||||
@@ -1455,15 +1457,18 @@
|
||||
this.selectedRowKeys = value
|
||||
},
|
||||
searchQuery() {
|
||||
this.selectedRowKeys = []
|
||||
this.getList()
|
||||
},
|
||||
searchReset() {
|
||||
this.queryParam = {}
|
||||
this.selectedRowKeys = []
|
||||
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||
// this.getList()
|
||||
},
|
||||
addModelList() {
|
||||
this.selectedRowKeys = []
|
||||
this.getList()
|
||||
},
|
||||
handleSuperQuery(params, matchType) {
|
||||
@@ -2126,10 +2131,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
@@ -2145,10 +2152,12 @@
|
||||
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', name, { id: id, userName: this.userInfo().username })
|
||||
}
|
||||
@@ -2479,17 +2488,17 @@
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-one {
|
||||
padding-bottom: 0!important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedLeft {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
padding-bottom: 0 !important;
|
||||
overflow: scroll !important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedRight {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
padding-bottom: 0 !important;
|
||||
overflow: scroll !important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
@@ -83,14 +83,14 @@
|
||||
</div>
|
||||
<div class="operator-text"
|
||||
v-has="'projectRelatedPersonnel:importExcel'"
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id">
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators">
|
||||
<ImportFile :url="url" :projectId="$route.query.id" :isTrue="true" :accept="'.xls'"
|
||||
@getList="getPersonnelList"/>
|
||||
</div>
|
||||
<div class="operator-text"
|
||||
@click="batSettingClick"
|
||||
v-has="'projectRelatedPersonnel:setting'"
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id">
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('batSetting')}}
|
||||
</div>
|
||||
@@ -176,8 +176,9 @@
|
||||
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
|
||||
</div>
|
||||
<!-- :prop="'lawEngineerName'"-->
|
||||
<a-form-model-item class="itemModel">
|
||||
<a-form-model-item class="itemModel-multi">
|
||||
<PersonnelSelection
|
||||
v-if="editVisible"
|
||||
:query="{db_field_name:'lawEngineer',db_field_txt:$t('regulatoryEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
:isDelete='true'
|
||||
@@ -196,8 +197,9 @@
|
||||
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
||||
</div>
|
||||
<!-- :prop="'engineeringInterfacePersonName'"-->
|
||||
<a-form-model-item class="itemModel">
|
||||
<a-form-model-item class="itemModel-multi">
|
||||
<PersonnelSelection
|
||||
v-if="editVisible"
|
||||
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||
:personneQuery="formInline"
|
||||
:isDelete='true'
|
||||
@@ -386,13 +388,15 @@
|
||||
queryCertificationEngineer: '/project/projectRelatedPersonnel/queryCertificationEngineer'
|
||||
},
|
||||
selectedRowKeys: [],
|
||||
dictOptionsValue: []
|
||||
dictOptionsValue: [],
|
||||
administrators: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
columns() {
|
||||
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
|
||||
if (this.$route.query.studioEngineer != this.userInfo().id) {
|
||||
if (this.$route.query.studioEngineer == this.userInfo().id || this.administrators) {
|
||||
} else {
|
||||
for (var i = 0; i < columnResult.length; i++) {
|
||||
if (columnResult[i].title === this.$t('operation')) {
|
||||
columnResult.splice(i, 1)
|
||||
@@ -439,6 +443,14 @@
|
||||
getData() {
|
||||
this.visible = true
|
||||
this.queryParam = {}
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
this.getList()
|
||||
this.queryCertificationEngineer()
|
||||
},
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'lawEngineer',db_field_txt:$t('regulatoryEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.lawEngineerName"/>
|
||||
</a-form-model-item>
|
||||
@@ -36,6 +37,7 @@
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.engineeringInterfacePersonName"/>
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<div class="table-operator" style="margin-bottom: 10px">
|
||||
<div @click="versionStatisticsClick"
|
||||
v-if="!this.$route.query.parentId && $t('Parametercollection')!= activeKey"
|
||||
class="operator-text">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('versionStatistics')}}
|
||||
</div>
|
||||
<div v-else
|
||||
class="operator-text">
|
||||
</div>
|
||||
</div>
|
||||
<a-tabs v-model="activeKey" class="ant-tabs">
|
||||
<a-tab-pane :key="$t('CurrentStatusOfTheProject')" :tab="$t('CurrentStatusOfTheProject')">
|
||||
<currentStatusOfTheProjectEcharts @currentStatus="currentStatus"
|
||||
:idList="idList"
|
||||
v-if="activeKey == $t('CurrentStatusOfTheProject')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('DeliverableStatus')" :tab="$t('DeliverableStatus')">
|
||||
<deliverableStatusEchart @currentStatus="currentStatus" :idList="idList"
|
||||
v-if="activeKey == $t('DeliverableStatus')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('CertificationProgress')" :tab="$t('CertificationProgress')">
|
||||
<certificationProgressEchart @currentStatus="currentStatus" :idList="idList"
|
||||
v-if="activeKey == $t('CertificationProgress')"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('Parametercollection')" :tab="$t('Parametercollection')">
|
||||
<ParameterCollectionEchart @currentStatus="currentStatus" :idList="[]"
|
||||
v-if="activeKey == $t('Parametercollection')"/>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
<versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import currentStatusOfTheProjectEcharts from './currentStatusOfTheProjectEcharts'
|
||||
import deliverableStatusEchart from './deliverableStatusEchart'
|
||||
import ParameterCollectionEchart from './ParameterCollectionEchart'
|
||||
import certificationProgressEchart from './certificationProgressEchart'
|
||||
import versionStatistics from './versionStatistics'
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'projectStatus',
|
||||
components: {
|
||||
ParameterCollectionEchart,
|
||||
currentStatusOfTheProjectEcharts,
|
||||
deliverableStatusEchart,
|
||||
certificationProgressEchart,
|
||||
versionStatistics
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeKey: this.$t('CurrentStatusOfTheProject'),
|
||||
selectedRowKeys: [],
|
||||
idList: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
currentStatus(item) {
|
||||
this.$emit('TaskListChange', item)
|
||||
},
|
||||
versionStatisticsClick() {
|
||||
this.$refs.versionStatisticsRef.addModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
||||
},
|
||||
versionStatisticsForm(value) {
|
||||
this.idList = []
|
||||
let activeKey = JSON.parse(JSON.stringify(this.activeKey))
|
||||
this.activeKey = ''
|
||||
if (value && value.length > 0) {
|
||||
value.forEach(res => {
|
||||
this.idList.push(JSON.parse(res).id)
|
||||
})
|
||||
}
|
||||
this.selectedRowKeys = JSON.parse(JSON.stringify(value))
|
||||
this.$nextTick(() => {
|
||||
this.activeKey = activeKey
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@import '~@assets/less/common.less';
|
||||
</style>
|
||||
@@ -49,6 +49,7 @@
|
||||
myuploadAction: window._CONFIG['domianURL'] + this.thisFileUploadUrl,
|
||||
upDataList: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||
fileList: [],
|
||||
myfileList: [],
|
||||
isLoding: false,
|
||||
@@ -214,10 +215,12 @@
|
||||
} else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls'
|
||||
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id,userName:this.userInfo().username })
|
||||
}
|
||||
|
||||
@@ -0,0 +1,212 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="$t('versionStatistics')"
|
||||
:maskClosable="false"
|
||||
:width="1000"
|
||||
placement="right"
|
||||
:closable="true"
|
||||
@close="handleCancel"
|
||||
:visible="visible"
|
||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||
<div style="margin-bottom: 60px">
|
||||
<!-- <div class="table-page-search-wrapper">-->
|
||||
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
|
||||
<!-- <a-row :gutter="24">-->
|
||||
<!-- <a-col :md="12" :sm="8">-->
|
||||
<!-- <div class="box-title-text">-->
|
||||
<!-- <div class="title-text" :title="$t('standard')">-->
|
||||
<!-- <span>{{$t('standard')}}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"-->
|
||||
<!-- v-model="queryParam.serial_number"></a-input>-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">-->
|
||||
<!-- <a-col :md="12" :sm="24">-->
|
||||
<!-- <a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>-->
|
||||
<!-- <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form>-->
|
||||
<!-- </div>-->
|
||||
<a-table
|
||||
:columns="columns"
|
||||
:rowKey="(record)=>JSON.stringify(record)"
|
||||
:scroll="{x: '100%',y:500}"
|
||||
:data-source="dataList"
|
||||
:pagination="false"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:loading="loading">
|
||||
|
||||
</a-table>
|
||||
<div class="page" v-if="dataList.length > 0">
|
||||
<a-pagination
|
||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||
show-quick-jumper
|
||||
show-size-changer
|
||||
:page-size.sync="pageSize"
|
||||
:total="total"
|
||||
:current="pageNo"
|
||||
@change="onChange"
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drawer-bootom-button">
|
||||
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'versionStatistics',
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
queryParam: {},
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('VersionNumber'),
|
||||
dataIndex: 'projectVersion',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: this.$t('describe'),
|
||||
dataIndex: 'explanation',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
width: 500
|
||||
}
|
||||
],
|
||||
dataList: [],
|
||||
loading: false,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
url: {
|
||||
list: '/project/projectLibraryBase/versionStatistics'
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
addModel(value) {
|
||||
this.visible = true
|
||||
this.queryParam = {}
|
||||
this.selectedRowKeys = JSON.parse(JSON.stringify(value))
|
||||
this.replacePage()
|
||||
},
|
||||
searchQuery() {
|
||||
this.pageNo = 1
|
||||
this.replacePage()
|
||||
},
|
||||
searchReset() {
|
||||
this.pageNo = 1
|
||||
this.queryParam = {}
|
||||
this.replacePage()
|
||||
},
|
||||
onChange(page, pageSize) {
|
||||
this.pageNo = page
|
||||
this.replacePage()
|
||||
},
|
||||
SizeChange(page, pageSize) {
|
||||
this.pageNo = 1
|
||||
this.pageSize = pageSize
|
||||
this.replacePage()
|
||||
},
|
||||
replacePage() {
|
||||
let query = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
id:this.$route.query.id,
|
||||
...this.queryParam
|
||||
}
|
||||
this.loading = true
|
||||
postAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataList = res.result.records || []
|
||||
this.total = res.result.total
|
||||
this.loading = false
|
||||
} else {
|
||||
this.dataList = []
|
||||
this.total = 0
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$emit('versionStatisticsForm', this.selectedRowKeys)
|
||||
this.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
text-align: right;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.drawer-bootom-button {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
border-top: 1px solid #e8e8e8;
|
||||
padding: 10px 16px;
|
||||
text-align: right;
|
||||
left: 0;
|
||||
background: #fff;
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 33px;
|
||||
color: #000F16;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
margin-top: 3px;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.box-button {
|
||||
height: 38px;
|
||||
}
|
||||
</style>
|
||||
@@ -10,21 +10,78 @@
|
||||
:wrapper-col='wrapperCol'
|
||||
>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='9'>
|
||||
<a-form-model-item class="itemAddAdmin" :label="$t('title')" prop='title'>
|
||||
<a-input style='width: 420px'
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model='formData.title'/>
|
||||
</a-form-model-item>
|
||||
<a-col :span='11'>
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('title')">{{$t('title')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop='title'>
|
||||
<!-- <a-input class="box-input"-->
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model="formInline[item.db_field_name]"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+item.db_field_txt"/>-->
|
||||
<!-- <a-input-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"-->
|
||||
<!-- v-model='form.paramsTemplateName'/>-->
|
||||
<a-input class="box-input"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model='formData.title'/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- <a-form-model-item class="itemAddAdmin" :label="$t('title')" prop='title'>-->
|
||||
<!-- <a-input style='width: 420px'-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('title')"-->
|
||||
<!-- v-model='formData.title'/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
</a-col>
|
||||
<a-col :span='11'>
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('relatedProjectVersion')">{{$t('relatedProjectVersion')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" style="height: 40px">
|
||||
<a-select mode="multiple"
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
v-model='formData.projectVersion'
|
||||
:placeholder="$t('PleaseSelect')+$t('relatedProjectVersion')">
|
||||
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
||||
<a-select-option v-for="(item, key) in projectVersionList"
|
||||
:key="key"
|
||||
:label="item"
|
||||
:value="item">
|
||||
<span class="itemOption" :title=" item ">
|
||||
{{ item }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<!-- <a-col :span='9'>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :span='6'>-->
|
||||
<!-- </a-col>-->
|
||||
</a-row>
|
||||
<a-row :gutter="24" style="border-bottom: 1px #f5f5f5 solid;margin-bottom: 10px">
|
||||
<a-col :span="22">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('explain')">{{$t('explain')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="explanation">
|
||||
<a-textarea
|
||||
:placeholder="$t('PleaseEnter')+$t('explain')"
|
||||
v-model.trim="formData.explanation" :rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='9'>
|
||||
<div class="box-title-text" style="margin-left: -58px;">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<!-- <span class="Required">*</span>-->
|
||||
<span class="title-text-text" :title="$t('zoneOfApplication')">{{$t('zoneOfApplication')}}</span>
|
||||
@@ -34,9 +91,9 @@
|
||||
<!-- :disabled="disabled"-->
|
||||
<!-- v-model="formInline[item.db_field_name]"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+item.db_field_txt"/>-->
|
||||
<!-- <a-input-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"-->
|
||||
<!-- v-model='form.paramsTemplateName'/>-->
|
||||
<!-- <a-input-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"-->
|
||||
<!-- v-model='form.paramsTemplateName'/>-->
|
||||
<j-dict-select-tag class='box-input' v-model='form.region'
|
||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
||||
:type="'select'"
|
||||
@@ -44,14 +101,14 @@
|
||||
:triggerChange='false' :dictCode="'region'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- <a-form-model-item ref='region' :label="$t('zoneOfApplication')" prop='region'>-->
|
||||
<!-- <a-form-model-item class='itemModel' prop='region'>-->
|
||||
<!-- <j-dict-select-tag class='box-input' v-model='form.region'-->
|
||||
<!-- :placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"-->
|
||||
<!-- :type="'select'"-->
|
||||
<!-- :triggerChange='false' :dictCode="'region'"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- <a-form-model-item ref='region' :label="$t('zoneOfApplication')" prop='region'>-->
|
||||
<!-- <a-form-model-item class='itemModel' prop='region'>-->
|
||||
<!-- <j-dict-select-tag class='box-input' v-model='form.region'-->
|
||||
<!-- :placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"-->
|
||||
<!-- :type="'select'"-->
|
||||
<!-- :triggerChange='false' :dictCode="'region'"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
</a-col>
|
||||
<a-col :span='9'>
|
||||
<div class="box-title-text">
|
||||
@@ -65,16 +122,17 @@
|
||||
<!-- v-model="formInline[item.db_field_name]"-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+item.db_field_txt"/>-->
|
||||
<a-input
|
||||
class='box-input'
|
||||
:placeholder="$t('PleaseEnter')+$t('parameterTemplate')"
|
||||
:title="$t('PleaseSelect')+$t('parameterTemplate')"
|
||||
v-model='form.paramsTemplateName'/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- <a-form-model-item ref='paramsTemplateName' :label="$t('parameterTemplate')" prop='paramsTemplateName'>-->
|
||||
<!-- <a-input-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"-->
|
||||
<!-- v-model='form.paramsTemplateName'/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- <a-form-model-item ref='paramsTemplateName' :label="$t('parameterTemplate')" prop='paramsTemplateName'>-->
|
||||
<!-- <a-input-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"-->
|
||||
<!-- v-model='form.paramsTemplateName'/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
</a-col>
|
||||
<a-col :span='6' style='margin-top: 5px'>
|
||||
<a-button class='box-button' type='primary' @click='searchQuery'>{{ $t('query') }}</a-button>
|
||||
@@ -92,11 +150,11 @@
|
||||
:dataSource='areaTable'
|
||||
:pagination='false'
|
||||
:loading='loading'
|
||||
:scroll='{x: 600}'
|
||||
:scroll='{x: 600,y:400}'
|
||||
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
|
||||
@change='handleTableChange'>
|
||||
</a-table>
|
||||
<div class="page" style='display: flex;justify-content: flex-end; margin-bottom: 15px'>
|
||||
<div class="page" style='display: flex;justify-content: flex-end; margin-bottom: 42px'>
|
||||
<a-pagination
|
||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||
show-quick-jumper
|
||||
@@ -143,6 +201,7 @@
|
||||
ellipsis: true
|
||||
}
|
||||
],
|
||||
projectVersionList: [],
|
||||
newVisible: false,
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
@@ -162,6 +221,13 @@
|
||||
message: this.$t('title') + this.$t('cannotExceed') + 200 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
explanation: [
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
},
|
||||
areaTable: [],
|
||||
@@ -193,8 +259,21 @@
|
||||
},
|
||||
mounted() {
|
||||
this.loadData()
|
||||
this.getProjectVersion()
|
||||
},
|
||||
methods: {
|
||||
getProjectVersion() {
|
||||
let query = {
|
||||
id: this.projectId
|
||||
}
|
||||
getAction('/project/projectLibraryBase/getVersionsInfo', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.projectVersionList = res.result || []
|
||||
} else {
|
||||
this.projectVersionList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
pageOnChange(page, pageSize) {
|
||||
this.pageNo = page
|
||||
this.loadData()
|
||||
@@ -244,9 +323,15 @@
|
||||
},
|
||||
editData(edit) {
|
||||
// 编辑一行的数据
|
||||
this.row = edit
|
||||
this.formData = { ...edit }
|
||||
this.selectedRowKeys = edit.paramsTemplateId.split(',')
|
||||
let query = JSON.parse(JSON.stringify(edit))
|
||||
if (query.projectVersion) {
|
||||
query.projectVersion = query.projectVersion.split(',')
|
||||
}else{
|
||||
query.projectVersion = []
|
||||
}
|
||||
this.row = query
|
||||
this.formData = { ...query }
|
||||
this.selectedRowKeys = query.paramsTemplateId.split(',')
|
||||
},
|
||||
//新增
|
||||
handleSubmit() {
|
||||
@@ -265,10 +350,17 @@
|
||||
this.confirmLoading = true
|
||||
let postDate = {
|
||||
title: this.formData.title,
|
||||
projectVersion: this.formData.projectVersion,
|
||||
explanation: this.formData.explanation,
|
||||
paramsTemplateId: this.paramsTemplateId || this.selectedRowKeys[0],
|
||||
paramsTemplatePublishVersion: this.row.version || this.selectedRowKeysDate[0].version,
|
||||
projectId: this.projectId
|
||||
}
|
||||
Object.keys(postDate).forEach(res => {
|
||||
if (postDate[res] && postDate[res] instanceof Array) {
|
||||
postDate[res] = postDate[res].join(',')
|
||||
}
|
||||
})
|
||||
if (this.formData.id) {
|
||||
//编辑
|
||||
postDate = {
|
||||
@@ -375,14 +467,23 @@
|
||||
}
|
||||
|
||||
.drawer-bootom-button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
border-top: 1px solid #e8e8e8;
|
||||
padding: 10px 16px;
|
||||
text-align: right;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
background: #fff;
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
@@ -390,7 +491,7 @@
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 114px;
|
||||
width: 84px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
@@ -410,10 +511,10 @@
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
width: calc(100% - 100px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
height: 40px;
|
||||
/*height: 40px;*/
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@@ -466,6 +567,19 @@
|
||||
line-height: 6px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.box-button {
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.itemOption {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<style lang='less'>
|
||||
.area-module {
|
||||
@@ -481,7 +595,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.itemAddAdmin .ant-form-item-control-wrapper .has-error .ant-form-explain {
|
||||
white-space: nowrap!important;
|
||||
.itemAddAdmin .ant-form-item-control-wrapper .has-error .ant-form-explain {
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
</style>
|
||||
@@ -10,29 +10,80 @@
|
||||
:wrapper-col='wrapperCol'
|
||||
>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='8'>
|
||||
<a-form-model-item :label="$t('title')" prop='title'>
|
||||
<a-input style='width: 420px'
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model='formData.title' />
|
||||
</a-form-model-item>
|
||||
<a-col :span='11'>
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('title')">{{$t('title')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop='title'>
|
||||
<a-input class="box-input"
|
||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model='formData.title'/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span='9'>
|
||||
<a-col :span='11'>
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('relatedProjectVersion')">{{$t('relatedProjectVersion')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" style="height: 40px">
|
||||
<a-select mode="multiple"
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
v-model='formData.projectVersion'
|
||||
:placeholder="$t('PleaseSelect')+$t('relatedProjectVersion')">
|
||||
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
||||
<a-select-option v-for="(item, key) in projectVersionList"
|
||||
:key="key"
|
||||
:label="item"
|
||||
:value="item">
|
||||
<span class="itemOption" :title=" item ">
|
||||
{{ item }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span='7'>
|
||||
</a-row>
|
||||
<a-row :gutter="24" style="border-bottom: 1px #f5f5f5 solid;margin-bottom: 10px">
|
||||
<a-col :span="22">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('explain')">{{$t('explain')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="explanation">
|
||||
<a-textarea
|
||||
:placeholder="$t('PleaseEnter')+$t('explain')"
|
||||
v-model.trim="formData.explanation" :rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='8'>
|
||||
<a-form-model-item :label="$t('entryName')" prop='projectName'>
|
||||
<a-input style='width: 420px'
|
||||
:placeholder="$t('PleaseEnter')+$t('entryName')"
|
||||
v-model='formData.projectName' />
|
||||
</a-form-model-item>
|
||||
<a-col :span='11'>
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('entryName')">{{$t('entryName')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel">
|
||||
<a-input class="box-input"
|
||||
:placeholder="$t('PleaseEnter')+$t('entryName')"
|
||||
v-model='formData.projectName'/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span='9'>
|
||||
</a-col>
|
||||
<a-col :span='7' style='margin-top: 4px;padding-left: 20px'>
|
||||
<!-- <a-col :span='8'>-->
|
||||
<!-- <a-form-model-item :label="$t('entryName')" prop='projectName'>-->
|
||||
<!-- <a-input style='width: 420px'-->
|
||||
<!-- :placeholder="$t('PleaseEnter')+$t('entryName')"-->
|
||||
<!-- v-model='formData.projectName'/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </a-col>-->
|
||||
<a-col :span='11' style="margin-top: 5px">
|
||||
<a-button class='box-button' type='primary' @click='searchQuery'>{{ $t('query') }}</a-button>
|
||||
<a-button class='box-button' style='margin-left: 8px' @click='searchReset'>{{ $t('reset') }}</a-button>
|
||||
</a-col>
|
||||
@@ -48,7 +99,7 @@
|
||||
:dataSource='areaTable'
|
||||
:pagination='false'
|
||||
:loading='loading'
|
||||
:scroll='{x: 600}'
|
||||
:scroll='{x: 600,y:400}'
|
||||
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
|
||||
@change='handleTableChange'>
|
||||
<span slot='click' slot-scope='text, record'>
|
||||
@@ -60,7 +111,7 @@
|
||||
</span>
|
||||
|
||||
</a-table>
|
||||
<div class="page" style='display: flex;justify-content: flex-end;'>
|
||||
<div class="page" style='display: flex;justify-content: flex-end;margin-bottom: 43px'>
|
||||
<a-pagination
|
||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||
show-quick-jumper
|
||||
@@ -78,311 +129,405 @@
|
||||
</div>
|
||||
<!-- 清单弹框 -->
|
||||
<a-modal v-model="listVisible" :title="$t('parameterTemplate')" width='700px' :footer="null">
|
||||
<parameter-template v-if='listVisible' @areaVisible='drawerhandleCancel' @listVisibleRow='listVisibleRow'></parameter-template>
|
||||
<parameter-template v-if='listVisible' @areaVisible='drawerhandleCancel'
|
||||
@listVisibleRow='listVisibleRow'></parameter-template>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { putAction, postAction, getAction, deleteAction } from '@/api/manage'
|
||||
import axios from 'axios'
|
||||
import Vue from 'vue'
|
||||
import ParameterTemplate from '../dialog/ParameterTemplate'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { putAction, postAction, getAction, deleteAction } from '@/api/manage'
|
||||
import axios from 'axios'
|
||||
import Vue from 'vue'
|
||||
import ParameterTemplate from '../dialog/ParameterTemplate'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
|
||||
export default {
|
||||
name: 'ProjectCollectionParameters',
|
||||
components: {
|
||||
ParameterTemplate
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
token:Vue.ls.get(ACCESS_TOKEN),
|
||||
title: this.$t('add'),
|
||||
total: 0,
|
||||
selectedRowKeysDate: {},
|
||||
loading: false,
|
||||
editId: '',
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('entryName'),
|
||||
dataIndex: 'projectName',
|
||||
key: 'showArea',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('ListTitle'),
|
||||
align: 'center',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('parameterTemplate'),
|
||||
align: 'center',
|
||||
dataIndex: 'paramsTemplateName',
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'parameterTemplateSlot' }
|
||||
}
|
||||
],
|
||||
newVisible: false,
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 }
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 14 }
|
||||
},
|
||||
form: {},
|
||||
formData: {},
|
||||
rules: {
|
||||
title: [
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('title'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
areaTable: [],
|
||||
flag: false, //表单提交标识
|
||||
spinLoading: false,
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
listVisible: false,
|
||||
listVisibleRowDate: {}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
version: {
|
||||
type: Number,
|
||||
default: '',
|
||||
required: false
|
||||
export default {
|
||||
name: 'ProjectCollectionParameters',
|
||||
components: {
|
||||
ParameterTemplate
|
||||
},
|
||||
projectId: {
|
||||
type: String,
|
||||
default: '',
|
||||
require: true
|
||||
},
|
||||
url: {
|
||||
type: Object,
|
||||
default: '',
|
||||
require: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loadData()
|
||||
},
|
||||
methods: {
|
||||
// 清单列表传出数据
|
||||
listVisibleRow(val) {
|
||||
// this.selectedRowKeys = []
|
||||
let newAreaTable=JSON.parse(JSON.stringify(this.areaTable))
|
||||
newAreaTable.forEach((item, index) => {
|
||||
if( item.id == this.listVisibleRowDate.id ) {
|
||||
let _obj = {...item}
|
||||
_obj.paramsTemplateId = val[0].id
|
||||
_obj.paramsTemplateName = val[0].paramsTemplateName
|
||||
this.areaTable.splice(index, 1,_obj)
|
||||
data() {
|
||||
return {
|
||||
token: Vue.ls.get(ACCESS_TOKEN),
|
||||
title: this.$t('add'),
|
||||
total: 0,
|
||||
selectedRowKeysDate: {},
|
||||
projectVersionList: [],
|
||||
loading: false,
|
||||
editId: '',
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('entryName'),
|
||||
dataIndex: 'projectName',
|
||||
key: 'showArea',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('ListTitle'),
|
||||
align: 'center',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('parameterTemplate'),
|
||||
align: 'center',
|
||||
dataIndex: 'paramsTemplateName',
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'parameterTemplateSlot' }
|
||||
}
|
||||
})
|
||||
console.log(this.areaTable,'this.areaTable')
|
||||
this.listVisible = false
|
||||
},
|
||||
parameterTemplateSlotHandler(val) {
|
||||
this.listVisibleRowDate = val
|
||||
console.log(val)
|
||||
this.listVisible = true
|
||||
},
|
||||
pageOnChange(page, pageSize) {
|
||||
this.pageNo = page
|
||||
this.loadData()
|
||||
},
|
||||
SizeChange(page, pageSize) {
|
||||
this.pageNo = 1
|
||||
this.pageSize = pageSize
|
||||
this.loadData()
|
||||
},
|
||||
loadData() {
|
||||
let _this = this
|
||||
let params = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
...this.formData
|
||||
],
|
||||
newVisible: false,
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 }
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 14 }
|
||||
},
|
||||
form: {},
|
||||
formData: {},
|
||||
rules: {
|
||||
title: [
|
||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('title'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
areaTable: [],
|
||||
flag: false, //表单提交标识
|
||||
spinLoading: false,
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
listVisible: false,
|
||||
listVisibleRowDate: {}
|
||||
}
|
||||
this.loading = true
|
||||
axios({
|
||||
url: `/jero-boot/params/manifest/getAllManifest`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
transformRequest: [function (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
|
||||
},
|
||||
props: {
|
||||
version: {
|
||||
type: Number,
|
||||
default: '',
|
||||
required: false
|
||||
},
|
||||
projectId: {
|
||||
type: String,
|
||||
default: '',
|
||||
require: true
|
||||
},
|
||||
url: {
|
||||
type: Object,
|
||||
default: '',
|
||||
require: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loadData()
|
||||
this.getProjectVersion()
|
||||
},
|
||||
methods: {
|
||||
getProjectVersion() {
|
||||
let query = {
|
||||
id: this.projectId
|
||||
}
|
||||
})
|
||||
.then( (res) =>{
|
||||
if (res.data.success) {
|
||||
console.log(res.data)
|
||||
this.loading = false
|
||||
this.areaTable = res.data.result.records || []
|
||||
this.total = res.data.result.total
|
||||
}else{
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
searchQuery() {
|
||||
this.loadData()
|
||||
},
|
||||
searchReset() {
|
||||
this.formData = {}
|
||||
this.loadData()
|
||||
},
|
||||
handleCancel() {
|
||||
this.$emit('areaVisible', false)
|
||||
},
|
||||
drawerhandleCancel(val) {
|
||||
this.listVisible = val
|
||||
},
|
||||
onSelectChange(selectedRowKeys, selectedRowKeysDate) {
|
||||
this.selectedRowKeysDate = selectedRowKeysDate
|
||||
this.selectedRowKeys = selectedRowKeys
|
||||
},
|
||||
handleTableChange(val) {
|
||||
console.log(',,,')
|
||||
},
|
||||
showModal() {
|
||||
this.title = this.$t('add')
|
||||
this.newVisible = true
|
||||
this.form = {}
|
||||
},
|
||||
//新增
|
||||
handleSubmit() {
|
||||
let _this = this
|
||||
if (this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('pleaseSelectData'))
|
||||
} else if (this.selectedRowKeys.length > 1) {
|
||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||
} else {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.flag = true
|
||||
this.spinLoading = true
|
||||
this.confirmLoading = true
|
||||
let _tt = {
|
||||
paramsTemplateId: this.selectedRowKeysDate[0].paramsTemplateId,
|
||||
projectId: this.projectId,
|
||||
title: this.formData.title,
|
||||
paramsTemplatePublishVersion: this.selectedRowKeysDate[0].paramsTemplatePublishVersion,
|
||||
sourceManifestId: this.selectedRowKeysDate[0].id,
|
||||
}
|
||||
postAction('params/manifest/copy', _tt).then((res) => {
|
||||
if (res.success) {
|
||||
this.$emit('copysubmit')
|
||||
this.$message.success(this.$t('Copysuccessful'))
|
||||
this.flag = false
|
||||
this.spinLoading = false
|
||||
this.confirmLoading = false
|
||||
} else {
|
||||
this.$message.warning(this.$t('Copyfailed'))
|
||||
this.flag = false
|
||||
this.spinLoading = false
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
// axios({
|
||||
// url: `/jero-boot/params/manifest/copy`,
|
||||
// method: 'post',
|
||||
// data: _tt,
|
||||
// transformRequest: [function (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.$emit('copysubmit')
|
||||
// _this.$message.success(res.data.message)
|
||||
// _this.flag = false
|
||||
// _this.spinLoading = false
|
||||
// _this.confirmLoading = false
|
||||
// }else{
|
||||
// _this.$message.warning(res.data.message)
|
||||
// _this.flag = false
|
||||
// _this.spinLoading = false
|
||||
// _this.confirmLoading = false
|
||||
// }
|
||||
// })
|
||||
// .catch( (error) =>{
|
||||
// console.log(error);
|
||||
// });
|
||||
getAction('/project/projectLibraryBase/getVersionsInfo', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.projectVersionList = res.result || []
|
||||
} else {
|
||||
return false
|
||||
this.projectVersionList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
// 清单列表传出数据
|
||||
listVisibleRow(val) {
|
||||
// this.selectedRowKeys = []
|
||||
let newAreaTable = JSON.parse(JSON.stringify(this.areaTable))
|
||||
newAreaTable.forEach((item, index) => {
|
||||
if (item.id == this.listVisibleRowDate.id) {
|
||||
let _obj = { ...item }
|
||||
_obj.paramsTemplateId = val[0].id
|
||||
_obj.paramsTemplateName = val[0].paramsTemplateName
|
||||
this.areaTable.splice(index, 1, _obj)
|
||||
}
|
||||
})
|
||||
console.log(this.areaTable, 'this.areaTable')
|
||||
this.listVisible = false
|
||||
},
|
||||
parameterTemplateSlotHandler(val) {
|
||||
this.listVisibleRowDate = val
|
||||
console.log(val)
|
||||
this.listVisible = true
|
||||
},
|
||||
pageOnChange(page, pageSize) {
|
||||
this.pageNo = page
|
||||
this.loadData()
|
||||
},
|
||||
SizeChange(page, pageSize) {
|
||||
this.pageNo = 1
|
||||
this.pageSize = pageSize
|
||||
this.loadData()
|
||||
},
|
||||
loadData() {
|
||||
let _this = this
|
||||
if (!this.formData.projectName){
|
||||
this.formData.projectName = ''
|
||||
}
|
||||
let params = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
projectName:this.formData.projectName
|
||||
}
|
||||
this.loading = true
|
||||
axios({
|
||||
url: `/jero-boot/params/manifest/getAllManifest`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
transformRequest: [function(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) {
|
||||
console.log(res.data)
|
||||
this.loading = false
|
||||
this.areaTable = res.data.result.records || []
|
||||
this.total = res.data.result.total
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
searchQuery() {
|
||||
this.loadData()
|
||||
},
|
||||
searchReset() {
|
||||
this.formData.projectName = ''
|
||||
this.formData = {...this.formData}
|
||||
this.loadData()
|
||||
},
|
||||
handleCancel() {
|
||||
this.$emit('areaVisible', false)
|
||||
},
|
||||
drawerhandleCancel(val) {
|
||||
this.listVisible = val
|
||||
},
|
||||
onSelectChange(selectedRowKeys, selectedRowKeysDate) {
|
||||
this.selectedRowKeysDate = selectedRowKeysDate
|
||||
this.selectedRowKeys = selectedRowKeys
|
||||
},
|
||||
handleTableChange(val) {
|
||||
console.log(',,,')
|
||||
},
|
||||
showModal() {
|
||||
this.title = this.$t('add')
|
||||
this.newVisible = true
|
||||
this.form = {}
|
||||
},
|
||||
//新增
|
||||
handleSubmit() {
|
||||
let _this = this
|
||||
if (this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('pleaseSelectData'))
|
||||
} else if (this.selectedRowKeys.length > 1) {
|
||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||
} else {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.flag = true
|
||||
this.spinLoading = true
|
||||
this.confirmLoading = true
|
||||
let formData = JSON.parse(JSON.stringify(this.formData))
|
||||
Object.keys(formData).forEach(res => {
|
||||
if (formData[res] && formData[res] instanceof Array) {
|
||||
formData[res] = formData[res].join(',')
|
||||
}
|
||||
})
|
||||
let _tt = {
|
||||
paramsTemplateId: this.selectedRowKeysDate[0].paramsTemplateId,
|
||||
projectId: this.projectId,
|
||||
title: formData.title,
|
||||
projectVersion: formData.projectVersion,
|
||||
explanation: formData.explanation,
|
||||
paramsTemplatePublishVersion: this.selectedRowKeysDate[0].paramsTemplatePublishVersion,
|
||||
sourceManifestId: this.selectedRowKeysDate[0].id
|
||||
}
|
||||
postAction('params/manifest/copy', _tt).then((res) => {
|
||||
if (res.success) {
|
||||
this.$emit('copysubmit')
|
||||
this.$message.success(this.$t('Copysuccessful'))
|
||||
this.flag = false
|
||||
this.spinLoading = false
|
||||
this.confirmLoading = false
|
||||
} else {
|
||||
this.$message.warning(this.$t('Copyfailed'))
|
||||
this.flag = false
|
||||
this.spinLoading = false
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
// axios({
|
||||
// url: `/jero-boot/params/manifest/copy`,
|
||||
// method: 'post',
|
||||
// data: _tt,
|
||||
// transformRequest: [function (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.$emit('copysubmit')
|
||||
// _this.$message.success(res.data.message)
|
||||
// _this.flag = false
|
||||
// _this.spinLoading = false
|
||||
// _this.confirmLoading = false
|
||||
// }else{
|
||||
// _this.$message.warning(res.data.message)
|
||||
// _this.flag = false
|
||||
// _this.spinLoading = false
|
||||
// _this.confirmLoading = false
|
||||
// }
|
||||
// })
|
||||
// .catch( (error) =>{
|
||||
// console.log(error);
|
||||
// });
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
selectedRowKeyS(val) {
|
||||
this.selectedRowKeys = val
|
||||
watch: {
|
||||
selectedRowKeyS(val) {
|
||||
this.selectedRowKeys = val
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='less' scoped>
|
||||
@import '~@assets/less/common.less';
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.diolag-area {
|
||||
.table-area {
|
||||
margin: 20px 0;
|
||||
.diolag-area {
|
||||
.table-area {
|
||||
margin: 20px 0;
|
||||
|
||||
.action-edit {
|
||||
margin-right: 10px;
|
||||
.action-edit {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.table-del {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
.table-del {
|
||||
.drawer-bootom-button {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
border-top: 1px solid #e8e8e8;
|
||||
padding: 10px 16px;
|
||||
text-align: right;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
background: #fff;
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
/*align-items: center;*/
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 84px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 100px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
/*height: 40px;*/
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.itemModel-text {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
.box-button{
|
||||
height: 38px;
|
||||
}
|
||||
}
|
||||
.drawer-bootom-button{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
</style>
|
||||
<style lang='less'>
|
||||
.area-module {
|
||||
.ant-modal-wrap {
|
||||
.ant-modal {
|
||||
.ant-modal-content {
|
||||
.ant-modal-footer {
|
||||
text-align: center;
|
||||
.area-module {
|
||||
.ant-modal-wrap {
|
||||
.ant-modal {
|
||||
.ant-modal-content {
|
||||
.ant-modal-footer {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user