Compare commits

...

2 Commits

8 changed files with 15 additions and 17 deletions

View File

@ -111,7 +111,6 @@ export default {
li { li {
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
border-bottom: 1px solid #eee;
transition: all 0.3s; transition: all 0.3s;
&:hover { &:hover {

View File

@ -104,7 +104,7 @@ export default {
this.$refs.deleteRoleStaff.show(staff, this.pgId) this.$refs.deleteRoleStaff.show(staff, this.pgId)
}, },
viewDetail(staff) { viewDetail(staff) {
this.$router.push(`/staff/detail/${staff.userId}`) this.$router.push(`/views/staff/staffDetail?staffId=${staff.userId}`)
}, },
handleSizeChange(size) { handleSizeChange(size) {
this.page.size = size this.page.size = size

View File

@ -42,21 +42,21 @@
<el-table-column :label="$t('simplifyOwnerCar.operation')" align="center"> <el-table-column :label="$t('simplifyOwnerCar.operation')" align="center">
<template #default="{row}"> <template #default="{row}">
<el-button <el-button
v-if="row.psId != '-1' && row.state == '1001'" v-if="row.psId != '-1' && row.state == '1001' && hasPrivilege('502023032855861676')"
type="text" type="text"
@click="_deleteCarParkingSpace(row)"> @click="_deleteCarParkingSpace(row)">
{{ $t('simplifyOwnerCar.releaseSpace') }} {{ $t('simplifyOwnerCar.releaseSpace') }}
</el-button> </el-button>
<el-button <el-button
v-if="row.psId != '-1' && row.state == '3003'" v-if="row.psId != '-1' && row.state == '3003' && hasPrivilege('502023032809021678')"
type="text" type="text"
@click="_addCarParkingSpace(row)"> @click="_addCarParkingSpace(row)">
{{ $t('simplifyOwnerCar.renewSpace') }} {{ $t('simplifyOwnerCar.renewSpace') }}
</el-button> </el-button>
<el-button type="text" @click="_openEditOwnerCar(row)"> <el-button type="text" @click="_openEditOwnerCar(row)" v-if="hasPrivilege('502023032804261679')">
{{ $t('simplifyOwnerCar.edit') }} {{ $t('simplifyOwnerCar.edit') }}
</el-button> </el-button>
<el-button type="text" @click="_openDelOwnerCarModel(row)"> <el-button type="text" @click="_openDelOwnerCarModel(row)" v-if="hasPrivilege('502023032822121680')">
{{ $t('simplifyOwnerCar.delete') }} {{ $t('simplifyOwnerCar.delete') }}
</el-button> </el-button>
</template> </template>

View File

@ -27,10 +27,7 @@
<div slot="header" class="flex justify-between "> <div slot="header" class="flex justify-between ">
<span>{{ $t('classesManage.list.title') }}</span> <span>{{ $t('classesManage.list.title') }}</span>
<div style="float: right"> <div style="float: right">
<el-button type="primary" size="small" @click="handleShowDocument">
<i class="el-icon-document"></i>
{{ $t('common.document') }}
</el-button>
<el-button type="primary" size="small" @click="handleAdd"> <el-button type="primary" size="small" @click="handleAdd">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
{{ $t('common.add') }} {{ $t('common.add') }}
@ -158,14 +155,14 @@ export default {
handleEnable(row) { handleEnable(row) {
this.$refs.classesState.open({ this.$refs.classesState.open({
classesId: row.classesId, classesId: row.classesId,
stateName: this.$t('common.enable'), stateName: this.$t('common.enabled'),
state: '1001' state: '1001'
}) })
}, },
handleDisable(row) { handleDisable(row) {
this.$refs.classesState.open({ this.$refs.classesState.open({
classesId: row.classesId, classesId: row.classesId,
stateName: this.$t('common.disable'), stateName: this.$t('common.disabled'),
state: '2002' state: '2002'
}) })
}, },

View File

@ -28,6 +28,7 @@ export const messages = {
confirmDeleteOrg: 'Are you sure to delete this organization?', confirmDeleteOrg: 'Are you sure to delete this organization?',
confirmDeleteOrgRel: 'Are you sure to delete this organization relationship?', confirmDeleteOrgRel: 'Are you sure to delete this organization relationship?',
staffTitle: 'Staff', staffTitle: 'Staff',
selectOrgFirst: 'Please select an organization first',
staff: { staff: {
name: 'Name', name: 'Name',
phone: 'Phone', phone: 'Phone',
@ -66,6 +67,7 @@ export const messages = {
confirmDeleteOrg: '确定删除组织管理', confirmDeleteOrg: '确定删除组织管理',
confirmDeleteOrgRel: '确定删除组织关系', confirmDeleteOrgRel: '确定删除组织关系',
staffTitle: '员工', staffTitle: '员工',
selectOrgFirst: '请先选择一个组织',
staff: { staff: {
name: '员工名称', name: '员工名称',
phone: '员工电话', phone: '员工电话',

View File

@ -156,14 +156,14 @@ export default {
handleEnable(row) { handleEnable(row) {
this.$refs.stateDialog.open({ this.$refs.stateDialog.open({
scheduleId: row.scheduleId, scheduleId: row.scheduleId,
stateName: this.$t('common.enable'), stateName: this.$t('common.enabled'),
state: '1001' state: '1001'
}) })
}, },
handleDisable(row) { handleDisable(row) {
this.$refs.stateDialog.open({ this.$refs.stateDialog.open({
scheduleId: row.scheduleId, scheduleId: row.scheduleId,
stateName: this.$t('common.disable'), stateName: this.$t('common.disabled'),
state: '2002' state: '2002'
}) })
}, },

View File

@ -200,6 +200,7 @@ export default {
} }
await exportData(params) await exportData(params)
this.$message.success(this.$t('common.operationSuccess')) this.$message.success(this.$t('common.operationSuccess'))
this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
} catch (error) { } catch (error) {
console.error('导出失败:', error) console.error('导出失败:', error)
this.$message.error(this.$t('common.exportFailed')) this.$message.error(this.$t('common.exportFailed'))

View File

@ -29,13 +29,13 @@
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
<el-card class="box-card"> <el-card class="box-card">
<div class="text-right" v-if="staffCommunityInfo.curStaffId"> <div class="text-right margin-bottom" v-if="staffCommunityInfo.curStaffId" >
<el-button type="primary" size="small" @click="openAddModal"> <el-button type="primary" size="small" @click="openAddModal">
{{ $t('staffCommunity.linkCommunity') }} {{ $t('staffCommunity.linkCommunity') }}
</el-button> </el-button>
</div> </div>
<el-table :data="staffCommunityInfo.communitys" border style="width: 100%" v-loading="loading"> <el-table :data="staffCommunityInfo.communitys" border style="width: 100%" v-loading="loading">
<el-table-column prop="staffName" :label="$t('staffCommunity.staffName')" align="center" /> <el-table-column prop="staffName" :label="$t('staffCommunity.staffName')" align="center" />
<el-table-column prop="staffId" :label="$t('staffCommunity.staffId')" align="center" /> <el-table-column prop="staffId" :label="$t('staffCommunity.staffId')" align="center" />
<el-table-column prop="communityId" :label="$t('staffCommunity.communityId')" align="center" /> <el-table-column prop="communityId" :label="$t('staffCommunity.communityId')" align="center" />
@ -197,7 +197,6 @@ export default {
padding: 10px; padding: 10px;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
border-bottom: 1px solid #eee;
&:hover { &:hover {
background-color: #f5f7fa; background-color: #f5f7fa;