更新
This commit is contained in:
parent
6844496177
commit
c55a25a9eb
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user