| | |
| | | <el-input v-model="form.unitName" placeholder="请输入单位名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位账号" prop="unitAdminAccount"> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" /> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" :disabled="account" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位联系人" prop="unitContact"> |
| | | <el-input v-model="form.unitContact" placeholder="请输入单位联系人" /> |
| | |
| | | name: "Unit", |
| | | data() { |
| | | return { |
| | | // 账号不可修改 |
| | | account: true, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.account = false; |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加运维单位"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.account = true; |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getUnit(id).then(response => { |