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