Commit 94446f54 authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent 818d1fca
......@@ -3,7 +3,6 @@ import { Form, Input, Button, Pagination, message, Modal, Tag } from 'antd';
import { connect, history } from 'umi';
import { SearchOutlined, ClearOutlined, PlusOutlined } from '@ant-design/icons';
import ProTable from '@ant-design/pro-table';
import { getCookie } from '@/utils/method';
import './Account.less';
......
......@@ -251,7 +251,7 @@ const Account = (props: any) => {
<EditOutlined />
&nbsp; Detail Account
<div className="back">
{DataSave && DataSave.tosUserLevel <= 2 ? (
{user && user.currentUser.tosUserLevel !== 3 ? (
<Button type="primary" danger style={{ marginRight: 15 }} onClick={lockS}>
<PoweroffOutlined />
Close Account
......
......@@ -6,7 +6,6 @@ import { history } from 'umi';
// 样式
import './celllist.less';
import { RA } from '@/utils/method';
import imgs from '@/assets/logo_icon_bg.png';
import hfor from '@/assets/h5.png';
import PreView from '@/components/PreView';
......@@ -19,7 +18,7 @@ import fileDownload from 'js-file-download';
const Detail = (props: any) => {
const module = 'CellList';
const { detailData, DataSave, dispatch, loading, overCom } = props;
const { detailData, DataSave, dispatch, loading, overCom, user } = props;
useEffect(() => {
if (DataSave) {
......@@ -113,6 +112,7 @@ const Detail = (props: any) => {
<EyeOutlined />
&nbsp;Community Details
<div className="back">
{user && user.currentUser.permission.filter((item: any) => (item = 47)) ? (
<Button
type="primary"
danger
......@@ -121,8 +121,13 @@ const Detail = (props: any) => {
loading={false}
onClick={openModel}
>
{' '}
<span className="capi">Close the community</span>
</Button>
) : (
''
)}
<Button onClick={goToReturn}>
<LeftOutlined />
Back
......@@ -297,6 +302,7 @@ const Detail = (props: any) => {
function map(state: any) {
const { DataSave, detailData, imgUrl, overCom } = state.CellList; // 上层传递来的值
const loading = state.loading.models.CellList;
return { DataSave, detailData, loading, imgUrl, overCom };
const user = state.user;
return { DataSave, detailData, loading, imgUrl, overCom, user };
}
export default connect(map)(Detail);
......@@ -27,6 +27,10 @@ export const zhCnFaci = [
{ title: '注销服务商', key: '12', disableCheckbox: true },
{ title: '查看保安账号', key: '13', disableCheckbox: true },
{ title: '注销保安账号', key: '14', disableCheckbox: true },
{ title: '查看服务范围', key: '67', disableCheckbox: true },
{ title: '编辑服务范围', key: '68', disableCheckbox: true },
{ title: '添加服务范围', key: '69', disableCheckbox: true },
{ title: '删除服务范围', key: '70', disableCheckbox: true },
],
},
{
......@@ -194,6 +198,10 @@ export const enUsFaci = [
{ title: 'Log off service providers', key: '12', disableCheckbox: true },
{ title: 'Check security account', key: '13', disableCheckbox: true },
{ title: 'Log off security account', key: '14', disableCheckbox: true },
{ title: 'Check available services', key: '67', disableCheckbox: true },
{ title: 'Edit available services', key: '68', disableCheckbox: true },
{ title: 'Add available services', key: '69', disableCheckbox: true },
{ title: 'Delete available services', key: '70', disableCheckbox: true },
],
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment