帮扶日志
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<div class="form-item form-item__textarea">
|
||||
<div class="form-item__title">
|
||||
<em>*</em>
|
||||
<h2>帮扶内容</h2>
|
||||
<h2>{{type == 1 ? '帮扶内容' : '走访内容'}}</h2>
|
||||
</div>
|
||||
<textarea maxlength="500" v-model="detail" placeholder="请输入帮扶内容"></textarea>
|
||||
<textarea maxlength="500" v-model="detail" :placeholder="type == 1 ? '请输入帮扶内容' : '请输入走访内容'"></textarea>
|
||||
<div class="hint">{{ detail.length }}/500</div>
|
||||
</div>
|
||||
<div class="form-item form-item__imgs">
|
||||
@@ -29,11 +29,13 @@ export default {
|
||||
detail: '',
|
||||
pid: '',
|
||||
files: [],
|
||||
id: ''
|
||||
id: '',
|
||||
type: ''
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.pid = query.pid
|
||||
this.type = query.type
|
||||
if(query.id) {
|
||||
this.id = query.id
|
||||
this.getInfo()
|
||||
@@ -59,7 +61,8 @@ export default {
|
||||
detail: this.detail,
|
||||
files: this.files,
|
||||
pid: this.pid,
|
||||
id: this.id
|
||||
id: this.id,
|
||||
type: this.type
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('提交成功')
|
||||
|
||||
Reference in New Issue
Block a user