mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
测评上传
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user