修改三期优化点

This commit is contained in:
sunFlower
2022-09-29 14:10:45 +08:00
parent 6814f4bf70
commit 59e828a166
6 changed files with 117 additions and 10 deletions
+1
View File
@@ -1315,4 +1315,5 @@ module.exports = {
consistentAssessment:'Consistent assessment', consistentAssessment:'Consistent assessment',
viewConsistentAssessment:'View Consistent Assessment', viewConsistentAssessment:'View Consistent Assessment',
viewAll:'View All', viewAll:'View All',
endProcess:'End Process',
} }
+1
View File
@@ -1416,4 +1416,5 @@ module.exports = {
consistentAssessment:'一致评估', consistentAssessment:'一致评估',
viewConsistentAssessment:'查看一致评估', viewConsistentAssessment:'查看一致评估',
viewAll:'查看全部', viewAll:'查看全部',
endProcess:'结束流程',
} }
@@ -8,6 +8,14 @@
<!-- </span>--> <!-- </span>-->
{{$route.query.serialNumber +' '+$t('evaluationResults')}} {{$route.query.serialNumber +' '+$t('evaluationResults')}}
</div> </div>
<div class="doc-detail-right">
<div @click="endProcessClick"
v-if="(formInline.createBy == this.userInfoQuery.username || administrators) && formInline.gatherResult == 'Underway'"
class="operator-text-text" :title="$t('endProcess')">
<a-icon type="profile"/>
{{$t('endProcess')}}
</div>
</div>
</div> </div>
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
<div class="detail-content" style="padding:12px 24px"> <div class="detail-content" style="padding:12px 24px">
@@ -70,6 +78,7 @@
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
import { getAction, putAction, downloadFile } from '@/api/manage' import { getAction, putAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { postAction } from '../../../../api/manage'
export default { export default {
name: 'evaluationResultsList', name: 'evaluationResultsList',
@@ -85,6 +94,7 @@
pageNo: 1, pageNo: 1,
dataSource: [], dataSource: [],
formInline: {}, formInline: {},
administrators:false,
userInfoQuery: {}, userInfoQuery: {},
columns: [ columns: [
{ {
@@ -143,6 +153,14 @@
mounted() { mounted() {
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
this.getData() this.getData()
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: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
@@ -232,6 +250,20 @@
}, },
seeFileClick(item) { seeFileClick(item) {
this.$refs.viewFileModelRef.clickButtonToUpload(item) this.$refs.viewFileModelRef.clickButtonToUpload(item)
},
endProcessClick() {
let query = {
ids: this.$route.query.id
}
postAction('/lawsOpinionGather/lawsOpinionGatherEO/batchCompleteTask', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.pageNo = 1
this.getList()
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
} }
} }
} }
@@ -239,6 +271,7 @@
<style scoped lang="less"> <style scoped lang="less">
@import '~@assets/less/common.less'; @import '~@assets/less/common.less';
.doc-detail { .doc-detail {
background: #fff; background: #fff;
height: 100%; height: 100%;
@@ -268,7 +301,7 @@
} }
.doc-detail-right { .doc-detail-right {
width: 800px; /*width: 800px;*/
line-height: 68px; line-height: 68px;
display: flex; display: flex;
@@ -329,4 +362,17 @@
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
.operator-text-text {
cursor: pointer;
margin-right: 23px;
font-size: 14px;
font-weight: 400;
color: #040B29;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-align: right;
}
</style> </style>
@@ -10,19 +10,26 @@
</div> </div>
<div class="doc-detail-right"> <div class="doc-detail-right">
<div @click="CurrentStandard" class="operator-text-text" :title="$t('initiateSupplementaryProcess')"> <div @click="CurrentStandard" class="operator-text-text" :title="$t('initiateSupplementaryProcess')">
<a-icon type="profile" /> <a-icon type="profile"/>
{{$t('initiateSupplementaryProcess')}} {{$t('initiateSupplementaryProcess')}}
</div> </div>
<div @click="endProcessClick"
v-if="this.$route.query.createBy == this.userInfoQuery.username
&& this.$route.query.gatherResult == 'Underway'"
class="operator-text-text" :title="$t('endProcess')">
<a-icon type="profile"/>
{{$t('endProcess')}}
</div>
</div> </div>
</div> </div>
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
<div class="detail-content"> <div class="detail-content">
<div class="content-box"> <div class="content-box">
<!-- <div class="header-text">--> <!-- <div class="header-text">-->
<!-- <a-button class="box-button-top" type="primary" @click="CurrentStandard">--> <!-- <a-button class="box-button-top" type="primary" @click="CurrentStandard">-->
<!-- {{$t('initiateSupplementaryProcess')}}--> <!-- {{$t('initiateSupplementaryProcess')}}-->
<!-- </a-button>--> <!-- </a-button>-->
<!-- </div>--> <!-- </div>-->
<div class="processBackground-text"> <div class="processBackground-text">
<span style="font-size: 16px;font-weight: 400;color: #000F16;"> {{$t('processBackground')}}:</span> <span style="font-size: 16px;font-weight: 400;color: #000F16;"> {{$t('processBackground')}}:</span>
{{$route.query.processBackground}} {{$route.query.processBackground}}
@@ -122,6 +129,7 @@
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import { getAction, postAction, downloadFile } from '@/api/manage' import { getAction, postAction, downloadFile } from '@/api/manage'
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
import { mapGetters } from 'vuex'
export default { export default {
name: 'evaluationResultsClause', name: 'evaluationResultsClause',
@@ -228,14 +236,30 @@
ellipsis: true, ellipsis: true,
width: 160 width: 160
} }
] ],
userInfoQuery: {}
} }
}, },
mounted() { mounted() {
document.title = this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults') document.title = this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults')
this.userInfoQuery = this.userInfo()
this.getList() this.getList()
}, },
methods: { methods: {
...mapGetters(['userInfo']),
endProcessClick() {
let query = {
ids: this.$route.query.id
}
postAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/batchCompleteTask', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.getList()
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
},
CurrentStandard() { CurrentStandard() {
let query = { let query = {
firstInitiation: '2', firstInitiation: '2',
@@ -439,6 +463,7 @@
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
.operator-text-text { .operator-text-text {
cursor: pointer; cursor: pointer;
margin-right: 23px; margin-right: 23px;
@@ -13,6 +13,13 @@
<a-icon type="profile"/> <a-icon type="profile"/>
{{$t('initiateSupplementaryProcess')}} {{$t('initiateSupplementaryProcess')}}
</div> </div>
<div @click="endProcessClick"
v-if="this.$route.query.createBy == this.userInfoQuery.username
&& this.$route.query.gatherResult == 'Underway'"
class="operator-text-text" :title="$t('endProcess')">
<a-icon type="profile"/>
{{$t('endProcess')}}
</div>
</div> </div>
</div> </div>
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
@@ -77,6 +84,7 @@
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import { getAction, postAction, downloadFile } from '@/api/manage' import { getAction, postAction, downloadFile } from '@/api/manage'
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
import { mapGetters } from 'vuex'
export default { export default {
name: 'evaluationResultsWhole', name: 'evaluationResultsWhole',
@@ -88,6 +96,7 @@
return { return {
queryParam: {}, queryParam: {},
dataSource: [], dataSource: [],
administrators:false,
url: { url: {
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/list', list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/list',
exportData: 'lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/exportZip' exportData: 'lawsTechnologyEvaluation/lawsTechnologyEvaluationComplianceResultEO/exportZip'
@@ -121,10 +130,33 @@
} }
}, },
mounted() { mounted() {
this.userInfoQuery = this.userInfo()
document.title = this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults') document.title = this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults')
this.getList() this.getList()
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: { methods: {
...mapGetters(['userInfo']),
endProcessClick() {
let query = {
ids: this.$route.query.id
}
postAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/batchCompleteTask', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.getList()
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
},
CurrentStandard() { CurrentStandard() {
let query = { let query = {
firstInitiation: '2', firstInitiation: '2',
@@ -463,7 +463,8 @@
serialNumber: row.serialNumber, serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id, lawsTechnologyEvaluationId: row.id,
standId: row.standId, standId: row.standId,
remark: row.remark remark: row.remark,
createBy:row.createBy
} }
}) })
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')
@@ -476,7 +477,8 @@
serialNumber: row.serialNumber, serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id, lawsTechnologyEvaluationId: row.id,
standId: row.standId, standId: row.standId,
remark: row.remark remark: row.remark,
createBy:row.createBy
} }
}) })
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')