| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="1" class="col-name">≈</el-col> |
| | | <el-col :span="1" class="col-name"> |
| | | <span v-if="index==0">{{ item.floating?'≈':'='}} </span> |
| | | <span v-else> = </span> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item |
| | | label="" |
| | |
| | | handleConfirmSave() { |
| | | this.$refs.form.validate((valid) => { |
| | | if (valid) { |
| | | this.shutdown() |
| | | let iscontinue=false; |
| | | for(let i in this.form.formList){ |
| | | if(this.form.formList[i].unit){ |
| | | iscontinue=true; |
| | | break; |
| | | } |
| | | } |
| | | if(!iscontinue){ |
| | | this.$message.error('请至少填写一项!') |
| | | return true |
| | | } |
| | | this.$emit('saveUnitMore',this.form.formList) |
| | | this.editDialogVisible = false; |
| | | } |
| | | }) |
| | | }, |
| | | shutdown() { |
| | | if(this.editDialogVisible){ |
| | | this.$emit('cancelUnitMore') |
| | | } |
| | | this.editDialogVisible = false; |
| | | |
| | | }, |
| | | }, |
| | | }; |