mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化前段代码bug
This commit is contained in:
parent
44c39a25d7
commit
cf9ca7dca6
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="padding">
|
||||
<div class="vc-index-nav">
|
||||
<span><i class="fa fa-home margin-right-sm"></i>首页</span><span
|
||||
class="margin-left-sm margin-right-sm">/</span><span>开发中心</span>
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="padding">
|
||||
<el-card class="box-card margin-bottom">
|
||||
<div slot="header" class="clearfix flex justify-between">
|
||||
<span>{{ $t('staff.searchConditions') }}</span>
|
||||
</div>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-input :placeholder="$t('staff.staffIdPlaceholder')" v-model="searchConditions.staffId" clearable />
|
||||
<el-input :placeholder="$t('staff.staffId')" v-model="searchConditions.staffId" clearable />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-input :placeholder="$t('staff.staffNamePlaceholder')" v-model="searchConditions.name" clearable />
|
||||
<el-input :placeholder="$t('staff.staffName')" v-model="searchConditions.name" clearable />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-input :placeholder="$t('staff.phonePlaceholder')" v-model="searchConditions.tel" clearable />
|
||||
<el-input :placeholder="$t('staff.phoneNumber')" v-model="searchConditions.tel" clearable />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-button type="primary" @click="queryStaff">
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix flex justify-between">
|
||||
<span>{{ $t('staff.staffInfo') }}</span>
|
||||
<span>{{ $t('staff.staffManagement') }}</span>
|
||||
<el-button v-if="hasPrivilege(['502022082992310001', '502022101889270183'])" type="primary" size="small"
|
||||
class="float-right" @click="openAddStaffPage">
|
||||
{{ $t('staff.add') }}
|
||||
@ -51,7 +51,7 @@
|
||||
{{ $t('staff.edit') }}
|
||||
</el-button>
|
||||
<el-button size="mini" @click="openResetPwd(scope.row)">
|
||||
{{ $t('staff.resetPwd') }}
|
||||
{{ $t('staff.resetPassword') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.relCd !== '600311000001' && hasPrivilege(['502022082920350003', '502022101887680185'])"
|
||||
|
||||
@ -13,6 +13,8 @@ export const messages = {
|
||||
staffNumber: 'Staff Number',
|
||||
name: 'Name',
|
||||
phone: 'Phone',
|
||||
position: 'Position',
|
||||
idCard: 'ID Card',
|
||||
relatedOrg: 'Related Organization',
|
||||
email: 'Email',
|
||||
address: 'Address',
|
||||
@ -62,6 +64,8 @@ export const messages = {
|
||||
staffNumber: '员工编号',
|
||||
name: '名称',
|
||||
phone: '手机号',
|
||||
position: '职位',
|
||||
idCard: '身份证',
|
||||
relatedOrg: '关联组织',
|
||||
email: '邮箱',
|
||||
address: '地址',
|
||||
|
||||
@ -83,7 +83,11 @@ export default {
|
||||
if (valid) {
|
||||
this.loading = true;
|
||||
try {
|
||||
const { data } = await login(this.loginForm);
|
||||
const { data } = await login(this.loginForm).catch(error => {
|
||||
this.$message.error(error.response.data);
|
||||
this.refreshCaptcha();
|
||||
return { data: [] };
|
||||
});
|
||||
|
||||
if (data && data.length > 1) {
|
||||
this.$refs.selectLoginUserRef.openDialog(data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user