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