记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
4d0165ef
Commit
4d0165ef
authored
Oct 28, 2021
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转盘页面相关功能
parent
01cbbb25
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
100 deletions
+150
-100
form.html
...urces/templates/zhengzai/sweet/integralActivity/form.html
+124
-97
list.html
...urces/templates/zhengzai/sweet/integralActivity/list.html
+26
-3
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/integralActivity/form.html
View file @
4d0165ef
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/integralActivity/list.html
View file @
4d0165ef
...
...
@@ -124,8 +124,8 @@
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
drawListFlag
+
'" href="javascript:void(0)" onclick="$.operate.detailTab(
\'
'
+
row
.
integralActivityId
+
'
\'
)"><i class="fa fa-edit"></i>查看中奖名单</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
updateFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit(
\'
'
+
row
.
integralActivityId
+
'
\'
)"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
isOnlineFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
integralActivityId
+
'
\'
)"></i>上下线</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
updateFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit
Tab
(
\'
'
+
row
.
integralActivityId
+
'
\'
)"></i>编辑</a> '
);
actions
.
push
(
`<a class="btn btn-danger btn-xs
${
isOnlineFlag
}
" href="javascript:void(0)" onclick="openModal('
${
row
.
integralActivityId
}
','
${
row
.
isOnline
}
')"></i>上下线</a>`
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
exportExcelFlag
+
'" href="javascript:void(0)" onclick="exportExcel(
\'
'
+
row
.
integralActivityId
+
'
\'
)"></i>导出中奖信息</a> '
);
return
actions
.
join
(
''
);
}
...
...
@@ -133,8 +133,31 @@
};
$
.
table
.
init
(
options
);
});
function
openModal
(
id
,
data
)
{
console
.
log
(
id
,
data
,
'dhsa'
)
let
title
=
''
;
let
lineId
=
null
;
if
(
data
==
1
)
{
title
=
'上线'
;
lineId
=
2
}
else
{
title
=
'下线'
;
lineId
=
1
}
$
.
modal
.
confirm
(
`确定要
${
title
}
此活动吗`
,
function
()
{
$
.
ajax
({
type
:
'put'
,
url
:
'/sweet/integralActivity/isOnline'
,
data
:
{
integralActivityId
:
id
,
isOnline
:
lineId
},
success
:
function
(
e
)
{
console
.
log
(
e
)
$
(
"button[name=refresh]"
).
click
();
}
})
});
}
</script>
</body>
</html>
\ No newline at end of file
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