Compare commits
80 Commits
luckyTycoo
...
feature/i1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
97df44bcb5 | ||
![]() |
392f23caf2 | ||
![]() |
5689a44e58 | ||
![]() |
dc1f09947a | ||
![]() |
a0a017bf27 | ||
![]() |
41871b9411 | ||
![]() |
f5d5b33954 | ||
![]() |
91bd946dce | ||
![]() |
6295c139df | ||
![]() |
d1beef206a | ||
![]() |
7b85f23e43 | ||
![]() |
7d59d6beea | ||
![]() |
6bef598581 | ||
![]() |
9a9f2137b4 | ||
![]() |
aed5895a2b | ||
![]() |
7ec3410830 | ||
![]() |
ea75577799 | ||
![]() |
c94b1e559a | ||
![]() |
15e2d096c6 | ||
![]() |
3490b090f9 | ||
![]() |
107980d41a | ||
![]() |
f3f048b44d | ||
![]() |
afae64da91 | ||
![]() |
12c174e616 | ||
![]() |
817d5ed58d | ||
![]() |
d20d31ebcd | ||
![]() |
c788399c07 | ||
![]() |
23ba148fcd | ||
![]() |
2fb8a32e9d | ||
![]() |
f83f5ffe97 | ||
![]() |
7ec1b6e768 | ||
![]() |
81b9a43dac | ||
![]() |
f51abb820c | ||
![]() |
27e38f8351 | ||
![]() |
103a71061c | ||
![]() |
d375ce96e2 | ||
![]() |
c9a924d132 | ||
![]() |
a481176ec8 | ||
![]() |
fa2bb73df3 | ||
![]() |
9637ddccb1 | ||
![]() |
689f78e68d | ||
![]() |
c211cdc97f | ||
![]() |
8dfa8a216c | ||
![]() |
9f6409f249 | ||
![]() |
d5021d26ad | ||
![]() |
3fbcc8f577 | ||
![]() |
aa3f647c1c | ||
![]() |
e73038f104 | ||
![]() |
65972cce7d | ||
![]() |
7b9c36ea23 | ||
![]() |
dcb8e0269a | ||
![]() |
1b18624b7c | ||
![]() |
cb2cf4a31c | ||
![]() |
653ece7aaa | ||
![]() |
15a55e5172 | ||
![]() |
e5851a1693 | ||
![]() |
bb697939a4 | ||
![]() |
f75afa95af | ||
![]() |
18988497ab | ||
![]() |
d399fb634c | ||
![]() |
2bbd8c647d | ||
![]() |
23faa2b61e | ||
![]() |
5a64eda188 | ||
![]() |
94552bf5dd | ||
![]() |
6053edede1 | ||
![]() |
f7e706e107 | ||
![]() |
ffb4497c39 | ||
![]() |
1cdda53f1e | ||
![]() |
fd9369c254 | ||
![]() |
eaec34bf1b | ||
![]() |
2e221629a9 | ||
![]() |
332fd77b21 | ||
![]() |
53d79cc8fa | ||
![]() |
453198234c | ||
![]() |
84782a7d26 | ||
![]() |
4479cda120 | ||
![]() |
13664f4dc5 | ||
![]() |
e4abda8b8f | ||
![]() |
97bd43bd47 | ||
![]() |
f06a905c1c |
9
src/api/partition/partitionInfo.js
Normal file
9
src/api/partition/partitionInfo.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import request from '@/utils/request';
|
||||||
|
|
||||||
|
export const getPartitionInfoList = query => {
|
||||||
|
return request({
|
||||||
|
url: '/partition/listPartitionInfo',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
});
|
||||||
|
};
|
@@ -3,7 +3,7 @@
|
|||||||
<div class="pull-right hidden-xs">
|
<div class="pull-right hidden-xs">
|
||||||
<b>Version</b> 2.0.0
|
<b>Version</b> 2.0.0
|
||||||
</div>
|
</div>
|
||||||
<strong>Copyright © 2023 <a href="">触海网络</a>.</strong> All rights
|
<strong>Copyright © 2024 <a href="">触海网络</a>.</strong> All rights
|
||||||
reserved.
|
reserved.
|
||||||
</footer>
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
|
@@ -4,9 +4,9 @@
|
|||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<a class="logo">
|
<a class="logo">
|
||||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||||
<span class="logo-mini"><b>P</b>K</span>
|
<span class="logo-mini"><b>M</b>S</span>
|
||||||
<!-- logo for regular state and mobile devices -->
|
<!-- logo for regular state and mobile devices -->
|
||||||
<span class="logo-lg"><b>piko</b>管理系统</span>
|
<span class="logo-lg"><b>molistar</b>管理系统</span>
|
||||||
</a>
|
</a>
|
||||||
<!-- Header Navbar: style can be found in header.less -->
|
<!-- Header Navbar: style can be found in header.less -->
|
||||||
<nav class="navbar navbar-static-top" role="navigation">
|
<nav class="navbar navbar-static-top" role="navigation">
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
export default {
|
export default {
|
||||||
KEY: "piko",
|
KEY: "piko",
|
||||||
EXCLUDES: [
|
EXCLUDES: [
|
||||||
"/login/login.action",
|
"/login/login",
|
||||||
"/login/sendSmsCode.action",
|
"/login/sendSmsCode",
|
||||||
],
|
],
|
||||||
NEED_LOGOUT: "needLogout",
|
NEED_LOGOUT: "needLogout",
|
||||||
};
|
};
|
@@ -3,7 +3,7 @@ export const notifyNotice = () => {
|
|||||||
console.log(window.Notification.permission);
|
console.log(window.Notification.permission);
|
||||||
if (window.Notification) {
|
if (window.Notification) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/admin/dynamic/verify/notifySwitch.action",
|
url: "/admin/dynamic/verify/notifySwitch",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json == 'true') {
|
if (json == 'true') {
|
||||||
notifyInterval = setInterval(notify, 50000);
|
notifyInterval = setInterval(notify, 50000);
|
||||||
@@ -17,7 +17,7 @@ export const notifyNotice = () => {
|
|||||||
|
|
||||||
function notify() {
|
function notify() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/admin/dynamic/verify/notify.action",
|
url: "/admin/dynamic/verify/notify",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json != null && json != "" && json != undefined && json != 'undefined') {
|
if (json != null && json != "" && json != undefined && json != 'undefined') {
|
||||||
var dynamicCount = json.dynamic;
|
var dynamicCount = json.dynamic;
|
||||||
|
@@ -39,6 +39,10 @@ export function dateFormat (date, fmt) {
|
|||||||
|
|
||||||
export function buildSelectOption(id, defVal, array) {
|
export function buildSelectOption(id, defVal, array) {
|
||||||
let $select = $(id);
|
let $select = $(id);
|
||||||
|
let children = $select.children();
|
||||||
|
if (children && children.length > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for(let i in array) {
|
for(let i in array) {
|
||||||
let obj = array[i];
|
let obj = array[i];
|
||||||
let selected = false;
|
let selected = false;
|
||||||
|
@@ -213,7 +213,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/sms/list.action',
|
url: '/admin/sms/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -256,7 +256,7 @@ export default {
|
|||||||
showLoading();
|
showLoading();
|
||||||
var option = ({
|
var option = ({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/admin/sms/uploadExcel.action",
|
url: "/admin/sms/uploadExcel",
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false, //不可缺
|
contentType: false, //不可缺
|
||||||
processData: false, //不可缺
|
processData: false, //不可缺
|
||||||
@@ -310,7 +310,7 @@ export default {
|
|||||||
createTime: createTime,
|
createTime: createTime,
|
||||||
sendTime: sendTime
|
sendTime: sendTime
|
||||||
};
|
};
|
||||||
var url = "/admin/sms/query/send.action";
|
var url = "/admin/sms/query/send";
|
||||||
if (confirm("按查询条件发送最多一次可发送一万条短信!已发送过的用户不会重复发送,你确认批量发送吗?")) {
|
if (confirm("按查询条件发送最多一次可发送一万条短信!已发送过的用户不会重复发送,你确认批量发送吗?")) {
|
||||||
sendSmsByData(data, url);
|
sendSmsByData(data, url);
|
||||||
}
|
}
|
||||||
@@ -329,7 +329,7 @@ export default {
|
|||||||
var data = {
|
var data = {
|
||||||
ids: JSON.stringify(idArr)
|
ids: JSON.stringify(idArr)
|
||||||
}
|
}
|
||||||
var url = "/admin/sms/page/send.action";
|
var url = "/admin/sms/page/send";
|
||||||
if (confirm("你确认批量发送吗?")) {
|
if (confirm("你确认批量发送吗?")) {
|
||||||
sendSmsByData(data, url);
|
sendSmsByData(data, url);
|
||||||
}
|
}
|
||||||
@@ -338,7 +338,7 @@ export default {
|
|||||||
$("#table").on('click', '.opt-send', function () {
|
$("#table").on('click', '.opt-send', function () {
|
||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
var data = { recordId: id };
|
var data = { recordId: id };
|
||||||
var url = "/admin/sms/send.action";
|
var url = "/admin/sms/send";
|
||||||
if (confirm("已经发送过的短信将会重复发送,确定重复发送短信吗?")) {
|
if (confirm("已经发送过的短信将会重复发送,确定重复发送短信吗?")) {
|
||||||
sendSmsByData(data, url);
|
sendSmsByData(data, url);
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ export default {
|
|||||||
if (confirm("删除的数据将不能找回,确定删除吗?")) {
|
if (confirm("删除的数据将不能找回,确定删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/sms/del.action",
|
url: "/admin/sms/del",
|
||||||
data: { recordId: id },
|
data: { recordId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -62,7 +62,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/admin/qiniu/uploadPatch.action",
|
url: "/admin/qiniu/uploadPatch",
|
||||||
data: data,
|
data: data,
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false, //不可缺
|
contentType: false, //不可缺
|
||||||
|
195
src/views/TencentUploadAdminView.vue
Normal file
195
src/views/TencentUploadAdminView.vue
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
<template>
|
||||||
|
<section class="content">
|
||||||
|
<div class="box box-primary">
|
||||||
|
<div class="box-body">
|
||||||
|
<section class="content-header">
|
||||||
|
<h1 id="itemTitle"></h1>
|
||||||
|
</section>
|
||||||
|
<!-- .content -->
|
||||||
|
<div id="table"></div>
|
||||||
|
<div id="toolbar">
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<button id="updateImgs" class="btn btn-sm btn-primary">上传文件</button>
|
||||||
|
<h3 id="urlInfo"></h3>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class=" modal fade" id="fileUpload" tabindex="-1" role="dialog" aria-labelledby="modalLabel1">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
||||||
|
aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="modalLabel1">上传文件</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="height: 20%">
|
||||||
|
<span>上传文件</span>
|
||||||
|
<!--<input type="file" name="file" id="uploadFile">-->
|
||||||
|
<input type="file" name="logoFile1" id="logoFile1" onchange="setFiles(this);" style="display:inline;"
|
||||||
|
multiple>
|
||||||
|
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>-->
|
||||||
|
<!--<button type="button" class="btn btn-primary" id="upload">上传七牛</button>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "TencentUploadAdminView",
|
||||||
|
setup() {
|
||||||
|
|
||||||
|
function setFiles(obj) {
|
||||||
|
$("#confirmMsg").text("正在上传,请稍后");
|
||||||
|
$("#confirmModal").modal('show');
|
||||||
|
var f = $(obj).val();
|
||||||
|
if (f == null || f == undefined || f == '') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var filePaths = $(obj)[0].files;
|
||||||
|
var num = filePaths.length;
|
||||||
|
var data = new FormData();
|
||||||
|
for (var i = 0; i <= num - 1; i++) {
|
||||||
|
var file = $(obj)[0].files[i];
|
||||||
|
data.append('file_' + i, file);
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/admin/tencent/cos/uploadPatch",
|
||||||
|
data: data,
|
||||||
|
cache: false,
|
||||||
|
contentType: false, //不可缺
|
||||||
|
processData: false, //不可缺
|
||||||
|
dataType: "json",
|
||||||
|
success: function (res) {
|
||||||
|
$("#logoFile1").val("");
|
||||||
|
$("#confirmModal").modal('hide');
|
||||||
|
$("#fileUpload").modal('hide');
|
||||||
|
console.log(res)
|
||||||
|
if (res.code == 200) {
|
||||||
|
$("#tipMsg").text("上传成功");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
buildResult(res.data);
|
||||||
|
} else {
|
||||||
|
$("#tipMsg").text("上传失败.");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
window.setFiles = setFiles;
|
||||||
|
return {
|
||||||
|
setFiles
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.initData();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initData() {
|
||||||
|
$("#updateImgs").click(function () {
|
||||||
|
$("#uploadFile").val("");
|
||||||
|
$("#fileUpload").modal('show');
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#upload").click(function () {
|
||||||
|
$.ajaxFileUpload({
|
||||||
|
fileElementId: 'uploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||||
|
url: "/admin/tencent/cos/upload", //后台方法的路径
|
||||||
|
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||||
|
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||||
|
secureuri: false, //是否启用安全提交,默认为false。
|
||||||
|
async: true, //是否是异步
|
||||||
|
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||||
|
console.log(json)
|
||||||
|
if (json.flag) {
|
||||||
|
$("#urlInfo").html(json.url);
|
||||||
|
$("#tipMsg").text("上传成功");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#tipMsg").text("上传失败.");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
$("#faceJsonImgsUpload").modal('hide');
|
||||||
|
},
|
||||||
|
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||||
|
console.error(e);
|
||||||
|
$("#tipMsg").text("上传失败");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
function buildResult(data) {
|
||||||
|
var $urlInfo = $('#urlInfo');
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
|
var $p = $('<p />');
|
||||||
|
$p.html(data[i]);
|
||||||
|
$urlInfo.append($p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.bar1, .bar2 {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label.col-sm-1 {
|
||||||
|
padding: 0;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: right;
|
||||||
|
/*padding-right: 4px;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
label.col-sm-1 {
|
||||||
|
padding: 0;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: right;
|
||||||
|
/*padding-right: 4px;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
input, select {
|
||||||
|
margin-left: 8px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-wrapper {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record .title {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-group {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
font-size: 13px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opt-group .col-sm-7 {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
</style>
|
@@ -10,7 +10,7 @@
|
|||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
奖品类别:<select name="prizeType" id="prizeType" class="input-m">
|
奖品类别:<select name="prizeType" id="prizeType" class="input-m">
|
||||||
<option value="0">--全部--</option>
|
<option value="0">--全部--</option>
|
||||||
<option value="1">金币</option>
|
<option value="1">钻石</option>
|
||||||
<option value="2">线上礼物</option>
|
<option value="2">线上礼物</option>
|
||||||
<option value="3">座驾</option>
|
<option value="3">座驾</option>
|
||||||
<option value="4">头饰</option>
|
<option value="4">头饰</option>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
<div class="col-sm-8" style="padding-top:7px;">
|
<div class="col-sm-8" style="padding-top:7px;">
|
||||||
<select name="addType" id="addType" data-btn-class="btn btn-warning">
|
<select name="addType" id="addType" data-btn-class="btn btn-warning">
|
||||||
<option value="1">金币</option>
|
<option value="1">钻石</option>
|
||||||
<option value="2">线上礼物</option>
|
<option value="2">线上礼物</option>
|
||||||
<option value="3">座驾</option>
|
<option value="3">座驾</option>
|
||||||
<option value="4">头饰</option>
|
<option value="4">头饰</option>
|
||||||
@@ -179,7 +179,7 @@ export default {
|
|||||||
field: 'prizeType', title: '奖品类别', align: 'center', valign: 'middle', width: '20%', formatter: function (val, row, index) {
|
field: 'prizeType', title: '奖品类别', align: 'center', valign: 'middle', width: '20%', formatter: function (val, row, index) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case 1:
|
case 1:
|
||||||
return '金币';
|
return '钻石';
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
return '在线礼物';
|
return '在线礼物';
|
||||||
@@ -290,7 +290,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/activityAward/list.action',
|
url: '/admin/activityAward/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -655,7 +655,7 @@ export default {
|
|||||||
field: 'type', title: '奖品类型', align: 'center', width: '5%', valign: 'middle', formatter: function (val, row, index) {
|
field: 'type', title: '奖品类型', align: 'center', width: '5%', valign: 'middle', formatter: function (val, row, index) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case 1:
|
case 1:
|
||||||
return '金币';
|
return '钻石';
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
return '在线礼物';
|
return '在线礼物';
|
||||||
|
@@ -597,7 +597,7 @@ export default {
|
|||||||
var id = $(this).data('id');
|
var id = $(this).data('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/charge/activity/getById.action",
|
url: "/admin/charge/activity/getById",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -716,7 +716,7 @@ export default {
|
|||||||
$('#modal_packName').append('<option value="">请选择...</option>');
|
$('#modal_packName').append('<option value="">请选择...</option>');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/activity/pack/list.action",
|
url: "/admin/activity/pack/list",
|
||||||
data: {
|
data: {
|
||||||
status: 1
|
status: 1
|
||||||
},
|
},
|
||||||
@@ -760,7 +760,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/charge/activity/delete.action",
|
url: "/admin/charge/activity/delete",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -791,7 +791,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/activity/pack/list.action",
|
url: "/admin/activity/pack/list",
|
||||||
data: {
|
data: {
|
||||||
status: 1
|
status: 1
|
||||||
},
|
},
|
||||||
|
@@ -218,7 +218,7 @@ export default {
|
|||||||
queryParamsType: "undefined",
|
queryParamsType: "undefined",
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/luckySea/listItemGroup.action',
|
url: '/admin/luckySea/listItemGroup',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -410,7 +410,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getPageInfo() {
|
function getPageInfo() {
|
||||||
$.get('/admin/luckySea/listItem.action', {
|
$.get('/admin/luckySea/listItem', {
|
||||||
}, function (res) {
|
}, function (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const data = res;
|
const data = res;
|
||||||
|
@@ -154,7 +154,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/luckySea/listPlatformStat.action',
|
url: '/admin/luckySea/listPlatformStat',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
<i class="glyphicon glyphicon-search"></i>查询
|
<i class="glyphicon glyphicon-search"></i>查询
|
||||||
</button>
|
</button>
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
当前库存 <span name="stock" id="stock" />钻石
|
当前库存 <span name="stock" id="stock" />金币
|
||||||
<button id="editStock" class="btn btn-default">编辑库存</button>
|
<button id="editStock" class="btn btn-default">编辑库存</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
|
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 钻石
|
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 金币
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<h4 id="editStockModalFooter"></h4>
|
<h4 id="editStockModalFooter"></h4>
|
||||||
@@ -163,7 +163,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/luckySea/listActRecord.action',
|
url: '/admin/luckySea/listActRecord',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -228,7 +228,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/luckySea/listRoundDrawDetail.action',
|
url: '/admin/luckySea/listRoundDrawDetail',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#roundDetailModal").modal('show');
|
$("#roundDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
function getStock() {
|
function getStock() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/luckySea/getStock.action",
|
url: "/admin/luckySea/getStock",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success) {
|
if (json.success) {
|
||||||
console.log('data', json.data)
|
console.log('data', json.data)
|
||||||
@@ -268,7 +268,7 @@ export default {
|
|||||||
$('#editStockModelBtn').on('click', function () {
|
$('#editStockModelBtn').on('click', function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/luckySea/editStock.action",
|
url: "/admin/luckySea/editStock",
|
||||||
data: {
|
data: {
|
||||||
stock: $("#editedStock").val(),
|
stock: $("#editedStock").val(),
|
||||||
},
|
},
|
||||||
|
@@ -83,7 +83,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/luckySea/listUserDrawRecordList.action',
|
url: '/admin/luckySea/listUserDrawRecordList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -145,7 +145,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/act/operational/list.action',
|
url: '/admin/act/operational/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -176,7 +176,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/act/operational/save.action",
|
url: "/admin/act/operational/save",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -197,7 +197,7 @@ export default {
|
|||||||
var key = parseInt($(this).attr('data-id'));
|
var key = parseInt($(this).attr('data-id'));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/act/operational/del.action',
|
url: '/admin/act/operational/del',
|
||||||
data: { 'id': key },
|
data: { 'id': key },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/upload/img.action',
|
url: '/admin/upload/img',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
|
@@ -135,7 +135,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/act/static/list.action',
|
url: '/admin/act/static/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -165,7 +165,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/act/static/save.action",
|
url: "/admin/act/static/save",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -190,7 +190,7 @@ export default {
|
|||||||
var key = parseInt($(this).attr('data-id'));
|
var key = parseInt($(this).attr('data-id'));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/act/static/delete.action',
|
url: '/admin/act/static/delete',
|
||||||
data: { 'id': key },
|
data: { 'id': key },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/upload/img.action',
|
url: '/admin/upload/img',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
|
@@ -166,8 +166,14 @@ export default {
|
|||||||
field: 'charmAward', title: '魅力榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
|
field: 'charmAward', title: '魅力榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
|
||||||
var packArr = JSON.parse(val);
|
var packArr = JSON.parse(val);
|
||||||
var str = '';
|
var str = '';
|
||||||
for (var i = 0; i < packArr.length; i++) {
|
for (var i = 0, len = packArr.length; i < len; i++) {
|
||||||
str += packObj[packArr[i]] + ',';
|
let value = packObj[packArr[i]];
|
||||||
|
if (value) {
|
||||||
|
str += value;
|
||||||
|
}
|
||||||
|
if (i != len - 1) {
|
||||||
|
str += ',';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return str.substr(0, str.length - 2);
|
return str.substr(0, str.length - 2);
|
||||||
}
|
}
|
||||||
@@ -176,8 +182,14 @@ export default {
|
|||||||
field: 'levelAward', title: '豪气榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
|
field: 'levelAward', title: '豪气榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
|
||||||
var packArr = JSON.parse(val);
|
var packArr = JSON.parse(val);
|
||||||
var str = '';
|
var str = '';
|
||||||
for (var i = 0; i < packArr.length; i++) {
|
for (var i = 0, len = packArr.length; i < len; i++) {
|
||||||
str += packObj[packArr[i]] + ',';
|
let value = packObj[packArr[i]];
|
||||||
|
if (value) {
|
||||||
|
str += value;
|
||||||
|
}
|
||||||
|
if (i != len - 1) {
|
||||||
|
str += ',';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return str.substr(0, str.length - 2);
|
return str.substr(0, str.length - 2);
|
||||||
}
|
}
|
||||||
@@ -232,7 +244,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/weekStarConfig/getWeekConfigList.action',
|
url: '/admin/weekStarConfig/getWeekConfigList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -341,10 +353,15 @@ export default {
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
var str = '';
|
var str = '';
|
||||||
for (var i = 0; i < res.data.length; i++) {
|
for (var i = 0; i < res.data.length; i++) {
|
||||||
|
let item = res.data[i];
|
||||||
|
let giftName = item.giftName;
|
||||||
|
if (giftName.startsWith('{') && giftName.endsWith('}')) {
|
||||||
|
giftName = JSON.parse(giftName).zh;
|
||||||
|
}
|
||||||
// 存入对象
|
// 存入对象
|
||||||
giftObj[res.data[i].giftId] = res.data[i].giftName;
|
giftObj[res.data[i].giftId] = giftName;
|
||||||
// 渲染select
|
// 渲染select
|
||||||
str += '<option value="' + res.data[i].giftId + '">' + res.data[i].giftName + '</option>';
|
str += '<option value="' + res.data[i].giftId + '">' + giftName + '</option>';
|
||||||
}
|
}
|
||||||
console.log(JSON.stringify(giftObj));
|
console.log(JSON.stringify(giftObj));
|
||||||
// $('.giftSelect').html(str);
|
// $('.giftSelect').html(str);
|
||||||
@@ -362,10 +379,15 @@ export default {
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
var str = '';
|
var str = '';
|
||||||
for (var i = 0; i < res.data.length; i++) {
|
for (var i = 0; i < res.data.length; i++) {
|
||||||
|
let item = res.data[i];
|
||||||
|
let giftName = item.giftName;
|
||||||
|
if (giftName.startsWith('{') && giftName.endsWith('}')) {
|
||||||
|
giftName = JSON.parse(giftName).zh;
|
||||||
|
}
|
||||||
// 存入对象
|
// 存入对象
|
||||||
giftObj[res.data[i].giftId] = res.data[i].giftName;
|
giftObj[res.data[i].giftId] = giftName;
|
||||||
// 渲染select
|
// 渲染select
|
||||||
str += '<option value="' + res.data[i].giftId + '">' + res.data[i].giftName + '</option>';
|
str += '<option value="' + res.data[i].giftId + '">' + giftName + '</option>';
|
||||||
}
|
}
|
||||||
console.log(JSON.stringify(giftObj));
|
console.log(JSON.stringify(giftObj));
|
||||||
$('.giftSelect').html(str);
|
$('.giftSelect').html(str);
|
||||||
|
@@ -150,7 +150,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/super/operate/record/list.action',
|
url: '/admin/super/operate/record/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -83,7 +83,7 @@ export default {
|
|||||||
var params = "uids=" + id;
|
var params = "uids=" + id;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/super/del.action",
|
url: "/admin/super/del",
|
||||||
data: params,
|
data: params,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -114,7 +114,7 @@ export default {
|
|||||||
showLoading()
|
showLoading()
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/super/save.action",
|
url: "/admin/super/save",
|
||||||
data: 'erbanNo=' + erbanNo,
|
data: 'erbanNo=' + erbanNo,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -180,7 +180,7 @@ function initTable() {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/super/list.action',
|
url: '/admin/super/list',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
loadCreateTime(data);
|
loadCreateTime(data);
|
||||||
@@ -205,7 +205,7 @@ function loadCreateTime(data) {
|
|||||||
if (param != '') {
|
if (param != '') {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/super/get/time.action",
|
url: "/admin/super/get/time",
|
||||||
data: param,
|
data: param,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -41,8 +41,8 @@
|
|||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<span>
|
<span>
|
||||||
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
|
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
|
||||||
2.文件内容第一行为标题(例:平台号,金币,钻石)<br>
|
2.文件内容第一行为标题(例:平台号,钻石,金币)<br>
|
||||||
3.第一列为用户平台号,第二列为用户要添加的金币数量,第三列为用户要添加的钻石数量
|
3.第一列为用户平台号,第二列为用户要添加的钻石数量,第三列为用户要添加的金币数量
|
||||||
</font>
|
</font>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -167,7 +167,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
url: '/admin/anchorFansTeamAudio/recordList.action',
|
url: '/admin/anchorFansTeamAudio/recordList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
if (confirm("确定批量批量审核通过图片吗?")) {
|
if (confirm("确定批量批量审核通过图片吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/photo/batchPass.action',
|
url: '/admin/photo/batchPass',
|
||||||
data: { pid: JSON.stringify(pid) },
|
data: { pid: JSON.stringify(pid) },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -221,7 +221,7 @@ export default {
|
|||||||
// console.log(data)
|
// console.log(data)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/anchorFansTeamAudio/pass.action',
|
url: '/admin/anchorFansTeamAudio/pass',
|
||||||
data: { pid: dataId, status: 2 },
|
data: { pid: dataId, status: 2 },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -260,7 +260,7 @@ export default {
|
|||||||
if ($("#messageForm").validationEngine('validate')) {
|
if ($("#messageForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/anchorFansTeamAudio/pass.action',
|
url: '/admin/anchorFansTeamAudio/pass',
|
||||||
data: { pid: dataId, message: message, status: 1 },
|
data: { pid: dataId, message: message, status: 1 },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
@@ -261,7 +261,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/anchorFansPrivilege/privilegeList.action',
|
url: '/admin/anchorFansPrivilege/privilegeList',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
@@ -322,7 +322,7 @@ export default {
|
|||||||
console.log(2333)
|
console.log(2333)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/anchorFansPrivilege/savePrivilege.action",
|
url: "/admin/anchorFansPrivilege/savePrivilege",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -361,7 +361,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/anchorFansPrivilege/getPrivilegeInfo.action",
|
url: "/admin/anchorFansPrivilege/getPrivilegeInfo",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
@@ -127,7 +127,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
uniqueId: 'uid',
|
uniqueId: 'uid',
|
||||||
url: '/admin/anchorFansTeam/statis/statisList.action',
|
url: '/admin/anchorFansTeam/statis/statisList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -184,7 +184,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/anchorFansTeam/statis/team/DetailList.action',
|
url: '/admin/anchorFansTeam/statis/team/DetailList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#roundDetailModal").modal('show');
|
$("#roundDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
|
@@ -65,8 +65,8 @@
|
|||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<span>
|
<span>
|
||||||
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
|
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
|
||||||
2.文件内容第一行为标题(例:平台号,金币,钻石)<br>
|
2.文件内容第一行为标题(例:平台号,钻石,金币)<br>
|
||||||
3.第一列为用户平台号,第二列为用户要添加的金币数量,第三列为用户要添加的钻石数量
|
3.第一列为用户平台号,第二列为用户要添加的钻石数量,第三列为用户要添加的金币数量
|
||||||
</font>
|
</font>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,8 +107,8 @@ export default {
|
|||||||
// {field: 'temp', title: 'id', align: 'center', checkbox: true, width: '5%'},
|
// {field: 'temp', title: 'id', align: 'center', checkbox: true, width: '5%'},
|
||||||
{ field: 'erbanNo', title: '平台号', align: 'center', width: '5%' },
|
{ field: 'erbanNo', title: '平台号', align: 'center', width: '5%' },
|
||||||
{ field: 'nick', title: '昵称', align: 'center', width: '5%' },
|
{ field: 'nick', title: '昵称', align: 'center', width: '5%' },
|
||||||
{ field: 'goldNum', title: '金币数量', align: 'center', width: '5%' },
|
{ field: 'goldNum', title: '钻石数量', align: 'center', width: '5%' },
|
||||||
{ field: 'diamondNum', title: '钻石数量', align: 'center', width: '5%' },
|
{ field: 'diamondNum', title: '金币数量', align: 'center', width: '5%' },
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -234,7 +234,7 @@ export default {
|
|||||||
if (confirm("删除的数据将不能找回,确定删除吗?")) {
|
if (confirm("删除的数据将不能找回,确定删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/sms/del.action",
|
url: "/admin/sms/del",
|
||||||
data: { recordId: id },
|
data: { recordId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -415,7 +415,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/bottomBar/list.action',
|
url: '/admin/bottomBar/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
@@ -544,7 +544,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/bottomBar/saveBottomBar.action",
|
url: "/admin/bottomBar/saveBottomBar",
|
||||||
data: {
|
data: {
|
||||||
refSeq: refSeq,
|
refSeq: refSeq,
|
||||||
configName: configName,
|
configName: configName,
|
||||||
@@ -594,7 +594,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/bottomBar/getBarByRefSeq.action",
|
url: "/admin/bottomBar/getBarByRefSeq",
|
||||||
data: { refSeq: refSeq },
|
data: { refSeq: refSeq },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -671,7 +671,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/bottomBar/deleteByRefSeq.action",
|
url: "/admin/bottomBar/deleteByRefSeq",
|
||||||
data: { refSeq: refSeq },
|
data: { refSeq: refSeq },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -266,7 +266,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/appUpdate/list.action',
|
url: '/admin/appUpdate/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
@@ -310,7 +310,7 @@ export default {
|
|||||||
if ($("#addModalForm").validationEngine('validate')) {
|
if ($("#addModalForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/appUpdate/save.action",
|
url: "/admin/appUpdate/save",
|
||||||
data: {
|
data: {
|
||||||
name: $("#modal_name").val(),
|
name: $("#modal_name").val(),
|
||||||
forceUpdate: $("#modal_forceUpdate").val(),
|
forceUpdate: $("#modal_forceUpdate").val(),
|
||||||
@@ -347,7 +347,7 @@ export default {
|
|||||||
if ($("#editForm").validationEngine('validate')) {
|
if ($("#editForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/appUpdate/save.action",
|
url: "/admin/appUpdate/save",
|
||||||
data: {
|
data: {
|
||||||
id: $("#id").val(),
|
id: $("#id").val(),
|
||||||
name: $("#name").val(),
|
name: $("#name").val(),
|
||||||
@@ -386,7 +386,7 @@ export default {
|
|||||||
console.log(id);
|
console.log(id);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/appUpdate/get.action",
|
url: "/admin/appUpdate/get",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (ret) {
|
success: function (ret) {
|
||||||
|
@@ -163,7 +163,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/audioCard/page.action',
|
url: '/admin/audioCard/page',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -221,7 +221,7 @@ export default {
|
|||||||
showLoading();
|
showLoading();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/audioCard/verify.action",
|
url: "/admin/audioCard/verify",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
status: status
|
status: status
|
||||||
|
@@ -382,7 +382,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/audit/audio/list.action',
|
url: '/admin/audit/audio/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -405,7 +405,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/audit/audio/handle/pass.action",
|
url: "/admin/audit/audio/handle/pass",
|
||||||
data: { recordId: id },
|
data: { recordId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -425,7 +425,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/audit/audio/handle/unBlock.action",
|
url: "/admin/audit/audio/handle/unBlock",
|
||||||
data: { recordId: id },
|
data: { recordId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -474,7 +474,7 @@ export default {
|
|||||||
if ($("#modalLabel").validationEngine('validate')) {
|
if ($("#modalLabel").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/audit/audio/handle/reject.action",
|
url: "/admin/audit/audio/handle/reject",
|
||||||
data: {
|
data: {
|
||||||
recordId: recordId,
|
recordId: recordId,
|
||||||
resultValue: resultValue,
|
resultValue: resultValue,
|
||||||
@@ -508,7 +508,7 @@ export default {
|
|||||||
if ($("#blockModalLabel").validationEngine('validate')) {
|
if ($("#blockModalLabel").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/audit/audio/handle/reject.action",
|
url: "/admin/audit/audio/handle/reject",
|
||||||
data: {
|
data: {
|
||||||
recordId: recordId,
|
recordId: recordId,
|
||||||
resultValue: resultValue
|
resultValue: resultValue
|
||||||
|
@@ -92,7 +92,7 @@ export default {
|
|||||||
function getRuleDetail() {
|
function getRuleDetail() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/audit/audio/get/rule.action",
|
url: "/admin/audit/audio/get/rule",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
showLoading();
|
showLoading();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/audit/audio/rule/save.action",
|
url: "/admin/audit/audio/rule/save",
|
||||||
data: {
|
data: {
|
||||||
type: type,
|
type: type,
|
||||||
erbanNos: $("#erbanNos").val()
|
erbanNos: $("#erbanNos").val()
|
||||||
|
@@ -220,7 +220,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/blindDate/listCap.action',
|
url: '/admin/blindDate/listCap',
|
||||||
onLoadSuccess: function (res) { //加载成功时执行
|
onLoadSuccess: function (res) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -280,7 +280,7 @@ export default {
|
|||||||
console.log("id", $("#e_id").val());
|
console.log("id", $("#e_id").val());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/blindDate/addOrUpdateCap.action",
|
url: "/admin/blindDate/addOrUpdateCap",
|
||||||
data: $('#updateForm').serialize(),
|
data: $('#updateForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -305,7 +305,7 @@ export default {
|
|||||||
if (confirm("你确认删除该帽子吗?")) {
|
if (confirm("你确认删除该帽子吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/blindDate/delCap.action",
|
url: "/admin/blindDate/delCap",
|
||||||
data: {
|
data: {
|
||||||
id: capId,
|
id: capId,
|
||||||
},
|
},
|
||||||
@@ -326,7 +326,7 @@ export default {
|
|||||||
$("#add-cap").click(function () {
|
$("#add-cap").click(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/blindDate/addOrUpdateCap.action",
|
url: "/admin/blindDate/addOrUpdateCap",
|
||||||
data: $('#addForm').serialize(),
|
data: $('#addForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -256,7 +256,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/blindDate/listJoinHand.action',
|
url: '/admin/blindDate/listJoinHand',
|
||||||
onLoadSuccess: function (res) { //加载成功时执行
|
onLoadSuccess: function (res) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -333,7 +333,7 @@ export default {
|
|||||||
console.log("id", $("#e_id").val());
|
console.log("id", $("#e_id").val());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
url: "/admin/blindDate/addOrUpdateJoinHand",
|
||||||
data: $('#updateForm').serialize(),
|
data: $('#updateForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
if (confirm("你确认删除该场景吗?")) {
|
if (confirm("你确认删除该场景吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/blindDate/delJoinHand.action",
|
url: "/admin/blindDate/delJoinHand",
|
||||||
data: {
|
data: {
|
||||||
id: JoinHandId,
|
id: JoinHandId,
|
||||||
},
|
},
|
||||||
@@ -379,7 +379,7 @@ export default {
|
|||||||
$("#add-JoinHand").click(function () {
|
$("#add-JoinHand").click(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
url: "/admin/blindDate/addOrUpdateJoinHand",
|
||||||
data: $('#addForm').serialize(),
|
data: $('#addForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -265,7 +265,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getPageInfo() {
|
function getPageInfo() {
|
||||||
$.get('/admin/callBattle/listItem.action', {
|
$.get('/admin/callBattle/listItem', {
|
||||||
}, function (res) {
|
}, function (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const data = res;
|
const data = res;
|
||||||
|
@@ -108,7 +108,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/callBattle/listPlatformStat.action',
|
url: '/admin/callBattle/listPlatformStat',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
<i class="glyphicon glyphicon-search"></i>查询
|
<i class="glyphicon glyphicon-search"></i>查询
|
||||||
</button>
|
</button>
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
当前库存 <span name="stock" id="stock" />金币
|
当前库存 <span name="stock" id="stock" />钻石
|
||||||
<button id="editStock" class="btn btn-default">编辑库存</button>
|
<button id="editStock" class="btn btn-default">编辑库存</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
|
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 金币
|
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 钻石
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<h4 id="editStockModalFooter"></h4>
|
<h4 id="editStockModalFooter"></h4>
|
||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/callBattle/listActRecord.action',
|
url: '/admin/callBattle/listActRecord',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -229,7 +229,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/callBattle/listRoundDrawDetail.action',
|
url: '/admin/callBattle/listRoundDrawDetail',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#roundDetailModal").modal('show');
|
$("#roundDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
@@ -248,7 +248,7 @@ export default {
|
|||||||
function getStock() {
|
function getStock() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/callBattle/getStock.action",
|
url: "/admin/callBattle/getStock",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success) {
|
if (json.success) {
|
||||||
console.log('data', json.data)
|
console.log('data', json.data)
|
||||||
@@ -269,7 +269,7 @@ export default {
|
|||||||
$('#editStockModelBtn').on('click', function () {
|
$('#editStockModelBtn').on('click', function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/callBattle/editStock.action",
|
url: "/admin/callBattle/editStock",
|
||||||
data: {
|
data: {
|
||||||
stock: $("#editedStock").val(),
|
stock: $("#editedStock").val(),
|
||||||
},
|
},
|
||||||
|
@@ -83,7 +83,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/callBattle/listUserDrawRecordList.action',
|
url: '/admin/callBattle/listUserDrawRecordList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -168,7 +168,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/car/getUserCarPort.action',
|
url: '/admin/car/getUserCarPort',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
if (data.users) {
|
if (data.users) {
|
||||||
var $user = $('#userMessage');
|
var $user = $('#userMessage');
|
||||||
|
@@ -33,7 +33,12 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<select name="partitionId" id="partitionId" class="form-control"></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<button id="car-goods-refresh" class="btn btn-default">
|
<button id="car-goods-refresh" class="btn btn-default">
|
||||||
<i class="glyphicon glyphicon-search"></i>查询
|
<i class="glyphicon glyphicon-search"></i>查询
|
||||||
@@ -59,6 +64,14 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="carGoodsForm">
|
<form class="form-horizontal" id="carGoodsForm">
|
||||||
<input type="hidden" name="id" id="id" />
|
<input type="hidden" name="id" id="id" />
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="partitionFlag" class="col-sm-4 control-label">选择分区</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="checkbox" name="partitionFlag" value="1"/>英语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="2"/>阿拉伯语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="4"/>华语区<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="carGoodsType" class="col-sm-3 control-label">座驾类型:</label>
|
<label for="carGoodsType" class="col-sm-3 control-label">座驾类型:</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
@@ -76,6 +89,18 @@
|
|||||||
<input type="text" class="form-control validate[required]" name="name" id="name">
|
<input type="text" class="form-control validate[required]" name="name" id="name">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="ar_name" class="col-sm-3 control-label">阿语座驾名称</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control validate[required]" name="name" id="ar_name">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="en_name" class="col-sm-3 control-label">英语座驾名称</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control validate[required]" name="name" id="en_name">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">使用萝卜购买</label>
|
<label class="col-sm-3 control-label">使用萝卜购买</label>
|
||||||
@@ -111,7 +136,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">使用金币购买</label>
|
<label class="col-sm-3 control-label">使用钻石购买</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<label class="radio-inline"><input type="radio" name="goldSale" value="0">否</label>
|
<label class="radio-inline"><input type="radio" name="goldSale" value="0">否</label>
|
||||||
<label class="radio-inline"><input type="radio" name="goldSale" value="1" checked>是</label>
|
<label class="radio-inline"><input type="radio" name="goldSale" value="1" checked>是</label>
|
||||||
@@ -122,7 +147,7 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="text" class="form-control" name="price" id="price">
|
<input type="text" class="form-control" name="price" id="price">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -130,7 +155,7 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="text" class="form-control" name="renewPrice" id="renewPrice">
|
<input type="text" class="form-control" name="renewPrice" id="renewPrice">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="originalPrice" class="col-sm-3 control-label">原价:</label>
|
<label for="originalPrice" class="col-sm-3 control-label">原价:</label>
|
||||||
@@ -138,7 +163,7 @@
|
|||||||
<input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice"
|
<input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice"
|
||||||
id="originalPrice">
|
id="originalPrice">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -374,6 +399,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
import ComboboxHelper from '@/assets/plugins/bootstrap-combobox/js/bootstrap-combobox-helper';
|
import ComboboxHelper from '@/assets/plugins/bootstrap-combobox/js/bootstrap-combobox-helper';
|
||||||
|
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
||||||
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CarGoodsAdminView",
|
name: "CarGoodsAdminView",
|
||||||
@@ -382,6 +409,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.initPartition();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -407,7 +435,28 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'tmp', title: 'id', align: 'center', checkbox: true, width: '5%' },
|
{ field: 'tmp', title: 'id', align: 'center', checkbox: true, width: '5%' },
|
||||||
{ field: 'id', title: '座驾ID', align: 'center', width: '5%' },
|
{ field: 'id', title: '座驾ID', align: 'center', width: '5%' },
|
||||||
{ field: 'name', title: '座驾名称', align: 'center', width: '20%' },
|
{field: 'name.zh', title: '座驾名称', align: 'center', width: '20%'},
|
||||||
|
{field: 'name.ar', title: '阿语座驾名称', align: 'center', width: '20%'},
|
||||||
|
{field: 'name.en', title: '英语座驾名称', align: 'center', width: '20%'},
|
||||||
|
{
|
||||||
|
field: 'partitionFlag',
|
||||||
|
title: '地区',
|
||||||
|
align: 'center',
|
||||||
|
width: '10%',
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
let value = '';
|
||||||
|
if ((val & 1) != 0) {
|
||||||
|
value += '英语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 2) != 0) {
|
||||||
|
value += '阿拉伯语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 4) != 0) {
|
||||||
|
value += '华语区<br>';
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'carGoodsType', title: '座驾类型', align: 'center', width: '20%',
|
field: 'carGoodsType', title: '座驾类型', align: 'center', width: '20%',
|
||||||
formatter: function (val) {
|
formatter: function (val) {
|
||||||
@@ -420,7 +469,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'goldSale',
|
field: 'goldSale',
|
||||||
title: '金币购买',
|
title: '钻石购买',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '3%',
|
width: '3%',
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
@@ -448,9 +497,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'originalPrice', title: '原价(金币)', align: 'center', width: '5%' },
|
{ field: 'originalPrice', title: '原价(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'price', title: '购买价格(金币)', align: 'center', width: '5%' },
|
{ field: 'price', title: '购买价格(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'renewPrice', title: '续费价格(金币)', align: 'center', width: '5%' },
|
{ field: 'renewPrice', title: '续费价格(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' },
|
||||||
@@ -523,12 +572,43 @@ export default {
|
|||||||
searchText: params.searchText,
|
searchText: params.searchText,
|
||||||
carGoodsName: $("#query_carGoodsName").val(),
|
carGoodsName: $("#query_carGoodsName").val(),
|
||||||
carGoodsType: $("#query_carGoodsType").val(),
|
carGoodsType: $("#query_carGoodsType").val(),
|
||||||
enable: $("condition_type").val()
|
enable: $("condition_type").val(),
|
||||||
|
partitionId: $('#partitionId').val(),
|
||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
|
ajax:function(request){ //使用ajax请求
|
||||||
|
$.ajax({
|
||||||
|
type:"GET",
|
||||||
|
url:'/admin/car/goods?enable=' + ComboboxHelper.getSelected("#condition_type"),
|
||||||
|
contentType:'application/json;charset=utf-8',
|
||||||
|
dataType:'json',
|
||||||
|
data: request.data,
|
||||||
|
success:function (res) {
|
||||||
|
console.log(res);
|
||||||
|
request.success({
|
||||||
|
"rows": res.rows.map(i=>{
|
||||||
|
let value = i.name;
|
||||||
|
if (value.startsWith('{') && value.endsWith('}')) {
|
||||||
|
i.name = JSON.parse(value);
|
||||||
|
} else {
|
||||||
|
i.name = {
|
||||||
|
zh: value,
|
||||||
|
ar: value,
|
||||||
|
en: value,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}),
|
||||||
|
"total": res.total
|
||||||
|
});
|
||||||
|
},
|
||||||
|
error:function(error){
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/car/goods.action',
|
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -547,7 +627,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/car/goods/deletion.action",
|
url: "/admin/car/goods/deletion",
|
||||||
data: {'ids': JSON.stringify([id])},
|
data: {'ids': JSON.stringify([id])},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -581,7 +661,12 @@ export default {
|
|||||||
$("#viewFileInfo").html('');
|
$("#viewFileInfo").html('');
|
||||||
|
|
||||||
$("#id").val('');
|
$("#id").val('');
|
||||||
|
$('#name').val('');
|
||||||
|
$('#ar_name').val('');
|
||||||
|
$('#en_name').val('');
|
||||||
$("#name").attr('readonly', false);
|
$("#name").attr('readonly', false);
|
||||||
|
$("#ar_name").attr('readonly', false);
|
||||||
|
$("#en_name").attr('readonly', false);
|
||||||
// $("#price").attr('readonly', false);
|
// $("#price").attr('readonly', false);
|
||||||
// $("#renewPrice").attr('readonly', false);
|
// $("#renewPrice").attr('readonly', false);
|
||||||
$("#seq").val('');
|
$("#seq").val('');
|
||||||
@@ -602,7 +687,10 @@ export default {
|
|||||||
$("input:radio[name='isMonsterLimit']")[0].checked = true;
|
$("input:radio[name='isMonsterLimit']")[0].checked = true;
|
||||||
$("input:radio[name='isWeekStarLimit']")[0].checked = true;
|
$("input:radio[name='isWeekStarLimit']")[0].checked = true;
|
||||||
$("input:radio[name='isActivityLimit']")[0].checked = true;
|
$("input:radio[name='isActivityLimit']")[0].checked = true;
|
||||||
|
|
||||||
|
$('input[name="partitionFlag"]').each(function() {
|
||||||
|
$(this).checked = false;
|
||||||
|
});
|
||||||
$("#nobleId").btComboBox('disable');
|
$("#nobleId").btComboBox('disable');
|
||||||
ComboboxHelper.setDef("#nobleId", '0');
|
ComboboxHelper.setDef("#nobleId", '0');
|
||||||
|
|
||||||
@@ -620,7 +708,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
$("#car-goods-refresh").click(function () {
|
$("#car-goods-refresh").click(function () {
|
||||||
$("#table").bootstrapTable('refresh', { url: '/admin/car/goods.action' });
|
$("#table").bootstrapTable('refresh', { url: '/admin/car/goods' });
|
||||||
})
|
})
|
||||||
|
|
||||||
/*$("#car-goods-multiDel").click(function () {
|
/*$("#car-goods-multiDel").click(function () {
|
||||||
@@ -639,7 +727,7 @@ export default {
|
|||||||
if (confirm("你确认批量删除该记录吗?" + "\r\n删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认批量删除该记录吗?" + "\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/car/goods/deletion.action",
|
url: "/admin/car/goods/deletion",
|
||||||
data: {'ids': JSON.stringify(idArr)},
|
data: {'ids': JSON.stringify(idArr)},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -756,7 +844,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/car/goods/" + id + ".action",
|
url: "/admin/car/goods/" + id + "",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -770,7 +858,18 @@ export default {
|
|||||||
// $("#price").val(json.entity.price);
|
// $("#price").val(json.entity.price);
|
||||||
// $("#renewPrice").val(json.entity.renewPrice);
|
// $("#renewPrice").val(json.entity.renewPrice);
|
||||||
$("#days").val(json.entity.days);
|
$("#days").val(json.entity.days);
|
||||||
$("#name").val(json.entity.name);
|
console.log(json.entity.name)
|
||||||
|
let name = json.entity.name;
|
||||||
|
if (name.startsWith('{') && name.endsWith('}')) {
|
||||||
|
var jsonName = JSON.parse(json.entity.name);
|
||||||
|
$("#name").val(jsonName.zh);
|
||||||
|
$("#ar_name").val(jsonName.ar);
|
||||||
|
$("#en_name").val(jsonName.en);
|
||||||
|
} else {
|
||||||
|
$("#name").val(name);
|
||||||
|
$("#ar_name").val(name);
|
||||||
|
$("#en_name").val(name);
|
||||||
|
}
|
||||||
$("#price").val(json.entity.price);
|
$("#price").val(json.entity.price);
|
||||||
$("#renewPrice").val(json.entity.renewPrice);
|
$("#renewPrice").val(json.entity.renewPrice);
|
||||||
$("#seq").val(json.entity.seq);
|
$("#seq").val(json.entity.seq);
|
||||||
@@ -881,6 +980,24 @@ export default {
|
|||||||
$("#viewFileInfo").html('未上传');
|
$("#viewFileInfo").html('未上传');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//分区
|
||||||
|
let partitionFlag = json.entity.partitionFlag;
|
||||||
|
if ((partitionFlag & 1) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 2) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 4) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 打开编辑弹窗
|
// 打开编辑弹窗
|
||||||
$("#cardGoodsModal").modal('show');
|
$("#cardGoodsModal").modal('show');
|
||||||
} else {
|
} else {
|
||||||
@@ -916,7 +1033,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) {
|
if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) {
|
||||||
$("#tipMsg").text("请填写完整金币价格");
|
$("#tipMsg").text("请填写完整钻石价格");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
} else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) {
|
} else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) {
|
||||||
@@ -949,18 +1066,46 @@ export default {
|
|||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// 获取序列化字符串并转换为对象
|
||||||
|
let formData = $('#carGoodsForm').serializeArray().reduce(function(obj, item) {
|
||||||
|
obj[item.name] = item.value;
|
||||||
|
return obj;
|
||||||
|
}, {});
|
||||||
|
|
||||||
|
var name = $("#name").val();
|
||||||
|
// 阿语名称
|
||||||
|
var ar_name = $("#ar_name").val();
|
||||||
|
// 英语名称
|
||||||
|
var en_name = $("#en_name").val();
|
||||||
|
// 国际化字段
|
||||||
|
var jsonName = {"zh":name,"ar":ar_name,"en":en_name}
|
||||||
|
const nameValue = JSON.stringify(jsonName);
|
||||||
|
// 修改属性值
|
||||||
|
formData.name = nameValue; // 将giftName修改为"newGiftName"
|
||||||
|
//分区
|
||||||
|
const partitionFlagArray = $("input:checkbox[name='partitionFlag']:checked").serializeArray();
|
||||||
|
let partitionFlag = 0;
|
||||||
|
for (let i = 0, len = partitionFlagArray.length; i < len; i++) {
|
||||||
|
console.log(partitionFlagArray[i]);
|
||||||
|
partitionFlag |= partitionFlagArray[i].value;
|
||||||
|
}
|
||||||
|
formData.partitionFlag = partitionFlag;
|
||||||
|
// 将修改后的对象转换回序列化字符串
|
||||||
|
let newSerializeStr = $.param(formData);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/car/goods.action",
|
url: "/admin/car/goods",
|
||||||
data: $('#carGoodsForm').serialize(),
|
data: newSerializeStr,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success == 'true') {
|
if (json.code == 200) {
|
||||||
$("#carGoodsModal").modal('hide');
|
$("#carGoodsModal").modal('hide');
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
TableHelper.doRefresh("#table");
|
setTimeout(function() {
|
||||||
$("#cardGoodsModal").modal('hide');
|
TableHelper.doRefresh("#table");
|
||||||
|
$("#cardGoodsModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -1033,9 +1178,26 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
initPartition() {
|
||||||
|
getPartitionInfoList().then(res => {
|
||||||
|
let data = res.data;
|
||||||
|
buildSelectOption(
|
||||||
|
"#partitionId",
|
||||||
|
null,
|
||||||
|
[{
|
||||||
|
value: '',
|
||||||
|
text: '全部',
|
||||||
|
}].concat(data.map((v) => {
|
||||||
|
return {
|
||||||
|
value: v.id,
|
||||||
|
text: v.desc,
|
||||||
|
};
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -81,7 +81,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/carRecord/list.action',
|
url: '/admin/carRecord/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
|
@@ -59,7 +59,7 @@ export default {
|
|||||||
{ field: 'createTime', title: '日期', align: 'center', width: '5%' },
|
{ field: 'createTime', title: '日期', align: 'center', width: '5%' },
|
||||||
{ field: 'carId', title: '座驾ID', align: 'center', width: '5%' },
|
{ field: 'carId', title: '座驾ID', align: 'center', width: '5%' },
|
||||||
{ field: 'carName', title: '座驾名称', align: 'center', width: '5%' },
|
{ field: 'carName', title: '座驾名称', align: 'center', width: '5%' },
|
||||||
{ field: 'carPrice', title: '座驾金额(金币)', align: 'center', width: '5%' },
|
{ field: 'carPrice', title: '座驾金额(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'carRadishPrice', title: '座驾金额(萝卜)', align: 'center', width: '5%' },
|
{ field: 'carRadishPrice', title: '座驾金额(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'carStatus', title: '座驾状态', align: 'center', width: '5%' },
|
{ field: 'carStatus', title: '座驾状态', align: 'center', width: '5%' },
|
||||||
{ field: 'receivedCarNum', title: '用户收到数量', align: 'center', width: '5%' },
|
{ field: 'receivedCarNum', title: '用户收到数量', align: 'center', width: '5%' },
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/car/statisticsCar.action',
|
url: '/admin/car/statisticsCar',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -230,7 +230,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/channel/content/queryList.action',
|
url: '/admin/channel/content/queryList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -367,7 +367,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/channel/content/saveChannelContent.action",
|
url: "/admin/channel/content/saveChannelContent",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
channel: channel,
|
channel: channel,
|
||||||
@@ -409,7 +409,7 @@ export default {
|
|||||||
var id = $(this).data('id');
|
var id = $(this).data('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/channel/content/getChannelContent.action",
|
url: "/admin/channel/content/getChannelContent",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (ret) {
|
success: function (ret) {
|
||||||
@@ -450,7 +450,7 @@ export default {
|
|||||||
var status = $(this).data('status');
|
var status = $(this).data('status');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/channel/content/toggleState.action",
|
url: "/admin/channel/content/toggleState",
|
||||||
data: { id: id, status: status },
|
data: { id: id, status: status },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (ret) {
|
success: function (ret) {
|
||||||
|
@@ -372,7 +372,7 @@ export default {
|
|||||||
if (row.chargeProds) {
|
if (row.chargeProds) {
|
||||||
for (let i = 0, len = row.chargeProds.length; i < len; i++) {
|
for (let i = 0, len = row.chargeProds.length; i < len; i++) {
|
||||||
var chargeProd = row.chargeProds[i];
|
var chargeProd = row.chargeProds[i];
|
||||||
value += currency + ':' + (chargeProd.money / 100) + '手续费 ' + chargeProd.handlingRate + '% 到账钻石:' + chargeProd.chargeGoldNum + '<br/>';
|
value += currency + ':' + (chargeProd.money / 100) + '手续费 ' + chargeProd.handlingRate + '% 到账金币:' + chargeProd.chargeGoldNum + '<br/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
@@ -549,9 +549,9 @@ export default {
|
|||||||
$select.append($option);
|
$select.append($option);
|
||||||
}
|
}
|
||||||
$div.append($select);
|
$div.append($select);
|
||||||
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账钻石:<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账金币:<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
||||||
} else {
|
} else {
|
||||||
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" value="' + amount + '" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账钻石:<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" value="' + amount + '" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账金币:<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
||||||
}
|
}
|
||||||
$formGroup.append($div);
|
$formGroup.append($div);
|
||||||
$form.append($formGroup);
|
$form.append($formGroup);
|
||||||
@@ -586,9 +586,9 @@ export default {
|
|||||||
$select.append($option);
|
$select.append($option);
|
||||||
}
|
}
|
||||||
$div.append($select);
|
$div.append($select);
|
||||||
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账钻石:<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账金币:<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
||||||
} else {
|
} else {
|
||||||
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账钻石:<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账金币:<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
|
||||||
}
|
}
|
||||||
$formGroup.append($div);
|
$formGroup.append($div);
|
||||||
$form.append($formGroup);
|
$form.append($formGroup);
|
||||||
|
@@ -73,7 +73,7 @@
|
|||||||
<option value="2">铭牌</option>
|
<option value="2">铭牌</option>
|
||||||
<option value="3">座驾</option>
|
<option value="3">座驾</option>
|
||||||
<option value="4">头饰</option>
|
<option value="4">头饰</option>
|
||||||
<option value="5">额外钻石</option>
|
<option value="5">额外金币</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
<label for="modal_rewardNum" class="col-sm-3 control-label">奖励个数:</label>
|
<label for="modal_rewardNum" class="col-sm-3 control-label">奖励个数:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input type="text" class="form-control validate[required,custom[integer]]" name="rewardNum"
|
<input type="text" class="form-control validate[required,custom[integer]]" name="rewardNum"
|
||||||
id="modal_rewardNum" placeholder="礼物、额外钻石输入个数">
|
id="modal_rewardNum" placeholder="礼物、额外金币输入个数">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -260,7 +260,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/first/charge/reward/list.action',
|
url: '/admin/first/charge/reward/list',
|
||||||
onLoadSuccess: function (res) {
|
onLoadSuccess: function (res) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
$('.giveShowPrice').text(res.giveShowPrice);
|
$('.giveShowPrice').text(res.giveShowPrice);
|
||||||
@@ -290,7 +290,7 @@ export default {
|
|||||||
var id = $(this).data('id');
|
var id = $(this).data('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/first/charge/reward/getId.action",
|
url: "/admin/first/charge/reward/getId",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/first/charge/reward/delete.action",
|
url: "/admin/first/charge/reward/delete",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -114,7 +114,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/first/charge/reward/statistics.action',
|
url: '/admin/first/charge/reward/statistics',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/first/charge/reward/record.action',
|
url: '/admin/first/charge/reward/record',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#roundDetailModal").modal('show');
|
$("#roundDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
function getStock() {
|
function getStock() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/luckySea/getStock.action",
|
url: "/admin/luckySea/getStock",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success) {
|
if (json.success) {
|
||||||
console.log('data', json.data)
|
console.log('data', json.data)
|
||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
$('#editStockModelBtn').on('click', function () {
|
$('#editStockModelBtn').on('click', function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/luckySea/editStock.action",
|
url: "/admin/luckySea/editStock",
|
||||||
data: {
|
data: {
|
||||||
stock: $("#editedStock").val(),
|
stock: $("#editedStock").val(),
|
||||||
},
|
},
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="amount" class="col-sm-3 control-label">金币大小:</label>
|
<label for="amount" class="col-sm-3 control-label">钻石大小:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input type="text" class="form-control validate[required]" name="amount"
|
<input type="text" class="form-control validate[required]" name="amount"
|
||||||
id="amount" value=10>
|
id="amount" value=10>
|
||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
{
|
{
|
||||||
field: 'amount', title: '金额', align: 'center', width: '10%',
|
field: 'amount', title: '金额', align: 'center', width: '10%',
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
return val + "金币";
|
return val + "钻石";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -154,7 +154,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/redeemcode/getlist.action',
|
url: '/admin/redeemcode/getlist',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -176,7 +176,7 @@ export default {
|
|||||||
if ($("#roleForm").validationEngine('validate')) {
|
if ($("#roleForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/redeemcode/gener.action",
|
url: "/admin/redeemcode/gener",
|
||||||
data: $('#roleForm').serialize(),
|
data: $('#roleForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -23,7 +23,11 @@
|
|||||||
|
|
||||||
<label for="name" class="col-sm-1 control-label">气泡名称:</label>
|
<label for="name" class="col-sm-1 control-label">气泡名称:</label>
|
||||||
<div class="col-sm-2"><input type="text" class="form-control" name="name" id="name"></div>
|
<div class="col-sm-2"><input type="text" class="form-control" name="name" id="name"></div>
|
||||||
|
|
||||||
|
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select name="partitionId" id="partitionId" class="form-control"></select>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -53,6 +57,14 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="addForm">
|
<form class="form-horizontal" id="addForm">
|
||||||
<input type="hidden" name="id" id="modal_id" />
|
<input type="hidden" name="id" id="modal_id" />
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="partitionFlag" class="col-sm-4 control-label">选择分区</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="checkbox" name="partitionFlag" value="1"/>英语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="2"/>阿拉伯语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="4"/>华语区<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="modal_type" class="col-sm-4 control-label">装扮类型:</label>
|
<label for="modal_type" class="col-sm-4 control-label">装扮类型:</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
@@ -69,6 +81,18 @@
|
|||||||
placeholder="请输入气泡名称">
|
placeholder="请输入气泡名称">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="ar_modal_name" class="col-sm-4 control-label">阿语装扮名称:</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="text" class="form-control validate[required]" name="name" id="ar_modal_name" placeholder="请输入气泡名称">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="en_modal_name" class="col-sm-4 control-label">英语装扮名称:</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="text" class="form-control validate[required]" name="name" id="en_modal_name" placeholder="请输入气泡名称">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label">安卓图片:</label>
|
<label class="col-sm-4 control-label">安卓图片:</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
@@ -155,6 +179,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
|
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
||||||
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ChatbubbleManageView",
|
name: "ChatbubbleManageView",
|
||||||
@@ -163,6 +189,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.initPartition();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -173,7 +200,28 @@ export default {
|
|||||||
$('#table').bootstrapTable({
|
$('#table').bootstrapTable({
|
||||||
columns: [
|
columns: [
|
||||||
{ field: 'id', title: '装扮id', align: 'middle', width: '5%' },
|
{ field: 'id', title: '装扮id', align: 'middle', width: '5%' },
|
||||||
{ field: 'name', title: '装扮名称', align: 'middle', width: '5%' },
|
{
|
||||||
|
field: 'partitionFlag',
|
||||||
|
title: '地区',
|
||||||
|
align: 'center',
|
||||||
|
width: '10%',
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
let value = '';
|
||||||
|
if ((val & 1) != 0) {
|
||||||
|
value += '英语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 2) != 0) {
|
||||||
|
value += '阿拉伯语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 4) != 0) {
|
||||||
|
value += '华语区<br>';
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{field: 'name.zh', title: '装扮名称', align: 'middle', width: '5%'},
|
||||||
|
{field: 'name.ar', title: '阿语装扮名称', align: 'middle', width: '5%'},
|
||||||
|
{field: 'name.en', title: '英语装扮名称', align: 'middle', width: '5%'},
|
||||||
{
|
{
|
||||||
field: 'iosUrl',
|
field: 'iosUrl',
|
||||||
title: '装扮图片',
|
title: '装扮图片',
|
||||||
@@ -261,11 +309,43 @@ export default {
|
|||||||
type: $('#type').val(),
|
type: $('#type').val(),
|
||||||
name: $('#name').val(),
|
name: $('#name').val(),
|
||||||
id: $('#id').val(),
|
id: $('#id').val(),
|
||||||
|
partitionId: $('#partitionId').val(),
|
||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
|
ajax:function(request){ //使用ajax请求
|
||||||
|
$.ajax({
|
||||||
|
type:"GET",
|
||||||
|
url:'/admin/chatbubble/listByPage',
|
||||||
|
contentType:'application/json;charset=utf-8',
|
||||||
|
dataType:'json',
|
||||||
|
data: request.data,
|
||||||
|
success:function (res) {
|
||||||
|
console.log(res);
|
||||||
|
request.success({
|
||||||
|
"rows": res.rows.map(i=>{
|
||||||
|
let value = i.name;
|
||||||
|
if (value.startsWith('{') && value.endsWith('}')) {
|
||||||
|
i.name = JSON.parse(value);
|
||||||
|
} else {
|
||||||
|
i.name = {
|
||||||
|
zh: value,
|
||||||
|
ar: value,
|
||||||
|
en: value,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}),
|
||||||
|
"total": res.total
|
||||||
|
});
|
||||||
|
},
|
||||||
|
error:function(error){
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/chatbubble/listByPage',
|
// url: '/admin/chatbubble/listByPage',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -286,12 +366,43 @@ export default {
|
|||||||
// 赋值
|
// 赋值
|
||||||
$("#addForm #modal_id").val(row.id);
|
$("#addForm #modal_id").val(row.id);
|
||||||
$("#addForm #modal_type").val(row.type);
|
$("#addForm #modal_type").val(row.type);
|
||||||
$("#addForm #modal_name").val(row.name);
|
console.log(row.name)
|
||||||
|
let name = row.name;
|
||||||
|
if (Object.prototype.hasOwnProperty.call(name, 'zh') || Object.prototype.hasOwnProperty.call(name, 'ar') || Object.prototype.hasOwnProperty.call(name, 'en')) {
|
||||||
|
$("#modal_name").val(row.name.zh);
|
||||||
|
// 阿语名称
|
||||||
|
$("#ar_modal_name").val(row.name.ar);
|
||||||
|
// 英语名称
|
||||||
|
$("#en_modal_name").val(row.name.en);
|
||||||
|
} else {
|
||||||
|
$("#modal_name").val(name);
|
||||||
|
// 阿语名称
|
||||||
|
$("#ar_modal_name").val(name);
|
||||||
|
// 英语名称
|
||||||
|
$("#en_modal_name").val(name);
|
||||||
|
}
|
||||||
$('#addAndroidIconPicUrl').attr("src", row.androidUrl);
|
$('#addAndroidIconPicUrl').attr("src", row.androidUrl);
|
||||||
$("#addForm #androidUrl").val(row.androidUrl);
|
$("#addForm #androidUrl").val(row.androidUrl);
|
||||||
$('#addIosIconPicUrl').attr("src", row.iosUrl);
|
$('#addIosIconPicUrl').attr("src", row.iosUrl);
|
||||||
$("#addForm #iosUrl").val(row.iosUrl);
|
$("#addForm #iosUrl").val(row.iosUrl);
|
||||||
$("#addForm #status").val(row.status);
|
$("#addForm #status").val(row.status);
|
||||||
|
//分区
|
||||||
|
let partitionFlag = row.partitionFlag;
|
||||||
|
if ((partitionFlag & 1) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 2) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 4) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = false;
|
||||||
|
}
|
||||||
$("#addModal").modal('show');
|
$("#addModal").modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -332,13 +443,48 @@ export default {
|
|||||||
$('#button-save').on('click', function () {
|
$('#button-save').on('click', function () {
|
||||||
var androidUrl = $('#androidUrl').val();
|
var androidUrl = $('#androidUrl').val();
|
||||||
var iosUrl = $('#iosUrl').val();
|
var iosUrl = $('#iosUrl').val();
|
||||||
var name = $('#modal_name').val();
|
// 获取序列化字符串并转换为对象
|
||||||
|
let formData = $('#addForm').serializeArray().reduce(function(obj, item) {
|
||||||
|
obj[item.name] = item.value;
|
||||||
|
return obj;
|
||||||
|
}, {});
|
||||||
|
|
||||||
|
var name = $("#modal_name").val();
|
||||||
|
// 阿语名称
|
||||||
|
var ar_name = $("#ar_modal_name").val();
|
||||||
|
// 英语名称
|
||||||
|
var en_name = $("#en_modal_name").val();
|
||||||
|
// 国际化字段
|
||||||
|
var jsonName = {"zh":name,"ar":ar_name,"en":en_name}
|
||||||
|
const nameValue = JSON.stringify(jsonName);
|
||||||
|
// 修改属性值
|
||||||
|
formData.name = nameValue; // 将giftName修改为"newGiftName"
|
||||||
|
//分区
|
||||||
|
const partitionFlagArray = $("input:checkbox[name='partitionFlag']:checked").serializeArray();
|
||||||
|
let partitionFlag = 0;
|
||||||
|
for (let i = 0, len = partitionFlagArray.length; i < len; i++) {
|
||||||
|
console.log(partitionFlagArray[i]);
|
||||||
|
partitionFlag |= partitionFlagArray[i].value;
|
||||||
|
}
|
||||||
|
formData.partitionFlag = partitionFlag;
|
||||||
|
// 将修改后的对象转换回序列化字符串
|
||||||
|
let newSerializeStr = $.param(formData);
|
||||||
//做下数据校验
|
//做下数据校验
|
||||||
if (isEmpty(name)) {
|
if (isEmpty(name)) {
|
||||||
$("#tipMsg").text("装扮名字不能为空");
|
$("#tipMsg").text("装扮名字不能为空");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isEmpty(ar_name)) {
|
||||||
|
$("#tipMsg").text("阿语装扮名字不能为空");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isEmpty(en_name)) {
|
||||||
|
$("#tipMsg").text("英语装扮名字不能为空");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isEmpty(androidUrl) || isEmpty(iosUrl)) {
|
if (isEmpty(androidUrl) || isEmpty(iosUrl)) {
|
||||||
$("#tipMsg").text("图片不能为空");
|
$("#tipMsg").text("图片不能为空");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -349,14 +495,16 @@ export default {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/chatbubble/saveOrUpdate",
|
url: "/admin/chatbubble/saveOrUpdate",
|
||||||
data: $("#addForm").serialize(),
|
data: newSerializeStr,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code === 200) {
|
if (json.code === 200) {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
TableHelper.doRefresh("#table");
|
setTimeout(function() {
|
||||||
$("#addModal").modal('hide');
|
TableHelper.doRefresh("#table");
|
||||||
|
$("#addModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -378,6 +526,11 @@ export default {
|
|||||||
$('#status').val('');
|
$('#status').val('');
|
||||||
$('#modal_type').val('');
|
$('#modal_type').val('');
|
||||||
$('#modal_name').val('');
|
$('#modal_name').val('');
|
||||||
|
$('#ar_modal_name').val('');
|
||||||
|
$('#en_modal_name').val('');
|
||||||
|
$('input[name="partitionFlag"]').each(function() {
|
||||||
|
$(this).checked = false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//判断空值
|
//判断空值
|
||||||
function isEmpty(data) {
|
function isEmpty(data) {
|
||||||
@@ -405,7 +558,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/nameplate/sync.action",
|
url: "/admin/nameplate/sync",
|
||||||
data: {
|
data: {
|
||||||
id: id
|
id: id
|
||||||
},
|
},
|
||||||
@@ -469,9 +622,26 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
},
|
initPartition() {
|
||||||
|
getPartitionInfoList().then(res => {
|
||||||
|
let data = res.data;
|
||||||
|
buildSelectOption(
|
||||||
|
"#partitionId",
|
||||||
|
null,
|
||||||
|
[{
|
||||||
|
value: '',
|
||||||
|
text: '全部',
|
||||||
|
}].concat(data.map((v) => {
|
||||||
|
return {
|
||||||
|
value: v.id,
|
||||||
|
text: v.desc,
|
||||||
|
};
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -51,7 +51,19 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'id', title: 'id', visible: false, align: 'center', width: '5%' },
|
{ field: 'id', title: 'id', visible: false, align: 'center', width: '5%' },
|
||||||
{ field: 'bubbleId', title: '装扮ID', align: 'center', width: '5%' },
|
{ field: 'bubbleId', title: '装扮ID', align: 'center', width: '5%' },
|
||||||
{ field: 'bubbleName', title: '装扮名称', align: 'center', width: '5%' },
|
{
|
||||||
|
field: 'bubbleName',
|
||||||
|
title: '装扮名称',
|
||||||
|
align: 'center',
|
||||||
|
width: '5%',
|
||||||
|
formatter: function (val) {
|
||||||
|
let value = val;
|
||||||
|
if (val && val.startsWith('{') && val.endsWith('}')) {
|
||||||
|
value = JSON.parse(val).zh;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
{ field: 'erbanNo', title: '获得用户ID', align: 'center', width: '5%' },
|
{ field: 'erbanNo', title: '获得用户ID', align: 'center', width: '5%' },
|
||||||
{ field: 'nick', title: '用户昵称', align: 'center', width: '5%' },
|
{ field: 'nick', title: '用户昵称', align: 'center', width: '5%' },
|
||||||
{
|
{
|
||||||
|
@@ -381,7 +381,7 @@ export default {
|
|||||||
if ($("#discoveryForm").validationEngine('validate')) {
|
if ($("#discoveryForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/discovery/saveOrUpdate.action',
|
url: '/admin/discovery/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -428,7 +428,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/discovery/getById.action",
|
url: "/admin/discovery/getById",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -527,7 +527,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/discovery/saveOrUpdate.action",
|
url: "/admin/discovery/saveOrUpdate",
|
||||||
data: {
|
data: {
|
||||||
'id': id,
|
'id': id,
|
||||||
'status': '0'
|
'status': '0'
|
||||||
@@ -564,7 +564,7 @@ function clearForm(formId) {
|
|||||||
function getGame() {
|
function getGame() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/discovery/queryGame.action',
|
url: '/admin/discovery/queryGame',
|
||||||
data: {},
|
data: {},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -755,7 +755,7 @@ function initTable() {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/discovery/list.action',
|
url: '/admin/discovery/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
|
@@ -119,7 +119,9 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'id', title: 'ID', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'id', title: 'ID', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'dressId', title: '装扮id', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'dressId', title: '装扮id', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'name', title: '装扮名称', align: 'left', valign: 'middle', width: '10%' },
|
{field: 'name.zh', title: '装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||||
|
{field: 'name.ar', title: '阿语装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||||
|
{field: 'name.en', title: '英语装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||||
{
|
{
|
||||||
field: 'pic', title: '装扮图片', align: 'left', valign: 'middle', width: '10%',
|
field: 'pic', title: '装扮图片', align: 'left', valign: 'middle', width: '10%',
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
@@ -206,15 +208,28 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/dress/shop/list.action',
|
url: '/admin/dress/shop/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
apiResult(res);
|
apiResult(res);
|
||||||
|
console.log(res)
|
||||||
request.success({
|
request.success({
|
||||||
rows: res.data.rows,
|
"rows": res.data.rows.map(i=>{
|
||||||
total: res.data.total,
|
let value = i.name;
|
||||||
|
if (value.startsWith('{') && value.endsWith('}')) {
|
||||||
|
i.name = JSON.parse(i.name);
|
||||||
|
} else {
|
||||||
|
i.name = {
|
||||||
|
zh: i.name,
|
||||||
|
ar: i.name,
|
||||||
|
en: i.name,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}),
|
||||||
|
"total": res.total
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function (req) {
|
error: function (req) {
|
||||||
@@ -256,7 +271,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/dress/shop/saveOrUpdate.action",
|
url: "/admin/dress/shop/saveOrUpdate",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
dressId: dressId,
|
dressId: dressId,
|
||||||
@@ -291,7 +306,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/dress/shop/getById.action",
|
url: "/admin/dress/shop/getById",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
@@ -296,7 +296,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/admin/faceJson/updateImg.action",
|
url: "/admin/faceJson/updateImg",
|
||||||
data: data,
|
data: data,
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false, //不可缺
|
contentType: false, //不可缺
|
||||||
@@ -311,7 +311,7 @@ export default {
|
|||||||
for (var j = 0; j <= json.length - 1; j++) {
|
for (var j = 0; j <= json.length - 1; j++) {
|
||||||
$("#tipMsg").text("上传成功");
|
$("#tipMsg").text("上传成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
var path = '/admin/faceJson/getPicInputStream.action?type=1&picName=' + json[j];
|
var path = '/admin/faceJson/getPicInputStream?type=1&picName=' + json[j];
|
||||||
var info = json[j].split('.');
|
var info = json[j].split('.');
|
||||||
var name = info[0];
|
var name = info[0];
|
||||||
var nameSuffix = info[1];
|
var nameSuffix = info[1];
|
||||||
@@ -340,7 +340,7 @@ export default {
|
|||||||
function deleteImg(val, valRes) {
|
function deleteImg(val, valRes) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/deleteFile.action",
|
url: "/admin/faceJson/deleteFile",
|
||||||
data: {
|
data: {
|
||||||
picName: val + '.' + valRes,
|
picName: val + '.' + valRes,
|
||||||
type: 1,
|
type: 1,
|
||||||
@@ -390,7 +390,7 @@ export default {
|
|||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
var info = val.split('.');
|
var info = val.split('.');
|
||||||
if (info.length > 1) {
|
if (info.length > 1) {
|
||||||
var a = '/admin/faceJson/getPicInputStream.action?picName=' + val;
|
var a = '/admin/faceJson/getPicInputStream?picName=' + val;
|
||||||
return "<img src='" + a + "' width='40' height='40'>";
|
return "<img src='" + a + "' width='40' height='40'>";
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -461,7 +461,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/faceJson/list.action',
|
url: '/admin/faceJson/list',
|
||||||
onLoadSuccess: function (json) { //加载成功时执行
|
onLoadSuccess: function (json) { //加载成功时执行
|
||||||
if (json.code != 200) {
|
if (json.code != 200) {
|
||||||
console.log(json.msg);
|
console.log(json.msg);
|
||||||
@@ -502,7 +502,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/faceJson/deletePatch.action",
|
url: "/admin/faceJson/deletePatch",
|
||||||
data: {
|
data: {
|
||||||
ids: JSON.stringify(idArr),
|
ids: JSON.stringify(idArr),
|
||||||
},
|
},
|
||||||
@@ -526,7 +526,7 @@ export default {
|
|||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/updateFaceInfo.action",
|
url: "/admin/faceJson/updateFaceInfo",
|
||||||
data: {},
|
data: {},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -548,7 +548,7 @@ export default {
|
|||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/restoreFaceInfo.action",
|
url: "/admin/faceJson/restoreFaceInfo",
|
||||||
data: {},
|
data: {},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -587,7 +587,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
var info = id.split('.');
|
var info = id.split('.');
|
||||||
if (info.length > 1) {
|
if (info.length > 1) {
|
||||||
var path = '/admin/faceJson/getPicInputStream.action?picName=' + id;
|
var path = '/admin/faceJson/getPicInputStream?picName=' + id;
|
||||||
$("#img").attr("src", path);
|
$("#img").attr("src", path);
|
||||||
$("#beforeImgName").val(id);
|
$("#beforeImgName").val(id);
|
||||||
$("#afterImgName").val("");
|
$("#afterImgName").val("");
|
||||||
@@ -596,7 +596,7 @@ export default {
|
|||||||
else {
|
else {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/getFaceJsonItem.action",
|
url: "/admin/faceJson/getFaceJsonItem",
|
||||||
data: {
|
data: {
|
||||||
picName: id,
|
picName: id,
|
||||||
},
|
},
|
||||||
@@ -657,7 +657,7 @@ export default {
|
|||||||
if (confirm("确认删除表情图片吗?")) {
|
if (confirm("确认删除表情图片吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/deleteFile.action",
|
url: "/admin/faceJson/deleteFile",
|
||||||
data: {
|
data: {
|
||||||
picName: id,
|
picName: id,
|
||||||
type: 2,
|
type: 2,
|
||||||
@@ -680,7 +680,7 @@ export default {
|
|||||||
if (confirm("确认删除表情json吗(相应表情图片也将删除)?")) {
|
if (confirm("确认删除表情json吗(相应表情图片也将删除)?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/deleteFaceJsonItem.action",
|
url: "/admin/faceJson/deleteFaceJsonItem",
|
||||||
data: {
|
data: {
|
||||||
picName: id,
|
picName: id,
|
||||||
},
|
},
|
||||||
@@ -704,7 +704,7 @@ export default {
|
|||||||
$("#addImg").click(function () {
|
$("#addImg").click(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/addImg.action",
|
url: "/admin/faceJson/addImg",
|
||||||
data: {},
|
data: {},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -726,7 +726,7 @@ export default {
|
|||||||
var afterImgName = $("#afterImgName").val();
|
var afterImgName = $("#afterImgName").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/renameImg.action",
|
url: "/admin/faceJson/renameImg",
|
||||||
data: {
|
data: {
|
||||||
beforeImgName: beforeImgName,
|
beforeImgName: beforeImgName,
|
||||||
afterImgName: afterImgName,
|
afterImgName: afterImgName,
|
||||||
@@ -773,7 +773,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/faceJson/configFaceJsonSingle.action?jsonConfigType=" + jsonConfigType,
|
url: "/admin/faceJson/configFaceJsonSingle?jsonConfigType=" + jsonConfigType,
|
||||||
data: {
|
data: {
|
||||||
id: addFaceId,
|
id: addFaceId,
|
||||||
name: addFaceName,
|
name: addFaceName,
|
||||||
|
@@ -387,7 +387,7 @@ export default {
|
|||||||
if ($("#addFamilyForm").validationEngine('validate')) {
|
if ($("#addFamilyForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
name: familyName,
|
name: familyName,
|
||||||
leader: leaderId,
|
leader: leaderId,
|
||||||
@@ -518,7 +518,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/family/list.action',
|
url: '/admin/family/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
@@ -534,7 +534,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/family/getById.action",
|
url: "/admin/family/getById",
|
||||||
data: { familyId: id },
|
data: { familyId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -601,7 +601,7 @@ export default {
|
|||||||
if ($("#editFamilyForm").validationEngine('validate')) {
|
if ($("#editFamilyForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: familyId,
|
id: familyId,
|
||||||
name: familyName,
|
name: familyName,
|
||||||
@@ -647,7 +647,7 @@ export default {
|
|||||||
if ($("#forbFamilyForm").validationEngine('validate')) {
|
if ($("#forbFamilyForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: familyId,
|
id: familyId,
|
||||||
status: 2,
|
status: 2,
|
||||||
@@ -687,7 +687,7 @@ export default {
|
|||||||
if ($("#recoverFamilyForm").validationEngine('validate')) {
|
if ($("#recoverFamilyForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: familyId,
|
id: familyId,
|
||||||
status: 1,
|
status: 1,
|
||||||
@@ -729,7 +729,7 @@ export default {
|
|||||||
if ($("#dissFamilyForm").validationEngine('validate')) {
|
if ($("#dissFamilyForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/remove.action',
|
url: '/admin/family/remove',
|
||||||
data: {
|
data: {
|
||||||
familyId: familyId
|
familyId: familyId
|
||||||
},
|
},
|
||||||
|
@@ -94,7 +94,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/family/member/del.action",
|
url: "/admin/family/member/del",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr),
|
'ids': JSON.stringify(idArr),
|
||||||
'familyIds': JSON.stringify(familyIdArr)
|
'familyIds': JSON.stringify(familyIdArr)
|
||||||
@@ -183,7 +183,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/family/member/list.action',
|
url: '/admin/family/member/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
//复选框居中
|
//复选框居中
|
||||||
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
||||||
|
@@ -222,7 +222,7 @@ export default {
|
|||||||
//TODO 权限密码校验目前没做
|
//TODO 权限密码校验目前没做
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/money/update.action',
|
url: '/admin/family/money/update',
|
||||||
data: {
|
data: {
|
||||||
familyId: familyId,
|
familyId: familyId,
|
||||||
targetId: targetId,
|
targetId: targetId,
|
||||||
@@ -277,7 +277,7 @@ export default {
|
|||||||
//TODO 权限密码校验目前没做
|
//TODO 权限密码校验目前没做
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/money/update.action',
|
url: '/admin/family/money/update',
|
||||||
data: {
|
data: {
|
||||||
familyId: familyId,
|
familyId: familyId,
|
||||||
targetId: targetId,
|
targetId: targetId,
|
||||||
@@ -317,7 +317,7 @@ export default {
|
|||||||
//TODO 权限教研暂时没做
|
//TODO 权限教研暂时没做
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: familyId,
|
id: familyId,
|
||||||
openMoney: 0,
|
openMoney: 0,
|
||||||
@@ -354,7 +354,7 @@ export default {
|
|||||||
//TODO 权限教研暂时没做
|
//TODO 权限教研暂时没做
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/family/saveOrUpdate.action',
|
url: '/admin/family/saveOrUpdate',
|
||||||
data: {
|
data: {
|
||||||
id: familyId,
|
id: familyId,
|
||||||
openMoney: 1,
|
openMoney: 1,
|
||||||
@@ -448,7 +448,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/family/money/list.action',
|
url: '/admin/family/money/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
//复选框居中
|
//复选框居中
|
||||||
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
|
||||||
|
@@ -100,7 +100,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/family/statistics/list.action',
|
url: '/admin/family/statistics/list',
|
||||||
onLoadSuccess: function (json) { //加载成功时执行
|
onLoadSuccess: function (json) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -79,12 +79,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'goldIncreaseNum', title: '金币增加', align: 'center', width: '5%' },
|
{ field: 'goldIncreaseNum', title: '钻石增加', align: 'center', width: '5%' },
|
||||||
{ field: 'goldDecreaseNum', title: '金币减少', align: 'center', width: '5%' },
|
{ field: 'goldDecreaseNum', title: '钻石减少', align: 'center', width: '5%' },
|
||||||
{ field: 'goldNum', title: '金币余额', align: 'center', width: '5%' },
|
{ field: 'goldNum', title: '钻石余额', align: 'center', width: '5%' },
|
||||||
{ field: 'diamondIncreaseNum', title: '钻石增加', align: 'center', width: '5%' },
|
{ field: 'diamondIncreaseNum', title: '金币增加', align: 'center', width: '5%' },
|
||||||
{ field: 'diamondDecreaseNum', title: '钻石减少', align: 'center', width: '5%' },
|
{ field: 'diamondDecreaseNum', title: '金币减少', align: 'center', width: '5%' },
|
||||||
{ field: 'diamondNum', title: '钻石余额', align: 'center', width: '5%' },
|
{ field: 'diamondNum', title: '金币余额', align: 'center', width: '5%' },
|
||||||
{ field: 'totalNum', title: '总额', align: 'center', width: '5%' },
|
{ field: 'totalNum', title: '总额', align: 'center', width: '5%' },
|
||||||
],
|
],
|
||||||
cache: false,
|
cache: false,
|
||||||
@@ -107,7 +107,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/finance/statistics.action',
|
url: '/admin/finance/statistics',
|
||||||
onLoadSuccess: function (json) { //加载成功时执行
|
onLoadSuccess: function (json) { //加载成功时执行
|
||||||
var updateTime = json.updateTime;
|
var updateTime = json.updateTime;
|
||||||
$("#version").html('财务数据' + ' ' + updateTime + ' 更新');
|
$("#version").html('财务数据' + ' ' + updateTime + ' 更新');
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
<span id="countNum"></span>
|
<span id="countNum"></span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span>用户投入钻石总数:</span>
|
<span>用户投入金币总数:</span>
|
||||||
<span id="userInputDiamonds"></span>
|
<span id="userInputDiamonds"></span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -193,7 +193,7 @@ export default {
|
|||||||
{ field: 'date', title: '日期', align: 'center', valign: 'middle', width: '20%' },
|
{ field: 'date', title: '日期', align: 'center', valign: 'middle', width: '20%' },
|
||||||
{ field: 'peopleNum', title: '抽奖人数', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'peopleNum', title: '抽奖人数', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'countNum', title: '抽奖记录数', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'countNum', title: '抽奖记录数', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'userInputDiamonds', title: '用户投入钻石数', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'userInputDiamonds', title: '用户投入金币数', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'giftOutputDiamonds', title: '平台产出价值数', align: 'center', valign: 'middle', width: '10%' }
|
{ field: 'giftOutputDiamonds', title: '平台产出价值数', align: 'center', valign: 'middle', width: '10%' }
|
||||||
],
|
],
|
||||||
cache: false,
|
cache: false,
|
||||||
|
@@ -627,9 +627,14 @@ export default {
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
//console.log(res);
|
//console.log(res);
|
||||||
for (var i = 0; i < res.data.length; i++) {
|
for (var i = 0; i < res.data.length; i++) {
|
||||||
|
let item = res.data[i];
|
||||||
|
let giftName = item.giftName;
|
||||||
|
if (giftName.startsWith('{') && giftName.endsWith('}')) {
|
||||||
|
item.giftName = JSON.parse(giftName).zh;
|
||||||
|
}
|
||||||
// id对象存储
|
// id对象存储
|
||||||
var id = '' + res.data[i].giftId;
|
var id = '' + item.giftId;
|
||||||
giftMap[id] = res.data[i];
|
giftMap[id] = item;
|
||||||
}
|
}
|
||||||
renderAwardOption()
|
renderAwardOption()
|
||||||
}
|
}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<form action="/admin/findLove/data/export.action" id="searchForm">
|
<form action="/admin/findLove/data/export" id="searchForm">
|
||||||
平台号:<input type="text" id="msNo" name="msNo" class="input-sm" placeholder="请输入平台号">
|
平台号:<input type="text" id="msNo" name="msNo" class="input-sm" placeholder="请输入平台号">
|
||||||
|
|
||||||
奖品名称:<input type="text" id="prizeName" name="prizeName" class="input-sm"
|
奖品名称:<input type="text" id="prizeName" name="prizeName" class="input-sm"
|
||||||
@@ -100,7 +100,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'level', title: '礼物等级', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'level', title: '礼物等级', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'diamonds', title: '钻石单价', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'diamonds', title: '金币单价', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{
|
{
|
||||||
field: 'poolType', title: '礼物组类型', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) {
|
field: 'poolType', title: '礼物组类型', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) {
|
||||||
switch (row.poolType) {
|
switch (row.poolType) {
|
||||||
|
@@ -8,24 +8,47 @@
|
|||||||
<section class="content">
|
<section class="content">
|
||||||
<div id="table"></div>
|
<div id="table"></div>
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
跳转类型: <select name="skipType" id="skipType" class="input-m">
|
<div class="col-sm-12">
|
||||||
<option value="0">--全部--</option>
|
<label for="skipType" class="col-sm-1 control-label">跳转类型: </label>
|
||||||
<option value="1">跳转app内部</option>
|
<div class="col-sm-2">
|
||||||
<option value="2">跳转房间</option>
|
<select name="skipType" id="skipType" class="input-m form-control">
|
||||||
<option value="3">跳转H5页面</option>
|
<option value="0">--全部--</option>
|
||||||
</select>
|
<option value="1">跳转app内部</option>
|
||||||
状态: <select name="status" id="status" class="input-m">
|
<option value="2">跳转房间</option>
|
||||||
<option value="0">--全部--</option>
|
<option value="3">跳转H5页面</option>
|
||||||
<option value="1">激活启用中</option>
|
</select>
|
||||||
<option value="2">未激活</option>
|
</div>
|
||||||
</select>
|
<label for="status" class="col-sm-1 control-label">状态:</label>
|
||||||
app: <select name="app" id="app" class="input-m">
|
<div class="col-sm-2">
|
||||||
<option value="">--全部--</option>
|
<select name="status" id="status" class="input-m form-control">
|
||||||
</select>
|
<option value="0">--全部--</option>
|
||||||
|
<option value="1">激活启用中</option>
|
||||||
开始日期: <input type="text" name="timeBegin" id="beginTime" class="input-sm" value="">
|
<option value="2">未激活</option>
|
||||||
|
</select>
|
||||||
结束日期: <input type="text" name="timeEnd" id="endTime" class="input-sm" value="">
|
</div>
|
||||||
|
<label for="app" class="col-sm-1 control-label">app:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select name="app" id="app" class="input-m form-control">
|
||||||
|
<option value="">--全部--</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<label for="beginTime" class="col-sm-1 control-label">开始日期: </label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="text" name="timeBegin" id="beginTime" class="input-sm form-control" value="">
|
||||||
|
</div>
|
||||||
|
<label for="endTime" class="col-sm-1 control-label">结束日期: </label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="text" name="timeEnd" id="endTime" class="input-sm form-control" value="">
|
||||||
|
</div>
|
||||||
|
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select name="partitionId" id="partitionId" class="form-control"></select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
|
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
|
||||||
|
|
||||||
<button id="add" class="btn btn-default">
|
<button id="add" class="btn btn-default">
|
||||||
@@ -50,6 +73,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="bannerForm">
|
<form class="form-horizontal" id="bannerForm">
|
||||||
|
<div id="bannerPartitionDiv">
|
||||||
|
<div class="form-group">
|
||||||
|
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
|
||||||
|
<div class="form-check" id = "partitionCheck">
|
||||||
|
<!-- 分区展示-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name" class="col-sm-3 control-label">Banner名字:</label>
|
<label for="name" class="col-sm-3 control-label">Banner名字:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
@@ -205,6 +236,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form id="addBannerForm" class="form-horizontal">
|
<form id="addBannerForm" class="form-horizontal">
|
||||||
|
<div id="bannerAddPartitionDiv">
|
||||||
|
<div class="form-group">
|
||||||
|
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
|
||||||
|
<div class="form-check" id = "partitionAddCheck">
|
||||||
|
<!-- 分区展示-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="addName" class="col-sm-3 control-label">Banner名字:</label>
|
<label for="addName" class="col-sm-3 control-label">Banner名字:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
@@ -354,6 +393,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
|
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
||||||
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
var app = {};
|
var app = {};
|
||||||
var validApp = {};
|
var validApp = {};
|
||||||
@@ -393,6 +434,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.initPartition();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -437,6 +479,7 @@ export default {
|
|||||||
$('#table').bootstrapTable({
|
$('#table').bootstrapTable({
|
||||||
columns: [
|
columns: [
|
||||||
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
|
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
|
||||||
|
{field: 'partitionDesc', title: '地区', align: 'center', valign: 'middle', width: '5%'},
|
||||||
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
|
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{
|
{
|
||||||
@@ -618,14 +661,14 @@ export default {
|
|||||||
bannerStatus: parseInt($('#status').val()),
|
bannerStatus: parseInt($('#status').val()),
|
||||||
skipType: parseInt($('#skipType').val()),
|
skipType: parseInt($('#skipType').val()),
|
||||||
bannerType: 9,
|
bannerType: 9,
|
||||||
// appId: ($('#app').val()) ? $('#app').val() : null
|
partitionId: $('#partitionId').val(),
|
||||||
};
|
};
|
||||||
// console.log(param);
|
// console.log(param);
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/banner/list.action',
|
url: '/admin/banner/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -646,39 +689,66 @@ export default {
|
|||||||
$('.titleListDev').addClass("hidden");
|
$('.titleListDev').addClass("hidden");
|
||||||
var bannerId = parseInt($(this).data('id'));
|
var bannerId = parseInt($(this).data('id'));
|
||||||
isEdit = true;
|
isEdit = true;
|
||||||
debugger
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: 'get',
|
||||||
url: "/admin/banner/get.action",
|
url: '/partition/listPartitionInfo',
|
||||||
data: { bannerId: bannerId },
|
dataType: 'json',
|
||||||
dataType: "json",
|
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
var length = json.data.length;
|
||||||
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
var partitionCheck = $("#partitionCheck");
|
||||||
$('#name').val(json.data.bannerName);
|
partitionCheck.empty();
|
||||||
$('#imgUrl').attr('src', json.data.bannerPic);
|
// 分区
|
||||||
$('#bannerPic').val(json.data.bannerPic);
|
for (var i = 0; i < length; i++) {
|
||||||
$('#skipUrlSort').val(json.data.skipType);
|
var checkbox = $("<input>", {type: "checkbox", id: "checkbox" + json.data[i].id, name: "partitionIds", value: json.data[i].id});
|
||||||
$('#skipUrlContent').val(json.data.skipUri);
|
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
|
||||||
$("#bannerType").val(json.data.bannerType);
|
|
||||||
$('#seqNo').val(json.data.seqNo);
|
partitionCheck.append(checkbox,label);
|
||||||
//$("#appId").val(json.data.appId);
|
}
|
||||||
$('#iosVersion').val(json.data.iosVersion);
|
$.ajax({
|
||||||
$('#androidVersion').val(json.data.androidVersion);
|
type: "get",
|
||||||
$('#noShowChannels').val(json.data.noShowChannels);
|
url: "/admin/banner/get",
|
||||||
$('#bannerStatus').val(json.data.bannerStatus);
|
data: { bannerId: bannerId },
|
||||||
$('#startDate').val(startDate);
|
dataType: "json",
|
||||||
$('#endDate').val(date);
|
success: function (json) {
|
||||||
$('#bannerId').val(json.data.bannerId);
|
if (json.code == 200) {
|
||||||
$('#platform').val(json.data.platform);
|
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
||||||
$('#limitLevelExper').val(json.data.limitLevelExper);
|
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
||||||
$('#showType').val(json.data.showType);
|
$('#name').val(json.data.bannerName);
|
||||||
$('#showRule').val(json.data.showRule);
|
$('#imgUrl').attr('src', json.data.bannerPic);
|
||||||
window.selectOnChange(json.data.bannerType, json.data.titleId);
|
$('#bannerPic').val(json.data.bannerPic);
|
||||||
$('#titleList').val(json.data.titleId);
|
$('#skipUrlSort').val(json.data.skipType);
|
||||||
$('#bannerModal').modal('show');
|
$('#skipUrlContent').val(json.data.skipUri);
|
||||||
// picker1.datetimepicker('setStartDate', startDate);
|
$("#bannerType").val(json.data.bannerType);
|
||||||
|
$('#seqNo').val(json.data.seqNo);
|
||||||
|
//$("#appId").val(json.data.appId);
|
||||||
|
$('#iosVersion').val(json.data.iosVersion);
|
||||||
|
$('#androidVersion').val(json.data.androidVersion);
|
||||||
|
$('#noShowChannels').val(json.data.noShowChannels);
|
||||||
|
$('#bannerStatus').val(json.data.bannerStatus);
|
||||||
|
$('#startDate').val(startDate);
|
||||||
|
$('#endDate').val(date);
|
||||||
|
$('#bannerId').val(json.data.bannerId);
|
||||||
|
$('#platform').val(json.data.platform);
|
||||||
|
$('#limitLevelExper').val(json.data.limitLevelExper);
|
||||||
|
$('#showType').val(json.data.showType);
|
||||||
|
$('#showRule').val(json.data.showRule);
|
||||||
|
window.selectOnChange(json.data.bannerType, json.data.titleId);
|
||||||
|
$('#titleList').val(json.data.titleId);
|
||||||
|
// 分区信息
|
||||||
|
var partitionIds = json.data.partitionIds;
|
||||||
|
var length = partitionIds.length;
|
||||||
|
for (var i = 0; i < length; i++) {
|
||||||
|
$("#checkbox" + partitionIds[i]).prop('checked', true);
|
||||||
|
}
|
||||||
|
$('#bannerModal').modal('show');
|
||||||
|
// picker1.datetimepicker('setStartDate', startDate);
|
||||||
|
} else {
|
||||||
|
$("#tipMsg").text("获取信息出错");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("获取信息出错");
|
$("#tipMsg").text("获取信息出错");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -732,7 +802,7 @@ export default {
|
|||||||
if ($('#bannerForm').validationEngine('validate')) {
|
if ($('#bannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?startTimeString=" + $('#startDate').val()
|
url: "/admin/banner/save?startTimeString=" + $('#startDate').val()
|
||||||
+ "&endTimeString=" + $('#endDate').val(),
|
+ "&endTimeString=" + $('#endDate').val(),
|
||||||
data: $('#bannerForm').serialize(),
|
data: $('#bannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -756,6 +826,32 @@ export default {
|
|||||||
$('#addStartDate').val('');
|
$('#addStartDate').val('');
|
||||||
$('#addEndDate').val('');
|
$('#addEndDate').val('');
|
||||||
|
|
||||||
|
// 分区处理
|
||||||
|
$.ajax({
|
||||||
|
type: 'get',
|
||||||
|
url: '/partition/listPartitionInfo',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (json) {
|
||||||
|
if (json.code == 200) {
|
||||||
|
var length = json.data.length;
|
||||||
|
var partitionCheck = $("#partitionAddCheck");
|
||||||
|
partitionCheck.empty();
|
||||||
|
// 创建3个checkbox元素并添加到myDiv元素上
|
||||||
|
for (var i = 0; i < length; i++) {
|
||||||
|
var checkbox = $("<input>", {
|
||||||
|
type: "checkbox",
|
||||||
|
id: "checkbox" + json.data[i].id,
|
||||||
|
name: "partitionIds",
|
||||||
|
value: json.data[i].id
|
||||||
|
});
|
||||||
|
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
|
||||||
|
|
||||||
|
partitionCheck.append(checkbox, label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 处理appId
|
// 处理appId
|
||||||
// $('#addAppId').empty();
|
// $('#addAppId').empty();
|
||||||
// $('#addAppId').append('<option value="">请选择</option>');
|
// $('#addAppId').append('<option value="">请选择</option>');
|
||||||
@@ -780,7 +876,7 @@ export default {
|
|||||||
if ($('#addBannerForm').validationEngine('validate')) {
|
if ($('#addBannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?startTimeString=" + $('#addStartDate').val()
|
url: "/admin/banner/save?startTimeString=" + $('#addStartDate').val()
|
||||||
+ "&endTimeString=" + $('#addEndDate').val(),
|
+ "&endTimeString=" + $('#addEndDate').val(),
|
||||||
data: $('#addBannerForm').serialize(),
|
data: $('#addBannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -835,7 +931,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/upload.action',
|
url: '/admin/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -852,7 +948,7 @@ export default {
|
|||||||
$('#addUploadBtn').on('click', function () {
|
$('#addUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/upload.action',
|
url: '/admin/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -911,7 +1007,7 @@ export default {
|
|||||||
if (confirm("你确认删除选中Banner吗?")) {
|
if (confirm("你确认删除选中Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delete.action",
|
url: "/admin/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -938,7 +1034,7 @@ export default {
|
|||||||
if (confirm("你确认删除Banner吗?")) {
|
if (confirm("你确认删除Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delete.action",
|
url: "/admin/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -957,7 +1053,25 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
initPartition() {
|
||||||
|
getPartitionInfoList().then(res => {
|
||||||
|
let data = res.data;
|
||||||
|
buildSelectOption(
|
||||||
|
"#partitionId",
|
||||||
|
null,
|
||||||
|
[{
|
||||||
|
value: '',
|
||||||
|
text: '全部',
|
||||||
|
}].concat(data.map((v) => {
|
||||||
|
return {
|
||||||
|
value: v.id,
|
||||||
|
text: v.desc,
|
||||||
|
};
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -8,31 +8,56 @@
|
|||||||
<section class="content">
|
<section class="content">
|
||||||
<div id="table"></div>
|
<div id="table"></div>
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
跳转类型: <select name="skipType" id="skipType" class="input-m">
|
<div class="col-sm-12">
|
||||||
<option value="0">--全部--</option>
|
<label for="skipType" class="col-sm-1 control-label">跳转类型: </label>
|
||||||
<option value="1">跳转app内部</option>
|
<div class="col-sm-2">
|
||||||
<option value="2">跳转房间</option>
|
<select name="skipType" id="skipType" class="input-m form-control">
|
||||||
<option value="3">跳转H5页面</option>
|
<option value="0">--全部--</option>
|
||||||
</select>
|
<option value="1">跳转app内部</option>
|
||||||
状态: <select name="status" id="status" class="input-m">
|
<option value="2">跳转房间</option>
|
||||||
<option value="0">--全部--</option>
|
<option value="3">跳转H5页面</option>
|
||||||
<option value="1">激活启用中</option>
|
</select>
|
||||||
<option value="2">未激活</option>
|
</div>
|
||||||
</select>
|
<label for="status" class="col-sm-1 control-label">状态:</label>
|
||||||
app: <select name="app" id="app" class="input-m">
|
<div class="col-sm-2">
|
||||||
<option value="">--全部--</option>
|
<select name="status" id="status" class="input-m form-control">
|
||||||
</select>
|
<option value="0">--全部--</option>
|
||||||
banner位置: <select name="bannerType" id="searchBannerType" class="input-m">
|
<option value="1">激活启用中</option>
|
||||||
<option value="">--全部--</option>
|
<option value="2">未激活</option>
|
||||||
<option value="1">首页</option>
|
</select>
|
||||||
<option value="2">房间内</option>
|
</div>
|
||||||
<option value="3">我的装扮</option>
|
<label for="app" class="col-sm-1 control-label">app:</label>
|
||||||
<option value="10">个人中心</option>
|
<div class="col-sm-2">
|
||||||
</select>
|
<select name="app" id="app" class="input-m form-control">
|
||||||
|
<option value="">--全部--</option>
|
||||||
开始日期: <input type="text" name="timeBegin" id="beginTime" class="input-sm" value="">
|
</select>
|
||||||
|
</div>
|
||||||
结束日期: <input type="text" name="timeEnd" id="endTime" class="input-sm" value="">
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<label for="bannerType" class="col-sm-1 control-label">banner位置:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select name="bannerType" id="searchBannerType" class="input-m form-control">
|
||||||
|
<option value="">--全部--</option>
|
||||||
|
<option value="1">首页</option>
|
||||||
|
<option value="2">房间内</option>
|
||||||
|
<option value="3">我的装扮</option>
|
||||||
|
<option value="10">个人中心</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<label for="beginTime" class="col-sm-1 control-label">开始日期: </label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="text" name="timeBegin" id="beginTime" class="input-sm form-control" value="">
|
||||||
|
</div>
|
||||||
|
<label for="endTime" class="col-sm-1 control-label">结束日期: </label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="text" name="timeEnd" id="endTime" class="input-sm form-control" value="">
|
||||||
|
</div>
|
||||||
|
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select name="partitionId" id="partitionId" class="form-control"></select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
|
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
|
||||||
|
|
||||||
<button id="add" class="btn btn-default">
|
<button id="add" class="btn btn-default">
|
||||||
@@ -57,6 +82,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="bannerForm">
|
<form class="form-horizontal" id="bannerForm">
|
||||||
|
<div id="bannerPartitionDiv">
|
||||||
|
<div class="form-group">
|
||||||
|
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
|
||||||
|
<div class="form-check" id = "partitionCheck">
|
||||||
|
<!-- 分区展示-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name" class="col-sm-3 control-label">Banner名字:</label>
|
<label for="name" class="col-sm-3 control-label">Banner名字:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
@@ -215,6 +248,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form id="addBannerForm" class="form-horizontal">
|
<form id="addBannerForm" class="form-horizontal">
|
||||||
|
<div id="bannerAddPartitionDiv">
|
||||||
|
<div class="form-group">
|
||||||
|
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
|
||||||
|
<div class="form-check" id = "partitionAddCheck">
|
||||||
|
<!-- 分区展示-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="addName" class="col-sm-3 control-label">Banner名字:</label>
|
<label for="addName" class="col-sm-3 control-label">Banner名字:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
@@ -367,6 +408,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
|
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
||||||
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
var app = {};
|
var app = {};
|
||||||
var validApp = {};
|
var validApp = {};
|
||||||
@@ -407,6 +450,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.initPartition();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -453,6 +497,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
|
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
|
||||||
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
|
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
|
||||||
|
{field: 'partitionDesc', title: '地区', align: 'center', valign: 'middle', width: '5%'},
|
||||||
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{
|
{
|
||||||
field: 'bannerType', title: 'banner位置', align: 'center', valign: 'middle', width: '10%',
|
field: 'bannerType', title: 'banner位置', align: 'center', valign: 'middle', width: '10%',
|
||||||
@@ -632,6 +677,7 @@ export default {
|
|||||||
bannerStatus: parseInt($('#status').val()),
|
bannerStatus: parseInt($('#status').val()),
|
||||||
skipType: parseInt($('#skipType').val()),
|
skipType: parseInt($('#skipType').val()),
|
||||||
bannerType: $('#searchBannerType').val(),
|
bannerType: $('#searchBannerType').val(),
|
||||||
|
partitionId: $('#partitionId').val(),
|
||||||
// appId: ($('#app').val()) ? $('#app').val() : null
|
// appId: ($('#app').val()) ? $('#app').val() : null
|
||||||
};
|
};
|
||||||
// console.log(param);
|
// console.log(param);
|
||||||
@@ -639,7 +685,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/banner/list.action',
|
url: '/admin/banner/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -665,36 +711,64 @@ export default {
|
|||||||
// }
|
// }
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/banner/get.action',
|
url: '/partition/listPartitionInfo',
|
||||||
data: { 'bannerId': id },
|
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
var length = json.data.length;
|
||||||
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
var partitionCheck = $("#partitionCheck");
|
||||||
$('#name').val(json.data.bannerName);
|
partitionCheck.empty();
|
||||||
$('#imgUrl').attr('src', json.data.bannerPic);
|
// 分区
|
||||||
$('#bannerPic').val(json.data.bannerPic);
|
for (var i = 0; i < length; i++) {
|
||||||
$('#skipUrlSort').val(json.data.skipType);
|
var checkbox = $("<input>", {type: "checkbox", id: "checkbox" + json.data[i].id, name: "partitionIds", value: json.data[i].id});
|
||||||
$('#skipUrlContent').val(json.data.skipUri);
|
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
|
||||||
$("#bannerType").val(json.data.bannerType);
|
|
||||||
$('#seqNo').val(json.data.seqNo);
|
partitionCheck.append(checkbox,label);
|
||||||
//$("#appId").val(json.data.appId);
|
}
|
||||||
$('#iosVersion').val(json.data.iosVersion);
|
$.ajax({
|
||||||
$('#androidVersion').val(json.data.androidVersion);
|
type: 'get',
|
||||||
$('#noShowChannels').val(json.data.noShowChannels);
|
url: '/admin/banner/get',
|
||||||
$('#bannerStatus').val(json.data.bannerStatus);
|
data: {'bannerId': id},
|
||||||
$('#startDate').val(startDate);
|
dataType: 'json',
|
||||||
$('#endDate').val(date);
|
success: function (json) {
|
||||||
$('#bannerId').val(json.data.bannerId);
|
if (json.code == 200) {
|
||||||
$('#platform').val(json.data.platform);
|
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
||||||
$('#limitLevelExper').val(json.data.limitLevelExper);
|
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
|
||||||
$('#showType').val(json.data.showType);
|
$('#name').val(json.data.bannerName);
|
||||||
$('#showRule').val(json.data.showRule);
|
$('#imgUrl').attr('src', json.data.bannerPic);
|
||||||
window.selectOnChange(json.data.bannerType, json.data.titleId);
|
$('#bannerPic').val(json.data.bannerPic);
|
||||||
$('#titleList').val(json.data.titleId);
|
$('#skipUrlSort').val(json.data.skipType);
|
||||||
$('#bannerModal').modal('show');
|
$('#skipUrlContent').val(json.data.skipUri);
|
||||||
// picker1.datetimepicker('setStartDate', startDate);
|
$("#bannerType").val(json.data.bannerType);
|
||||||
|
$('#seqNo').val(json.data.seqNo);
|
||||||
|
//$("#appId").val(json.data.appId);
|
||||||
|
$('#iosVersion').val(json.data.iosVersion);
|
||||||
|
$('#androidVersion').val(json.data.androidVersion);
|
||||||
|
$('#noShowChannels').val(json.data.noShowChannels);
|
||||||
|
$('#bannerStatus').val(json.data.bannerStatus);
|
||||||
|
$('#startDate').val(startDate);
|
||||||
|
$('#endDate').val(date);
|
||||||
|
$('#bannerId').val(json.data.bannerId);
|
||||||
|
$('#platform').val(json.data.platform);
|
||||||
|
$('#limitLevelExper').val(json.data.limitLevelExper);
|
||||||
|
$('#showType').val(json.data.showType);
|
||||||
|
$('#showRule').val(json.data.showRule);
|
||||||
|
window.selectOnChange(json.data.bannerType, json.data.titleId);
|
||||||
|
$('#titleList').val(json.data.titleId);
|
||||||
|
// 分区信息
|
||||||
|
var partitionIds = json.data.partitionIds;
|
||||||
|
var length = partitionIds.length;
|
||||||
|
for (var i = 0; i < length; i++) {
|
||||||
|
$("#checkbox" + partitionIds[i]).prop('checked', true);
|
||||||
|
}
|
||||||
|
$('#bannerModal').modal('show');
|
||||||
|
// picker1.datetimepicker('setStartDate', startDate);
|
||||||
|
} else {
|
||||||
|
$("#tipMsg").text("获取信息出错");
|
||||||
|
$("#tipModal").modal('show');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("获取信息出错");
|
$("#tipMsg").text("获取信息出错");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -746,7 +820,7 @@ export default {
|
|||||||
if ($('#bannerForm').validationEngine('validate')) {
|
if ($('#bannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?startTimeString=" + $('#startDate').val()
|
url: "/admin/banner/save?startTimeString=" + $('#startDate').val()
|
||||||
+ "&endTimeString=" + $('#endDate').val(),
|
+ "&endTimeString=" + $('#endDate').val(),
|
||||||
data: $('#bannerForm').serialize(),
|
data: $('#bannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -770,6 +844,32 @@ export default {
|
|||||||
$('#addStartDate').val('');
|
$('#addStartDate').val('');
|
||||||
$('#addEndDate').val('');
|
$('#addEndDate').val('');
|
||||||
|
|
||||||
|
// 分区处理
|
||||||
|
$.ajax({
|
||||||
|
type: 'get',
|
||||||
|
url: '/partition/listPartitionInfo',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (json) {
|
||||||
|
if (json.code == 200) {
|
||||||
|
var length = json.data.length;
|
||||||
|
var partitionCheck = $("#partitionAddCheck");
|
||||||
|
partitionCheck.empty();
|
||||||
|
// 创建3个checkbox元素并添加到myDiv元素上
|
||||||
|
for (var i = 0; i < length; i++) {
|
||||||
|
var checkbox = $("<input>", {
|
||||||
|
type: "checkbox",
|
||||||
|
id: "checkbox" + json.data[i].id,
|
||||||
|
name: "partitionIds",
|
||||||
|
value: json.data[i].id
|
||||||
|
});
|
||||||
|
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
|
||||||
|
|
||||||
|
partitionCheck.append(checkbox, label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// 处理appId
|
// 处理appId
|
||||||
// $('#addAppId').empty();
|
// $('#addAppId').empty();
|
||||||
// $('#addAppId').append('<option value="">请选择</option>');
|
// $('#addAppId').append('<option value="">请选择</option>');
|
||||||
@@ -798,7 +898,7 @@ export default {
|
|||||||
if ($('#addBannerForm').validationEngine('validate')) {
|
if ($('#addBannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?startTimeString=" + $('#addStartDate').val()
|
url: "/admin/banner/save?startTimeString=" + $('#addStartDate').val()
|
||||||
+ "&endTimeString=" + $('#addEndDate').val(),
|
+ "&endTimeString=" + $('#addEndDate').val(),
|
||||||
data: $('#addBannerForm').serialize(),
|
data: $('#addBannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -853,7 +953,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/upload.action',
|
url: '/admin/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -870,7 +970,7 @@ export default {
|
|||||||
$('#addUploadBtn').on('click', function () {
|
$('#addUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/upload.action',
|
url: '/admin/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -929,7 +1029,7 @@ export default {
|
|||||||
if (confirm("你确认删除选中Banner吗?")) {
|
if (confirm("你确认删除选中Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delete.action",
|
url: "/admin/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -956,7 +1056,7 @@ export default {
|
|||||||
if (confirm("你确认删除Banner吗?")) {
|
if (confirm("你确认删除Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delete.action",
|
url: "/admin/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -975,7 +1075,25 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
initPartition() {
|
||||||
|
getPartitionInfoList().then(res => {
|
||||||
|
let data = res.data;
|
||||||
|
buildSelectOption(
|
||||||
|
"#partitionId",
|
||||||
|
null,
|
||||||
|
[{
|
||||||
|
value: '',
|
||||||
|
text: '全部',
|
||||||
|
}].concat(data.map((v) => {
|
||||||
|
return {
|
||||||
|
value: v.id,
|
||||||
|
text: v.desc,
|
||||||
|
};
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -1027,4 +1145,10 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.partition-checkbox-label {
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
@@ -148,7 +148,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpageopt/add.action",
|
url: "/admin/firstpageopt/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -169,7 +169,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpageopt/update.action",
|
url: "/admin/firstpageopt/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpageopt/delete.action',
|
url: '/admin/firstpageopt/delete',
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -330,7 +330,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'name',
|
uniqueId: 'name',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/firstpageopt/list.action',
|
url: '/admin/firstpageopt/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -235,7 +235,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/firstpagetabroom/list.action',
|
url: '/admin/firstpagetabroom/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -335,7 +335,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagetabroom/delete.action',
|
url: '/admin/firstpagetabroom/delete',
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -379,7 +379,7 @@ export default {
|
|||||||
var status = (data.status == false) ? 1 : 0;
|
var status = (data.status == false) ? 1 : 0;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagetabroom/changeRoomStatus.action',
|
url: '/admin/firstpagetabroom/changeRoomStatus',
|
||||||
data: {
|
data: {
|
||||||
status: status,
|
status: status,
|
||||||
id: id
|
id: id
|
||||||
@@ -421,7 +421,7 @@ export default {
|
|||||||
if ($('#editTab').validationEngine('validate')) {
|
if ($('#editTab').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagetabroom/update.action',
|
url: '/admin/firstpagetabroom/update',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: $('#id').val(),
|
id: $('#id').val(),
|
||||||
@@ -457,7 +457,7 @@ export default {
|
|||||||
if ($('#addTabRoom').validationEngine('validate')) {
|
if ($('#addTabRoom').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpagetabroom/add.action?tabId=" + $('#tabName').val()
|
url: "/admin/firstpagetabroom/add?tabId=" + $('#tabName').val()
|
||||||
+ "&tabName=" + $("#tabName").find("option:selected").text(),
|
+ "&tabName=" + $("#tabName").find("option:selected").text(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: $('#addTabRoom').serialize(),
|
data: $('#addTabRoom').serialize(),
|
||||||
@@ -479,7 +479,7 @@ export default {
|
|||||||
$('#addUploadBtn').on('click', function () {
|
$('#addUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagebanner/headimg.action',
|
url: '/admin/firstpagebanner/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -497,7 +497,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagebanner/headimg.action',
|
url: '/admin/firstpagebanner/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -548,7 +548,7 @@ export default {
|
|||||||
if (confirm("你确认删除选中房间吗?")) {
|
if (confirm("你确认删除选中房间吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/firstpagetabroom/delete.action",
|
url: "/admin/firstpagetabroom/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr),
|
'ids': JSON.stringify(idArr),
|
||||||
'moduleIds': moduleIdArr,
|
'moduleIds': moduleIdArr,
|
||||||
|
@@ -269,7 +269,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpagetab/add.action",
|
url: "/admin/firstpagetab/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -295,7 +295,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpagetab/update.action",
|
url: "/admin/firstpagetab/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -322,7 +322,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/firstpagetab/delete.action',
|
url: '/admin/firstpagetab/delete',
|
||||||
data: { 'tabId': tabId },
|
data: { 'tabId': tabId },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -464,7 +464,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'tabId',
|
uniqueId: 'tabId',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/firstpagetab/list.action',
|
url: '/admin/firstpagetab/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -243,7 +243,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/home/resource/list.action',
|
url: '/admin/home/resource/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
@@ -311,7 +311,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/home/resource/saveResource.action",
|
url: "/admin/home/resource/saveResource",
|
||||||
data: {
|
data: {
|
||||||
strategySeq: strategySeq,
|
strategySeq: strategySeq,
|
||||||
resourceA: resourceA,
|
resourceA: resourceA,
|
||||||
@@ -348,7 +348,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/home/resource/getResourceByStrategySeq.action",
|
url: "/admin/home/resource/getResourceByStrategySeq",
|
||||||
data: { seq: seq },
|
data: { seq: seq },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -404,7 +404,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/home/resource/deleteByStrategySeq.action",
|
url: "/admin/home/resource/deleteByStrategySeq",
|
||||||
data: { seq: seq },
|
data: { seq: seq },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -216,7 +216,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/firstpage/room/recommend/list.action',
|
url: '/admin/firstpage/room/recommend/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -272,7 +272,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/firstpage/room/recommend/add.action",
|
url: "/admin/firstpage/room/recommend/add",
|
||||||
data: {
|
data: {
|
||||||
erbanNo: erbanNo,
|
erbanNo: erbanNo,
|
||||||
seqNo: seqNo,
|
seqNo: seqNo,
|
||||||
@@ -309,7 +309,7 @@ export default {
|
|||||||
if (confirm("你确认下线该房间吗?")) {
|
if (confirm("你确认下线该房间吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/firstpage/room/recommend/offline.action",
|
url: "/admin/firstpage/room/recommend/offline",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -109,7 +109,7 @@ export default {
|
|||||||
options.push('<option value="">选择小组</option>')
|
options.push('<option value="">选择小组</option>')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeamByGroupId.action",
|
url: "/admin/flowTeam/listTeamByGroupId",
|
||||||
data: {
|
data: {
|
||||||
groupId: groupId
|
groupId: groupId
|
||||||
},
|
},
|
||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
// 加载流量团队配置
|
// 加载流量团队配置
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeam.action",
|
url: "/admin/flowTeam/listTeam",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -143,7 +143,7 @@ export default {
|
|||||||
const options = [];
|
const options = [];
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeamByGroupId.action",
|
url: "/admin/flowTeam/listTeamByGroupId",
|
||||||
data: {
|
data: {
|
||||||
groupId: groupId
|
groupId: groupId
|
||||||
},
|
},
|
||||||
@@ -183,7 +183,7 @@ export default {
|
|||||||
// 加载流量团队配置
|
// 加载流量团队配置
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeam.action",
|
url: "/admin/flowTeam/listTeam",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -341,7 +341,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/flowTeam/listFlowMembersByPage.action',
|
url: '/admin/flowTeam/listFlowMembersByPage',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success", data);
|
console.log("load success", data);
|
||||||
memberList = data.rows;
|
memberList = data.rows;
|
||||||
@@ -392,7 +392,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/flowTeam/saveMember.action",
|
url: "/admin/flowTeam/saveMember",
|
||||||
data: JSON.stringify(requestParam),
|
data: JSON.stringify(requestParam),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
@@ -434,7 +434,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/flowTeam/changeMemberStatus.action",
|
url: "/admin/flowTeam/changeMemberStatus",
|
||||||
data: JSON.stringify(requestParam),
|
data: JSON.stringify(requestParam),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
|
@@ -90,7 +90,7 @@ export default {
|
|||||||
const options = ['<option value="">全部</option>'];
|
const options = ['<option value="">全部</option>'];
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeamByGroupId.action",
|
url: "/admin/flowTeam/listTeamByGroupId",
|
||||||
data: {
|
data: {
|
||||||
groupId: groupId
|
groupId: groupId
|
||||||
},
|
},
|
||||||
@@ -126,7 +126,7 @@ export default {
|
|||||||
// 加载流量团队配置
|
// 加载流量团队配置
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeam.action",
|
url: "/admin/flowTeam/listTeam",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -244,7 +244,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/flowteamSettlement/listTeamSettlementData.action',
|
url: '/admin/flowteamSettlement/listTeamSettlementData',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -316,7 +316,7 @@ export default {
|
|||||||
teamDetailQueryParams = param;
|
teamDetailQueryParams = param;
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/flowteamSettlement/listTeamSettlementDataDetail.action',
|
url: '/admin/flowteamSettlement/listTeamSettlementDataDetail',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#teamDetailModal").modal('show');
|
$("#teamDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
|
@@ -191,7 +191,7 @@ export default {
|
|||||||
const options = ['<option value="">全部</option>'];
|
const options = ['<option value="">全部</option>'];
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeamByGroupId.action",
|
url: "/admin/flowTeam/listTeamByGroupId",
|
||||||
data: {
|
data: {
|
||||||
groupId: groupId
|
groupId: groupId
|
||||||
},
|
},
|
||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
// 加载流量团队配置
|
// 加载流量团队配置
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeam.action",
|
url: "/admin/flowTeam/listTeam",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
{ field: 'chargeRate', title: '付费转化', align: 'center', width: '5%', },
|
{ field: 'chargeRate', title: '付费转化', align: 'center', width: '5%', },
|
||||||
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%', },
|
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%', },
|
||||||
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
||||||
{ field: 'sendGiftMony', title: '送礼钻石数', align: 'center', width: '5%', },
|
{ field: 'sendGiftMony', title: '送礼金币数', align: 'center', width: '5%', },
|
||||||
{ field: 'giveCount', title: '累计收到转赠次数', align: 'center', width: '5%', },
|
{ field: 'giveCount', title: '累计收到转赠次数', align: 'center', width: '5%', },
|
||||||
{ field: 'giveMoney', title: '累计收到转赠金额', align: 'center', width: '5%', },
|
{ field: 'giveMoney', title: '累计收到转赠金额', align: 'center', width: '5%', },
|
||||||
{ field: 'arpu', title: 'Arpu', align: 'center', width: '5%', },
|
{ field: 'arpu', title: 'Arpu', align: 'center', width: '5%', },
|
||||||
@@ -418,7 +418,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
// toolbar: '#toolbar',
|
// toolbar: '#toolbar',
|
||||||
url: '/admin/flowTeam/listStatisticSummary.action',
|
url: '/admin/flowTeam/listStatisticSummary',
|
||||||
onLoadSuccess: function (json) { //加载成功时执行
|
onLoadSuccess: function (json) { //加载成功时执行
|
||||||
console.log("table load success");
|
console.log("table load success");
|
||||||
if ($('#query-groupSelector').val() && !$('#query-teamSelector').val()) {
|
if ($('#query-groupSelector').val() && !$('#query-teamSelector').val()) {
|
||||||
@@ -507,7 +507,7 @@ export default {
|
|||||||
{ field: 'tchargeRate', title: '付费转化', align: 'center', width: '5%', },
|
{ field: 'tchargeRate', title: '付费转化', align: 'center', width: '5%', },
|
||||||
{ field: 'tchargeCount', title: '充值次数', align: 'center', width: '5%', },
|
{ field: 'tchargeCount', title: '充值次数', align: 'center', width: '5%', },
|
||||||
{ field: 'tchargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
{ field: 'tchargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
||||||
{ field: 'tsendGiftMony', title: '送礼钻石数', align: 'center', width: '5%', },
|
{ field: 'tsendGiftMony', title: '送礼金币数', align: 'center', width: '5%', },
|
||||||
{ field: 'tgiveCount', title: '累计收到转赠次数', align: 'center', width: '5%', },
|
{ field: 'tgiveCount', title: '累计收到转赠次数', align: 'center', width: '5%', },
|
||||||
{ field: 'tgiveMoney', title: '累计收到转赠金额', align: 'center', width: '5%', },
|
{ field: 'tgiveMoney', title: '累计收到转赠金额', align: 'center', width: '5%', },
|
||||||
{ field: 'tarpu', title: 'Arpu', align: 'center', width: '5%', },
|
{ field: 'tarpu', title: 'Arpu', align: 'center', width: '5%', },
|
||||||
@@ -601,7 +601,7 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/roomtag/saveRoomTag.action",
|
url: "/admin/roomtag/saveRoomTag",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -666,7 +666,7 @@ export default {
|
|||||||
{ field: 'chargeRate', title: '付费转化', align: 'center', width: '5%', },
|
{ field: 'chargeRate', title: '付费转化', align: 'center', width: '5%', },
|
||||||
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%', },
|
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%', },
|
||||||
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%', },
|
||||||
{ field: 'sendGiftMony', title: '送礼钻石数', align: 'center', width: '5%', },
|
{ field: 'sendGiftMony', title: '送礼金币数', align: 'center', width: '5%', },
|
||||||
{ field: 'arpu', title: 'Arpu', align: 'center', width: '5%', },
|
{ field: 'arpu', title: 'Arpu', align: 'center', width: '5%', },
|
||||||
{
|
{
|
||||||
field: 'memberId',
|
field: 'memberId',
|
||||||
@@ -699,7 +699,7 @@ export default {
|
|||||||
detailTeamId = teamId;
|
detailTeamId = teamId;
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/flowTeam/listFlowTeamStatisticDetails.action',
|
url: '/admin/flowTeam/listFlowTeamStatisticDetails',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#teamDetailModal").modal('show');
|
$("#teamDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
@@ -726,9 +726,9 @@ export default {
|
|||||||
{ field: 'signUpTime', title: '新增日期', align: 'center', width: '5%' },
|
{ field: 'signUpTime', title: '新增日期', align: 'center', width: '5%' },
|
||||||
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%' },
|
{ field: 'chargeCount', title: '充值次数', align: 'center', width: '5%' },
|
||||||
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%' },
|
{ field: 'chargeMoney', title: '充值金额(美元)', align: 'center', width: '5%' },
|
||||||
{ field: 'totalSendGiftMoney', title: '送礼钻石数', align: 'center', width: '5%' },
|
{ field: 'totalSendGiftMoney', title: '送礼金币数', align: 'center', width: '5%' },
|
||||||
{ field: 'totalBackbagSendGiftMoney', title: '送礼背包钻石数', align: 'center', width: '5%' },
|
{ field: 'totalBackbagSendGiftMoney', title: '送礼背包金币数', align: 'center', width: '5%' },
|
||||||
{ field: 'totalNoBackbagSendGiftMoney', title: '送礼非背包钻石数', align: 'center', width: '5%' },
|
{ field: 'totalNoBackbagSendGiftMoney', title: '送礼非背包金币数', align: 'center', width: '5%' },
|
||||||
],
|
],
|
||||||
undefinedText: 0,
|
undefinedText: 0,
|
||||||
cache: false,
|
cache: false,
|
||||||
@@ -750,7 +750,7 @@ export default {
|
|||||||
userDetailQueryParams = param;
|
userDetailQueryParams = param;
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/flowTeam/listUserStatisticDetails.action',
|
url: '/admin/flowTeam/listUserStatisticDetails',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
$("#userDetailModal").modal('show');
|
$("#userDetailModal").modal('show');
|
||||||
},
|
},
|
||||||
|
@@ -85,7 +85,7 @@ export default {
|
|||||||
// 加载流量团队配置
|
// 加载流量团队配置
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/flowTeam/listTeam.action",
|
url: "/admin/flowTeam/listTeam",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -149,7 +149,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/flowTeam/listUsers.action',
|
url: '/admin/flowTeam/listUsers',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
tableData = data;
|
tableData = data;
|
||||||
},
|
},
|
||||||
@@ -232,7 +232,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/flowTeam/refillUserInviteCode.action",
|
url: "/admin/flowTeam/refillUserInviteCode",
|
||||||
data: JSON.stringify(requestParam),
|
data: JSON.stringify(requestParam),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
|
@@ -150,7 +150,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameAccessUrl/add.action",
|
url: "/admin/gameAccessUrl/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -171,7 +171,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameAccessUrl/update.action",
|
url: "/admin/gameAccessUrl/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameAccessUrl/delete.action',
|
url: '/admin/gameAccessUrl/delete',
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -294,7 +294,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'accessUrl',
|
uniqueId: 'accessUrl',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameAccessUrl/list.action',
|
url: '/admin/gameAccessUrl/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -383,7 +383,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameActivityRank/getById.action",
|
url: "/admin/gameActivityRank/getById",
|
||||||
data: { "id": id },
|
data: { "id": id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -426,7 +426,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameActivityRank/add.action",
|
url: "/admin/gameActivityRank/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -447,7 +447,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameActivityRank/update.action",
|
url: "/admin/gameActivityRank/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -474,7 +474,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameActivityRank/delete.action',
|
url: '/admin/gameActivityRank/delete',
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -756,7 +756,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameActivityRank/list.action',
|
url: '/admin/gameActivityRank/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -175,7 +175,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gamechannel/add.action",
|
url: "/admin/gamechannel/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gamechannel/update.action",
|
url: "/admin/gamechannel/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -223,7 +223,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gamechannel/delete.action',
|
url: '/admin/gamechannel/delete',
|
||||||
data: { 'channelId': id },
|
data: { 'channelId': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'channelId',
|
uniqueId: 'channelId',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gamechannel/list.action',
|
url: '/admin/gamechannel/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -150,7 +150,7 @@ export default {
|
|||||||
$('#uploadGameBtn').on('click', function () {
|
$('#uploadGameBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameFace/headimg.action',
|
url: '/admin/gameFace/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -168,7 +168,7 @@ export default {
|
|||||||
$('#addGameUploadBtn').on('click', function () {
|
$('#addGameUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameFace/headimg.action',
|
url: '/admin/gameFace/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -187,7 +187,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameFace/add.action",
|
url: "/admin/gameFace/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameFace/update.action",
|
url: "/admin/gameFace/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameFace/delete.action',
|
url: '/admin/gameFace/delete',
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -352,7 +352,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'type',
|
uniqueId: 'type',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameFace/list.action',
|
url: '/admin/gameFace/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -414,7 +414,7 @@ export default {
|
|||||||
var gameId = $(this).attr("data-id");
|
var gameId = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameinfo/getByGameId.action",
|
url: "/admin/gameinfo/getByGameId",
|
||||||
data: { "gameId": gameId },
|
data: { "gameId": gameId },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -451,7 +451,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameinfo/add.action",
|
url: "/admin/gameinfo/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -472,7 +472,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameinfo/update.action",
|
url: "/admin/gameinfo/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -500,7 +500,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/delete.action',
|
url: '/admin/gameinfo/delete',
|
||||||
data: { 'gameId': id },
|
data: { 'gameId': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -553,7 +553,7 @@ export default {
|
|||||||
var gameId = $(this).attr("data-id");
|
var gameId = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameinfo/getByGameId.action",
|
url: "/admin/gameinfo/getByGameId",
|
||||||
data: { "gameId": gameId },
|
data: { "gameId": gameId },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -590,7 +590,7 @@ export default {
|
|||||||
if ($('#actForm').validationEngine('validate')) {
|
if ($('#actForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameinfo/add.action",
|
url: "/admin/gameinfo/add",
|
||||||
data: $('#actForm').serialize(),
|
data: $('#actForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -611,7 +611,7 @@ export default {
|
|||||||
if ($('#editForm').validationEngine('validate')) {
|
if ($('#editForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameinfo/update.action",
|
url: "/admin/gameinfo/update",
|
||||||
data: $('#editForm').serialize(),
|
data: $('#editForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -639,7 +639,7 @@ export default {
|
|||||||
if (confirm("你确认删除吗?")) {
|
if (confirm("你确认删除吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/delete.action',
|
url: '/admin/gameinfo/delete',
|
||||||
data: { 'gameId': id },
|
data: { 'gameId': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -673,7 +673,7 @@ export default {
|
|||||||
$('#addGameUploadBtn').on('click', function () {
|
$('#addGameUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimg.action',
|
url: '/admin/gameinfo/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -691,7 +691,7 @@ export default {
|
|||||||
$('#addPicUploadBtn').on('click', function () {
|
$('#addPicUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimgforpicture.action',
|
url: '/admin/gameinfo/headimgforpicture',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -710,7 +710,7 @@ export default {
|
|||||||
$('#addTagUploadBtn').on('click', function () {
|
$('#addTagUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimgfortag.action',
|
url: '/admin/gameinfo/headimgfortag',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -729,7 +729,7 @@ export default {
|
|||||||
$('#uploadGameBtn').on('click', function () {
|
$('#uploadGameBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimg.action',
|
url: '/admin/gameinfo/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -747,7 +747,7 @@ export default {
|
|||||||
$('#uploadPicBtn').on('click', function () {
|
$('#uploadPicBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimgforpicture.action',
|
url: '/admin/gameinfo/headimgforpicture',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -766,7 +766,7 @@ export default {
|
|||||||
$('#uploadTagBtn').on('click', function () {
|
$('#uploadTagBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameinfo/headimgfortag.action',
|
url: '/admin/gameinfo/headimgfortag',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -1014,7 +1014,7 @@ function initTable() {
|
|||||||
},
|
},
|
||||||
uniqueId: 'gameId',
|
uniqueId: 'gameId',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameinfo/list.action',
|
url: '/admin/gameinfo/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -90,7 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameManage/billRecord/getList.action',
|
url: '/admin/gameManage/billRecord/getList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
tableLoaded = true;
|
tableLoaded = true;
|
||||||
@@ -157,7 +157,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var form = $("#form");
|
var form = $("#form");
|
||||||
form.attr("action", "/admin/gameManage/billRecord/exportList.action");
|
form.attr("action", "/admin/gameManage/billRecord/exportList");
|
||||||
$('#exportplatformNo').val($('#platformNo').val());
|
$('#exportplatformNo').val($('#platformNo').val());
|
||||||
$('#exportBillType').val($('#billType').val());
|
$('#exportBillType').val($('#billType').val());
|
||||||
$('#exportStartTime').val($('#startDate').val());
|
$('#exportStartTime').val($('#startDate').val());
|
||||||
@@ -168,7 +168,7 @@ export default {
|
|||||||
// 通过接口获取所有账单类型
|
// 通过接口获取所有账单类型
|
||||||
function getObjTypes() {
|
function getObjTypes() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/admin/gameManage/billRecord/objTypeList.action",
|
url: "/admin/gameManage/billRecord/objTypeList",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
async: false,
|
async: false,
|
||||||
datatype: 'json',
|
datatype: 'json',
|
||||||
|
@@ -632,7 +632,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameManage/banner/list.action',
|
url: '/admin/gameManage/banner/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -658,7 +658,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/gameManage/banner/get.action',
|
url: '/admin/gameManage/banner/get',
|
||||||
data: { 'bannerId': id },
|
data: { 'bannerId': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -739,7 +739,7 @@ export default {
|
|||||||
if ($('#bannerForm').validationEngine('validate')) {
|
if ($('#bannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/banner/save.action?startTimeString=" + $('#startDate').val()
|
url: "/admin/gameManage/banner/save?startTimeString=" + $('#startDate').val()
|
||||||
+ "&endTimeString=" + $('#endDate').val(),
|
+ "&endTimeString=" + $('#endDate').val(),
|
||||||
data: $('#bannerForm').serialize(),
|
data: $('#bannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -791,7 +791,7 @@ export default {
|
|||||||
if ($('#addBannerForm').validationEngine('validate')) {
|
if ($('#addBannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/banner/save.action?startTimeString=" + $('#addStartDate').val()
|
url: "/admin/gameManage/banner/save?startTimeString=" + $('#addStartDate').val()
|
||||||
+ "&endTimeString=" + $('#addEndDate').val(),
|
+ "&endTimeString=" + $('#addEndDate').val(),
|
||||||
data: $('#addBannerForm').serialize(),
|
data: $('#addBannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -846,7 +846,7 @@ export default {
|
|||||||
$('#uploadBtn').on('click', function () {
|
$('#uploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameManage/banner/upload.action',
|
url: '/admin/gameManage/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -863,7 +863,7 @@ export default {
|
|||||||
$('#addUploadBtn').on('click', function () {
|
$('#addUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/gameManage/banner/upload.action',
|
url: '/admin/gameManage/banner/upload',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.code == 200) {
|
if (json.code == 200) {
|
||||||
@@ -922,7 +922,7 @@ export default {
|
|||||||
if (confirm("你确认删除选中Banner吗?")) {
|
if (confirm("你确认删除选中Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/gameManage/banner/delete.action",
|
url: "/admin/gameManage/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -949,7 +949,7 @@ export default {
|
|||||||
if (confirm("你确认删除Banner吗?")) {
|
if (confirm("你确认删除Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/gameManage/banner/delete.action",
|
url: "/admin/gameManage/banner/delete",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
|
@@ -249,7 +249,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gamemanage/channelticket/list.action',
|
url: '/admin/gamemanage/channelticket/list',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success", data);
|
console.log("load success", data);
|
||||||
pageList = data;
|
pageList = data;
|
||||||
@@ -272,7 +272,7 @@ export default {
|
|||||||
if (confirm(`你确认关闭该门票包链接吗?`)) {
|
if (confirm(`你确认关闭该门票包链接吗?`)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/gamemanage/channelticket/closeShare.action",
|
url: "/admin/gamemanage/channelticket/closeShare",
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
data.append('file_' + 0, files[0]);
|
data.append('file_' + 0, files[0]);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/admin/upload/patch.action",
|
url: "/admin/upload/patch",
|
||||||
data: data,
|
data: data,
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false, //不可缺
|
contentType: false, //不可缺
|
||||||
@@ -484,7 +484,7 @@ export default {
|
|||||||
if ($("#ticketForm").validationEngine('validate')) {
|
if ($("#ticketForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gamemanage/channelticket/saveOrUpdate.action",
|
url: "/admin/gamemanage/channelticket/saveOrUpdate",
|
||||||
data: $('#ticketForm').serialize(),
|
data: $('#ticketForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -80,7 +80,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameManage/giveTicket.action",
|
url: "/admin/gameManage/giveTicket",
|
||||||
data: { 'erbanNos': erbanNos, 'num': num, 'ticketId': ticketId },
|
data: { 'erbanNos': erbanNos, 'num': num, 'ticketId': ticketId },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -205,7 +205,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
uniqueId: 'matchGroupId',
|
uniqueId: 'matchGroupId',
|
||||||
url: '/admin/gameManage/listGroupByPage.action',
|
url: '/admin/gameManage/listGroupByPage',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -287,7 +287,7 @@ export default {
|
|||||||
console.log("updateId", $("#updateId").val());
|
console.log("updateId", $("#updateId").val());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameManage/saveOrUpdateGroup.action",
|
url: "/admin/gameManage/saveOrUpdateGroup",
|
||||||
data: $("#updateForm").serialize(),
|
data: $("#updateForm").serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -308,7 +308,7 @@ export default {
|
|||||||
$("#add").click(function () {
|
$("#add").click(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameManage/saveOrUpdateGroup.action",
|
url: "/admin/gameManage/saveOrUpdateGroup",
|
||||||
data: $("#addForm").serialize(),
|
data: $("#addForm").serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -625,7 +625,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/gameManage/listGameByPage.action',
|
url: '/admin/gameManage/listGameByPage',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
@@ -640,7 +640,7 @@ export default {
|
|||||||
function getGameMoneyStat() {
|
function getGameMoneyStat() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/gameManage/getGameMoneyStat.action",
|
url: "/admin/gameManage/getGameMoneyStat",
|
||||||
data: {
|
data: {
|
||||||
groupId: $("#queryGroupId").val(),
|
groupId: $("#queryGroupId").val(),
|
||||||
queryStatus: $("#queryStatus").val(),
|
queryStatus: $("#queryStatus").val(),
|
||||||
|
@@ -761,7 +761,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/gameManage/listGameByPage.action',
|
url: '/admin/gameManage/listGameByPage',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
matchList = data.rows;
|
matchList = data.rows;
|
||||||
|
@@ -118,7 +118,7 @@ export default {
|
|||||||
pagination: false,
|
pagination: false,
|
||||||
pageList: [20, 50, 100, 200, 300, 500],
|
pageList: [20, 50, 100, 200, 300, 500],
|
||||||
search: false,
|
search: false,
|
||||||
url: '/admin/ticket/access/listAccessWithStatus.action',
|
url: '/admin/ticket/access/listAccessWithStatus',
|
||||||
sidePagination: "server", //表示服务端请求
|
sidePagination: "server", //表示服务端请求
|
||||||
queryParamsType: "undefined",
|
queryParamsType: "undefined",
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
@@ -153,7 +153,7 @@ export default {
|
|||||||
if (confirm(`你确认要${tips}吗?`)) {
|
if (confirm(`你确认要${tips}吗?`)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: "/admin/ticket/access/changeTicketAccessStatus.action",
|
url: "/admin/ticket/access/changeTicketAccessStatus",
|
||||||
data: { 'type': type, 'status': status },
|
data: { 'type': type, 'status': status },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -179,7 +179,7 @@ export default {
|
|||||||
$('#limitNumDiv').show()
|
$('#limitNumDiv').show()
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/ticket/access/listAccessTicketByType.action",
|
url: "/admin/ticket/access/listAccessTicketByType",
|
||||||
data: { type: type },
|
data: { type: type },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -251,7 +251,7 @@ export default {
|
|||||||
console.log(tickets)
|
console.log(tickets)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/ticket/access/saveOrUpdate.action",
|
url: "/admin/ticket/access/saveOrUpdate",
|
||||||
data: {
|
data: {
|
||||||
type: $('#modelType').val(),
|
type: $('#modelType').val(),
|
||||||
tickets: JSON.stringify(tickets),
|
tickets: JSON.stringify(tickets),
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<form action="/admin/ticket/access/exportList.action" id="searchForm" method="GET">
|
<form action="/admin/ticket/access/exportList" id="searchForm" method="GET">
|
||||||
门票ID:<input type="text" name="ticketUid" id="ticketUid" class="input-sm" />
|
门票ID:<input type="text" name="ticketUid" id="ticketUid" class="input-sm" />
|
||||||
门票名称:<input type="text" name="ticketName" id="ticketName" class="input-sm" />
|
门票名称:<input type="text" name="ticketName" id="ticketName" class="input-sm" />
|
||||||
平台号:<input type="text" name="erbanNO" id="erbanNO" class="input-sm" />
|
平台号:<input type="text" name="erbanNO" id="erbanNO" class="input-sm" />
|
||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
url: '/admin/ticket/access/listTicketWalletHistory.action',
|
url: '/admin/ticket/access/listTicketWalletHistory',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
|
@@ -293,7 +293,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameManage/withdraw/list.action',
|
url: '/admin/gameManage/withdraw/list',
|
||||||
onLoadSuccess: function (json) { //加载成功时执行
|
onLoadSuccess: function (json) { //加载成功时执行
|
||||||
var totalNum = json.totalNum;
|
var totalNum = json.totalNum;
|
||||||
if (totalNum != undefined) {
|
if (totalNum != undefined) {
|
||||||
@@ -348,7 +348,7 @@ export default {
|
|||||||
console.log("id: " + id);
|
console.log("id: " + id);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/withdraw/approve.action",
|
url: "/admin/gameManage/withdraw/approve",
|
||||||
//data: $('#withdrawForm').serialize(),
|
//data: $('#withdrawForm').serialize(),
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -384,7 +384,7 @@ export default {
|
|||||||
if (confirm("你确认批量批准提现吗?")) {
|
if (confirm("你确认批量批准提现吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/gameManage/withdraw/batchApprove.action",
|
url: "/admin/gameManage/withdraw/batchApprove",
|
||||||
data: { 'ids': JSON.stringify(idArr) },
|
data: { 'ids': JSON.stringify(idArr) },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -413,7 +413,7 @@ export default {
|
|||||||
if (confirm("确认转账吗?")) {
|
if (confirm("确认转账吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/withdraw/transfer.action",
|
url: "/admin/gameManage/withdraw/transfer",
|
||||||
//data: $('#withdrawForm').serialize(),
|
//data: $('#withdrawForm').serialize(),
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -459,7 +459,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/withdraw/transfer/search.action",
|
url: "/admin/gameManage/withdraw/transfer/search",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -493,7 +493,7 @@ export default {
|
|||||||
if (confirm("你确认批量转账吗?")) {
|
if (confirm("你确认批量转账吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/gameManage/withdraw/batchTransfer.action",
|
url: "/admin/gameManage/withdraw/batchTransfer",
|
||||||
data: { 'ids': JSON.stringify(idArr) },
|
data: { 'ids': JSON.stringify(idArr) },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -557,7 +557,7 @@ export default {
|
|||||||
if ($("#rejectForm").validationEngine('validate')) {
|
if ($("#rejectForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/withdraw/reject.action",
|
url: "/admin/gameManage/withdraw/reject",
|
||||||
//data: $('#rejectForm').serialize(),
|
//data: $('#rejectForm').serialize(),
|
||||||
data: { withdrawId: withdrawId, remark: remark },
|
data: { withdrawId: withdrawId, remark: remark },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
@@ -210,7 +210,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/gameManage/listTicketByPage.action',
|
url: '/admin/gameManage/listTicketByPage',
|
||||||
onLoadSuccess: function (data) { //加载成功时执行
|
onLoadSuccess: function (data) { //加载成功时执行
|
||||||
console.log("load success", data);
|
console.log("load success", data);
|
||||||
pageList = data;
|
pageList = data;
|
||||||
@@ -237,7 +237,7 @@ export default {
|
|||||||
if (confirm(`你确认${tips}该门票吗?`)) {
|
if (confirm(`你确认${tips}该门票吗?`)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/gameManage/changeTicketStatus.action",
|
url: "/admin/gameManage/changeTicketStatus",
|
||||||
data: { 'ticketId': id, 'newStatus': status },
|
data: { 'ticketId': id, 'newStatus': status },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/gameManage/getTicket.action",
|
url: "/admin/gameManage/getTicket",
|
||||||
data: { ticketId: id },
|
data: { ticketId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
if ($("#ticketForm").validationEngine('validate')) {
|
if ($("#ticketForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/gameManage/saveTicket.action",
|
url: "/admin/gameManage/saveTicket",
|
||||||
data: $('#ticketForm').serialize(),
|
data: $('#ticketForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -331,7 +331,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/guild/room/list.action',
|
url: '/admin/guild/room/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -378,7 +378,7 @@ export default {
|
|||||||
if ($("#guildForm").validationEngine('validate')) {
|
if ($("#guildForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/guild/room/save.action",
|
url: "/admin/guild/room/save",
|
||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
roomUid: roomUid,
|
roomUid: roomUid,
|
||||||
@@ -421,7 +421,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/guild/room/getById.action.action",
|
url: "/admin/guild/room/getById",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -471,7 +471,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/guild/room/delete.action",
|
url: "/admin/guild/room/delete",
|
||||||
data: { 'id': id },
|
data: { 'id': id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -364,7 +364,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/clan/listStats.action',
|
url: '/admin/clan/listStats',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
tableLoaded = true;
|
tableLoaded = true;
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
@@ -401,7 +401,7 @@ export default {
|
|||||||
const clanId = $(this).attr('clanId');
|
const clanId = $(this).attr('clanId');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/getClanInfo.action",
|
url: "/admin/clan/getClanInfo",
|
||||||
data: {
|
data: {
|
||||||
clanId: clanId,
|
clanId: clanId,
|
||||||
},
|
},
|
||||||
@@ -441,7 +441,7 @@ export default {
|
|||||||
const clanId = $(this).attr('clanId');
|
const clanId = $(this).attr('clanId');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/getClanSuperAdminInfo.action",
|
url: "/admin/clan/getClanSuperAdminInfo",
|
||||||
data: {
|
data: {
|
||||||
clanId: clanId,
|
clanId: clanId,
|
||||||
},
|
},
|
||||||
@@ -473,7 +473,7 @@ export default {
|
|||||||
var superUid = $(this).parent().siblings('.superUid').text();
|
var superUid = $(this).parent().siblings('.superUid').text();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/getSuperAdminManageInfo.action",
|
url: "/admin/clan/getSuperAdminManageInfo",
|
||||||
data: { superUid: superUid },
|
data: { superUid: superUid },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -495,7 +495,7 @@ export default {
|
|||||||
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/clan/deleteSuperAdmin.action",
|
url: "/admin/clan/deleteSuperAdmin",
|
||||||
data: param,
|
data: param,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -532,7 +532,7 @@ export default {
|
|||||||
param.type = $('#modal_type').val();
|
param.type = $('#modal_type').val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/clan/superSaveOrUpdate.action',
|
url: '/admin/clan/superSaveOrUpdate',
|
||||||
data: param,
|
data: param,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@@ -566,7 +566,7 @@ export default {
|
|||||||
if (confirm("你确认删除该家族吗?")) {
|
if (confirm("你确认删除该家族吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/del.action",
|
url: "/admin/clan/del",
|
||||||
data: {
|
data: {
|
||||||
clanId: clanId,
|
clanId: clanId,
|
||||||
},
|
},
|
||||||
@@ -592,7 +592,7 @@ export default {
|
|||||||
console.log("updateId", $("#updateId").val());
|
console.log("updateId", $("#updateId").val());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/update.action",
|
url: "/admin/clan/update",
|
||||||
data: {
|
data: {
|
||||||
clanId: $("#updateId").val(),
|
clanId: $("#updateId").val(),
|
||||||
elderErbanNo: $("#updatemodal_elderErbanNo").val(),
|
elderErbanNo: $("#updatemodal_elderErbanNo").val(),
|
||||||
@@ -622,7 +622,7 @@ export default {
|
|||||||
console.log("$(#avatar).val()", $("#addAvatar").val())
|
console.log("$(#avatar).val()", $("#addAvatar").val())
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/add.action",
|
url: "/admin/clan/add",
|
||||||
data: {
|
data: {
|
||||||
elderErbanNo: $("#modal_elderErbanNo").val(),
|
elderErbanNo: $("#modal_elderErbanNo").val(),
|
||||||
clanName: $("#module_clanName").val(),
|
clanName: $("#module_clanName").val(),
|
||||||
@@ -648,7 +648,7 @@ export default {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/clan/listClanLevelForSelect.action",
|
url: "/admin/clan/listClanLevelForSelect",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success) {
|
if (json.success) {
|
||||||
|
@@ -201,7 +201,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/clan/clanFlowstatsList.action',
|
url: '/admin/clan/clanFlowstatsList',
|
||||||
onLoadSuccess: function (res) { //加载成功时执行
|
onLoadSuccess: function (res) { //加载成功时执行
|
||||||
if (res.code == undefined || res.code === 200) {
|
if (res.code == undefined || res.code === 200) {
|
||||||
console.log("加载成功!");
|
console.log("加载成功!");
|
||||||
@@ -284,7 +284,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'id',
|
uniqueId: 'id',
|
||||||
toolbar: '#toolbar2',
|
toolbar: '#toolbar2',
|
||||||
url: '/admin/clan/clanFlowDetailList.action',
|
url: '/admin/clan/clanFlowDetailList',
|
||||||
onLoadSuccess: function (res) { //加载成功时执行
|
onLoadSuccess: function (res) { //加载成功时执行
|
||||||
console.log("加载成功!");
|
console.log("加载成功!");
|
||||||
$("#editModal").modal('show');
|
$("#editModal").modal('show');
|
||||||
@@ -300,7 +300,7 @@ export default {
|
|||||||
// 总计导出
|
// 总计导出
|
||||||
$('#flowDetailBtn').on('click', function () {
|
$('#flowDetailBtn').on('click', function () {
|
||||||
var form = $("#form");
|
var form = $("#form");
|
||||||
form.attr("action", "/admin/clan/exportFlowDetail.action");
|
form.attr("action", "/admin/clan/exportFlowDetail");
|
||||||
|
|
||||||
$('#queryStartDateExport').val($('#queryStartDate').val());
|
$('#queryStartDateExport').val($('#queryStartDate').val());
|
||||||
$('#queryEndDateExport').val($('#queryEndDate').val());
|
$('#queryEndDateExport').val($('#queryEndDate').val());
|
||||||
@@ -310,7 +310,7 @@ export default {
|
|||||||
// 按天导出
|
// 按天导出
|
||||||
$('#flowDetailByDayBtn').on('click', function () {
|
$('#flowDetailByDayBtn').on('click', function () {
|
||||||
var form = $("#form");
|
var form = $("#form");
|
||||||
form.attr("action", "/admin/clan/exportFlowDetailByDay.action");
|
form.attr("action", "/admin/clan/exportFlowDetailByDay");
|
||||||
|
|
||||||
$('#queryStartDateExport').val($('#queryStartDate').val());
|
$('#queryStartDateExport').val($('#queryStartDate').val());
|
||||||
$('#queryEndDateExport').val($('#queryEndDate').val());
|
$('#queryEndDateExport').val($('#queryEndDate').val());
|
||||||
|
@@ -110,7 +110,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'clanId',
|
uniqueId: 'clanId',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/clanGoldFlow/list.action',
|
url: '/admin/clanGoldFlow/list',
|
||||||
onLoadSuccess: function (res) { //加载成功时执行
|
onLoadSuccess: function (res) { //加载成功时执行
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
console.log("加载成功!");
|
console.log("加载成功!");
|
||||||
@@ -128,14 +128,14 @@ export default {
|
|||||||
{ field: 'clanElderErbanNo', title: '会长平台号', align: 'center', width: '5%' },
|
{ field: 'clanElderErbanNo', title: '会长平台号', align: 'center', width: '5%' },
|
||||||
{ field: 'clanElderNick', title: '会长昵称', align: 'center', width: '5%' },
|
{ field: 'clanElderNick', title: '会长昵称', align: 'center', width: '5%' },
|
||||||
{ field: 'hallCount', title: '房间数', align: 'center', width: '10%' },
|
{ field: 'hallCount', title: '房间数', align: 'center', width: '10%' },
|
||||||
{ field: 'giftDiamonds', title: '公会收礼钻石数', align: 'center', width: '10%' },
|
{ field: 'giftDiamonds', title: '公会收礼金币数', align: 'center', width: '10%' },
|
||||||
{ field: 'hallDiamonds', title: '签约房钻石数', align: 'center', width: '10%' },
|
{ field: 'hallDiamonds', title: '签约房金币数', align: 'center', width: '10%' },
|
||||||
{ field: 'clanDiamonds', title: '非签约房钻石数', align: 'center', width: '10%' },
|
{ field: 'clanDiamonds', title: '非签约房金币数', align: 'center', width: '10%' },
|
||||||
{ field: 'otherDiamonds', title: '其他钻石数', align: 'center', width: '10%' },
|
{ field: 'otherDiamonds', title: '其他金币数', align: 'center', width: '10%' },
|
||||||
{ field: 'earnGolds', title: '公会收益金币数', align: 'center', width: '10%' },
|
{ field: 'earnGolds', title: '公会收益钻石数', align: 'center', width: '10%' },
|
||||||
{ field: 'receiveGolds', title: '成员收益金币数', align: 'center', width: '10%' },
|
{ field: 'receiveGolds', title: '成员收益钻石数', align: 'center', width: '10%' },
|
||||||
{ field: 'exchangeGolds', title: '兑换金币数', align: 'center', width: '10%' },
|
{ field: 'exchangeGolds', title: '兑换钻石数', align: 'center', width: '10%' },
|
||||||
{ field: 'remainGolds', title: '可结算金币数', align: 'center', width: '10%' },
|
{ field: 'remainGolds', title: '可结算钻石数', align: 'center', width: '10%' },
|
||||||
{
|
{
|
||||||
field: 'tmp',
|
field: 'tmp',
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
@@ -370,7 +370,7 @@ export default {
|
|||||||
if (confirm(`你确认删除等级${level}吗?`)) {
|
if (confirm(`你确认删除等级${level}吗?`)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/clan/deleteClanLevel.action",
|
url: "/admin/clan/deleteClanLevel",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
level,
|
level,
|
||||||
}),
|
}),
|
||||||
|
@@ -116,7 +116,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/hall/statistic/get.action',
|
url: '/admin/hall/statistic/get',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -258,7 +258,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/hall/member/statistic/get.action',
|
url: '/admin/hall/member/statistic/get',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -284,7 +284,7 @@ export default {
|
|||||||
$("#modal_addBtn").click(function () {
|
$("#modal_addBtn").click(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/hall/addMember.action",
|
url: "/admin/hall/addMember",
|
||||||
data: {
|
data: {
|
||||||
memberErbanNo: $("#modal_memberErbanNo").val(),
|
memberErbanNo: $("#modal_memberErbanNo").val(),
|
||||||
hallId: $("#modal_hallId").val(),
|
hallId: $("#modal_hallId").val(),
|
||||||
@@ -312,7 +312,7 @@ export default {
|
|||||||
if (confirm("你确认删除该成员吗?")) {
|
if (confirm("你确认删除该成员吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/hall/delMember.action",
|
url: "/admin/hall/delMember",
|
||||||
data: {
|
data: {
|
||||||
memberErbanNo: memberErbanNo,
|
memberErbanNo: memberErbanNo,
|
||||||
hallId: hallId,
|
hallId: hallId,
|
||||||
|
@@ -38,15 +38,18 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
<div class="col-sm-12">
|
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||||
<button id="btnSearch" class="btn btn-default">
|
<div class="col-sm-2">
|
||||||
<i class="glyphicon glyphicon-search"></i>查询
|
<select name="partitionId" id="partitionId" class="form-control"></select>
|
||||||
</button>
|
</div>
|
||||||
<button id="btnAdd" class="btn btn-default opt-apply">
|
|
||||||
<i class="glyphicon glyphicon-adjust"></i>新增
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<button id="btnSearch" class="btn btn-default">
|
||||||
|
<i class="glyphicon glyphicon-search"></i>查询
|
||||||
|
</button>
|
||||||
|
<button id="btnAdd" class="btn btn-default opt-apply">
|
||||||
|
<i class="glyphicon glyphicon-adjust"></i>新增
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -64,12 +67,32 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="addForm">
|
<form class="form-horizontal" id="addForm">
|
||||||
<input type="hidden" name="headwearId" id="headwearId" />
|
<input type="hidden" name="headwearId" id="headwearId" />
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="partitionFlag" class="col-sm-4 control-label">选择分区</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="checkbox" name="partitionFlag" value="1"/>英语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="2"/>阿拉伯语区<br>
|
||||||
|
<input type="checkbox" name="partitionFlag" value="4"/>华语区<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="headwearName" class="col-sm-3 control-label">头饰名称:</label>
|
<label for="headwearName" class="col-sm-3 control-label">头饰名称:</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input type="text" class="form-control" name="headwearName" id="headwearName">
|
<input type="text" class="form-control" name="headwearName" id="headwearName">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="headwearArName" class="col-sm-3 control-label">阿语头饰名称:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control" name="headwearName" id="headwearArName">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="headwearEnName" class="col-sm-3 control-label">英语头饰名称:</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control" name="headwearName" id="headwearEnName">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">使用萝卜购买</label>
|
<label class="col-sm-3 control-label">使用萝卜购买</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
@@ -104,7 +127,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">使用金币购买</label>
|
<label class="col-sm-3 control-label">使用钻石购买</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<label class="radio-inline"><input type="radio" name="goldSale" value="0">否</label>
|
<label class="radio-inline"><input type="radio" name="goldSale" value="0">否</label>
|
||||||
<label class="radio-inline"><input type="radio" name="goldSale" value="1" checked>是</label>
|
<label class="radio-inline"><input type="radio" name="goldSale" value="1" checked>是</label>
|
||||||
@@ -115,7 +138,7 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="text" class="form-control" name="price" id="price">
|
<input type="text" class="form-control" name="price" id="price">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -123,7 +146,7 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="text" class="form-control" name="renewPrice" id="renewPrice">
|
<input type="text" class="form-control" name="renewPrice" id="renewPrice">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="originalPrice" class="col-sm-3 control-label">原价:</label>
|
<label for="originalPrice" class="col-sm-3 control-label">原价:</label>
|
||||||
@@ -131,7 +154,7 @@
|
|||||||
<input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice"
|
<input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice"
|
||||||
id="originalPrice">
|
id="originalPrice">
|
||||||
</div>
|
</div>
|
||||||
<span class="col-sm-3">金币</span>
|
<span class="col-sm-3">钻石</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -291,6 +314,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
|
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
||||||
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "HeadwearAdminView",
|
name: "HeadwearAdminView",
|
||||||
@@ -333,6 +358,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.initPartition();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -346,10 +372,31 @@ export default {
|
|||||||
//{field: 'id', title: 'id', align: 'center', width: '5%'},
|
//{field: 'id', title: 'id', align: 'center', width: '5%'},
|
||||||
{ field: 'tmp', title: 'headwearId', align: 'center', checkbox: true, width: '5%' },
|
{ field: 'tmp', title: 'headwearId', align: 'center', checkbox: true, width: '5%' },
|
||||||
{ field: 'headwearId', title: '头饰ID', align: 'center', width: '5%' },
|
{ field: 'headwearId', title: '头饰ID', align: 'center', width: '5%' },
|
||||||
{ field: 'name', title: '头饰名称', align: 'center', width: '5%' },
|
{field: 'name.zh', title: '头饰名称', align: 'center', width: '5%'},
|
||||||
|
{field: 'name.ar', title: '阿语头饰名称', align: 'center', width: '5%'},
|
||||||
|
{field: 'name.en', title: '英语头饰名称', align: 'center', width: '5%'},
|
||||||
|
{
|
||||||
|
field: 'partitionFlag',
|
||||||
|
title: '地区',
|
||||||
|
align: 'center',
|
||||||
|
width: '10%',
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
let value = '';
|
||||||
|
if ((val & 1) != 0) {
|
||||||
|
value += '英语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 2) != 0) {
|
||||||
|
value += '阿拉伯语区<br>';
|
||||||
|
}
|
||||||
|
if ((val & 4) != 0) {
|
||||||
|
value += '华语区<br>';
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'goldSale',
|
field: 'goldSale',
|
||||||
title: '金币购买',
|
title: '钻石购买',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '3%',
|
width: '3%',
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
@@ -377,9 +424,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'originalPrice', title: '原价(金币)', align: 'center', width: '5%' },
|
{ field: 'originalPrice', title: '原价(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'price', title: '购买价格(金币)', align: 'center', width: '5%' },
|
{ field: 'price', title: '购买价格(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'renewPrice', title: '续费价格(金币)', align: 'center', width: '5%' },
|
{ field: 'renewPrice', title: '续费价格(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' },
|
{ field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' },
|
||||||
@@ -530,11 +577,43 @@ export default {
|
|||||||
headwearName: $('#sheadwearName').val(),
|
headwearName: $('#sheadwearName').val(),
|
||||||
limitType: $('#slimitType').val(),
|
limitType: $('#slimitType').val(),
|
||||||
enable: $('#senable').val(),
|
enable: $('#senable').val(),
|
||||||
|
partitionId: $('#partitionId').val(),
|
||||||
};
|
};
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
|
ajax:function(request){ //使用ajax请求
|
||||||
|
$.ajax({
|
||||||
|
type:"GET",
|
||||||
|
url:'/admin/headwear/list',
|
||||||
|
contentType:'application/json;charset=utf-8',
|
||||||
|
dataType:'json',
|
||||||
|
data: request.data,
|
||||||
|
success:function (res) {
|
||||||
|
console.log(res);
|
||||||
|
request.success({
|
||||||
|
"rows": res.rows.map(i=>{
|
||||||
|
let value = i.name;
|
||||||
|
if (value.startsWith('{') && value.endsWith('}')) {
|
||||||
|
i.name = JSON.parse(value);
|
||||||
|
} else {
|
||||||
|
i.name = {
|
||||||
|
zh: value,
|
||||||
|
ar: value,
|
||||||
|
en: value,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}),
|
||||||
|
"total": res.total
|
||||||
|
});
|
||||||
|
},
|
||||||
|
error:function(error){
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/headwear/list.action',
|
// url: '/admin/headwear/list',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -552,6 +631,8 @@ export default {
|
|||||||
$("#btnAdd").click(function () {
|
$("#btnAdd").click(function () {
|
||||||
$("#headwearId").val("");
|
$("#headwearId").val("");
|
||||||
$("#headwearName").val("");
|
$("#headwearName").val("");
|
||||||
|
$("#headwearArName").val("");
|
||||||
|
$("#headwearEnName").val("");
|
||||||
$("#price").val("");
|
$("#price").val("");
|
||||||
$("#renewPrice").val("");
|
$("#renewPrice").val("");
|
||||||
$("#originalPrice").val("");
|
$("#originalPrice").val("");
|
||||||
@@ -584,13 +665,21 @@ export default {
|
|||||||
$("input:radio[name='goldSale']")[0].checked = true;
|
$("input:radio[name='goldSale']")[0].checked = true;
|
||||||
$("input:radio[name='radishSale']")[0].checked = true;
|
$("input:radio[name='radishSale']")[0].checked = true;
|
||||||
$("input:radio[name='labelType']")[0].checked = true;
|
$("input:radio[name='labelType']")[0].checked = true;
|
||||||
|
|
||||||
|
$('input[name="partitionFlag"]').each(function() {
|
||||||
|
$(this).checked = false;
|
||||||
|
});
|
||||||
$("#headwearModal").modal('show');
|
$("#headwearModal").modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#add").click(function () {
|
$("#add").click(function () {
|
||||||
var headwearId = $("#headwearId").val();
|
var headwearId = $("#headwearId").val();
|
||||||
var headwearName = $("#headwearName").val();
|
var headwearName = $("#headwearName").val();
|
||||||
|
var headwearArName = $("#headwearArName").val();
|
||||||
|
var headwearEnName = $("#headwearEnName").val();
|
||||||
|
// 国际化字段
|
||||||
|
var jsonName = {"zh":headwearName,"ar":headwearArName,"en":headwearEnName}
|
||||||
|
const nameValue = JSON.stringify(jsonName);
|
||||||
var price = $("#price").val();
|
var price = $("#price").val();
|
||||||
var renewPrice = $("#renewPrice").val();
|
var renewPrice = $("#renewPrice").val();
|
||||||
var days = $("#days").val();
|
var days = $("#days").val();
|
||||||
@@ -615,13 +704,20 @@ export default {
|
|||||||
var radishPrice = $("#radishPrice").val();
|
var radishPrice = $("#radishPrice").val();
|
||||||
var radishRenewPrice = $("#radishRenewPrice").val();
|
var radishRenewPrice = $("#radishRenewPrice").val();
|
||||||
|
|
||||||
|
//分区
|
||||||
|
const partitionFlagArray = $("input:checkbox[name='partitionFlag']:checked").serializeArray();
|
||||||
|
let partitionFlag = 0;
|
||||||
|
for (let i = 0, len = partitionFlagArray.length; i < len; i++) {
|
||||||
|
console.log(partitionFlagArray[i]);
|
||||||
|
partitionFlag |= partitionFlagArray[i].value;
|
||||||
|
}
|
||||||
if (goldSale == 0 && radishSale == 0) {
|
if (goldSale == 0 && radishSale == 0) {
|
||||||
$("#tipMsg").text("请选择一种支持的购买方式");
|
$("#tipMsg").text("请选择一种支持的购买方式");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) {
|
if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) {
|
||||||
$("#tipMsg").text("请填写完整金币价格");
|
$("#tipMsg").text("请填写完整钻石价格");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
} else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) {
|
} else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) {
|
||||||
@@ -649,10 +745,10 @@ export default {
|
|||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/headwear/save.action",
|
url: "/admin/headwear/save",
|
||||||
data: {
|
data: {
|
||||||
headwearId: headwearId,
|
headwearId: headwearId,
|
||||||
name: headwearName,
|
name: nameValue,
|
||||||
price: price,
|
price: price,
|
||||||
renewPrice: renewPrice,
|
renewPrice: renewPrice,
|
||||||
days: days,
|
days: days,
|
||||||
@@ -673,15 +769,18 @@ export default {
|
|||||||
radishSale: radishSale,
|
radishSale: radishSale,
|
||||||
radishOriginalPrice: radishOriginalPrice,
|
radishOriginalPrice: radishOriginalPrice,
|
||||||
radishPrice: radishPrice,
|
radishPrice: radishPrice,
|
||||||
radishRenewPrice: radishRenewPrice
|
radishRenewPrice: radishRenewPrice,
|
||||||
|
partitionFlag: partitionFlag,
|
||||||
},
|
},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success == 'true') {
|
if (json.success == 'true') {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
TableHelper.doRefresh("#table");
|
setTimeout(function() {
|
||||||
$("#headwearModal").modal('hide');
|
TableHelper.doRefresh("#table");
|
||||||
|
$("#headwearModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
@@ -698,7 +797,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/headwear/get.action",
|
url: "/admin/headwear/get",
|
||||||
data: { headwearId: id },
|
data: { headwearId: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -707,8 +806,18 @@ export default {
|
|||||||
//$("#name").attr('readonly', true);
|
//$("#name").attr('readonly', true);
|
||||||
//$("#price").attr('readonly', true);
|
//$("#price").attr('readonly', true);
|
||||||
//$("#renewPrice").attr('readonly', true);
|
//$("#renewPrice").attr('readonly', true);
|
||||||
|
let name = json.name;
|
||||||
$("#headwearName").val(json.name);
|
if (name.startsWith('{') && name.endsWith('}')) {
|
||||||
|
var jsonName = JSON.parse(json.name);
|
||||||
|
$("#headwearName").val(jsonName.zh);
|
||||||
|
$("#headwearArName").val(jsonName.ar);
|
||||||
|
$("#headwearEnName").val(jsonName.en);
|
||||||
|
} else {
|
||||||
|
$("#headwearName").val(name);
|
||||||
|
$("#headwearArName").val(name);
|
||||||
|
$("#headwearEnName").val(name);
|
||||||
|
}
|
||||||
|
|
||||||
$("#price").val(json.price);
|
$("#price").val(json.price);
|
||||||
$("#renewPrice").val(json.renewPrice);
|
$("#renewPrice").val(json.renewPrice);
|
||||||
$("#limitDesc").val(json.limitDesc);
|
$("#limitDesc").val(json.limitDesc);
|
||||||
@@ -817,6 +926,24 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//分区
|
||||||
|
let partitionFlag = json.partitionFlag;
|
||||||
|
if ((partitionFlag & 1) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[0].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 2) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[1].checked = false;
|
||||||
|
}
|
||||||
|
if ((partitionFlag & 4) != 0) {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = true;
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[name='partitionFlag']")[2].checked = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 打开编辑弹窗
|
// 打开编辑弹窗
|
||||||
$("#headwearModal").modal('show');
|
$("#headwearModal").modal('show');
|
||||||
} else {
|
} else {
|
||||||
@@ -861,7 +988,7 @@ export default {
|
|||||||
if ($("#HeadwearSendForm").validationEngine('validate')) {
|
if ($("#HeadwearSendForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/headwear/send.action",
|
url: "/admin/headwear/send",
|
||||||
data: {
|
data: {
|
||||||
headwearId: headwearId,
|
headwearId: headwearId,
|
||||||
erbanNo: erbanNo,
|
erbanNo: erbanNo,
|
||||||
@@ -884,9 +1011,26 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
initPartition() {
|
||||||
|
getPartitionInfoList().then(res => {
|
||||||
|
let data = res.data;
|
||||||
|
buildSelectOption(
|
||||||
|
"#partitionId",
|
||||||
|
null,
|
||||||
|
[{
|
||||||
|
value: '',
|
||||||
|
text: '全部',
|
||||||
|
}].concat(data.map((v) => {
|
||||||
|
return {
|
||||||
|
value: v.id,
|
||||||
|
text: v.desc,
|
||||||
|
};
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -110,7 +110,7 @@ export default {
|
|||||||
ajax: function (request) { //使用ajax请求
|
ajax: function (request) { //使用ajax请求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/admin/headwearRecord/list.action',
|
url: '/admin/headwearRecord/list',
|
||||||
contentType: 'application/json;charset=utf-8',
|
contentType: 'application/json;charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: request.data,
|
data: request.data,
|
||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/headwearRecord/recall.action",
|
url: "/admin/headwearRecord/recall",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -62,7 +62,7 @@ export default {
|
|||||||
{ field: 'createTime', title: '日期', align: 'center', width: '5%' },
|
{ field: 'createTime', title: '日期', align: 'center', width: '5%' },
|
||||||
{ field: 'headwearId', title: '头饰ID', align: 'center', width: '5%' },
|
{ field: 'headwearId', title: '头饰ID', align: 'center', width: '5%' },
|
||||||
{ field: 'headwearName', title: '头饰名称', align: 'center', width: '5%' },
|
{ field: 'headwearName', title: '头饰名称', align: 'center', width: '5%' },
|
||||||
{ field: 'headwearPrice', title: '价格(金币)', align: 'center', width: '5%' },
|
{ field: 'headwearPrice', title: '价格(钻石)', align: 'center', width: '5%' },
|
||||||
{ field: 'headwearRadishPrice', title: '价格(萝卜)', align: 'center', width: '5%' },
|
{ field: 'headwearRadishPrice', title: '价格(萝卜)', align: 'center', width: '5%' },
|
||||||
{ field: 'headwearStatus', title: '头饰状态', align: 'center', width: '5%' },
|
{ field: 'headwearStatus', title: '头饰状态', align: 'center', width: '5%' },
|
||||||
{ field: 'receivedHeadwearNum', title: '用户收到数量', align: 'center', width: '5%' },
|
{ field: 'receivedHeadwearNum', title: '用户收到数量', align: 'center', width: '5%' },
|
||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/headwear/statisticsHeadwear.action',
|
url: '/admin/headwear/statisticsHeadwear',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
@@ -333,7 +333,7 @@ export default {
|
|||||||
if (val == 5) {
|
if (val == 5) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/title/getAllList.action",
|
url: "/admin/title/getAllList",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json) {
|
if (json) {
|
||||||
@@ -603,7 +603,7 @@ export default {
|
|||||||
},
|
},
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/banner/getBannerList.action',
|
url: '/admin/banner/getBannerList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -627,7 +627,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/getOneBanner.action',
|
url: '/admin/banner/getOneBanner',
|
||||||
data: { 'bannerId': id },
|
data: { 'bannerId': id },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -690,7 +690,7 @@ export default {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?isEdit=" + isEdit + "&startTimeString=" + $('#startDate').val()
|
url: "/admin/banner/save?isEdit=" + isEdit + "&startTimeString=" + $('#startDate').val()
|
||||||
+ "&endTimeString=" + $('#endDate').val(),
|
+ "&endTimeString=" + $('#endDate').val(),
|
||||||
data: $('#bannerForm').serialize(),
|
data: $('#bannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -742,7 +742,7 @@ export default {
|
|||||||
if ($('#addBannerForm').validationEngine('validate')) {
|
if ($('#addBannerForm').validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/banner/save.action?isEdit=" + isEdit + "&startTimeString=" + $('#addStartDate').val()
|
url: "/admin/banner/save?isEdit=" + isEdit + "&startTimeString=" + $('#addStartDate').val()
|
||||||
+ "&endTimeString=" + $('#addEndDate').val(),
|
+ "&endTimeString=" + $('#addEndDate').val(),
|
||||||
data: $('#addBannerForm').serialize(),
|
data: $('#addBannerForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -796,7 +796,7 @@ export default {
|
|||||||
console.log('wewawa');
|
console.log('wewawa');
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/headimg.action',
|
url: '/admin/banner/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -814,7 +814,7 @@ export default {
|
|||||||
$('#addUploadBtn').on('click', function () {
|
$('#addUploadBtn').on('click', function () {
|
||||||
var options = {
|
var options = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/admin/banner/headimg.action',
|
url: '/admin/banner/headimg',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.path) {
|
if (json.path) {
|
||||||
@@ -875,7 +875,7 @@ export default {
|
|||||||
if (confirm("你确认删除选中Banner吗?")) {
|
if (confirm("你确认删除选中Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delBanner.action",
|
url: "/admin/banner/delBanner",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
@@ -921,7 +921,7 @@ export default {
|
|||||||
if (confirm("你确认删除Banner吗?")) {
|
if (confirm("你确认删除Banner吗?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/banner/delBanner.action",
|
url: "/admin/banner/delBanner",
|
||||||
data: {
|
data: {
|
||||||
'ids': JSON.stringify(idArr)
|
'ids': JSON.stringify(idArr)
|
||||||
},
|
},
|
||||||
|
@@ -189,7 +189,7 @@ export default {
|
|||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/panel/getList.action',
|
url: '/admin/panel/getList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
@@ -209,7 +209,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/panel/del.action",
|
url: "/admin/panel/del",
|
||||||
data: { 'ids': JSON.stringify([id]) },
|
data: { 'ids': JSON.stringify([id]) },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -255,7 +255,7 @@ export default {
|
|||||||
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
"\r\n删除后再也不能找回,请谨慎操作!")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: "/admin/panel/del.action",
|
url: "/admin/panel/del",
|
||||||
data: { 'ids': JSON.stringify(idArr) },
|
data: { 'ids': JSON.stringify(idArr) },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -281,7 +281,7 @@ export default {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/panel/get.action",
|
url: "/admin/panel/get",
|
||||||
data: { id: id },
|
data: { id: id },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
@@ -340,7 +340,7 @@ export default {
|
|||||||
if ($("#panelForm").validationEngine('validate')) {
|
if ($("#panelForm").validationEngine('validate')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/admin/panel/save.action",
|
url: "/admin/panel/save",
|
||||||
data: $('#panelForm').serialize(),
|
data: $('#panelForm').serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
@@ -184,7 +184,7 @@ export default {
|
|||||||
queryParamsType: "undefined",
|
queryParamsType: "undefined",
|
||||||
uniqueId: 'code',
|
uniqueId: 'code',
|
||||||
toolbar: '#toolbar',
|
toolbar: '#toolbar',
|
||||||
url: '/admin/homerecomm/hot/voList.action',
|
url: '/admin/homerecomm/hot/voList',
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
onLoadSuccess: function () { //加载成功时执行
|
||||||
console.log("load success");
|
console.log("load success");
|
||||||
},
|
},
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user