This commit is contained in:
@fawn-nine
2024-09-20 16:41:08 +08:00
parent eec954c991
commit f8f03010c7
3 changed files with 15 additions and 10 deletions

View File

@@ -64,8 +64,8 @@
{{item}} {{item}}
</text> </text>
</view> </view>
</view> </view>
<view class="btn_box "> <view class="btn_box " v-if="classState != '2' && classState != '0'">
<button class="submit" @click="onSubmit"> </button> <button class="submit" @click="onSubmit"> </button>
</view> </view>
</template> </template>
@@ -103,12 +103,14 @@
score: undefined, //分数 score: undefined, //分数
id: undefined, id: undefined,
}, },
classState:undefined,
} }
}, },
onLoad(e) { onLoad(e) {
console.log('e', e); console.log('e', e);
this.classId = e.classId this.classId = e.classId
this.pageType = e.type this.pageType = e.type
this.classState = e.classState
this.roleCode = e.roleCode this.roleCode = e.roleCode
if (e.type == '0') { if (e.type == '0') {
this.pageName = '作业列表' this.pageName = '作业列表'
@@ -205,8 +207,9 @@
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
title: '操作失败', title: e.errMsg,
icon: 'error' icon: 'error',
duration:3000
}) })
}); });
}, },

View File

@@ -125,7 +125,7 @@
</view> </view>
</view> </view>
{{curReplay.haveGiveScore}} {{curReplay.haveGiveScore}}
<view class="btn_box "> <view class="btn_box " v-if="classState != '2' && classState != '0'">
<button class="submit" @click="onSubmit" v-show="!form.hasGiveScore">提 交</button> <button class="submit" @click="onSubmit" v-show="!form.hasGiveScore">提 交</button>
</view> </view>
</template> </template>
@@ -596,8 +596,9 @@
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
title: '操作失败', title: e.errMsg,
icon: 'error' icon: 'error',
duration:3000
}) })
}); });
// }).catch(err => { // }).catch(err => {

View File

@@ -78,7 +78,7 @@
</uni-forms-item> </uni-forms-item>
</uni-forms> --> </uni-forms> -->
</view> </view>
<view class="btn_box"><button @click="onSubmit">提 交</button></view> <view class="btn_box" v-if="classState != '2' && classState != '0'"><button @click="onSubmit">提 交</button></view>
</template> </template>
</view> </view>
</view> </view>
@@ -198,8 +198,9 @@
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
title: '操作失败', title: e.errMsg,
icon: 'error' icon: 'error',
duration:3000
}) })
}); });
// }).catch(err => { // }).catch(err => {