| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item>--> |
| | | <el-form-item v-else label="单位类型" prop="types"> |
| | | <!-- <el-form-item label="单位类型" prop="types"> |
| | | <el-select v-model="form.types" multiple filterable clearable placeholder="请选择"> |
| | | <el-option |
| | | v-for="(item, index) in unitTypes" |
| | |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | |
| | | name: '', |
| | | attributeData: 0, |
| | | //types: [], |
| | | // type: null |
| | | type: 1 |
| | | }, |
| | | // 验证规则 |
| | | rules: { |
| | |
| | | } |
| | | // 调用新建接口 |
| | | const newForm = JSON.parse(JSON.stringify(this.form)) |
| | | newForm.types = newForm.types.join(',') |
| | | // newForm.types = newForm.types.join(',') |
| | | this.isWorking = true |
| | | this.api.create(newForm) |
| | | .then(() => { |
| | |
| | | } |
| | | } |
| | | } |
| | | /** |
| | | * |
| | | */ |
| | | </script> |