四邻联动
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-area">
|
||||
<u-input v-model="value" type="textarea" :height="500" :auto-height="true" maxlength="500" placeholder="请输入审核意见" placeholder-style="font-size:16px;" />
|
||||
<div class="hint">{{ value.length }}/500</div>
|
||||
<u-input v-model="remark" type="textarea" :height="500" :auto-height="true" maxlength="500" placeholder="请输入审核意见" placeholder-style="font-size:16px;" />
|
||||
<div class="hint">{{ remark.length }}/500</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="footer" @click="pass">
|
||||
<div class="btn">确认提交</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -22,22 +22,34 @@ export default {
|
||||
name: 'Add',
|
||||
data() {
|
||||
return {
|
||||
value: ''
|
||||
id: '',
|
||||
remark: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('appSpecialTypeFive')
|
||||
onLoad(option) {
|
||||
this.id = option.id
|
||||
},
|
||||
onShow() {
|
||||
document.title = '新增'
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
pass() {
|
||||
if(!this.remark) {
|
||||
return this.$u.toast('请输入审核意见')
|
||||
}
|
||||
this.$http.post(`/app/apppartyfourlinkage/auditById?id=${this.id}&status=0&remark=${this.remark}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('审核成功')
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
uni.$emit('reload')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user