表格数据渲染完善

This commit is contained in:
GUjiYN 2024-04-16 20:24:51 +08:00
parent 2603eeb571
commit d9b7d93c73

View File

@ -51,6 +51,26 @@
<span>{{ row.cycle }}</span> <span>{{ row.cycle }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="principalUser" label="项目负责人">
<template v-slot="{row}">
<span>{{ row.principalUser }}</span>
</template>
</el-table-column>
<el-table-column prop="isFinish" label="状态">
<template v-slot="{row}">
<span>{{ row.isFinish }}</span>
</template>
</el-table-column>
<el-table-column prop="description" label="项目简介">
<template v-slot="{row}">
<span>{{ row.description }}</span>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="120">
<template #default>
<el-button link type="primary" size="small">查看详情</el-button>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
<div style="display: flex; justify-content: center;margin-top: 2vh"> <div style="display: flex; justify-content: center;margin-top: 2vh">
@ -81,6 +101,7 @@ export default defineComponent({
}, },
methods:{ methods:{
getList() { getList() {
console.log("use token:", this.token)
this.listLoading = true; this.listLoading = true;
GetProject(this.projId, this.token).then(response => { GetProject(this.projId, this.token).then(response => {
console.log("完整响应内容:", response); console.log("完整响应内容:", response);
@ -95,7 +116,6 @@ export default defineComponent({
this.listLoading = false; this.listLoading = false;
}); });
}, },
}, },
}) })
</script> </script>