Commit 3dea1c54 authored by baixian's avatar baixian

youhua

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