执行子组件

This commit is contained in:
gengxin
2025-03-04 08:16:32 +08:00
parent 97eb95b8c7
commit 1607b149b5
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
<OrganizationApproval :organizationActive="organizationActive"/>
<OrganizationApproval ref="organizationApprovalRef" :organizationActive="organizationActive"/>
</a-tab-pane>
</a-tabs>
</div>
@@ -37,7 +37,7 @@ export default {
organizationActive:"0"
});
const organizationApprovalRef = ref(null)
onMounted(() => {
if (route.query.activeKey) {
state.activeKey = '2';
@@ -47,7 +47,8 @@ export default {
const activeKeyFn = () => {
state.activeKey = '2'
state.activeKey = '2';
organizationApprovalRef.value.getTableDate()
}
return {

View File

@@ -757,6 +757,7 @@ export default {
const tableData = ref([]);
// List接口数据
const getTableDate = (obj) => {
console.log("执行 gx getTableDate 111111111111111111111")
state.tableLoading = true;
let objA = {
...state.searchParam ,