mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
讲师费用管理,审批增加删除按钮 接口对接
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user