对接法规技术评估
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@
|
||||
},
|
||||
{
|
||||
title: this.$t('evaluationMethod'),
|
||||
dataIndex: 'evaluationMethod',
|
||||
dataIndex: 'evaluationMethods',
|
||||
align: 'center',
|
||||
scopedSlots: { customRender: 'evaluationMethod' }
|
||||
},
|
||||
|
||||
@@ -14,6 +14,14 @@
|
||||
:data-source="dataSource"
|
||||
: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>
|
||||
</div>
|
||||
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||
@@ -23,8 +31,10 @@
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
|
||||
export default {
|
||||
name: 'evaluatorFeedback',
|
||||
|
||||
components: {
|
||||
uploadFile
|
||||
},
|
||||
@@ -33,31 +43,38 @@
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
evaluatorFeedbackList: {
|
||||
type: Array,
|
||||
default: (() => {
|
||||
return []
|
||||
})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
disabled:false,
|
||||
loading:false,
|
||||
uploadIndex:'',
|
||||
dataSource:[],
|
||||
columns:[
|
||||
disabled: false,
|
||||
loading: false,
|
||||
uploadIndex: '',
|
||||
dataSource: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('clauseNo'),
|
||||
dataIndex: 'items_num',
|
||||
dataIndex: 'itemNum',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('clauseName'),
|
||||
dataIndex: 'items_name',
|
||||
dataIndex: 'itemName',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('clauseContent'),
|
||||
dataIndex: 'iterms_conditions',
|
||||
dataIndex: 'itemContent',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'clauseContent' }
|
||||
},
|
||||
{
|
||||
title: this.$t('evaluationMethod'),
|
||||
@@ -94,15 +111,17 @@
|
||||
dataIndex: 'complianceResults',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
if (this.evaluatorFeedbackList && this.evaluatorFeedbackList.length > 0) {
|
||||
this.dataSource = this.evaluatorFeedbackList
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickButtonToUpload(item,index) {
|
||||
clickButtonToUpload(item, index) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
this.$refs.uploadFile.visible = true
|
||||
this.uploadName = item
|
||||
@@ -126,7 +145,7 @@
|
||||
/** 赋值给当前对应的表单文件 */
|
||||
this.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',')
|
||||
this.dataList = [...this.dataList]
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -214,4 +233,16 @@
|
||||
margin-left: 8px;
|
||||
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>
|
||||
@@ -21,6 +21,7 @@
|
||||
/>
|
||||
<evaluatorFeedbackList
|
||||
v-if="isDisplay && isTrue"
|
||||
:evaluatorFeedbackList="evaluatorFeedbackList"
|
||||
ref="evaluatorFeedbackListRef"
|
||||
:title="$t('evaluatorFeedback')"
|
||||
/>
|
||||
@@ -72,11 +73,13 @@
|
||||
isDisplay: true,
|
||||
feedbackDataList: [],
|
||||
queryProject: {},
|
||||
evaluatorFeedbackList: [],
|
||||
complianceResult: {},
|
||||
isPreservation: false,
|
||||
isSendBack: false,
|
||||
isTrue: false,
|
||||
standardContentList: [
|
||||
standardContentList:[],
|
||||
standardContent: [
|
||||
{
|
||||
title: this.$t('standard'),
|
||||
value: 'serialNumber'
|
||||
@@ -106,7 +109,35 @@
|
||||
title: this.$t('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() {
|
||||
@@ -132,14 +163,30 @@
|
||||
}
|
||||
this.isTrue = this.queryProject.evaluationType == 'Feedback evaluation' ? false : true
|
||||
if (this.isTrue) {
|
||||
this.standardContentList = this.standardContentList.filter(res => {
|
||||
return res.title != this.$t('evaluationMethod')
|
||||
})
|
||||
this.standardContentList = this.evaluatorFeedback
|
||||
this.lawsTechnologyEvaluationItem()
|
||||
} else {
|
||||
this.standardContentList = this.standardContent
|
||||
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() {
|
||||
getAction(this.url.list, {
|
||||
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,
|
||||
|
||||
Reference in New Issue
Block a user