mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
讲师管理bug
This commit is contained in:
@@ -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:{
|
||||
|
||||
Reference in New Issue
Block a user