| | |
| | | size="small" |
| | | @click="queryInfo()" |
| | | icon="el-icon-search" |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | type="primary" |
| | | >{{ $t('operatManage.ELM.search') }} |
| | | </el-button> |
| | | </el-form-item> |
| | |
| | | <br /> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | type="success" |
| | | size="small" |
| | | @click="showAddDialog" |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.delete" |
| | | type="danger" |
| | | size="small" |
| | | @click="deleteUserInfo" |
| | |
| | | </el-form-item> |
| | | <el-form-item v-show="setbatchFlag"> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | size="small" |
| | | @click="editPwd" |
| | | type="warning" |
| | |
| | | width="200px" |
| | | :label="$t('userManage.userInfoObj.bak')" |
| | | /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | :label="$t('common.operate')" |
| | | width="80px" |
| | | fixed="right" |
| | | v-if="menuStatus.update" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- <el-button type="primary" size="small">修改</el-button> --> |
| | | |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | @click="editInfo(scope.row)" |
| | | size="mini" |
| | | size="small" |
| | | >{{ $t('common.edit') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | <div |
| | | style="margin-top: 25px" |
| | |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="medium" |
| | | size="small" |
| | | type="info" |
| | | @click="cancelEdit()" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | | <el-button |
| | | size="medium" |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | size="small" |
| | | type="primary" |
| | | @click="sendEdit('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t('common.submit') }}</el-button> |
| | |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="medium" |
| | | size="small" |
| | | type="info" |
| | | @click="cancelAdd('editForm')" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | | <el-button |
| | | size="medium" |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | size="small" |
| | | type="primary" |
| | | @click="sendAdd('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t('common.submit') }}</el-button> |
| | |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="medium" |
| | | size="small" |
| | | type="info" |
| | | @click="cancelReset - 'pwdForm'" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | | <el-button |
| | | size="medium" |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | size="small" |
| | | type="primary" |
| | | @click="sendReset('pwdForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t('common.submit') }}</el-button> |
| | |
| | | methods: { |
| | | ...mapActions(['login', 'getpublickey']), |
| | | getUserInfo() { |
| | | this.pageSize = 10; |
| | | this.currentPage = 1; |
| | | queryDepTree() |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | setTimeout(() => { |
| | | this.fullscreenLoading = false; |
| | | if (res.code == 200) { |
| | | |
| | | |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success', |
| | |
| | | }; |
| | | this.multipleSelection = []; |
| | | this.resetPwd = false; |
| | | this.getUserInfo(); |
| | | |
| | | this.getUserInfo(); |
| | | } |
| | | }, 500); |
| | | }) |
| | |
| | | editInfo(row) { |
| | | delete row.updateTime; |
| | | delete row.updateUser; |
| | | |
| | | |
| | | this.initialForm = JSON.stringify(row); |
| | | this.behavior = '修改信息'; |
| | | this.editForm = JSON.parse(JSON.stringify(row)); |