优化
This commit is contained in:
@ -75,10 +75,10 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div class="box_submit">
|
||||
<!-- <div class="box_submit">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel()">取 消</el-button>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -105,7 +105,7 @@ const initFormData = {
|
||||
sex: undefined,
|
||||
projectRoles: [
|
||||
{
|
||||
projectId: [],
|
||||
projectId: '',
|
||||
roleIds: []
|
||||
}
|
||||
],
|
||||
@ -178,6 +178,7 @@ const filterDisabledDept = (deptList) => {
|
||||
});
|
||||
};
|
||||
async function handleDeptChange(value: number | string) {
|
||||
proxy?.$emit('setDeptId', value);
|
||||
const response = await optionselect(value);
|
||||
const roleList = await getRoleList(value);
|
||||
roleOptions.value = roleList.data;
|
||||
@ -185,7 +186,7 @@ async function handleDeptChange(value: number | string) {
|
||||
form.value.postIds = [];
|
||||
form.value.projectRoles = [
|
||||
{
|
||||
projectId: [],
|
||||
projectId: '',
|
||||
roleIds: []
|
||||
}
|
||||
];
|
||||
@ -209,7 +210,7 @@ const reset = () => {
|
||||
form.value = { ...initFormData };
|
||||
form.value.projectRoles = [
|
||||
{
|
||||
projectId: [],
|
||||
projectId: '',
|
||||
roleIds: []
|
||||
}
|
||||
];
|
||||
@ -236,10 +237,13 @@ const open = async (row?: any) => {
|
||||
postOptions.value = data.posts;
|
||||
}
|
||||
};
|
||||
const getInfoForm = () => {
|
||||
return form.value;
|
||||
};
|
||||
onMounted(() => {
|
||||
getDeptTree();
|
||||
});
|
||||
defineExpose({ open });
|
||||
defineExpose({ open, getInfoForm });
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.editInfo {
|
||||
|
Reference in New Issue
Block a user