mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 09:16:46 +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 {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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user