讲师费用管理,审批增加删除按钮 接口对接

This commit is contained in:
gengxin
2025-02-17 18:33:59 +08:00
parent a0e60925ad
commit 5eaa3d9319
2 changed files with 16 additions and 2 deletions

View File

@@ -550,7 +550,7 @@
<BatchLecturer @selectedRowKeys="selectedRowKey" v-model:visible="allFeedialog" :name="'批量审批'" />
</template>
<script lang="jsx">
import { reactive, toRefs, ref, watch, onMounted ,computed} from "vue";
import { reactive, toRefs, ref, watch, onMounted , computed ,defineProps} from "vue";
import { message } from "ant-design-vue";
import dayjs from "dayjs";
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
@@ -590,6 +590,13 @@ export default {
OrgClass,
},
setup() {
const props = defineProps({
activeKeyFn: {
type: Function,
}
})
const formRef = ref();
const state = reactive({
example: false,
@@ -1597,6 +1604,7 @@ export default {
}
const getexample = (val) => {
console.log("getexample gx val", val);
props.activeKeyFn();
state.example = val
}
const selectedRowKey = (val) => {

View File

@@ -4,7 +4,7 @@
<div style="margin: 20px;margin-top:0;">
<a-tabs v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="讲师费管理">
<LecturerFee />
<LecturerFee :activeKeyFn="activeKeyFn"/>
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
@@ -46,9 +46,15 @@ export default {
state.activeKey = '2'
}
})
const activeKeyFn = () => {
state.activeKey = '2'
}
return {
...toRefs(state),
lecturerAdmin,
activeKeyFn
}
},
};