This commit is contained in:
mkm 2024-04-22 16:25:58 +08:00
parent 6844496177
commit c55a25a9eb

View File

@ -143,7 +143,7 @@
<pagination v-model="pager" @change="getLists" />
</div>
</el-card>
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false"
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="success()" @close="success()"
:deptList="deptList" />
<detailPage v-if="showDetail" ref="detailRef" @close="showEdit = false" :detailConfig="detailConfig" />
</div>
@ -163,6 +163,7 @@ import detailConfig from './detail'
import { deptLists } from '@/api/org/department'
const route = useRoute()
const router = useRouter()
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
const detailRef = ref('')
//
@ -238,6 +239,13 @@ const getDeptList = async () => {
const res = await deptLists()
deptList.value = res.lists
}
const success = () => {
router.push({
path: '/supervision/supervision_basic/supervision_project',
})
}
getLists()
getDeptList()
</script>