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:
@@ -173,7 +173,6 @@ const expenseList = ref([])
|
||||
const searchList = ref([])
|
||||
const timesList = ref([])
|
||||
const clickItem = (item,i) => {
|
||||
console.log("clickItem gx item",item,i);
|
||||
indexList.value = i
|
||||
resetData(i,false)
|
||||
}
|
||||
@@ -197,8 +196,6 @@ watch(()=>props.visible,(val)=>{
|
||||
).then(res=>{
|
||||
if(res.data.code === 200){
|
||||
forData.value = res.data.data;
|
||||
console.log("getListByAffiliation gx forData.value ",forData.value)
|
||||
console.log("getListByAffiliation gx forData.value value",forData.value)
|
||||
//todo1 , 只有一个处理 初始化 处理数据 ,进行 激活处理
|
||||
if(forData.value.length == 1){
|
||||
activeList.value.push(0);
|
||||
@@ -472,8 +469,6 @@ const columns = [
|
||||
const closeDrawer = () => emit("update:visible", false);
|
||||
const activeList = ref([])
|
||||
const setList = (item) => {
|
||||
console.log("setList gx item",item)
|
||||
console.log("setList gx activeList",activeList)
|
||||
const index = activeList.value.findIndex(listItem => listItem === item);
|
||||
if (index > -1) {
|
||||
activeList.value.splice(index, 1);
|
||||
|
||||
@@ -267,6 +267,11 @@ export default {
|
||||
watch(() => props.key, (val) => {
|
||||
console.log(val, 'valllllll')
|
||||
})
|
||||
|
||||
watch(() => props.activeKey, (activeKey) => {
|
||||
console.log(activeKey, 'activeKey props')
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
// const search = sessionStorage.getItem('searchApprlval')
|
||||
// console.log(search,'search')
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</a-tab-pane>
|
||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||
<a-tab-pane key="2" tab="审批中心">
|
||||
<LecturerApproval ref="lecturerApproval"/>
|
||||
<LecturerApproval :activeKey="state.activeKey" ref="lecturerApproval"/>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
@@ -30,7 +30,6 @@ export default {
|
||||
const store = useStore();
|
||||
const userInfo = computed(() => store.state.userInfo)
|
||||
const route = useRoute();
|
||||
const lecturerApproval = ref();
|
||||
const state = reactive({
|
||||
activeKey: '1',
|
||||
})
|
||||
@@ -49,11 +48,7 @@ export default {
|
||||
})
|
||||
|
||||
const activeKeyFn = () => {
|
||||
console.log("activeKeyFn lecturerApproval",lecturerApproval)
|
||||
state.activeKey = '2'
|
||||
//刷新页面数据getTableDate()
|
||||
lecturerApproval.getTableDate()
|
||||
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user