讲师管理bug

This commit is contained in:
zhangsir
2024-11-27 17:09:21 +08:00
parent b2ce8944cc
commit 4392e764c1
5 changed files with 16 additions and 7 deletions

View File

@@ -228,7 +228,7 @@
</div>
</template>
<script lang="jsx">
import { reactive, toRefs, ref ,watch,computed} from "vue";
import { reactive, toRefs, ref ,watch,computed,onMounted} from "vue";
import { useRouter } from "vue-router";
import { message } from "ant-design-vue";
import dayjs from "dayjs";
@@ -260,6 +260,13 @@
watch(()=>props.key,(val)=>{
console.log(val,'valllllll')
})
onMounted(()=>{
const search = sessionStorage.getItem('searchApprlval')
if(search){
state.searchParam = JSON.parse(search)
}
getTableDate()
})
const router = useRouter()
const state = reactive({
tableDataParams:{
@@ -500,6 +507,7 @@
])
// 搜索
const searchSubmit = () => {
state.searchParam.pageNo = 1;
getTableDate();
};
//重置
@@ -549,7 +557,7 @@
message.error(err.data.msg)
})
};
getTableDate()
// getTableDate()
// // 翻页
const changePagination = (page,pageSize) => {
state.searchParam.pageNo = page;
@@ -611,6 +619,7 @@
}
}
const goDdit = (record) => {
sessionStorage.setItem('searchApprlval', JSON.stringify(state.searchParam))
router.push({
path:'/LecturerAppEdit',
query:{