Commit 4f7dc6fe authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents b3a00853 21b0566a
## god-template ## god-template
### 为数商云&醒电构建项目提供react脚手架模板 ### 为&醒电构建项目提供react脚手架模板
- god页面模板, 依赖于[umi](https://umijs.org/), 更多配置可以查看 - god页面模板, 依赖于[umi](https://umijs.org/), 更多配置可以查看
- god组件库[文档](http://10.0.0.22:8080/) - god组件库[文档](http://10.0.0.22:8080/)
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
1. 样式 1. 样式
- 全局样式需写在src/global/global.less下, 涉及到color, size之类的属性尽量变量化 并且储存在/styles/theme.less中 - 全局样式需写在src/global/global.less下, 涉及到color, size之类的属性尽量变量化 并且储存在/styles/theme.less中
"umi-plugin-antd-theme": "^2.1.2" "umi-plugin-antd-theme": "^2.1.2"
\ No newline at end of file
public/static/imgs/Fav.jpg

2.6 KB | W: | H:

public/static/imgs/Fav.jpg

2.11 KB | W: | H:

public/static/imgs/Fav.jpg
public/static/imgs/Fav.jpg
public/static/imgs/Fav.jpg
public/static/imgs/Fav.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,6 +4,7 @@ import { Modal } from 'antd' ...@@ -4,6 +4,7 @@ import { Modal } from 'antd'
import { TabTreeActions } from '@/components/TabTree' import { TabTreeActions } from '@/components/TabTree'
import { ISchemaFormActions } from '@formily/antd' import { ISchemaFormActions } from '@formily/antd'
import { isObject } from '@/utils' import { isObject } from '@/utils'
import { usePageStatus } from './usePageStatus'
export enum FormState { export enum FormState {
FREE, // 空闲状态 FREE, // 空闲状态
...@@ -13,7 +14,7 @@ export enum FormState { ...@@ -13,7 +14,7 @@ export enum FormState {
export interface useTreeTabOptions { export interface useTreeTabOptions {
selectCallback?(selectKey?, node?), selectCallback?(selectKey?, node?),
fetchMenuData?(), fetchMenuData?(roleId?: number),
fetchItemDetailData?(id), fetchItemDetailData?(id),
// 重置右侧详情 // 重置右侧详情
resetDetail?(), resetDetail?(),
...@@ -47,13 +48,14 @@ export const useTreeData = (options: useTreeTabOptions = {}) => { ...@@ -47,13 +48,14 @@ export const useTreeData = (options: useTreeTabOptions = {}) => {
const [nodeRecord, setNodeRecord] = useState<any>(null) const [nodeRecord, setNodeRecord] = useState<any>(null)
const [isEditForm, setIsEditForm] = useState<boolean>(false) const [isEditForm, setIsEditForm] = useState<boolean>(false)
const { id } = usePageStatus();
useEffect(() => { useEffect(() => {
resetMenu() resetMenu()
}, []) }, [])
const resetMenu = async () => { const resetMenu = async () => {
if (fetchMenuData) { if (fetchMenuData) {
const res = await fetchMenuData() const res = await fetchMenuData(Number(id))
setTreeData(res.data || []) setTreeData(res.data || [])
} }
} }
......
...@@ -55,7 +55,7 @@ export const getSelectedMenuKeys = ( ...@@ -55,7 +55,7 @@ export const getSelectedMenuKeys = (
const defaultFooterDom = ( const defaultFooterDom = (
<DefaultFooter <DefaultFooter
// copyright={`瓴犀-${new Date().getFullYear()} 前端组体验出品`} copyright={`全链数字化解决方案`}
links={[]} links={[]}
/> />
); );
......
...@@ -4,8 +4,8 @@ import cx from 'classnames' ...@@ -4,8 +4,8 @@ import cx from 'classnames'
const BaseFooter: React.FC = (props) => { const BaseFooter: React.FC = (props) => {
return ( return (
<footer className={cx(styles.lingxiBusinessUserFooter)}>Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5</footer> <footer className={cx(styles.lingxiBusinessUserFooter)}>全链数字化解决方案</footer>
) )
} }
export default BaseFooter export default BaseFooter
\ No newline at end of file
...@@ -37,7 +37,7 @@ import marketing from './en-US/marketing' ...@@ -37,7 +37,7 @@ import marketing from './en-US/marketing'
import responseCode from './en-US/responseCode' import responseCode from './en-US/responseCode'
export default { export default {
'global.siteName': '瓴犀', 'global.siteName': '',
...common, ...common,
...menu, ...menu,
...home, ...home,
......
...@@ -37,7 +37,7 @@ import marketing from './ko-KR/marketing' ...@@ -37,7 +37,7 @@ import marketing from './ko-KR/marketing'
import responseCode from './ko-KR/responseCode' import responseCode from './ko-KR/responseCode'
export default { export default {
'global.siteName': '瓴犀', 'global.siteName': '',
...common, ...common,
...menu, ...menu,
...home, ...home,
......
...@@ -37,7 +37,7 @@ import marketing from './zh-CN/marketing' ...@@ -37,7 +37,7 @@ import marketing from './zh-CN/marketing'
import responseCode from './zh-CN/responseCode' import responseCode from './zh-CN/responseCode'
export default { export default {
'global.siteName': '瓴犀', 'global.siteName': '',
...common, ...common,
...menu, ...menu,
...home, ...home,
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
'common.error.diannaoweilianjie': '电脑未连接到网络', 'common.error.diannaoweilianjie': '电脑未连接到网络',
'common.error.fanghuoqianghuosha': '防火墙或杀毒软件阻止', 'common.error.fanghuoqianghuosha': '防火墙或杀毒软件阻止',
'common.error.shuaxinyemianshi': '刷新页面试试', 'common.error.shuaxinyemianshi': '刷新页面试试',
'common.error.shushangyunfu': '数商云服务', 'common.error.shushangyunfu': '服务',
/** 其他 */ /** 其他 */
'common.money': '¥', 'common.money': '¥',
......
...@@ -239,11 +239,11 @@ export default { ...@@ -239,11 +239,11 @@ export default {
'components.daoruwanchengqingdianjidao': '导入完成请点击导入完成', 'components.daoruwanchengqingdianjidao': '导入完成请点击导入完成',
'components.daorujiancha': '导入检查', 'components.daorujiancha': '导入检查',
'components.shujudaoru': '数据导入', 'components.shujudaoru': '数据导入',
'components.shangyeshuzihuayoulingxi': '商业数字化有瓴犀', 'components.shangyeshuzihuayoulingxi': '商业数字化',
'components.dianjixiazaishoujikehu': '点击下载手机客户端', 'components.dianjixiazaishoujikehu': '点击下载手机客户端',
'components.dianjiyoushangjiaoxuanzeliu': '点击右上角选择浏览器打开', 'components.dianjiyoushangjiaoxuanzeliu': '点击右上角选择浏览器打开',
'components.lingxishangchengAPP': '瓴犀商城APP', 'components.lingxishangchengAPP': '商城APP',
'components.CopyRightguangzhoushishushangyun': 'Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5', 'components.CopyRightguangzhoushishushangyun': '全链数字化解决方案',
'components.mianzhaishengming': '免责声明', 'components.mianzhaishengming': '免责声明',
'components.fuwutiaokuan': '服务条款', 'components.fuwutiaokuan': '服务条款',
'components.lianxiwomen': '联系我们', 'components.lianxiwomen': '联系我们',
......
...@@ -28,7 +28,7 @@ const NoFoundPage: React.FC<{}> = () => { ...@@ -28,7 +28,7 @@ const NoFoundPage: React.FC<{}> = () => {
</div> </div>
</Col> </Col>
<Col span={12}> <Col span={12}>
<img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '数商云服务' })}/> <img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '服务' })}/>
</Col> </Col>
</Row> </Row>
</div> </div>
......
...@@ -33,7 +33,7 @@ const NoFoundPage: React.FC<{}> = () => { ...@@ -33,7 +33,7 @@ const NoFoundPage: React.FC<{}> = () => {
</div> </div>
</Col> </Col>
<Col span={12}> <Col span={12}>
<img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '数商云服务' })} /> <img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '服务' })} />
</Col> </Col>
</Row> </Row>
</div> </div>
......
...@@ -33,7 +33,7 @@ const InternetError: React.FC<{}> = () => { ...@@ -33,7 +33,7 @@ const InternetError: React.FC<{}> = () => {
</div> </div>
</Col> </Col>
<Col span={12}> <Col span={12}>
<img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '数商云服务' })} /> <img className={styles.image} src={Img} alt={intl.formatMessage({ id: 'common.error.shushangyunfu', defaultMessage: '服务' })} />
</Col> </Col>
</Row> </Row>
</div> </div>
......
...@@ -54,11 +54,6 @@ const TabFormErrors = props => { ...@@ -54,11 +54,6 @@ const TabFormErrors = props => {
); );
}; };
const fetchMenuData = async () => {
const res = await getMemberRoleAuthTree();
return { data: res.data.menus };
};
const TabsItem = Tabs.TabPane; const TabsItem = Tabs.TabPane;
const menuActions = createFormActions(); const menuActions = createFormActions();
...@@ -109,6 +104,14 @@ const MemberDetail: React.FC<{}> = () => { ...@@ -109,6 +104,14 @@ const MemberDetail: React.FC<{}> = () => {
} = useTreeTabs({ } = useTreeTabs({
fetchMenuData: fetchOrgsTreeData, fetchMenuData: fetchOrgsTreeData,
}); });
const fetchMenuData = useCallback(async (roleId: number) => {
const res = await getMemberRoleAuthTree({
memberRoleId: roleId
});
return { data: res.data.menus };
}, []);
const { treeData, handleSelect } = useTreeData({ const { treeData, handleSelect } = useTreeData({
fetchMenuData, fetchMenuData,
fetchItemDetailData: ({ id }) => fetchItemDetailData: ({ id }) =>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2021-01-28 10:32:29 * @Date: 2021-01-28 10:32:29
* @LastEditTime: 2021-03-01 11:39:28 * @LastEditTime: 2021-03-01 11:39:28
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 瓴犀装修组件配置集合 * @Description: 装修组件配置集合
* @FilePath: /lingxi-business-paltform/src/pages/editor/configs/componentConfigs/LingXiUI/index.ts * @FilePath: /lingxi-business-paltform/src/pages/editor/configs/componentConfigs/LingXiUI/index.ts
*/ */
import TopBar from './TopBar' import TopBar from './TopBar'
......
...@@ -13,7 +13,7 @@ const TopBar = () => { ...@@ -13,7 +13,7 @@ const TopBar = () => {
<div className={styles.topBar}> <div className={styles.topBar}>
<div className={styles['topBar-content']}> <div className={styles['topBar-content']}>
<div> <div>
<div>瓴犀企业商城</div> <div>企业商城</div>
</div> </div>
<div className={styles.right}> <div className={styles.right}>
<div className={styles.toLogin}>你好,请登录</div> <div className={styles.toLogin}>你好,请登录</div>
......
...@@ -256,7 +256,7 @@ const UserRegistry = () => { ...@@ -256,7 +256,7 @@ const UserRegistry = () => {
<title>{intl.formatMessage({id: 'user.yonghuzhuce'})}</title> <title>{intl.formatMessage({id: 'user.yonghuzhuce'})}</title>
</Helmet> </Helmet>
<div className={cx('register', globalStyles.lingxiBusinessContent1024)}> <div className={cx('register', globalStyles.lingxiBusinessContent1024)}>
{/* <h3>欢迎您注册数商云账号</h3> */} {/* <h3>欢迎您注册账号</h3> */}
<div className={cx('registerBox', globalStyles.lingxiBusinessMarginContent)}> <div className={cx('registerBox', globalStyles.lingxiBusinessMarginContent)}>
<Steps current={current} className={'stepWrap'} size='small'> <Steps current={current} className={'stepWrap'} size='small'>
{stepList.map(v => <Steps.Step title={v.title} key={v.key}></Steps.Step>)} {stepList.map(v => <Steps.Step title={v.title} key={v.key}></Steps.Step>)}
......
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