| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="1" class="col-name">≈</el-col> |
| | | <el-col :span="1" class="col-name"> |
| | | <span>{{ item.floating?'≈':'='}} </span> |
| | | <!--<span v-else> = </span>--> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item |
| | | label="" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="2" class="col-name">{{unitRight||'--'}}</el-col> |
| | | <el-col :span="5" v-if="index==0"> |
| | | <el-col :span="5"> |
| | | <el-form-item |
| | | label="" |
| | | :prop="`formList.${index}.floating`" |
| | |
| | | > |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5" class="col-name" v-else> |
| | | <!-- <el-col :span="5" class="col-name" v-else> |
| | | <el-button |
| | | @click="delItem(index)" |
| | | type="text" |
| | |
| | | style="text-align:center;" |
| | | >清空</el-button |
| | | > |
| | | </el-col> |
| | | </el-col>--> |
| | | </el-row> |
| | | </div> |
| | | </el-form> |
| | |
| | | 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; |
| | | |
| | | }, |
| | | }, |
| | | }; |