暂存
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<u-divider v-show="status == 3" text="暂无数据"></u-divider>
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider>
|
||||
</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>
|
||||
@@ -59,12 +59,12 @@
|
||||
<view class="score noscore" v-show="curReplay.scoreSuccess == 0">
|
||||
未评分
|
||||
</view>
|
||||
<!-- v-if="roleCode.includes('4') || roleCode.includes('5')" -->
|
||||
<template>
|
||||
<!-- -->
|
||||
<template v-if="roleCode.includes('4') || roleCode.includes('5')">
|
||||
<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>
|
||||
@@ -109,7 +109,7 @@
|
||||
score: undefined, //分数
|
||||
id: undefined,
|
||||
},
|
||||
ispreviewImage :false,
|
||||
// ispreviewImage :false,
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -133,19 +133,19 @@
|
||||
},
|
||||
onShow() {
|
||||
// this.getList()
|
||||
if(this.ispreviewImage){
|
||||
this.showEditBlank = true
|
||||
this.ispreviewImage = false
|
||||
}
|
||||
// if(this.ispreviewImage){
|
||||
// this.showEditBlank = true
|
||||
// this.ispreviewImage = false
|
||||
// }
|
||||
},
|
||||
onBackPress() {
|
||||
},
|
||||
methods: {
|
||||
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
|
||||
@@ -177,8 +177,13 @@
|
||||
title: '操作成功!',
|
||||
icon: 'success'
|
||||
})
|
||||
this.FileList = []
|
||||
this.closePup()
|
||||
setTimeout(()=>{
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
this.closePup()
|
||||
},1000)
|
||||
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: '操作失败',
|
||||
@@ -195,8 +200,8 @@
|
||||
},
|
||||
previewImage(url) {
|
||||
console.log(url);
|
||||
this.ispreviewImage = true
|
||||
this.showEditBlank = false
|
||||
// this.ispreviewImage = true
|
||||
// this.showEditBlank = false
|
||||
uni.previewImage({
|
||||
urls: [url],
|
||||
longPressActions: {
|
||||
@@ -215,14 +220,15 @@
|
||||
}
|
||||
this.curReplay = {}
|
||||
this.fileList1 = []
|
||||
setTimeout(()=>{
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
},1000)
|
||||
console.log('this.fileList1',this.fileList1);
|
||||
// setTimeout(()=>{
|
||||
// this.pPage = 0
|
||||
// this.taskList = []
|
||||
// this.getList()
|
||||
// },1000)
|
||||
},
|
||||
clickTask(item){
|
||||
console.log('item',item);
|
||||
// console.log('item',item);
|
||||
this.curReplay = item
|
||||
this.form = {...item}
|
||||
if(this.form.scoreSuccess == 0){
|
||||
@@ -233,13 +239,8 @@
|
||||
_list.forEach( item => {
|
||||
this.fileList1.push({url:item})
|
||||
})
|
||||
}
|
||||
// this.fileList1 = [...item.fileList]
|
||||
this.showEditBlank = true
|
||||
// console.log('options',options);
|
||||
// uni.navigateTo({
|
||||
// url:`/pages/miniClass/taskDetailForMan?id=${item.id}&roleCode=${this.roleCode}&type=${this.pageType}`
|
||||
// })
|
||||
}
|
||||
this.showEditBlank = true
|
||||
},
|
||||
getList() {
|
||||
this.status = 1;
|
||||
@@ -267,6 +268,7 @@
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
console.log();
|
||||
if (res.code == 0) {
|
||||
if (res.page.records.length > 0) {
|
||||
console.log('数据获取成功', res.page.records);
|
||||
|
||||
Reference in New Issue
Block a user