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