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

Commit a74caf5c authored by 胡佳晨's avatar 胡佳晨

修改 增加同步ui

parent d725dc21
......@@ -59,17 +59,17 @@ public class KylinPerformancesController extends BaseController {
}
@Log(title = "同步票务平台-演出", businessType = BusinessType.OTHER)
@GetMapping(value = "/syncTicketSysPerformance/{performancesId}")
@PostMapping(value = "/syncTicketSysPerformance")
@ResponseBody
public AjaxResult syncTicketSysPerformance(@PathVariable("performancesId") String performancesId) {
public AjaxResult syncTicketSysPerformance(@RequestParam("performancesId") String performancesId) {
boolean result = kylinPerformancesService.syncTicketSysPerformance(performancesId);
return toAjax(result);
}
@Log(title = "同步票务平台-订单", businessType = BusinessType.OTHER)
@GetMapping(value = "/syncTicketSysOrder/{performancesId}")
@PostMapping(value = "/syncTicketSysOrder")
@ResponseBody
public AjaxResult syncTicketSysOrder(@PathVariable("performancesId") String performancesId) {
public AjaxResult syncTicketSysOrder(@RequestParam("performancesId") String performancesId) {
boolean result = kylinPerformancesService.syncTicketSysOrder(performancesId);
return toAjax(result);
}
......
......@@ -66,6 +66,17 @@
</button>
</div>
</div>
<div class="panel-body" id="performance_platform">
<strong>同步票务平台</strong>
<div th:width="max" style="margin-top: 10px">
<button type="button" class="btn btn-w-m btn-success" name="synPerform"
onclick="synPerform()">同步演出
</button>
<button type="button" class="btn btn-w-m btn-success" name="synOrder"
onclick="synOrder()">同步订单
</button>
</div>
</div>
<div class="panel-body" th:width="max" style="margin-top: 10px">
<form class="form-horizontal m" id="form-performances-edit"
th:object="${kylinPerformanceMisVo}">
......@@ -334,7 +345,27 @@
var prefix = ctx + "kylin/performances"
const isShow = '[[${kylinPerformanceMisVo.isShow}]]';
const auditStatus = '[[${kylinPerformanceMisVo.auditStatus}]]';
const status = '[[${kylinPerformanceMisVo.status}]]';
const fieldStatus = '[[${kylinPerformanceMisVo.fieldAuditStatus}]]';
const endTime = new Date('[[${kylinPerformanceMisVo.timeEnd}]]'.replaceAll("\"", "")).valueOf();
const now = new Date().valueOf();
// const et = new Date(endTime.replaceAll("\"", "")).valueOf();
//获取当前时间
function FormatDate() {
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth();
var date = now.getDate();
month = month + 1;
if (month < 10) {
month = "0" + month;
}
if (date < 10) {
date = "0" + date;
}
var time = year + "-" + month + "-" + date;
return time;
}
var agentFlag = [[${@permission.hasPermi('kylin:performances:agent')}]];
if (agentFlag == "hidden") {
......@@ -391,6 +422,11 @@
} else {
document.getElementsByName("isShowCheck")[1].checked = true;
}
if (now > endTime && status>3 && status!=7) {
// document.getElementById("performance_platform").style.display = "none";
} else {
document.getElementById("performance_platform").style.display = "none";
}
//修改 演出是否显示
function submitHandler() {
......@@ -402,6 +438,23 @@
});
}
//同步票务平台
function synPerform() {
var param = {
"performancesId": '[[${kylinPerformanceMisVo.performancesId}]]'.replaceAll("\"", "")
};
$.operate.post(prefix + "/syncTicketSysPerformance/", param, function (res) {
});
}
function synOrder() {
var param = {
"performancesId": '[[${kylinPerformanceMisVo.performancesId}]]'.replaceAll("\"", "")
};
$.operate.post(prefix + "/syncTicketSysOrder/", param, function (res) {
});
}
//演出审核
function aduitHandler() {
const auditStatus = document.getElementsByName("auditCheck")[0].checked ? 3 : 4;
......
......@@ -119,6 +119,14 @@
field: 'cityName',
title: '城市'
},
{
field: 'timeStart',
title: '演出开始时间'
},
{
field: 'timeEnd',
title: '演出结束时间'
},
{
field: 'open',
title: '总销售数量'
......
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