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'; ...@@ -3,7 +3,6 @@ import { Form, Input, Button, Pagination, message, Modal, Tag } from 'antd';
import { connect, history } from 'umi'; import { connect, history } from 'umi';
import { SearchOutlined, ClearOutlined, PlusOutlined } from '@ant-design/icons'; import { SearchOutlined, ClearOutlined, PlusOutlined } from '@ant-design/icons';
import ProTable from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table';
import { getCookie } from '@/utils/method';
import './Account.less'; import './Account.less';
......
...@@ -251,7 +251,7 @@ const Account = (props: any) => { ...@@ -251,7 +251,7 @@ const Account = (props: any) => {
<EditOutlined /> <EditOutlined />
&nbsp; Detail Account &nbsp; Detail Account
<div className="back"> <div className="back">
{DataSave && DataSave.tosUserLevel <= 2 ? ( {user && user.currentUser.tosUserLevel !== 3 ? (
<Button type="primary" danger style={{ marginRight: 15 }} onClick={lockS}> <Button type="primary" danger style={{ marginRight: 15 }} onClick={lockS}>
<PoweroffOutlined /> <PoweroffOutlined />
Close Account Close Account
......
...@@ -6,7 +6,6 @@ import { history } from 'umi'; ...@@ -6,7 +6,6 @@ import { history } from 'umi';
// 样式 // 样式
import './celllist.less'; import './celllist.less';
import { RA } from '@/utils/method'; import { RA } from '@/utils/method';
import imgs from '@/assets/logo_icon_bg.png';
import hfor from '@/assets/h5.png'; import hfor from '@/assets/h5.png';
import PreView from '@/components/PreView'; import PreView from '@/components/PreView';
...@@ -19,7 +18,7 @@ import fileDownload from 'js-file-download'; ...@@ -19,7 +18,7 @@ import fileDownload from 'js-file-download';
const Detail = (props: any) => { const Detail = (props: any) => {
const module = 'CellList'; const module = 'CellList';
const { detailData, DataSave, dispatch, loading, overCom } = props; const { detailData, DataSave, dispatch, loading, overCom, user } = props;
useEffect(() => { useEffect(() => {
if (DataSave) { if (DataSave) {
...@@ -113,16 +112,22 @@ const Detail = (props: any) => { ...@@ -113,16 +112,22 @@ const Detail = (props: any) => {
<EyeOutlined /> <EyeOutlined />
&nbsp;Community Details &nbsp;Community Details
<div className="back"> <div className="back">
<Button {user && user.currentUser.permission.filter((item: any) => (item = 47)) ? (
type="primary" <Button
danger type="primary"
style={{ marginRight: '15px' }} danger
icon={<PoweroffOutlined />} style={{ marginRight: '15px' }}
loading={false} icon={<PoweroffOutlined />}
onClick={openModel} loading={false}
> onClick={openModel}
<span className="capi">Close the community</span> >
</Button> {' '}
<span className="capi">Close the community</span>
</Button>
) : (
''
)}
<Button onClick={goToReturn}> <Button onClick={goToReturn}>
<LeftOutlined /> <LeftOutlined />
Back Back
...@@ -297,6 +302,7 @@ const Detail = (props: any) => { ...@@ -297,6 +302,7 @@ const Detail = (props: any) => {
function map(state: any) { function map(state: any) {
const { DataSave, detailData, imgUrl, overCom } = state.CellList; // 上层传递来的值 const { DataSave, detailData, imgUrl, overCom } = state.CellList; // 上层传递来的值
const loading = state.loading.models.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); export default connect(map)(Detail);
...@@ -27,6 +27,10 @@ export const zhCnFaci = [ ...@@ -27,6 +27,10 @@ export const zhCnFaci = [
{ title: '注销服务商', key: '12', disableCheckbox: true }, { title: '注销服务商', key: '12', disableCheckbox: true },
{ title: '查看保安账号', key: '13', disableCheckbox: true }, { title: '查看保安账号', key: '13', disableCheckbox: true },
{ title: '注销保安账号', key: '14', 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 = [ ...@@ -194,6 +198,10 @@ export const enUsFaci = [
{ title: 'Log off service providers', key: '12', disableCheckbox: true }, { title: 'Log off service providers', key: '12', disableCheckbox: true },
{ title: 'Check security account', key: '13', disableCheckbox: true }, { title: 'Check security account', key: '13', disableCheckbox: true },
{ title: 'Log off security account', key: '14', 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