Commit 018d0a13 authored by 何鹏程's avatar 何鹏程

修改bug

parent 42a05070
......@@ -343,13 +343,19 @@ export default {
this.$refs.dataForm.validate((valid) => {
if (valid) {
const { stroke, chest, greenCenter } = this.dataForm
const greenCenterSecond = stroke + (chest ? (',' + chest) : '')
let greenCenterSecond = []
if(greenCenter.indexOf(1) > -1 && chest) {
greenCenterSecond.push(chest)
}
if(greenCenter.indexOf(2) > -1 && stroke) {
greenCenterSecond.push(stroke)
}
const params = {
...this.dataForm,
auditStatus: 1,
greenCenter: greenCenter.join(),
fileList: this.$refs.fileUpload.getFileList(),
greenCenterSecond:greenCenterSecond,
greenCenterSecond:greenCenterSecond.join(),
// hospitalName: this.$refs.hospitalCode.query
hospitalCode: this.userInfo.hospitalCode,
hospitalName: this.userInfo.hospitalName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment