暂存
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="">
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998" overlay-style="z-index:998">
|
||||
<view class="" style="padding: 40rpx; max-height: 80vh; overflow-y:scroll">
|
||||
<view class="anserBox">
|
||||
<h3>提交的内容</h3>
|
||||
@@ -106,7 +106,7 @@
|
||||
<view class="" style="background-color: beige; padding: 10rpx 10rpx; margin-top: 20rpx;">
|
||||
<uni-forms :modelValue="form" :rules="rules" ref="form">
|
||||
<uni-forms-item label="分数" name="score" >
|
||||
<uni-easyinput type="number" v-model="form.score" placeholder="请输入分数:0-100分" />
|
||||
<uni-easyinput type="number" v-model="form.score" placeholder="请输入分数:0-2.5分" />
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
</view>
|
||||
@@ -142,7 +142,7 @@
|
||||
score: undefined, //分数
|
||||
id: undefined,
|
||||
},
|
||||
ispreviewImage :false,
|
||||
// ispreviewImage :false,
|
||||
curReplay: {},
|
||||
rules: {
|
||||
score: {
|
||||
@@ -194,11 +194,11 @@
|
||||
},
|
||||
onShow() {
|
||||
this.form.taskId = this.thisTask.id
|
||||
console.log('this.ispreviewImage',this.ispreviewImage);
|
||||
if(this.ispreviewImage){
|
||||
this.showEditBlank = true
|
||||
this.ispreviewImage = false
|
||||
}
|
||||
// console.log('this.ispreviewImage',this.ispreviewImage);
|
||||
// if(this.ispreviewImage){
|
||||
// this.showEditBlank = true
|
||||
// this.ispreviewImage = false
|
||||
// }
|
||||
this.FileList11 = []
|
||||
this.getTaskInfo()
|
||||
},
|
||||
@@ -253,11 +253,7 @@
|
||||
}
|
||||
this.curReplay = {}
|
||||
this.fileList1 = []
|
||||
setTimeout(()=>{
|
||||
this.pPage = 0
|
||||
this.zuoyeList = []
|
||||
this.getReplayList()
|
||||
},1000)
|
||||
|
||||
},
|
||||
deletePic(event) {
|
||||
this.fileList1.splice(event.index, 1)
|
||||
@@ -281,8 +277,8 @@
|
||||
},
|
||||
previewImage(url) {
|
||||
console.log(url);
|
||||
this.ispreviewImage = true
|
||||
this.showEditBlank = false
|
||||
// this.ispreviewImage = true
|
||||
// this.showEditBlank = false
|
||||
uni.previewImage({
|
||||
urls: [url],
|
||||
longPressActions: {
|
||||
@@ -381,9 +377,9 @@
|
||||
},
|
||||
onSubmit() {
|
||||
this.$refs.form.validate().then(res => {
|
||||
if(this.form.score > 100){
|
||||
if(this.form.score > 2.5){
|
||||
uni.showToast({
|
||||
title:'分数不能大于100',
|
||||
title:'分数不能大于2.5',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
@@ -416,7 +412,13 @@
|
||||
icon: 'success'
|
||||
})
|
||||
this.FileList = []
|
||||
this.closePup()
|
||||
setTimeout(()=>{
|
||||
this.closePup()
|
||||
this.pPage = 0
|
||||
this.zuoyeList = []
|
||||
this.getReplayList()
|
||||
},1000)
|
||||
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: '操作失败',
|
||||
|
||||
Reference in New Issue
Block a user