测评上传

This commit is contained in:
zhangsir
2024-03-26 18:43:01 +08:00
parent 30b012577d
commit 301710945a
2 changed files with 81 additions and 20 deletions

View File

@@ -77,6 +77,7 @@ import { useStore } from "vuex";
const route = useRoute();
const state = reactive({
searchName: '',
tableLoading: false,
tableData:[],
total: 0,
params: {
@@ -145,20 +146,25 @@ import { useStore } from "vuex";
const changePagination = (page,pageSize) => {
state.params.pageNo = page
state.params.pageSize = pageSize
listData()
}
const downloadAll = (record) => {
window.open(`/activityApi/evaluation/download?id=${route.query.id}`);
}
const listData = async () => {
state.tableLoading = true
await getPage({
id:route.query.id,
pageNo: state.params.pageNo,
pageSize: state.params.pageSize,
}).then((res) => {
state.tableData = res.data.records,
console.log(state.tableData,'data')
state.total = res.data.total
if(res.code === 200){
state.tableLoading = false
state.tableData = res.data.records,
console.log(state.tableData,'data')
state.total = res.data.total
}
})
}
const downloadItem = (record) => {
window.open(`/activityApi/evaluation/detail/downloadById?id=${record.id}`)