暂存
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<text class="input_tit"><i>*</i>说明:<span style="font-weight: normal; color: #999; font-size: 26rpx;">(600字以内)</span></text>
|
||||
<view class="in">
|
||||
<view class="uni-textarea">
|
||||
<textarea placeholder-style="font-size:26rpx" v-model="form.content" maxlength="600"
|
||||
<textarea placeholder-style="font-size:26rpx" v-model="form.content" maxlength="600" auto-height
|
||||
placeholder="请输入内容" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -38,10 +38,10 @@
|
||||
<view class="input_box" v-if="form.type == 2">
|
||||
<radio-group @change="radioChange" class="flex_box">
|
||||
<view class="" style="margin-right:20rpx ;">
|
||||
<radio value="0" />他人不可见</label>
|
||||
<radio value="0" :checked="0 == form.display" />他人不可见</label>
|
||||
</view>
|
||||
<view class="">
|
||||
<radio value="1" checked="true" />他人可见</label>
|
||||
<radio value="1" :checked="1 == form.display" />他人可见</label>
|
||||
</view>
|
||||
</radio-group>
|
||||
<span style="color: #999; font-size: 28rpx;">(不勾选时,班级管理员以外的人看不见提交的数据)</span>
|
||||
@@ -104,8 +104,9 @@
|
||||
this.pageType = e.type
|
||||
this.form.classId = e.id
|
||||
this.form.type = e.type
|
||||
if(e.renwuId){
|
||||
this.form.renwuId = e.renwuId
|
||||
if(e.options){
|
||||
// this.form.renwuId = e.renwuId
|
||||
this.form = JSON.parse(e.options)
|
||||
this.pageName = '编辑'
|
||||
}else{
|
||||
this.pageName = '添加'
|
||||
@@ -115,8 +116,10 @@
|
||||
this.pageType = '作业'
|
||||
}else if(e.type == 1){
|
||||
this.pageType = '医案'
|
||||
}else if( e.type == 2){
|
||||
this.pageType = '心得'
|
||||
}
|
||||
|
||||
console.log('收到的值', e);
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
@@ -190,18 +193,11 @@
|
||||
_list = _list.map(item => item.url)
|
||||
// console.log('this.fileList1',_list);
|
||||
this.form.img = _list.join(',')
|
||||
}
|
||||
|
||||
// this.$http.post("common/class/addClassTask",{
|
||||
// "classId": this.form.classId,
|
||||
// "type": this.form.type, //类型 0班内任务1医案2心得
|
||||
// "show": _show, //0不展示1展示
|
||||
// "title": this.form.title,
|
||||
// "content": this.form.content,
|
||||
// "img": this.form.img
|
||||
// })
|
||||
}
|
||||
var _url = ""
|
||||
this.form.id ? _url = "common/class/editClassTask" : _url = "common/class/addClassTask"
|
||||
$http.request({
|
||||
url: "common/class/addClassTask",
|
||||
url: _url,
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId": this.form.classId,
|
||||
|
||||
Reference in New Issue
Block a user