fix 前端弹窗全局禁止冒泡事件,电子税务局验证码获取时间调整为120秒

jianshui-ui
13181781697 1 year ago
parent 8a61039d5e
commit c110e665d6
  1. 2
      jianshui-ui/src/main.js
  2. 11
      jianshui-ui/src/views/freedom/taxBureauLogin/index.vue

@ -35,6 +35,8 @@ import DictTag from '@/components/DictTag'
import VueMeta from 'vue-meta' import VueMeta from 'vue-meta'
// 字典数据组件 // 字典数据组件
import DictData from '@/components/DictData' import DictData from '@/components/DictData'
//全局修改默认配置,点击空白处不能关闭弹窗
Element.Dialog.props.closeOnClickModal.default = false
// 全局方法挂载 // 全局方法挂载
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts

@ -45,6 +45,7 @@
class="dialog" class="dialog"
title="短信登录" title="短信登录"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:close-on-click-modal="false"
width="550px" width="550px"
> >
<div class="dialog_title"> <div class="dialog_title">
@ -63,13 +64,14 @@
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button> <el-button @click.stop="dialogVisible = false"> </el-button>
<el-button type="primary" @click="yzmloginBtn()"> </el-button> <el-button type="primary" @click="yzmloginBtn()"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="责任人" title="责任人"
:visible.sync="zzrdialogVisible" :visible.sync="zzrdialogVisible"
:close-on-click-modal="false"
width="550px" width="550px"
> >
<el-form ref="form" :model="form" label-width="60px" label-position="left" align="center" class="form"> <el-form ref="form" :model="form" label-width="60px" label-position="left" align="center" class="form">
@ -84,7 +86,7 @@
</el-row> </el-row>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="zzrdialogVisible = false"> </el-button> <el-button @click.stop="zzrdialogVisible = false"> </el-button>
<el-button type="primary" @click="zzrloginBtn()"> </el-button> <el-button type="primary" @click="zzrloginBtn()"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -128,7 +130,7 @@ export default {
anewLoginBtnLoading:false, anewLoginBtnLoading:false,
getyzmBtnloading:false, getyzmBtnloading:false,
getQrCodeBtnloading:false, getQrCodeBtnloading:false,
countdown:60, countdown:120,
timec: null, // timec: null, //
}; };
}, },
@ -216,7 +218,7 @@ export default {
} else { } else {
// //
this.getyzmBtnloading = false; this.getyzmBtnloading = false;
this.countdown = 60; this.countdown = 120;
clearInterval(this.timec); // clearInterval(this.timec); //
} }
}, 1000); }, 1000);
@ -306,6 +308,7 @@ export default {
if(this.loginKey.id !== '' && this.loginKey.key !== ''){ if(this.loginKey.id !== '' && this.loginKey.key !== ''){
this.getRpaAuthStatus() this.getRpaAuthStatus()
} }
this.dialogVisible= true
}, },
beforeDestroy(){ beforeDestroy(){
window.clearInterval(this.timer); window.clearInterval(this.timer);

Loading…
Cancel
Save