BUG 30883
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
action="/admin/file/add2"></AiUploader>
|
action="/admin/file/add2"></AiUploader>
|
||||||
</AiItem>
|
</AiItem>
|
||||||
</AiGroup>
|
</AiGroup>
|
||||||
<div class="btn" @click="submit">提交</div>
|
<div class="btn" @click="$u.debounce(submit)">提交</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -45,17 +45,10 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
name: null,
|
|
||||||
areaId: null,
|
|
||||||
areaName: null,
|
|
||||||
detail: '',
|
|
||||||
pid: '',
|
pid: '',
|
||||||
files: [],
|
|
||||||
id: '',
|
id: '',
|
||||||
type: '',
|
type: '',
|
||||||
operationDesc: '',
|
form: {detail: "", files: []}
|
||||||
flag: false,
|
|
||||||
form: {detail: ""}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -88,7 +81,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if (this.flag) return
|
|
||||||
if (this.type == 1) {
|
if (this.type == 1) {
|
||||||
if (!this.form.operationDesc) {
|
if (!this.form.operationDesc) {
|
||||||
return this.$u.toast('请选择帮扶类型')
|
return this.$u.toast('请选择帮扶类型')
|
||||||
@@ -105,7 +97,6 @@ export default {
|
|||||||
return this.$u.toast('请输入走访内容')
|
return this.$u.toast('请输入走访内容')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.flag = true
|
|
||||||
const {form, type, pid} = this
|
const {form, type, pid} = this
|
||||||
this.$http.post('/app/apppreventionreturntopovertylog/addOrUpdate', {...form, type, pid}).then(res => {
|
this.$http.post('/app/apppreventionreturntopovertylog/addOrUpdate', {...form, type, pid}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -76,8 +76,11 @@ export default {
|
|||||||
root(v) {
|
root(v) {
|
||||||
v && (this.getFullArea(v))
|
v && (this.getFullArea(v))
|
||||||
},
|
},
|
||||||
value(v) {
|
value: {
|
||||||
v && !this.areaName && this.getAreaName(this.value)
|
immediate: true,
|
||||||
|
handler(v) {
|
||||||
|
v && !this.areaName && this.getAreaName(this.value)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fullArea(v) {
|
fullArea(v) {
|
||||||
v && this.value && !this.multiple && this.$emit('update:fullName', v?.map(e => e.name)?.join("") || "")
|
v && this.value && !this.multiple && this.$emit('update:fullName', v?.map(e => e.name)?.join("") || "")
|
||||||
@@ -88,7 +91,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getRootArea()
|
this.getRootArea()
|
||||||
this.value && this.getAreaName(this.value)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRootArea() {
|
getRootArea() {
|
||||||
|
|||||||
Reference in New Issue
Block a user