add:提交问题按钮新增loading
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<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" :loading="isSubmit" type="primary" @click="queSubmit">提 交</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!-- 选择标准抽屉-->
|
||||
@@ -586,6 +586,7 @@ export default {
|
||||
activeName: 'INLAND',
|
||||
activeType: 'INLAND',
|
||||
activestand: '',
|
||||
isSubmit: false,
|
||||
activeQue: '',
|
||||
standType: 'INLAND',
|
||||
dialogVisible: false,
|
||||
@@ -1035,6 +1036,7 @@ export default {
|
||||
},
|
||||
//提交问题
|
||||
queSubmit(){
|
||||
this.isSubmit = true
|
||||
if(this.standType === 'OTHER'){
|
||||
this.questionForm.standardId = this.questionForm.pubQue
|
||||
this.questionForm.standardName = this.questionForm.pubQue
|
||||
@@ -1049,6 +1051,7 @@ export default {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.dialogVisible = false
|
||||
this.isSubmit = false
|
||||
this.searchBtn()
|
||||
}, e => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user