|
@@ -18,7 +18,6 @@ import AuthWorkList from './AuthWorkList';
|
|
|
import { connect } from 'dva';
|
|
|
import styles from './index.less';
|
|
|
import moment from 'moment';
|
|
|
-import { getList } from '@/services/devOpsScoreRule';
|
|
|
|
|
|
function List(props) {
|
|
|
const { dispatch, loading, list, project, currentUser, allType, user } = props;
|
|
@@ -43,9 +42,16 @@ function List(props) {
|
|
|
status: 2,
|
|
|
desc: '',
|
|
|
}));
|
|
|
+ let time = current.date.format('YYYY-MM-DD');
|
|
|
dispatch({
|
|
|
type: 'workload/authWorkload',
|
|
|
payload: params,
|
|
|
+ callback: list => {
|
|
|
+ setCurrent({
|
|
|
+ ...current,
|
|
|
+ list: list.filter(item => item.time == time),
|
|
|
+ });
|
|
|
+ },
|
|
|
});
|
|
|
},
|
|
|
});
|
|
@@ -60,11 +66,16 @@ function List(props) {
|
|
|
status: 3,
|
|
|
desc: data.desc || '',
|
|
|
}));
|
|
|
+ let time = current.date.format('YYYY-MM-DD');
|
|
|
dispatch({
|
|
|
type: 'workload/authWorkload',
|
|
|
payload: params,
|
|
|
- callback: () => {
|
|
|
+ callback: list => {
|
|
|
setVisible(false);
|
|
|
+ setCurrent({
|
|
|
+ ...current,
|
|
|
+ list: list.filter(item => item.time == time),
|
|
|
+ });
|
|
|
},
|
|
|
});
|
|
|
};
|