添加权限

This commit is contained in:
qq787203167
2022-06-08 19:38:28 +08:00
parent 1ff997103a
commit 5f1428d3fd
4 changed files with 107 additions and 66 deletions
+33 -33
View File
@@ -582,7 +582,7 @@ module.exports = {
maintenanceList: 'Maintenance list',
instructionForUse: 'Instruction for use',
subtitle: 'Sub-Title',
scopeOfApplication: 'Scope of application',
scopeOfApplication: 'Scope',
correspondingStandard: 'Compare',
implementationCategory: 'Usage',
certificationType: 'Certification Type',
@@ -596,7 +596,7 @@ module.exports = {
StandardImplementationDate: 'Standard implementation date',
regulatoryEngineer: 'Regulation Engineer',
certifiedEngineer: 'Homologation Engineer',
regulatoryEngineerOrcertifiedEngineer:'Regulation Engineer Or Homologation Engineer',
regulatoryEngineerOrcertifiedEngineer: 'Regulation Engineer Or Homologation Engineer',
engineeringInterfacePerson: 'Engineering Interface',
typeOfDeliverables: 'Type of deliverables',
deliverableTemplate: 'Deliverable template',
@@ -627,7 +627,7 @@ module.exports = {
ListOfRelevantPersonnel: 'List of relevant personnel',
DeliverableStatus: 'Deliverable status',
CurrentStatusOfTheProject: 'Current status of the project',
CurrentStatus:'Current status',
CurrentStatus: 'Current status',
NonConformance: 'Non conformance',
listSubclauses: 'List Subclauses',
fileType: 'File Type',
@@ -666,7 +666,7 @@ module.exports = {
alteration: 'Alteration',
fixedPlate: 'Fixed plate',
taskAffirmStatus: 'Task Confirmation Status',
taskAffirm:'Task Confirmation',
taskAffirm: 'Task Confirmation',
listConfirmationStatus: 'List Confirmation Status',
listConfirmation: 'List Confirmation',
ListConfirmationDeadline: 'List confirmation deadline',
@@ -879,32 +879,32 @@ module.exports = {
modelYear: 'Model year',
NoteConfirmTheChange: 'Note: after the change, the list will be in the status of not being reviewed, which will start from the internal review, and the historical data will be discarded Confirm the change',
onlyDataChanged: 'Only data whose task confirmation status is accepted can be changed',
inquiry:'Inquiry',
ConfirmationDeadline:'Confirmation Deadline',
regulatoryCertificationTaskConfirmation:'Regulatory certification task confirmation',
confirmationEngineeringInterfacePerson:'Confirmation of engineering interface person',
engineerReply:'Engineer reply',
catalogFile:'Catalog File',
testScheme:'Test Scheme',
testReportLocation:'Test report location',
explain:'Explain',
dataCannotEmpty:'Data Cannot Empty',
documentDynamics:'Document Dynamics',
theNumberAgain:'The number already exists and cannot be added again',
myList:'My to-do list',
myNews:'My News',
monthlyReportRegulations:'Monthly report regulations',
Pending:'Pending',
custom:'Custom',
notSelected:'Not selected',
ExportReport:'Export Report',
basicInformation:'Basic Information',
replyFromProjectContact:'Reply from project contact person',
pleaseUpload:'Please Upload',
fullScreenView:'Full Screen View',
systemPrompt:'System Prompt',
loginExpired:'Login Expired',
reportNotUploaded:'Report not uploaded',
inquiry: 'Inquiry',
ConfirmationDeadline: 'Confirmation Deadline',
regulatoryCertificationTaskConfirmation: 'Regulatory certification task confirmation',
confirmationEngineeringInterfacePerson: 'Confirmation of engineering interface person',
engineerReply: 'Engineer reply',
catalogFile: 'Catalog File',
testScheme: 'Test Scheme',
testReportLocation: 'Test report location',
explain: 'Explain',
dataCannotEmpty: 'Data Cannot Empty',
documentDynamics: 'Document Dynamics',
theNumberAgain: 'The number already exists and cannot be added again',
myList: 'My to-do list',
myNews: 'My News',
monthlyReportRegulations: 'Monthly report regulations',
Pending: 'Pending',
custom: 'Custom',
notSelected: 'Not selected',
ExportReport: 'Export Report',
basicInformation: 'Basic Information',
replyFromProjectContact: 'Reply from project contact person',
pleaseUpload: 'Please Upload',
fullScreenView: 'Full Screen View',
systemPrompt: 'System Prompt',
loginExpired: 'Login Expired',
reportNotUploaded: 'Report not uploaded',
position: 'position',
// 认证权限状态
CollectionInitiated: 'Collection to be initiated',
@@ -918,7 +918,7 @@ module.exports = {
Statusis: 'Statusis',
toHavePermission: 'To Have Permission',
and: 'and',
judge:'Judge',
pleaseWaitWhileRunning:'Please wait while running',
roleSwitching:'Role switching',
judge: 'Judge',
pleaseWaitWhileRunning: 'Please wait while running',
roleSwitching: 'Role switching'
}
@@ -17,23 +17,23 @@
</div>
<div class="doc-detail-right">
<div @click="UpdateLog" class="operator-text-text" :title="$t('UpdateLog')">
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('UpdateLog')">
<a-icon type="reload"/>
{{$t('UpdateLog')}}
</div>
<div @click="DocumentSplitting" class="operator-text-text" :title="$t('DocumentSplitting')">
<div @click="DocumentSplitting" v-has="'bussLog:page'" class="operator-text-text" :title="$t('DocumentSplitting')">
<a-icon type="codepen"/>
{{$t('DocumentSplitting')}}
</div>
<div @click="UpdateLog" class="operator-text-text" :title="$t('DocumentTranslation')">
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('DocumentTranslation')">
<a-icon type="file-pdf"/>
{{$t('DocumentTranslation')}}
</div>
<div @click="UpdateLog" class="operator-text-text" :title="$t('DocumentComparison')">
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('DocumentComparison')">
<a-icon type="wallet"/>
{{$t('DocumentComparison')}}
</div>
<div @click="UpdateLog" class="operator-text-text" :title="$t('KnowledgeDatabase')">
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('KnowledgeDatabase')">
<a-icon type="folder"/>
{{$t('KnowledgeDatabase')}}
</div>
@@ -10,7 +10,7 @@
{{this.title}}
</span>
</div>
<div class="Virtual-detail-text-right" v-if="textTitle === '法规清单'">
<div class="Virtual-detail-text-right" v-if="textTitle === $t('listOfRegulations')">
<div class="operator-text" @click="commentClick">
<a-icon type="message"/>
{{$t('comment')}}
@@ -28,33 +28,39 @@
<div style="padding: 67px 0 0 0;background: #ffffff;height:100%">
<div class="detail-content" style="height: 100%">
<div class="Virtual-detail-left">
<div class="Virtual-detail-left-text" :title="$t('projectDetails')" @click="textClick(0,'项目详情')">
<div class="Virtual-detail-left-text" :title="$t('projectDetails')"
@click="textClick(0,$t('projectDetails'))">
<a-icon type="container"/>
{{$t('projectDetails')}}
</div>
<div class="Virtual-detail-left-text" :title="$t('listOfRegulations')" @click="textClick(1,'法规清单')">
<div class="Virtual-detail-left-text" v-has="'projectLawsInventory:list'" :title="$t('listOfRegulations')"
@click="textClick(1,$t('listOfRegulations'))">
<a-icon type="container"/>
{{$t('listOfRegulations')}}
</div>
<div class="Virtual-detail-left-text" :title="$t('taskList')" @click="textClick(2,'任务清单')">
<div class="Virtual-detail-left-text" :title="$t('taskList')" @click="textClick(2,$t('taskList'))">
<a-icon type="container"/>
{{$t('taskList')}}
</div>
<div class="Virtual-detail-left-text" :title="$t('nonConformance')" @click="textClick(3,'未符合项')">
<div class="Virtual-detail-left-text" v-has="'ncrTrack:queryPageInfo'" :title="$t('nonConformance')"
@click="textClick(3,$t('nonConformance'))">
<a-icon type="container"/>
{{$t('nonConformance')}}
</div>
<div class="Virtual-detail-left-text" :title="$t('TaskParameterCollection')" @click="textClick(4,'认证参数收集')">
<div class="Virtual-detail-left-text" :title="$t('TaskParameterCollection')"
@click="textClick(4,$t('TaskParameterCollection'))">
<a-icon type="container"/>
{{$t('TaskParameterCollection')}}
</div>
</div>
<div class="Virtual-detail-right">
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === '项目详情'"/>
<listOfRegulations v-else-if="textTitle === '法规清单'"/>
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility" v-else-if="textTitle === '任务清单'"/>
<ParameterItemCollectionList v-else-if="textTitle === '认证参数收集'" :paramsManifest='paramsManifest'/>
<nonConformance v-else-if="textTitle === '未符合项'"/>
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === $t('projectDetails')"/>
<listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"/>
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
v-else-if="textTitle === $t('taskList')"/>
<ParameterItemCollectionList v-else-if="textTitle === $t('TaskParameterCollection')"
:paramsManifest='paramsManifest'/>
<nonConformance v-else-if="textTitle === $t('nonConformance')"/>
</div>
</div>
</div>
@@ -92,7 +98,7 @@
title: this.$t('projectDetails'),
textTitle: '认证参数收集',
isDisplayNum: '',
areaOfResponsibility:{},
areaOfResponsibility: {},
url: {
logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '',
@@ -115,7 +121,11 @@
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
if (text && text.length > 0) {
text[4].classList.add('Virtual-detail-left-text-color')
for (let i = 0; i < text.length; i++) {
if (text[i].title == this.$t('TaskParameterCollection')) {
text[i].classList.add('Virtual-detail-left-text-color')
}
}
}
},
textClick(num, name) {
@@ -125,7 +135,19 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
text[num].classList.add('Virtual-detail-left-text-color')
for (let i = 0; i < text.length; i++) {
if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
}
}
},
UpdateLogClick() {
this.$refs.updateLogRef.getList({ projectLibraryId: this.$route.query.id })
@@ -146,16 +168,20 @@
}
})
},
TaskListChange(item){
TaskListChange(item) {
this.areaOfResponsibility = item
this.textTitle = '任务清单'
this.textTitle = this.$t('taskList')
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
if (textColor && textColor.length > 0) {
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
text[2].classList.add('Virtual-detail-left-text-color')
},
for (let i = 0; i < text.length; i++) {
if (text[i].title == this.$t('taskList')) {
text[i].classList.add('Virtual-detail-left-text-color')
}
}
}
}
}
</script>
@@ -9,7 +9,7 @@
{{this.title}}
</span>
</div>
<div class="Virtual-detail-text-right" v-if="textTitle === '法规清单'">
<div class="Virtual-detail-text-right" v-if="textTitle === $t('listOfRegulations')">
<div class="operator-text" v-has="'projectComment:list'" @click="commentClick">
<a-icon type="message"/>
{{$t('comment')}}
@@ -109,32 +109,44 @@
this.getTaskId()
if (this.$route.query.type) {
if (this.$route.query.type == '101') {
this.textColor(0)
this.textColor(this.$t('projectDetails'))
this.textTitle = this.$t('projectDetails')
} else if (this.$route.query.type == '102') {
this.textColor(1)
this.textColor(this.$t('listOfRegulations'))
this.textTitle = this.$t('listOfRegulations')
} else if (this.$route.query.type == '103') {
this.textColor(2)
this.textColor(this.$t('taskList'))
this.textTitle = this.$t('taskList')
} else if (this.$route.query.type == '104') {
this.textColor(3)
this.textColor(this.$t('nonConformance'))
this.textTitle = this.$t('nonConformance')
} else if (this.$route.query.type == '105') {
this.textColor(4)
this.textColor(this.$t('TaskParameterCollection'))
this.textTitle = this.$t('TaskParameterCollection')
}
}
},
methods: {
textColor(num) {
textColor(name) {
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
if (textColor && textColor.length > 0) {
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
if (text && text.length > 0) {
text[num].classList.add('Virtual-detail-left-text-color')
for (let i = 0; i < text.length; i++) {
if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
} else if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
}
}
}
},
textClick(num, name) {
@@ -144,7 +156,6 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
console.log(text)
for (let i = 0; i < text.length; i++) {
if (text[i].title == name) {
text[i].classList.add('Virtual-detail-left-text-color')
@@ -186,7 +197,11 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
text[2].classList.add('Virtual-detail-left-text-color')
for (let i = 0; i < text.length; i++) {
if (text[i].title == this.$t('taskList')) {
text[i].classList.add('Virtual-detail-left-text-color')
}
}
}
}
}