作业提交记录

This commit is contained in:
zhangyc
2022-12-19 08:58:16 +08:00
parent 934555e513
commit 71350f4004
2 changed files with 67 additions and 25 deletions

View File

@@ -151,9 +151,7 @@
<div style="display: flex; justify-content: center">
<button class="tijiao" @click="handleClick">{{submitList && submitList.length>0?"再次":""}}提交</button>
</div>
<div style="display: flex; justify-content: center">
<button class="tijiao" @click="open">提交</button>
</div>
@@ -172,6 +170,7 @@
<div class="historytitle">
<div class="content1">提交时间</div>
<div class="content2">作业内容</div>
<div class="content3">附件</div>
</div>
<div
v-for="(value, index) in submitList"
@@ -184,17 +183,16 @@
: '1px solid rgba(215, 229, 253, 1)',
}"
>
<div class="content1">{{ value.createTime }}</div>
<div class="content1" >{{ value.createTime }}</div>
<div class="content2">
<div
style="
width: 95%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
>
<div >
{{ value.workUploadContent }}
</div>
</div>
<div class="content3">
<div >
<span style="margin-left: 10px">
<el-link target="_blank" type="primary" :href="value.workUploadAddress?.split(',')[0] || ''">{{value.workUploadAddress?.split(',')[0].split('/').at(-1)|| ''}}</el-link>
</span>
@@ -333,6 +331,7 @@ const handleClick = () => {
type,
taskId,
}).then((res) => {
console.log(res);
submitList.value.unshift(res.data);
open();
});
@@ -693,16 +692,29 @@ function reUpload(i) {
}
.content1 {
width: 150px;
margin-top: 14px;
margin-left: 60px;
margin-left: 20px;
width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.content2 {
.content2{
margin-top: 14px;
margin-left: 80px;
width: 0;
flex: 1;
margin-left: 20px;
width:460px;;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.content3 {
margin-top: 14px;
margin-left: 20px;
width:230px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.historycontent {