对接法规技术评估

This commit is contained in:
qq787203167
2022-07-14 11:30:11 +08:00
parent 39de9c3e76
commit 865afc8191
5 changed files with 152 additions and 11 deletions
+2
View File
@@ -1134,4 +1134,6 @@ module.exports = {
reviewComments:'Review comments',
PleaseCompleteList:'Please complete the compliance results in the list',
sponsorFeedback:'Sponsor feedback',
processNumber:'Process number',
processName:'Process Name',
}
+2
View File
@@ -1138,4 +1138,6 @@ module.exports = {
reviewComments:'审核意见',
PleaseCompleteList:'请补全列表中符合性结果',
sponsorFeedback:'发起人反馈',
processNumber:'流程编号',
processName:'流程名称',
}
@@ -168,7 +168,7 @@
align: 'center',
width: 170,
ellipsis: true,
dataIndex: 'technologyTerritory'
dataIndex: 'technologyTerritoryName'
},
{
title: this.$t('collectResults'),
@@ -0,0 +1,141 @@
<template>
<a-modal
:title="$t('circulationHistory')"
:width="800"
:visible="visible"
:maskClosable="false"
@cancel="visible = false"
>
<template slot="footer">
<a-button key="back" @click="visible = false">
{{$t('cancel')}}
</a-button>
</template>
<a-table
class="table"
:columns="columns"
:pagination="false"
:scroll="{x:700,y: 400}"
:data-source="dataSource"
:loading="loading"
>
<span slot="fileOperation" slot-scope="record">
<a class="text" @click="preview(record)">
{{$t('See')}}
</a>
</span>
</a-table>
<div class="page" v-if="dataSource && dataSource.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="pageOnChange"
@showSizeChange="SizeChange"
/>
</div>
</a-modal>
</template>
<script>
import { getAction, putAction, downloadFile } from '@/api/manage'
export default {
name: 'processInformation',
data() {
return {
dataSource: [],
loading: false,
visible: false,
pageSize: 10,
total: 0,
pageNo: 1,
lawsTechnologyEvaluationId: '',
columns: [
{
title: this.$t('processNumber'),
dataIndex: 'prcNum',
align: 'center',
width: 160,
ellipsis: true
},
{
title: this.$t('processName'),
dataIndex: 'prcName',
align: 'center',
width: 160,
ellipsis: true
},
{
title: this.$t('Assessor'),
dataIndex: 'evaluatorName',
align: 'center',
width: 160,
ellipsis: true
},
{
title: this.$t('operation'),
align: 'center',
width: 130,
scopedSlots: { customRender: 'fileOperation' }
}
]
}
},
methods: {
preview(row) {
let newUrl = this.$router.resolve({
path: '/processDetails',
query: {
prcNum: row.prcNum,
prcType: 6,
prcId: row.actiProcInstId
}
})
window.open(newUrl.href, '_blank')
},
pageOnChange(page) {
this.pageNo = page
this.getList()
},
SizeChange(pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.getList()
},
getData(row) {
this.visible = true
this.lawsTechnologyEvaluationId = row.id
this.getList()
},
getList() {
let query = {
lawsTechnologyEvaluationId: this.lawsTechnologyEvaluationId,
pageSize: this.pageSize,
pageNo: this.pageNo
}
this.loading = true
getAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationFlowDetailEO/page', query).then((res) => {
if (res.success) {
this.dataSource = res.result.records || []
this.total = res.result.total
this.loading = false
} else {
this.loading = false
this.dataSource = []
}
})
}
}
}
</script>
<style scoped>
.page {
text-align: right;
margin-top: 20px;
}
</style>
@@ -149,14 +149,18 @@
</a-row>
</a-form-model>
</a-modal>
<processInformation ref="processInformationRef"/>
</a-card>
</template>
<script>
import { getAction, postAction } from '@/api/manage'
import processInformation from './components/processInformation'
export default {
name: 'index',
components:{
processInformation
},
data() {
return {
//url传参严格按照当前命名
@@ -353,15 +357,7 @@
})
},
viewProcessClick(row) {
let newUrl = this.$router.resolve({
path: '/processDetails',
query: {
prcNum: row.prcNum,
prcType: 6,
prcId: row.actiProcInstId
}
})
window.open(newUrl.href, '_blank')
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
},
evaluationResultsClick(row) {
let newUrl = this.$router.resolve({