更新
This commit is contained in:
parent
6844496177
commit
c55a25a9eb
@ -143,7 +143,7 @@
|
|||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</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" />
|
:deptList="deptList" />
|
||||||
<detailPage v-if="showDetail" ref="detailRef" @close="showEdit = false" :detailConfig="detailConfig" />
|
<detailPage v-if="showDetail" ref="detailRef" @close="showEdit = false" :detailConfig="detailConfig" />
|
||||||
</div>
|
</div>
|
||||||
@ -163,6 +163,7 @@ import detailConfig from './detail'
|
|||||||
import { deptLists } from '@/api/org/department'
|
import { deptLists } from '@/api/org/department'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
const router = useRouter()
|
||||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
const detailRef = ref('')
|
const detailRef = ref('')
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
@ -238,6 +239,13 @@ const getDeptList = async () => {
|
|||||||
const res = await deptLists()
|
const res = await deptLists()
|
||||||
deptList.value = res.lists
|
deptList.value = res.lists
|
||||||
}
|
}
|
||||||
|
const success = () => {
|
||||||
|
router.push({
|
||||||
|
path: '/supervision/supervision_basic/supervision_project',
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
getLists()
|
getLists()
|
||||||
getDeptList()
|
getDeptList()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user