| | |
| | | } |
| | | await getUserList() |
| | | await getDepartList(state.form.companyId) |
| | | await getCatalogList() |
| | | await getCatalogList(state.form.companyId) |
| | | dialogVisible.value = true |
| | | } |
| | | |
| | | const getCatalogList = async() => { |
| | | const getCatalogList = async(companyId) => { |
| | | state.menuOptions = []; |
| | | const res = await getSysClause() |
| | | const res = await getSysClause({companyId: companyId}) |
| | | if(res.code == 200){ |
| | | state.menuOptions = res.data.map(i=>{ |
| | | return { |
| | |
| | | state.form.personId = null |
| | | await getDepartList(state.form.companyId) |
| | | await getUserList() |
| | | await getCatalogList(state.form.companyId) |
| | | } |
| | | |
| | | const getDepartList = async (companyId)=> { |