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');
const path = require('path');
const plugin = config => {
return;
// ε°†ζ‰€ζœ‰ less εˆεΉΆδΈΊδΈ€δΈͺδΎ› themePlugin使用
const outFile = path.join(__dirname, '../.temp/ant-design-pro.less');
const stylesDir = path.join(__dirname, '../src/');
......
import { queryFakeList, removeFakeList, addFakeList, updateFakeList } from '../services/api';
import { queryFakeList, removeFakeList, addFakeList, updateFakeList } from '@/services/api';
export default {
namespace: 'list',
......
import { queryProjectNotice } from '../services/api';
import { queryProjectNotice } from '@/services/api';
export default {
namespace: 'project',
......
import request from '../utils/request';
import request from '../../../../utils/request';
export async function queryProvince() {
return request('/api/geographic/province');
......
......@@ -4,9 +4,9 @@ import { connect } from 'dva';
import { Link } from 'dva/router';
import { Row, Col, Card, List, Avatar } from 'antd';
import { Radar } from 'components/Charts';
import EditableLinkGroup from 'components/EditableLinkGroup';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import { Radar } from '@/components/Charts';
import EditableLinkGroup from '@/components/EditableLinkGroup';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './Workplace.less';
......
import { queryActivities } from '../services/api';
import { queryActivities } from '@/services/api';
export default {
namespace: 'activities',
......
import { fakeChartData } from '../services/api';
import { fakeChartData } from '@/services/api';
export default {
namespace: 'chart',
......
import { queryTags } from '../services/api';
import { queryTags } from '@/services/api';
export default {
namespace: 'monitor',
......
import request from '../utils/request';
import request from '../../../utils/request';
export async function query(code) {
return request(`/api/${code}`);
......
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { fakeSubmitForm } from '../services/api';
import { fakeSubmitForm } from '@/services/api';
export default {
namespace: 'form',
......
import { queryRule, removeRule, addRule, updateRule } from '../services/api';
import { queryRule, removeRule, addRule, updateRule } from '@/services/api';
export default {
namespace: 'rule',
......
import { queryBasicProfile, queryAdvancedProfile } from '../services/api';
import { queryBasicProfile, queryAdvancedProfile } from '@/services/api';
export default {
namespace: 'profile',
......
import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Icon, Card } from 'antd';
import Result from 'components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import Result from '@/components/Result';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
const extra = (
<Fragment>
......
......@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from 'components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
const { Step } = Steps;
......
import { routerRedux } from 'dva/router';
import { stringify } from 'qs';
import { fakeAccountLogin, getFakeCaptcha } from '../services/api';
import { setAuthority } from '../utils/authority';
import { getPageQuery } from '../utils/utils';
import { reloadAuthorized } from '../utils/Authorized';
import { fakeAccountLogin, getFakeCaptcha } from '@/services/api';
import { setAuthority } from '@/utils/authority';
import { getPageQuery } from '@/utils/utils';
import { reloadAuthorized } from '@/utils/Authorized';
export default {
namespace: 'login',
......
import { fakeRegister } from '../services/api';
import { setAuthority } from '../utils/authority';
import { reloadAuthorized } from '../utils/Authorized';
import { fakeRegister } from '@/services/api';
import { setAuthority } from '@/utils/authority';
import { reloadAuthorized } from '@/utils/Authorized';
export default {
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