对接法规技术评估

This commit is contained in:
qq787203167
2022-07-13 18:36:45 +08:00
parent 5d519167c1
commit 6286549c8c
3 changed files with 98 additions and 20 deletions
@@ -92,7 +92,7 @@
}, },
{ {
title: this.$t('evaluationMethod'), title: this.$t('evaluationMethod'),
dataIndex: 'evaluationMethod', dataIndex: 'evaluationMethods',
align: 'center', align: 'center',
scopedSlots: { customRender: 'evaluationMethod' } scopedSlots: { customRender: 'evaluationMethod' }
}, },
@@ -14,6 +14,14 @@
:data-source="dataSource" :data-source="dataSource"
:columns="columns" :columns="columns"
> >
<div slot="clauseContent" slot-scope="text,result">
<a-tooltip placement="topLeft">
<template slot="title">
<span v-html="text"></span>
</template>
<div class="clauseContent-text" v-html="text"></div>
</a-tooltip>
</div>
</a-table> </a-table>
</div> </div>
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile> <uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
@@ -23,8 +31,10 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import uploadFile from '@/components/uploadFile/file' import uploadFile from '@/components/uploadFile/file'
export default { export default {
name: 'evaluatorFeedback', name: 'evaluatorFeedback',
components: { components: {
uploadFile uploadFile
}, },
@@ -33,31 +43,38 @@
type: String, type: String,
default: '' default: ''
}, },
evaluatorFeedbackList: {
type: Array,
default: (() => {
return []
})
}
}, },
data() { data() {
return { return {
disabled:false, disabled: false,
loading:false, loading: false,
uploadIndex:'', uploadIndex: '',
dataSource:[], dataSource: [],
columns:[ columns: [
{ {
title: this.$t('clauseNo'), title: this.$t('clauseNo'),
dataIndex: 'items_num', dataIndex: 'itemNum',
align: 'center', align: 'center',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('clauseName'), title: this.$t('clauseName'),
dataIndex: 'items_name', dataIndex: 'itemName',
align: 'center', align: 'center',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('clauseContent'), title: this.$t('clauseContent'),
dataIndex: 'iterms_conditions', dataIndex: 'itemContent',
align: 'center', align: 'center',
ellipsis: true ellipsis: true,
scopedSlots: { customRender: 'clauseContent' }
}, },
{ {
title: this.$t('evaluationMethod'), title: this.$t('evaluationMethod'),
@@ -94,15 +111,17 @@
dataIndex: 'complianceResults', dataIndex: 'complianceResults',
align: 'center', align: 'center',
ellipsis: true ellipsis: true
}, }
], ]
} }
}, },
mounted() { mounted() {
if (this.evaluatorFeedbackList && this.evaluatorFeedbackList.length > 0) {
this.dataSource = this.evaluatorFeedbackList
}
}, },
methods: { methods: {
clickButtonToUpload(item,index) { clickButtonToUpload(item, index) {
this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
this.uploadName = item this.uploadName = item
@@ -126,7 +145,7 @@
/** 赋值给当前对应的表单文件 */ /** 赋值给当前对应的表单文件 */
this.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',') this.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',')
this.dataList = [...this.dataList] this.dataList = [...this.dataList]
}, }
} }
} }
</script> </script>
@@ -214,4 +233,16 @@
margin-left: 8px; margin-left: 8px;
cursor: pointer; cursor: pointer;
} }
.clauseContent-text {
width: 100%;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
}
</style> </style>
@@ -21,6 +21,7 @@
/> />
<evaluatorFeedbackList <evaluatorFeedbackList
v-if="isDisplay && isTrue" v-if="isDisplay && isTrue"
:evaluatorFeedbackList="evaluatorFeedbackList"
ref="evaluatorFeedbackListRef" ref="evaluatorFeedbackListRef"
:title="$t('evaluatorFeedback')" :title="$t('evaluatorFeedback')"
/> />
@@ -72,11 +73,13 @@
isDisplay: true, isDisplay: true,
feedbackDataList: [], feedbackDataList: [],
queryProject: {}, queryProject: {},
evaluatorFeedbackList: [],
complianceResult: {}, complianceResult: {},
isPreservation: false, isPreservation: false,
isSendBack: false, isSendBack: false,
isTrue: false, isTrue: false,
standardContentList: [ standardContentList:[],
standardContent: [
{ {
title: this.$t('standard'), title: this.$t('standard'),
value: 'serialNumber' value: 'serialNumber'
@@ -106,7 +109,35 @@
title: this.$t('processBackground'), title: this.$t('processBackground'),
value: 'processBackground' value: 'processBackground'
} }
] ],
evaluatorFeedback:[
{
title: this.$t('standard'),
value: 'serialNumber'
},
{
title: this.$t('title'),
value: 'title'
},
{
title: this.$t('regulatoryEngineer'),
value: 'regulationOwnerName'
},
{
title: this.$t('closingDate'),
value: 'endTime'
},
{
title: this.$t('RelevantMaterials'),
value: 'relatedDataFileId',
type: 2
},
{},
{
title: this.$t('processBackground'),
value: 'processBackground'
}
],
} }
}, },
mounted() { mounted() {
@@ -132,14 +163,30 @@
} }
this.isTrue = this.queryProject.evaluationType == 'Feedback evaluation' ? false : true this.isTrue = this.queryProject.evaluationType == 'Feedback evaluation' ? false : true
if (this.isTrue) { if (this.isTrue) {
this.standardContentList = this.standardContentList.filter(res => { this.standardContentList = this.evaluatorFeedback
return res.title != this.$t('evaluationMethod') this.lawsTechnologyEvaluationItem()
})
} else { } else {
this.standardContentList = this.standardContent
this.lawsOpinionAssessmentResult() this.lawsOpinionAssessmentResult()
} }
}) })
}, },
lawsTechnologyEvaluationItem() {
getAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationItemResultEO/list', {
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,
actiProcInstId: this.$route.query.prcId,
createBy: this.userInfo().username
}).then((res) => {
if (res.success) {
this.evaluatorFeedbackList = res.result || []
this.loading = false
} else {
this.evaluatorFeedbackList = []
this.loading = false
}
this.isDisplay = true
})
},
lawsOpinionAssessmentResult() { lawsOpinionAssessmentResult() {
getAction(this.url.list, { getAction(this.url.list, {
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId, lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,