修改禅道已知bug

This commit is contained in:
sunFlower
2022-09-29 14:43:28 +08:00
parent 71ae922f7b
commit 5b4c7f8cb0
3 changed files with 13 additions and 0 deletions
@@ -296,6 +296,12 @@
if (dataList[i].evaluationMethods && dataList[i].evaluationMethods instanceof Array) {
dataList[i].evaluationMethods = dataList[i].evaluationMethods.join(',')
}
Object.keys(dataList[i]).forEach(res=>{
if (dataList[i][res] && typeof dataList[i][res] == 'string') {
dataList[i][res] = dataList[i][res].replace(/\"/g, '“')
dataList[i][res] = dataList[i][res].replace(/\'/g, '')
}
})
dataList[i].lawsTechnologyEvaluationId = this.$route.query.lawsTechnologyEvaluationId || this.getUUID
if (!dataList[i].evaluatorIds) {
this.$message.warning(this.$t('pleaseCompleteTheEvaluationMethodorEvaluator'))
@@ -345,6 +345,12 @@
this.$message.warning(this.$t('PleaseCompleteList'))
return
}
Object.keys(this.dataSource[i]).forEach(res=>{
if (this.dataSource[i][res] && typeof this.dataSource[i][res] == 'string') {
this.dataSource[i][res] = this.dataSource[i][res].replace(/\"/g, '“')
this.dataSource[i][res] = this.dataSource[i][res].replace(/\'/g, '')
}
})
}
if (this.$route.query.taskDefinitionKey == 'pgrqr'){
let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
@@ -348,6 +348,7 @@
this.getNameList()
this.formInline.studioEngineerName = this.userInfo().username
this.formInline.studioEngineer = this.userInfo().id
this.formInline = {...this.formInline}
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})