mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
作业控制
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
<view class="hwlist content" v-if="records.length>0">
|
<view class="hwlist content" v-if="records.length>0">
|
||||||
<view class="hwlist-row" v-for="record in records" :key="record.id">
|
<view class="hwlist-row" v-for="record in records" :key="record.id">
|
||||||
<view class="hwlist-info-title">
|
<view class="hwlist-info-title">
|
||||||
<view></view>
|
<view>已提交作业</view>
|
||||||
<view class="hwlist-info-time">{{record.endTime}}</view>
|
<view class="hwlist-info-time">{{record.endTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
uni.showToast({title:'提交成功',type:'success'})
|
uni.showToast({title:'提交成功',type:'success'})
|
||||||
this.filePath='';
|
this.filePath='';
|
||||||
this.answer='';
|
this.answer='';
|
||||||
this.records.push(res.result);
|
this.records=[res.result];
|
||||||
this.$emit("submit", this.content);
|
this.$emit("submit", this.content);
|
||||||
}else {
|
}else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user