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

Commit 8ef03a32 authored by 胡佳晨's avatar 胡佳晨

会员信息

parent 61f8b718
......@@ -6,6 +6,7 @@ import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.common.core.page.TableDataInfo;
import com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl;
import com.liquidnet.service.kylin.dao.PerformanceAdminListDao;
import com.liquidnet.service.kylin.dao.PerformanceMemberAuditDao;
import com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam;
import com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
......@@ -71,74 +72,11 @@ public class KylinPerformancesController extends BaseController {
return toAjax(kylinPerformancesService.setIsShow(performancesId, isShow));
}
//
// /**
// * 导出演出列表
// */
// @RequiresPermissions("kylin:performances:export")
// @Log(title = "演出", businessType = BusinessType.EXPORT)
// @PostMapping("/export")
// @ResponseBody
// public AjaxResult export(KylinPerformances kylinPerformances)
// {
// List<KylinPerformances> list = kylinPerformancesService.selectKylinPerformancesList(kylinPerformances);
// ExcelUtil<KylinPerformances> util = new ExcelUtil<KylinPerformances>(KylinPerformances.class);
// return util.exportExcel(list, "演出数据");
// }
//
// /**
// * 新增演出
// */
// @GetMapping("/add")
// public String add()
// {
// return prefix + "/add";
// }
//
// /**
// * 新增保存演出
// */
// @RequiresPermissions("kylin:performances:add")
// @Log(title = "演出", businessType = BusinessType.INSERT)
// @PostMapping("/add")
// @ResponseBody
// public AjaxResult addSave(KylinPerformances kylinPerformances)
// {
// return toAjax(kylinPerformancesService.insertKylinPerformances(kylinPerformances));
// }
//
// /**
// * 修改演出
// */
// @GetMapping("/edit/{mid}")
// public String edit(@PathVariable("mid") Long mid, ModelMap mmap)
// {
// KylinPerformances kylinPerformances = kylinPerformancesService.selectKylinPerformancesById(mid);
// mmap.put("kylinPerformances", kylinPerformances);
// return prefix + "/edit";
// }
//
// /**
// * 修改保存演出
// */
// @RequiresPermissions("kylin:performances:edit")
// @Log(title = "演出", businessType = BusinessType.UPDATE)
// @PostMapping("/edit")
// @ResponseBody
// public AjaxResult editSave(KylinPerformances kylinPerformances)
// {
// return toAjax(kylinPerformancesService.updateKylinPerformances(kylinPerformances));
// }
//
// /**
// * 删除演出
// */
// @RequiresPermissions("kylin:performances:remove")
// @Log(title = "演出", businessType = BusinessType.DELETE)
// @PostMapping( "/remove")
// @ResponseBody
// public AjaxResult remove(String ids)
// {
// return toAjax(kylinPerformancesService.deleteKylinPerformancesByIds(ids));
// }
@RequiresPermissions("kylin:performances:member")
@GetMapping(value = "/memberInfo/{performancesId}")
public String memberInfo(@PathVariable("performancesId") String performancesId, ModelMap mmap) {
PerformanceMemberAuditDao result = kylinPerformancesService.performanceMemberInfo(performancesId);
mmap.put("performanceMemberAuditDao", result);
return prefix + "/memberInfo";
}
}
......@@ -21,7 +21,7 @@
</li>
<li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">库存预警</a>
</li>
<li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">会员信息配置</a>
<li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false" onclick="memberInfo()">会员信息配置</a>
</li>
<li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">关联直播数量配置</a>
</li>
......@@ -216,8 +216,7 @@
</div>
<div id="tab-3" class="tab-pane">
<div class="panel-body">
<strong>HTML5 文档类型</strong>
<p>Bootstrap 使用到的某些 HTML 元素和 CSS 属性需要将页面设置为 HTML5 文档类型。在你项目中的每个页面都要参照下面的格式进行设置。</p>
<iframe id="content_iframe" name="content_iframe" marginwidth=0 marginheight=0 width=100% height=100% frameborder=0></iframe>
</div>
</div>
</div>
......@@ -230,8 +229,6 @@
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
var prefix = ctx + "kylin/performances"
const isShow = '[[${kylinPerformanceMisVo.isShow}]]';
const auditStatus = '[[${kylinPerformanceMisVo.auditStatus}]]';
......@@ -279,10 +276,12 @@
// 演出详情 购票须知
var subText = document.getElementById("subText")
subText.innerHTML = "演出详情:" + '[[${kylinPerformanceMisVo.details}]]'.replaceAll("\"", "");
// var noticeImg = document.getElementById("noticeImg")
// noticeImg.innerHTML = "购票须知:" + '[[${kylinPerformanceMisVo.noticeImage}]]'.replaceAll("\"", "");
// var noticeImgJson = $.parseJSON('[[${kylinPerformanceMisVo.noticeImage}]]'.substr(1, '[[${kylinPerformanceMisVo.noticeImage}]]'.length-2));
// alert(noticeImgJson[0]['title']);
//会员详情
function memberInfo() {
document.getElementById("content_iframe").src="../memberInfo/"+'[[${kylinPerformanceMisVo.performancesId}]]';
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改演出')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-performances-edit" th:object="${performanceMemberAuditDao}">
<div class="form-group">
<div class="col-sm-8">
<input name="performancesId" th:field="*{performancesId}" class="form-control" type="hidden" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出名称:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">该演出是否关联会员:</label>
<div class="col-sm-8" th:if="*{isMember==1}">
<div class="radio check-box">
<input type="radio" value="1" name="isMember" checked> 关联会员</label>
</div>
<div class="radio check-box">
<input type="radio" value="0" name="isMember"> 不关联会员</label>
</div>
</div>
<div class="col-sm-8" th:if="*{isMember==0}">
<div class="radio check-box">
<input type="radio" value="1" name="isMember"> 关联会员</label>
</div>
<div class="radio check-box">
<input type="radio" value="0" name="isMember" checked> 不关联会员</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">该演出是否会员专属:</label>
<div class="col-sm-8" th:if="*{isExclusive==1}">
<div class="radio check-box">
<input type="radio" value="1" name="isExclusive" checked> 会员专属</label>
</div>
<div class="radio check-box">
<input type="radio" value="0" name="isExclusive"> 不专属</label>
</div>
</div>
<div class="col-sm-8" th:if="*{isExclusive==0}">
<div class="radio check-box">
<input type="radio" value="1" name="isExclusive"> 会员专属</label>
</div>
<div class="radio check-box">
<input type="radio" value="0" name="isExclusive" checked> 不专属</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">票种列表:(限购数量0为不限购):</label>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
// alert('[[${performanceMemberAuditDao.title}]]')
var prefix = ctx + "kylin/performances";
$("#form-performances-edit").validate({
focusCleanup: true
});
//
// function submitHandler() {
// if ($.validate.form()) {
// $.operate.save(prefix + "/edit", $('#form-performances-edit').serialize());
// }
// }
</script>
</body>
</html>
\ No newline at end of file
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