mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
fix:添加测评任务修改
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user