This commit is contained in:
2025-09-04 09:03:42 +08:00
parent d26db2d321
commit 9b06c042ef
5 changed files with 512 additions and 25 deletions

View File

@ -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 {