Commit 3dea1c54 authored by baixian's avatar baixian

youhua

parent e28ca8e2
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script type="text/javascript" src="/dist/main.5c6ba7.js"></script></body> <script type="text/javascript" src="/dist/main.1abd42.js"></script></body>
</html> </html>
\ No newline at end of file
...@@ -2176,29 +2176,31 @@ export default { ...@@ -2176,29 +2176,31 @@ export default {
} }
}, },
* deleteUnclock({ payload }, { call, put, select }) { * deleteUnclock({ payload }, { call, put, select }) {
const { id } = payload; const { record } = payload;
const { emigratedObj } = yield select(state => state.createtheme); const loadmessage = message.loading('删除中...', 0);
const data = yield call(themeAjax.unlockDelete, { const data = yield call(themeAjax.unlockDelete, {
id, id: record.id,
}); });
setTimeout(loadmessage);
if (data.code == 200) { if (data.code == 200) {
yield delay(500);
message.success('删除成功', 0.5); message.success('删除成功', 0.5);
yield put({ yield put({
type: 'getSubjectList', type: 'createThemeModalfindEmigrated',
payload: { payload: {
id: emigratedObj.id, store_id: record.unlock_mode_id,
}, },
}); });
yield put({ yield put({
type: 'querySubjectNumber', type: 'querySubjectNumber',
payload: { payload: {
id: emigratedObj.id, id: record.unlock_mode_id,
}, },
}); });
yield put({ yield put({
type: 'createThemeModalfindEmigrated', type: 'getSubjectList',
payload: { payload: {
store_id: emigratedObj.id, id: record.unlock_mode_id,
}, },
}); });
} else { } else {
......
...@@ -245,7 +245,7 @@ class ContentSettingForm extends React.Component { ...@@ -245,7 +245,7 @@ class ContentSettingForm extends React.Component {
dispatch({ dispatch({
type: 'createtheme/deleteUnclock', type: 'createtheme/deleteUnclock',
payload: { payload: {
id: record.id, record,
}, },
}); });
}, },
......
...@@ -121,6 +121,7 @@ class SuccessStoreForm extends React.Component { ...@@ -121,6 +121,7 @@ class SuccessStoreForm extends React.Component {
} }
delete = (record) => { delete = (record) => {
const { dispatch } = this.props; const { dispatch } = this.props;
console.log(record, 'record');
if (record.sort === 1) { if (record.sort === 1) {
message.error('第一关不能删除!', 0.5); message.error('第一关不能删除!', 0.5);
return; return;
...@@ -135,7 +136,7 @@ class SuccessStoreForm extends React.Component { ...@@ -135,7 +136,7 @@ class SuccessStoreForm extends React.Component {
dispatch({ dispatch({
type: 'createtheme/deleteUnclock', type: 'createtheme/deleteUnclock',
payload: { payload: {
id: record.id, record,
}, },
}); });
}, },
...@@ -248,7 +249,7 @@ class SuccessStoreForm extends React.Component { ...@@ -248,7 +249,7 @@ class SuccessStoreForm extends React.Component {
key: 'review_count', key: 'review_count',
}, },
{ {
title: '老师评分总分', title: '点评分数',
dataIndex: 'review_score', dataIndex: 'review_score',
key: 'review_score', key: 'review_score',
}, },
......
...@@ -43,7 +43,7 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) { ...@@ -43,7 +43,7 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) {
wechat_user: item.wechat_user && item.wechat_user.nickname ? item.wechat_user.nickname : '', wechat_user: item.wechat_user && item.wechat_user.nickname ? item.wechat_user.nickname : '',
unlock_count: item.unlock_count ? item.unlock_count : '-', unlock_count: item.unlock_count ? item.unlock_count : '-',
review_count: item.review_count, review_count: item.review_count,
review_score: item.review_score, review_score: Number(item.review_score) / 5,
passive_like_count: item.passive_like_count, passive_like_count: item.passive_like_count,
place_top_at_count: item.place_top_at_count, place_top_at_count: item.place_top_at_count,
total_share_uv: item.total_share_uv, total_share_uv: item.total_share_uv,
......
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