| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="密码"> |
| | | <el-input v-model="form.test" placeholder="" disabled clearable></el-input> |
| | | <el-input v-model="form.password" placeholder="" :disabled="isDisabled" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | emits: ['success', 'closed'], |
| | | data() { |
| | | return { |
| | | isDisabled: false, |
| | | deptIdList: [], |
| | | employeeIdOptions: [], |
| | | roleList: [], |
| | |
| | | isSaveing: false, |
| | | //表单数据 |
| | | form: { |
| | | test: "", |
| | | password: "", |
| | | account: "", |
| | | realName: "", |
| | | phone: "", |
| | |
| | | }, |
| | | methods: { |
| | | employeeIdChange(val) { //关联员工 |
| | | if(val == null) { |
| | | this.form.employeeId = ""; |
| | | this.form.employeeName = ""; |
| | | return; |
| | | }; |
| | | var that = this; |
| | | this.form.employeeId = val[val.length - 1]; |
| | | function forEmp(arr) { |
| | |
| | | //可以和上面一样单个注入,也可以像下面一样直接合并进去 |
| | | //Object.assign(this.form, data) |
| | | this.showDetail(data); |
| | | this.isDisabled = true; |
| | | } |
| | | } |
| | | } |