修改bug 56616 提交按钮增加loading,否则会出现点击多次出现重复数据
This commit is contained in:
@@ -846,7 +846,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
||||||
<el-button class="common-button-primary" size="mini" type="primary" @click="queSubmit">提 交</el-button>
|
<el-button class="common-button-primary" size="mini" type="primary":loading="submitBtnLoading" @click="queSubmit">提 交</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 选择标准抽屉-->
|
<!-- 选择标准抽屉-->
|
||||||
@@ -1253,6 +1253,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
submitBtnLoading: false,
|
||||||
aiKey:1,
|
aiKey:1,
|
||||||
qiiKey:1,
|
qiiKey:1,
|
||||||
institutionId: this.$store.getters.userInfo.institutionId,
|
institutionId: this.$store.getters.userInfo.institutionId,
|
||||||
@@ -1881,10 +1882,12 @@ export default {
|
|||||||
this.questionForm.fileList = this.fileList
|
this.questionForm.fileList = this.fileList
|
||||||
this.$refs['queForm'].validate((valid) => {
|
this.$refs['queForm'].validate((valid) => {
|
||||||
if(valid){
|
if(valid){
|
||||||
|
this.submitBtnLoading = true
|
||||||
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
||||||
{
|
{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
this.submitBtnLoading = false
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.activeName = "myQue"
|
this.activeName = "myQue"
|
||||||
this.activeType = this.standType
|
this.activeType = this.standType
|
||||||
@@ -1901,7 +1904,7 @@ export default {
|
|||||||
this.handleSelectForm.standName = ''
|
this.handleSelectForm.standName = ''
|
||||||
this.handleSelectForm.numberName = ''
|
this.handleSelectForm.numberName = ''
|
||||||
}, e => {
|
}, e => {
|
||||||
|
this.submitBtnLoading = false
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
return this.$message.warning('请输入问题')
|
return this.$message.warning('请输入问题')
|
||||||
|
|||||||
Reference in New Issue
Block a user