26412
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="cancel">取消</el-button>
|
<el-button @click="cancel">取消</el-button>
|
||||||
<el-button type="primary" @click="confirm">提交</el-button>
|
<el-button type="primary" @click="confirm" :loading="isLoading">提交</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
</template>
|
</template>
|
||||||
@@ -107,6 +107,7 @@
|
|||||||
anonymity: '1',
|
anonymity: '1',
|
||||||
images: []
|
images: []
|
||||||
},
|
},
|
||||||
|
isLoading: false,
|
||||||
keys: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
|
keys: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
|
||||||
id: ''
|
id: ''
|
||||||
}
|
}
|
||||||
@@ -182,7 +183,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.isLoading = true
|
||||||
this.instance.post(`/app/appvillagediscuss/addOrUpdate`, {
|
this.instance.post(`/app/appvillagediscuss/addOrUpdate`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
createUserId: this.user.info.id,
|
createUserId: this.user.info.id,
|
||||||
@@ -192,9 +193,12 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
this.isLoading = false
|
||||||
this.cancel(true)
|
this.cancel(true)
|
||||||
}, 600)
|
}, 300)
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.isLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user