|
|
|
|
@ -79,6 +79,12 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="绩效审核部门" prop="evaluate_department_ids">
|
|
|
|
|
<el-select multiple @change="changeDep" v-model="evaluate_department_ids" placeholder="请选择部门">
|
|
|
|
|
<el-option v-for="item in depts" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="resetForm('form')">取 消</el-button>
|
|
|
|
|
@ -125,11 +131,13 @@
|
|
|
|
|
dialogFormVisible: false,
|
|
|
|
|
formLabelWidth: "120px",
|
|
|
|
|
userNameStatus: true,
|
|
|
|
|
evaluate_department_ids:'',
|
|
|
|
|
form: {
|
|
|
|
|
name: "",
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
department_id: ""
|
|
|
|
|
department_id: "",
|
|
|
|
|
evaluate_department_ids:''
|
|
|
|
|
},
|
|
|
|
|
paginations: {
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -169,6 +177,10 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
changeDep(e){
|
|
|
|
|
console.log("e",e)
|
|
|
|
|
this.form.evaluate_department_ids = e.join(",")
|
|
|
|
|
},
|
|
|
|
|
initLoad() {
|
|
|
|
|
var that = this;
|
|
|
|
|
var clientHeight = document.documentElement.clientHeight
|
|
|
|
|
@ -262,6 +274,7 @@
|
|
|
|
|
var result = Object.assign(this.form, obj);
|
|
|
|
|
this.userNameStatus = false;
|
|
|
|
|
this.form = result;
|
|
|
|
|
this.evaluate_department_ids =result.evaluate_department_ids?result.evaluate_department_ids.split(","):''
|
|
|
|
|
} else {
|
|
|
|
|
this.userNameStatus = true;
|
|
|
|
|
}
|
|
|
|
|
|