|
@@ -477,32 +477,38 @@ export default {
|
|
|
},
|
|
|
// 更新准出报告
|
|
|
getQueryData(ele, vel) {
|
|
|
- this.ClientData = ele
|
|
|
- typeof (this.editorElem) === 'string' ? this.ClientData.projectBackground = this.editorElem : ''
|
|
|
- typeof (this.editorElems) === 'string' ? this.ClientData.moduleInfo = this.editorElems : ''
|
|
|
- typeof (this.editorFrom) === 'string' ? this.ClientData.functionInfo = this.editorFrom : ''
|
|
|
- typeof (this.editorF) === 'string' ? this.ClientData.onlineRisk = this.editorF : ''
|
|
|
- typeof (this.editorEle) === 'string' ? this.ClientData.rqtInfo = this.editorEle : ''
|
|
|
- typeof (this.editorEl) === 'string' ? this.ClientData.fctInfo = this.editorEl : ''
|
|
|
- typeof (this.editorSix) === 'string' ? this.ClientData.pftInfo = this.editorSix : ''
|
|
|
- typeof (this.editorEight) === 'string' ? this.ClientData.safeResultInfo = this.editorEight : ''
|
|
|
- typeof (this.editorNine) === 'string' ? this.ClientData.moniterResultInfo = this.editorNine : ''
|
|
|
- this.ClientData.fctResult = this.fctResult
|
|
|
- this.ClientData.rqtResult = this.rqtResult
|
|
|
- this.ClientData.pftResult = this.pftResult
|
|
|
- this.ClientData.safeResult = this.safeResult
|
|
|
- this.ClientData.moniterResult = this.moniterResult
|
|
|
- this.ClientData.status = this.status
|
|
|
- this.ClientData.id === undefined ? this.ClientData.id = this.accpId : ''
|
|
|
- this.ClientData.taskLateStatus = this.taskLateStatus
|
|
|
- this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
- this.objData = { projectTestReport: this.ClientData, user: this.userData }
|
|
|
- projectTestReportUpdate(this.objData).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.$message({ type: 'success', message: '更新成功' })
|
|
|
- this.$emit('QuasiReport', res.data)
|
|
|
+ this.$refs['ClientData'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.ClientData = ele
|
|
|
+ typeof (this.editorElem) === 'string' ? this.ClientData.projectBackground = this.editorElem : ''
|
|
|
+ typeof (this.editorElems) === 'string' ? this.ClientData.moduleInfo = this.editorElems : ''
|
|
|
+ typeof (this.editorFrom) === 'string' ? this.ClientData.functionInfo = this.editorFrom : ''
|
|
|
+ typeof (this.editorF) === 'string' ? this.ClientData.onlineRisk = this.editorF : ''
|
|
|
+ typeof (this.editorEle) === 'string' ? this.ClientData.rqtInfo = this.editorEle : ''
|
|
|
+ typeof (this.editorEl) === 'string' ? this.ClientData.fctInfo = this.editorEl : ''
|
|
|
+ typeof (this.editorSix) === 'string' ? this.ClientData.pftInfo = this.editorSix : ''
|
|
|
+ typeof (this.editorEight) === 'string' ? this.ClientData.safeResultInfo = this.editorEight : ''
|
|
|
+ typeof (this.editorNine) === 'string' ? this.ClientData.moniterResultInfo = this.editorNine : ''
|
|
|
+ this.ClientData.fctResult = this.fctResult
|
|
|
+ this.ClientData.rqtResult = this.rqtResult
|
|
|
+ this.ClientData.pftResult = this.pftResult
|
|
|
+ this.ClientData.safeResult = this.safeResult
|
|
|
+ this.ClientData.moniterResult = this.moniterResult
|
|
|
+ this.ClientData.status = this.status
|
|
|
+ this.ClientData.id === undefined ? this.ClientData.id = this.accpId : ''
|
|
|
+ this.ClientData.taskLateStatus = this.taskLateStatus
|
|
|
+ this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
+ this.objData = { projectTestReport: this.ClientData, user: this.userData }
|
|
|
+ projectTestReportUpdate(this.objData).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message({ type: 'success', message: '更新成功' })
|
|
|
+ this.$emit('QuasiReport', res.data)
|
|
|
+ } else {
|
|
|
+ this.$message.error('更新失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
- this.$message.error('更新失败')
|
|
|
+ return false
|
|
|
}
|
|
|
})
|
|
|
},
|