登录添加锁定时间判断以及提示&&UI上下文按钮设计Action参数信息编辑功能数据错乱问题
| | |
| | | this.$store.dispatch("LoginByUsername", this.loginForm).then((data) => { |
| | | if (data.obj.failCode !== 'loginSuccess') { |
| | | // console.log('data', data); |
| | | if (data.obj.failCode === 'userIsLocked') { |
| | | this.$message.error(`登录错误次数过多,账号被锁定【${data.obj.failMsgArray[0]}】分钟`); |
| | | loading.close(); |
| | | return; |
| | | } |
| | | this.$message.error(data.msg); |
| | | if (data.obj.mustChangePassword) { |
| | | this.passwordVisible = true; |
| | |
| | | }); |
| | | return false; |
| | | } |
| | | } |
| | | ; |
| | | }; |
| | | |
| | | this.$router.push({path: this.tagWel.value}); |
| | | loading.close(); |
| | | }).catch((err) => { |
| | |
| | | lastIndex: null, |
| | | selectList: [], |
| | | data: [], |
| | | option: { |
| | | option: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | height: 420, |
| | |
| | | :data="data" |
| | | :option="option" |
| | | :table-loading="tableLoading" |
| | | @row-del="rowDelHandler" |
| | | @row-save="rowSaveHandler" |
| | | @row-update="rowUpdateHandler" |
| | | @refresh-change="handleRefresh" |
| | | @selection-change="selectChangeHandler" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | |
| | | |
| | | // 按钮设计信息参数信息修改 |
| | | paramsRowEditHandler(row) { |
| | | this.$refs.paramsCrud.rowEdit(row); |
| | | this.$refs.paramsCrud.rowEdit(row,row.$index); |
| | | }, |
| | | |
| | | // 按钮设计参数信息添加按钮 |
| | |
| | | |
| | | // 按钮设计参数信息修改保存 |
| | | paramsRowUpdate(row, index, done, loading) { |
| | | console.log(row,index); |
| | | this.paramsData.splice(index, 1, row); |
| | | done(); |
| | | }, |