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

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

admin 配置完成

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