Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
3dea1c54
Commit
3dea1c54
authored
Feb 24, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youhua
parent
e28ca8e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
index.html
index.html
+1
-1
createtheme.js
src/models/createtheme.js
+10
-8
ContentSetting.js
src/pages/newtheme/customsclock/ContentSetting.js
+1
-1
detail.js
src/pages/newtheme/customsclock/detail.js
+3
-2
exportexcel.js
src/utils/exportexcel.js
+1
-1
No files found.
index.html
View file @
3dea1c54
...
...
@@ -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
src/models/createtheme.js
View file @
3dea1c54
...
...
@@ -2176,29 +2176,31 @@ export default {
}
},
*
deleteUnclock
({
payload
},
{
call
,
put
,
select
})
{
const
{
i
d
}
=
payload
;
const
{
emigratedObj
}
=
yield
select
(
state
=>
state
.
createtheme
);
const
{
recor
d
}
=
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
{
...
...
src/pages/newtheme/customsclock/ContentSetting.js
View file @
3dea1c54
...
...
@@ -245,7 +245,7 @@ class ContentSettingForm extends React.Component {
dispatch
({
type
:
'createtheme/deleteUnclock'
,
payload
:
{
id
:
record
.
i
d
,
recor
d
,
},
});
},
...
...
src/pages/newtheme/customsclock/detail.js
View file @
3dea1c54
...
...
@@ -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
.
i
d
,
recor
d
,
},
});
},
...
...
@@ -248,7 +249,7 @@ class SuccessStoreForm extends React.Component {
key
:
'review_count'
,
},
{
title
:
'
老师评分总分
'
,
title
:
'
点评分数
'
,
dataIndex
:
'review_score'
,
key
:
'review_score'
,
},
...
...
src/utils/exportexcel.js
View file @
3dea1c54
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment