fix:添加测评任务修改

This commit is contained in:
wyx
2023-02-17 18:03:50 +08:00
parent 5517799a74
commit 2963e49ac5

View File

@@ -58,6 +58,7 @@ import {computed, defineEmits, defineProps, ref, watch} from "vue";
import {useBoeApiPage} from "@/api/request";
import {TEST_PAGE} from "@/api/ThirdApi";
import {message} from "ant-design-vue";
import {useStore} from "vuex";
const props = defineProps({
taskList: []
@@ -98,11 +99,15 @@ const columns = ref([
ellipsis: true,
},
])
const store = useStore();
const initParams = {
keyword: '',
pageIndex: 1,
pageSize: 10,
orderAsc: true
page: 1,
size: 10,
user_id: store.state.userInfo.id
// orderAsc: true
}
const params = ref(initParams)
@@ -112,8 +117,8 @@ const taskIndex = ref(-1);
const {data, loading, total, fetch} = useBoeApiPage(TEST_PAGE, params.value, {
init: false,
result: res => res.result.list,
totalPage: res => res.result.totalPages,
result: res => res.result.data,
totalPage: res => res.result.total_page_num,
total: res => res.result.count
})