提交 64aafaad authored 作者: vipcxj's avatar vipcxj

增强DsTable服务端排序的功能

上级 905e59ec
...@@ -6,10 +6,6 @@ import TableEx from '../../../components/table/index'; ...@@ -6,10 +6,6 @@ import TableEx from '../../../components/table/index';
import styles from './index.less'; import styles from './index.less';
class DsTable extends React.Component { class DsTable extends React.Component {
constructor(props, context) {
super(props, context);
}
componentDidMount() { componentDidMount() {
const { coordinate, params, dispatchLocal } = this.props; const { coordinate, params, dispatchLocal } = this.props;
dispatchLocal({ type: 'doInit', payload: { coordinate, params } }); dispatchLocal({ type: 'doInit', payload: { coordinate, params } });
......
...@@ -11,6 +11,7 @@ import DsTable from '../src/components/table/dstable'; ...@@ -11,6 +11,7 @@ import DsTable from '../src/components/table/dstable';
import { makeCancelable } from '../src/utils/promise'; import { makeCancelable } from '../src/utils/promise';
import { login } from '../src/services/login'; import { login } from '../src/services/login';
import { switchDomain } from '../src/services/domain'; import { switchDomain } from '../src/services/domain';
import { getModuleConfigure } from '../src/services/modules';
import { setCookie, setLocalStorge } from '../src/utils/helper'; import { setCookie, setLocalStorge } from '../src/utils/helper';
import { cookie, storage } from '../src/utils/config'; import { cookie, storage } from '../src/utils/config';
...@@ -21,6 +22,8 @@ const loginIt = async (userName, password, domainId) => { ...@@ -21,6 +22,8 @@ const loginIt = async (userName, password, domainId) => {
setCookie(cookie.user, userId); setCookie(cookie.user, userId);
setLocalStorge(storage.userName, userName); setLocalStorge(storage.userName, userName);
await switchDomain(domainId); await switchDomain(domainId);
const config = await getModuleConfigure('test');
console.log(config);
}; };
const wrap = () => Comp => (props) => { const wrap = () => Comp => (props) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论