Commit ece1a97b authored by sorrycc's avatar sorrycc Committed by 陈帅

Make model and page together

parent d6b2123b
...@@ -5,6 +5,8 @@ const AntDesignThemePlugin = require('antd-theme-webpack-plugin'); ...@@ -5,6 +5,8 @@ const AntDesignThemePlugin = require('antd-theme-webpack-plugin');
const path = require('path'); const path = require('path');
const plugin = config => { const plugin = config => {
return;
// 将所有 less 合并为一个供 themePlugin使用 // 将所有 less 合并为一个供 themePlugin使用
const outFile = path.join(__dirname, '../.temp/ant-design-pro.less'); const outFile = path.join(__dirname, '../.temp/ant-design-pro.less');
const stylesDir = path.join(__dirname, '../src/'); const stylesDir = path.join(__dirname, '../src/');
......
import { queryFakeList, removeFakeList, addFakeList, updateFakeList } from '../services/api'; import { queryFakeList, removeFakeList, addFakeList, updateFakeList } from '@/services/api';
export default { export default {
namespace: 'list', namespace: 'list',
......
import { queryProjectNotice } from '../services/api'; import { queryProjectNotice } from '@/services/api';
export default { export default {
namespace: 'project', namespace: 'project',
......
import request from '../utils/request'; import request from '../../../../utils/request';
export async function queryProvince() { export async function queryProvince() {
return request('/api/geographic/province'); return request('/api/geographic/province');
......
...@@ -4,9 +4,9 @@ import { connect } from 'dva'; ...@@ -4,9 +4,9 @@ import { connect } from 'dva';
import { Link } from 'dva/router'; import { Link } from 'dva/router';
import { Row, Col, Card, List, Avatar } from 'antd'; import { Row, Col, Card, List, Avatar } from 'antd';
import { Radar } from 'components/Charts'; import { Radar } from '@/components/Charts';
import EditableLinkGroup from 'components/EditableLinkGroup'; import EditableLinkGroup from '@/components/EditableLinkGroup';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './Workplace.less'; import styles from './Workplace.less';
......
import { queryActivities } from '../services/api'; import { queryActivities } from '@/services/api';
export default { export default {
namespace: 'activities', namespace: 'activities',
......
import { fakeChartData } from '../services/api'; import { fakeChartData } from '@/services/api';
export default { export default {
namespace: 'chart', namespace: 'chart',
......
import { queryTags } from '../services/api'; import { queryTags } from '@/services/api';
export default { export default {
namespace: 'monitor', namespace: 'monitor',
......
import request from '../utils/request'; import request from '../../../utils/request';
export async function query(code) { export async function query(code) {
return request(`/api/${code}`); return request(`/api/${code}`);
......
import { routerRedux } from 'dva/router'; import { routerRedux } from 'dva/router';
import { message } from 'antd'; import { message } from 'antd';
import { fakeSubmitForm } from '../services/api'; import { fakeSubmitForm } from '@/services/api';
export default { export default {
namespace: 'form', namespace: 'form',
......
import { queryRule, removeRule, addRule, updateRule } from '../services/api'; import { queryRule, removeRule, addRule, updateRule } from '@/services/api';
export default { export default {
namespace: 'rule', namespace: 'rule',
......
import { queryBasicProfile, queryAdvancedProfile } from '../services/api'; import { queryBasicProfile, queryAdvancedProfile } from '@/services/api';
export default { export default {
namespace: 'profile', namespace: 'profile',
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale'; import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Icon, Card } from 'antd'; import { Button, Icon, Card } from 'antd';
import Result from 'components/Result'; import Result from '@/components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '@/layouts/PageHeaderLayout';
const extra = ( const extra = (
<Fragment> <Fragment>
......
...@@ -2,7 +2,7 @@ import React, { Fragment } from 'react'; ...@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale'; import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Row, Col, Icon, Steps, Card } from 'antd'; import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from 'components/Result'; import Result from 'components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '@/layouts/PageHeaderLayout';
const { Step } = Steps; const { Step } = Steps;
......
import { routerRedux } from 'dva/router'; import { routerRedux } from 'dva/router';
import { stringify } from 'qs'; import { stringify } from 'qs';
import { fakeAccountLogin, getFakeCaptcha } from '../services/api'; import { fakeAccountLogin, getFakeCaptcha } from '@/services/api';
import { setAuthority } from '../utils/authority'; import { setAuthority } from '@/utils/authority';
import { getPageQuery } from '../utils/utils'; import { getPageQuery } from '@/utils/utils';
import { reloadAuthorized } from '../utils/Authorized'; import { reloadAuthorized } from '@/utils/Authorized';
export default { export default {
namespace: 'login', namespace: 'login',
......
import { fakeRegister } from '../services/api'; import { fakeRegister } from '@/services/api';
import { setAuthority } from '../utils/authority'; import { setAuthority } from '@/utils/authority';
import { reloadAuthorized } from '../utils/Authorized'; import { reloadAuthorized } from '@/utils/Authorized';
export default { export default {
namespace: 'register', namespace: 'register',
......
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