对接法规技术评估

This commit is contained in:
qq787203167
2022-07-12 16:16:07 +08:00
parent 0c6e385b87
commit 1f53cfd556
@@ -42,7 +42,7 @@
</div> </div>
<div class="title-text-content" <div class="title-text-content"
:class="{'title-text-content-one':!isTrue}"> :class="{'title-text-content-one':!isTrue}">
{{selectedRowKeysRecord[0] ? selectedRowKeysRecord[0].serial_number :''}} {{selectedRowKeysRecord[0] ? selectedRowKeysRecord[0].serialNumber :''}}
</div> </div>
<div class="title-text-right" v-if="isTrue"> <div class="title-text-right" v-if="isTrue">
<span @click="standardDecompositionDocumentClick"> <span @click="standardDecompositionDocumentClick">
@@ -343,12 +343,12 @@
let content = record.filter(res => { let content = record.filter(res => {
return res.id == this.selectedRowKeys[0] return res.id == this.selectedRowKeys[0]
}) })
if (content && content.length > 0){ if (content && content.length > 0) {
this.selectedRowKeysRecord.push({ this.selectedRowKeysRecord.push({
standId:content[0].id, standId: content[0].id,
serialNumber:content[0].serial_number, serialNumber: content[0].serial_number,
title:content[0].title, title: content[0].title,
technologyTerritory:content[0].technology_territory, technologyTerritory: content[0].technology_territory
}) })
} }
}, },
@@ -410,9 +410,9 @@
} else { } else {
this.JLoading = true this.JLoading = true
let value = Object.assign(this.formInline, this.selectedRowKeysRecord[0]) let value = Object.assign(this.formInline, this.selectedRowKeysRecord[0])
if (this.isTrue){ if (this.isTrue) {
value.evaluationType = 'Item evaluation' value.evaluationType = 'Item evaluation'
}else{ } else {
value.evaluationType = 'Feedback evaluation' value.evaluationType = 'Feedback evaluation'
} }
value.startTime = startTime value.startTime = startTime
@@ -421,6 +421,9 @@
value.id = this.getUUID() value.id = this.getUUID()
value.regulationOwnerId = this.userInfo().id value.regulationOwnerId = this.userInfo().id
Object.keys(value).forEach(res => { Object.keys(value).forEach(res => {
if (value[res] && value[res] instanceof Array) {
value[res] = value[res].join(',')
}
if (value[res] && value[res] instanceof String) { if (value[res] && value[res] instanceof String) {
value[res] = value[res].replace(/\"/g, '“') value[res] = value[res].replace(/\"/g, '“')
value[res] = value[res].replace(/\'/g, '‘') value[res] = value[res].replace(/\'/g, '‘')