mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
测评上传
This commit is contained in:
@@ -64,23 +64,18 @@
|
||||
<script>
|
||||
import { ref,onMounted, reactive,toRefs,computed } from "vue";
|
||||
import dialog from "@/utils/dialog";
|
||||
import { saveAdmin } from "@/api/evaluation";
|
||||
import { getPage,deleteById } from "@/api/evaluation";
|
||||
import { useRoute } from "vue-router";
|
||||
import { message } from "ant-design-vue";
|
||||
export default {
|
||||
name: "evadown",
|
||||
components: {},
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
const state = reactive({
|
||||
searchName: '',
|
||||
tableData:[
|
||||
{
|
||||
name:'111',
|
||||
jobId:'111',
|
||||
evaluationName:'aaaaa',
|
||||
uploader:'eeeee',
|
||||
uploadDate:'2023-02-5'
|
||||
}
|
||||
],
|
||||
total: 40,
|
||||
tableData:[],
|
||||
total: 0,
|
||||
params: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
@@ -89,16 +84,16 @@ import { saveAdmin } from "@/api/evaluation";
|
||||
const columns = ref([
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
dataIndex: "studentName",
|
||||
key: "studentName",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "jobId",
|
||||
key: "jobId",
|
||||
dataIndex: "wokeNum",
|
||||
key: "wokeNum",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
width: 100,
|
||||
@@ -121,8 +116,8 @@ import { saveAdmin } from "@/api/evaluation";
|
||||
},
|
||||
{
|
||||
title: "上传日期",
|
||||
dataIndex: "uploadDate",
|
||||
key: "uploadDate",
|
||||
dataIndex: "updateTime",
|
||||
key: "updateTime",
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
width: 100,
|
||||
@@ -148,23 +143,38 @@ import { saveAdmin } from "@/api/evaluation";
|
||||
state.params.pageNo = page
|
||||
state.params.pageSize = pageSize
|
||||
}
|
||||
const listData = async () => {
|
||||
await getPage({
|
||||
pid:route.query.id,
|
||||
|
||||
}).then((res) => {
|
||||
console.log(res,'data')
|
||||
state.tableData = res.data.records
|
||||
state.total = res.data.total
|
||||
})
|
||||
|
||||
}
|
||||
const deleteItem = (record) => {
|
||||
dialog({
|
||||
content: '请您确认是否要删除该报告?',
|
||||
ok: () => {
|
||||
// message.success("删除成功");
|
||||
// projectInfo.value.stageList[activeIndex.value].taskDraftDtoList[index].id ? (projectInfo.value.stageList[activeIndex.value].taskDraftDtoList[index].deleted = true) : projectInfo.value.stageList[activeIndex.value].taskDraftDtoList.splice(index, 1)
|
||||
deleteById({id:record.id}).then((res)=>{
|
||||
message.success('删除成功')
|
||||
listData()
|
||||
})
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
console.log('aaa')})
|
||||
listData()
|
||||
})
|
||||
return {
|
||||
...toRefs(state),
|
||||
columns,
|
||||
deleteItem,
|
||||
pagination,
|
||||
listData,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user