记得上下班打卡 | git大法好,push需谨慎

Commit 578d557d authored by 胡佳晨's avatar 胡佳晨

admin 配置完成

parent 8c995d99
...@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping; ...@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import javax.websocket.server.PathParam;
/** /**
* 演出Controller * 演出Controller
...@@ -52,10 +54,17 @@ public class KylinPerformancesController extends BaseController ...@@ -52,10 +54,17 @@ public class KylinPerformancesController extends BaseController
return getDataTable(result.getList()); return getDataTable(result.getList());
} }
@GetMapping(value = "/details") @RequiresPermissions("kylin:performances:view")
@GetMapping()
public String tickets()
{
return prefix + "/details";
}
@RequiresPermissions("kylin:performances:detail")
@GetMapping(value = "/details/{id}")
@ResponseBody @ResponseBody
@RequiresPermissions("kylin:performances:list") public ResponseDto<KylinPerformanceMisVo> performanceDetails(@PathParam("performancesId") String performancesId) {
public ResponseDto<KylinPerformanceMisVo> performanceDetails(String performancesId) {
KylinPerformanceMisVo result = null; KylinPerformanceMisVo result = null;
result = kylinPerformancesService.performanceDetails(performancesId); result = kylinPerformancesService.performanceDetails(performancesId);
if (null != result) { if (null != result) {
......
...@@ -114,7 +114,7 @@ shiro: ...@@ -114,7 +114,7 @@ shiro:
# 首页地址 # 首页地址
indexUrl: /index indexUrl: /index
# 验证码开关 # 验证码开关
captchaEnabled: true captchaEnabled: false
# 验证码类型 math 数组计算 char 字符 # 验证码类型 math 数组计算 char 字符
captchaType: math captchaType: math
cookie: cookie:
......
...@@ -972,6 +972,7 @@ var table = { ...@@ -972,6 +972,7 @@ var table = {
detail: function(id, width, height) { detail: function(id, width, height) {
table.set(); table.set();
var _url = $.operate.detailUrl(id); var _url = $.operate.detailUrl(id);
console.log(_url)
var options = { var options = {
title: table.options.modalName + "详细", title: table.options.modalName + "详细",
width: width, width: width,
...@@ -983,6 +984,7 @@ var table = { ...@@ -983,6 +984,7 @@ var table = {
layer.close(index); layer.close(index);
} }
}; };
console.log(options)
$.modal.openOptions(options); $.modal.openOptions(options);
}, },
// 详细信息,以tab页展现 // 详细信息,以tab页展现
......
...@@ -93,13 +93,14 @@ ...@@ -93,13 +93,14 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('kylin:performances:edit')}]]; var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]];
var removeFlag = [[${@permission.hasPermi('kylin:performances:remove')}]]; var expertFlag = [[${@permission.hasPermi('kylin:performances:expert')}]];
var prefix = ctx + "kylin/performances"; var prefix = ctx + "kylin/performances";
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
detailUrl: prefix + "/details/{id}",
createUrl: prefix + "/add", createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
...@@ -155,8 +156,8 @@ ...@@ -155,8 +156,8 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.mid + '\')"><i class="fa fa-edit"></i>编辑</a> '); actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mid + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + expertFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mid + '\')"><i class="fa fa-remove"></i>导出</a>');
return actions.join(''); return actions.join('');
} }
}] }]
......
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