Compare commits
69 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3cffb075ba | ||
![]() |
7a9eab4a73 | ||
![]() |
d808a1e99f | ||
![]() |
ddad65f649 | ||
![]() |
b6852d455b | ||
![]() |
f91d5d1cda | ||
![]() |
5751783109 | ||
![]() |
770a2f37c0 | ||
![]() |
2adafe5600 | ||
![]() |
96ec03e9b5 | ||
![]() |
51072d93d8 | ||
![]() |
599fa22de8 | ||
![]() |
ca99af9d9c | ||
![]() |
355b68f83f | ||
![]() |
28606a97ec | ||
![]() |
99c15ac7ee | ||
![]() |
df5275e79f | ||
![]() |
20de4948d2 | ||
![]() |
db56886866 | ||
![]() |
7c7807564a | ||
![]() |
45be789a40 | ||
![]() |
881fd6af53 | ||
![]() |
e1559b65e1 | ||
![]() |
485433f986 | ||
![]() |
06120ffd1a | ||
![]() |
ab6a9dd540 | ||
![]() |
121973fae1 | ||
![]() |
474bbbb999 | ||
![]() |
47ee800328 | ||
![]() |
27fb1d973f | ||
![]() |
cd20e88ed4 | ||
![]() |
00a6c8af1d | ||
![]() |
605b1ae994 | ||
![]() |
24d2268890 | ||
![]() |
be24413bbb | ||
![]() |
068831f6cb | ||
![]() |
d369702e89 | ||
![]() |
6ae271077f | ||
![]() |
c383ec4bfb | ||
![]() |
c3168d70ef | ||
![]() |
a25de8a414 | ||
![]() |
f6a1277806 | ||
![]() |
5b2aff6b7e | ||
![]() |
0407798ba0 | ||
![]() |
059419da08 | ||
![]() |
9b427a8e35 | ||
![]() |
cae5232130 | ||
![]() |
b8634c9f28 | ||
![]() |
1c36f08da2 | ||
![]() |
1640f9f022 | ||
![]() |
331992ca50 | ||
![]() |
94eddba213 | ||
![]() |
6f92c15bd0 | ||
![]() |
d04ef6c256 | ||
![]() |
8d5995f50b | ||
![]() |
d19969cb0e | ||
![]() |
6ec34e930c | ||
![]() |
a7d2d0d592 | ||
![]() |
8abd4fb0c1 | ||
![]() |
3d522f39aa | ||
![]() |
6139b57f53 | ||
![]() |
bd061e865e | ||
![]() |
806ccf94d4 | ||
![]() |
1f17d690a6 | ||
![]() |
ba13d899fe | ||
![]() |
b10b3c99c8 | ||
![]() |
a44b50bf2a | ||
![]() |
c70e6a961a | ||
![]() |
a95e93c845 |
62
package-lock.json
generated
62
package-lock.json
generated
@@ -36,7 +36,6 @@
|
||||
"@vue/cli-plugin-router": "~5.0.0",
|
||||
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
"compression-webpack-plugin": "^10.0.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-vue": "^8.0.3",
|
||||
"vue": "^3.2.13",
|
||||
@@ -4752,67 +4751,6 @@
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/compression-webpack-plugin": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/compression-webpack-plugin/-/compression-webpack-plugin-10.0.0.tgz",
|
||||
"integrity": "sha512-wLXLIBwpul/ALcm7Aj+69X0pYT3BYt6DdPn3qrgBIh9YejV9Bju9ShhlAsjujLyWMo6SAweFIWaUoFmXZNuNrg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"schema-utils": "^4.0.0",
|
||||
"serialize-javascript": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 14.15.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"webpack": "^5.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/compression-webpack-plugin/node_modules/ajv": {
|
||||
"version": "8.12.0",
|
||||
"resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.12.0.tgz",
|
||||
"integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"json-schema-traverse": "^1.0.0",
|
||||
"require-from-string": "^2.0.2",
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"node_modules/compression-webpack-plugin/node_modules/ajv-keywords": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
|
||||
"integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"ajv": "^8.8.2"
|
||||
}
|
||||
},
|
||||
"node_modules/compression-webpack-plugin/node_modules/json-schema-traverse": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
|
||||
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/compression-webpack-plugin/node_modules/schema-utils": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmmirror.com/schema-utils/-/schema-utils-4.2.0.tgz",
|
||||
"integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/json-schema": "^7.0.9",
|
||||
"ajv": "^8.9.0",
|
||||
"ajv-formats": "^2.1.1",
|
||||
"ajv-keywords": "^5.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/compression/node_modules/debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz",
|
||||
|
@@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --mode development",
|
||||
"dev": "vue-cli-service serve --mode development",
|
||||
"build": "vue-cli-service build --mode production",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
@@ -36,7 +36,6 @@
|
||||
"@vue/cli-plugin-router": "~5.0.0",
|
||||
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
"compression-webpack-plugin": "^10.0.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-vue": "^8.0.3",
|
||||
"vue": "^3.2.13",
|
||||
|
76
src/api/roomAlbumPower/roomAlbumPower.js
Normal file
76
src/api/roomAlbumPower/roomAlbumPower.js
Normal file
@@ -0,0 +1,76 @@
|
||||
import request from '@/utils/request';
|
||||
import qs from 'qs';
|
||||
|
||||
// 获取房间权限列表
|
||||
export const albumPage = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 房间相册管理权限分页列表
|
||||
export const userPage = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/userPage',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 删除权限
|
||||
export const delUserRoomAlbum = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/delUserRoomAlbum',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 删除房间权限
|
||||
export const delRoomAlbum = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/delRoomAlbum',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 清空该房间相册
|
||||
export const clearRoomAlbum = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/clearRoomAlbum',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 增加房间权限接口
|
||||
export const albumSave = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/save',
|
||||
method: 'post',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 保存房间相册管理权限
|
||||
export const saveManager = query => {
|
||||
return request({
|
||||
url: '/admin/room/album/saveManager',
|
||||
method: 'post',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// =========图片管理============
|
||||
// 分页列表
|
||||
export const photoPage = query => {
|
||||
return request({
|
||||
url: '/admin/room/photo/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 删除照片
|
||||
export const photoDel = query => {
|
||||
return request({
|
||||
url: '/admin/room/photo/del',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
@@ -8,3 +8,30 @@ export const savePoolItem = query => {
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//发布
|
||||
export const deployPoolItem = query => {
|
||||
return request({
|
||||
url: '/admin/seize-treasure/pool/item/deploy',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//已发布奖池
|
||||
export const deployedPoolItem = query => {
|
||||
return request({
|
||||
url: '/admin/seize-treasure/pool/item/deployed',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//统计
|
||||
export const showPoolItemCount = query => {
|
||||
return request({
|
||||
url: '/admin/seize-treasure/pool/item/count',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
BIN
src/assets/images/zs.png
Normal file
BIN
src/assets/images/zs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
@@ -29,26 +29,34 @@ export default {
|
||||
}
|
||||
},
|
||||
// 构建下拉组合框
|
||||
build: function (url, idstr, defval) {
|
||||
build: function (val, idstr, defval) {
|
||||
var _this = this;
|
||||
if (url) {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
success: function (json) {
|
||||
$(idstr).empty();
|
||||
$.each(json, function (n, value) {
|
||||
$(idstr).append("<option value='" + value.oval + "' data-value='" + value.oval + "'>" + value.otxt + "</option>");
|
||||
});
|
||||
$(idstr).btComboBox();
|
||||
_this.setDef(idstr, defval);
|
||||
}
|
||||
});
|
||||
if (val) {
|
||||
if (Object.prototype.toString.call(val) === '[object Object]') {
|
||||
$(idstr).empty();
|
||||
$.each(val, function (n, value) {
|
||||
$(idstr).append("<option value='" + value.oval + "' data-value='" + value.oval + "'>" + value.otxt + "</option>");
|
||||
});
|
||||
$(idstr).btComboBox();
|
||||
_this.setDef(idstr, defval);
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: val,
|
||||
dataType: 'json',
|
||||
success: function (json) {
|
||||
$(idstr).empty();
|
||||
$.each(json, function (n, value) {
|
||||
$(idstr).append("<option value='" + value.oval + "' data-value='" + value.oval + "'>" + value.otxt + "</option>");
|
||||
});
|
||||
$(idstr).btComboBox();
|
||||
_this.setDef(idstr, defval);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
$(idstr).btComboBox();
|
||||
_this.setDef(idstr, defval);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -16,5 +16,4 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
@@ -68,7 +68,8 @@
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content" style="height: 100%; overflow: hidden; overflow: scroll;">
|
||||
<section class="content">
|
||||
<!-- <section class="content" style="height: 100%; overflow: hidden; overflow: scroll;"> -->
|
||||
<!-- Your Page Content Here -->
|
||||
<component :is="componentName"></component>
|
||||
</section>
|
||||
|
40
src/css/public.css
Normal file
40
src/css/public.css
Normal file
@@ -0,0 +1,40 @@
|
||||
/* 主要的按钮样式处理 */
|
||||
/*鼠标点击后移开,恢复本身样式*/
|
||||
.primary,
|
||||
.primary:focus:not(.primary:hover) {
|
||||
color: white;
|
||||
background: #409eff;
|
||||
}
|
||||
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
|
||||
/* 更改背景和字體顏色 */
|
||||
.primary:focus, .primary:hover{
|
||||
color: white;
|
||||
background: #409eff;
|
||||
}
|
||||
/*鼠标按下,没有抬起*/
|
||||
/* 更改邊框顏色 */
|
||||
.primary:active {
|
||||
color: white;
|
||||
background: #337ecc;
|
||||
}
|
||||
|
||||
|
||||
/*鼠标点击后移开,恢复本身样式*/
|
||||
.danger,
|
||||
.danger:focus:not(.danger:hover) {
|
||||
color: white;
|
||||
background: #f56c6c;
|
||||
}
|
||||
/* 危险的按钮样式 */
|
||||
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
|
||||
/* 更改背景和字體顏色 */
|
||||
.danger:focus, .danger:hover{
|
||||
color: white;
|
||||
background: #f56c6c;
|
||||
}
|
||||
/*鼠标按下,没有抬起*/
|
||||
/* 更改邊框顏色 */
|
||||
.danger:active {
|
||||
color: white;
|
||||
background: #c45656;
|
||||
}
|
@@ -4,7 +4,6 @@ import router from './router'
|
||||
import store from './store'
|
||||
import 'jquery'
|
||||
import 'jquery.md5'
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css'
|
||||
import 'bootstrap/dist/js/bootstrap.min.js'
|
||||
|
||||
@@ -50,5 +49,6 @@ import components from '@/utils/components.js'
|
||||
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import '@/css/public.css'
|
||||
|
||||
createApp(App).use(store).use(router).use(components).use(ElementPlus).mount('#app')
|
||||
|
@@ -1,6 +1,7 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import HomeView from '../views/home/index.vue'
|
||||
import LoginView from '../views/login/index.vue'
|
||||
import BlankView from '../views/BlankView.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -12,6 +13,11 @@ const routes = [
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: HomeView
|
||||
},
|
||||
{
|
||||
path: '/blank',
|
||||
name: 'blank',
|
||||
component: BlankView
|
||||
}
|
||||
]
|
||||
|
||||
|
@@ -19,4 +19,11 @@ export function upperFirst(str) {
|
||||
*/
|
||||
export function lowerFirst(str) {
|
||||
return str.charAt(0).toLowerCase() + str.slice(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为数字
|
||||
*/
|
||||
export function isNumber(str) {
|
||||
return /^[0-9]+.?[0-9]*/.test(str);
|
||||
}
|
24
src/views/BlankView.vue
Normal file
24
src/views/BlankView.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import router from '@/router';
|
||||
|
||||
export default {
|
||||
name: 'BlankView',
|
||||
created() {
|
||||
console.log('blank...');
|
||||
console.log(window.performance.navigation.type);
|
||||
//处理css样式污染问题
|
||||
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
|
||||
router.push('/home');
|
||||
} else {
|
||||
console.log('router go ...');
|
||||
router.go(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@@ -389,6 +389,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -590,6 +590,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -757,6 +757,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
@@ -1147,6 +1147,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -617,6 +617,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
@@ -654,6 +654,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -166,6 +166,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -289,6 +289,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -133,6 +133,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -256,6 +256,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -249,6 +249,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -138,6 +138,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -409,6 +409,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -175,15 +175,18 @@ export default {
|
||||
});
|
||||
picker1.on('changeDate', function () {
|
||||
var date = $('#beginDate').datetimepicker('getDate');
|
||||
picker2.datepicker('setStartDate', date);
|
||||
picker2.datetimepicker('setStartDate', date);
|
||||
});
|
||||
picker2.on('changeDate', function () {
|
||||
var date = $('#endDate').datetimepicker('getDate');
|
||||
picker1.datepicker('setEndDate', date);
|
||||
picker1.datetimepicker('setEndDate', date);
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -136,6 +136,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@@ -221,6 +221,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -242,6 +242,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -261,6 +261,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -279,6 +279,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -502,6 +502,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -212,6 +212,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -254,6 +254,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -1061,6 +1061,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -434,6 +434,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -264,6 +264,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -542,15 +542,18 @@ export default {
|
||||
});
|
||||
picker1.on('changeDate', function () {
|
||||
var date = $('#beginDate').datetimepicker('getDate');
|
||||
picker2.datepicker('setStartDate', date);
|
||||
picker2.datetimepicker('setStartDate', date);
|
||||
});
|
||||
picker2.on('changeDate', function () {
|
||||
var date = $('#endDate').datetimepicker('getDate');
|
||||
picker1.datepicker('setEndDate', date);
|
||||
picker1.datetimepicker('setEndDate', date);
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -151,6 +151,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -536,6 +536,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -405,6 +405,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -1,165 +1,178 @@
|
||||
<template>
|
||||
<section class="content">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1 id="itemTitle"></h1>
|
||||
</section>
|
||||
<div id="toolbar">
|
||||
<div class="col-sm-12">
|
||||
<button id="addBtn" class="btn btn-default">
|
||||
<i class="glyphicon glyphicon-plus"></i>添加
|
||||
</button>
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1 id="itemTitle"></h1>
|
||||
</section>
|
||||
<div id="toolbar">
|
||||
<div class="col-sm-12">
|
||||
<button id="addBtn" class="btn btn-default">
|
||||
<i class="glyphicon glyphicon-plus"></i>添加
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- .content -->
|
||||
<div id="table"></div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="modal fade" id="addJoinHandModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||
<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="modalLabel">添加</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal" id="addForm">
|
||||
<input type="hidden" name="id" id="id"/>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">魅力值区间<font color="red">*</font>:</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMin" id="modal_charmMin" placeholder="请输入最小值">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMax" id="modal_charmMax" placeholder="请输入最大值">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">场景名称:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="title" id="modal_JoinHandTitle" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">时长:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="picSecond" id="modal_picSecond" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">文件上传<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="picImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="picUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="picUploadBtn">上传</button>
|
||||
<input type="hidden" id="picUrl" name="picUrl" class="form-control validate[required]"/>
|
||||
<span id="picImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏开关<font color="red">*</font>:</label>
|
||||
<select name="notifySwitch" id="notifySwitch" data-btn-class="btn-warning">
|
||||
<option value="0" selected="selected">关闭</option>
|
||||
<option value="1">开启</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏背景图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="notifyBackgroundUrlImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="notifyBackgroundUrlUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="notifyBackgroundUrlUploadBtn">上传</button>
|
||||
<input type="hidden" id="notifyBackgroundUrl" name="notifyBackgroundUrl" class="form-control validate[required]"/>
|
||||
<span id="notifyBackgroundUrlImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" id="add-JoinHand">确定</button>
|
||||
</div>
|
||||
<!-- .content -->
|
||||
<div id="table"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="modal fade" id="updateJoinHandModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||
<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="updateModalLabel">编辑</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal" id="updateForm">
|
||||
<input type="hidden" name="id" id="e_id"/>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">魅力值区间<font color="red">*</font>:</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMin" id="e_modal_charmMin" placeholder="请输入最小值">
|
||||
<div class="modal fade" id="addJoinHandModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||
<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="modalLabel">添加</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal" id="addForm">
|
||||
<input type="hidden" name="id" id="id" />
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">魅力值区间<font color="red">*</font>:</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMin"
|
||||
id="modal_charmMin" placeholder="请输入最小值">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMax"
|
||||
id="modal_charmMax" placeholder="请输入最大值">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMax" id="e_modal_charmMax" placeholder="请输入最大值">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">场景名称:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="title"
|
||||
id="modal_JoinHandTitle" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">场景名称:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="title" id="e_modal_JoinHandTitle" placeholder="请输入">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">时长:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]"
|
||||
name="picSecond" id="modal_picSecond" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">时长:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="picSecond" id="e_modal_picSecond" placeholder="请输入">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">文件上传<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="picImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="picUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="picUploadBtn">上传</button>
|
||||
<input type="hidden" id="picUrl" name="picUrl" class="form-control validate[required]" />
|
||||
<span id="picImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">配置图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="e_picImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="e_picUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="e_picUploadBtn">上传</button>
|
||||
<input type="hidden" id="e_picUrl" name="picUrl" class="form-control validate[required]"/>
|
||||
<span id="e_picImgInfo" style="color:red;"></span>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏开关<font color="red">*</font>:</label>
|
||||
<select name="notifySwitch" id="notifySwitch" data-btn-class="btn-warning">
|
||||
<option value="0" selected="selected">关闭</option>
|
||||
<option value="1">开启</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏开关<font color="red">*</font>:</label>
|
||||
<select name="notifySwitch" id="e_notifySwitch" data-btn-class="btn-warning">
|
||||
<option value="0" selected="selected">关闭</option>
|
||||
<option value="1">开启</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏背景图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="e_notifyBackgroundUrlImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="e_notifyBackgroundUrlUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="e_notifyBackgroundUrlUploadBtn">上传</button>
|
||||
<input type="hidden" id="e_notifyBackgroundUrl" name="notifyBackgroundUrl" class="form-control validate[required]"/>
|
||||
<span id="e_notifyBackgroundUrlImgInfo" style="color:red;"></span>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏背景图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="notifyBackgroundUrlImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="notifyBackgroundUrlUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="notifyBackgroundUrlUploadBtn">上传</button>
|
||||
<input type="hidden" id="notifyBackgroundUrl" name="notifyBackgroundUrl"
|
||||
class="form-control validate[required]" />
|
||||
<span id="notifyBackgroundUrlImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" id="updateJoinHand">确定</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" id="add-JoinHand">确定</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="updateJoinHandModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||
<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="updateModalLabel">编辑</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal" id="updateForm">
|
||||
<input type="hidden" name="id" id="e_id" />
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">魅力值区间<font color="red">*</font>:</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMin"
|
||||
id="e_modal_charmMin" placeholder="请输入最小值">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control validate[required]" name="charmValueMax"
|
||||
id="e_modal_charmMax" placeholder="请输入最大值">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">场景名称:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]" name="title"
|
||||
id="e_modal_JoinHandTitle" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">时长:<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="input-sm form-control datetime validate[required]"
|
||||
name="picSecond" id="e_modal_picSecond" placeholder="请输入">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">配置图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="e_picImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="e_picUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button" id="e_picUploadBtn">上传</button>
|
||||
<input type="hidden" id="e_picUrl" name="picUrl" class="form-control validate[required]" />
|
||||
<span id="e_picImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏开关<font color="red">*</font>:</label>
|
||||
<select name="notifySwitch" id="e_notifySwitch" data-btn-class="btn-warning">
|
||||
<option value="0" selected="selected">关闭</option>
|
||||
<option value="1">开启</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">飘屏背景图片<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<img src="" id="e_notifyBackgroundUrlImage" style="width:250px;height:90px;" alt="">
|
||||
<input type="file" id="e_notifyBackgroundUrlUploadFile" name="file">
|
||||
<button class="btn btn-success" type="button"
|
||||
id="e_notifyBackgroundUrlUploadBtn">上传</button>
|
||||
<input type="hidden" id="e_notifyBackgroundUrl" name="notifyBackgroundUrl"
|
||||
class="form-control validate[required]" />
|
||||
<span id="e_notifyBackgroundUrlImgInfo" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" id="updateJoinHand">确定</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -178,332 +191,336 @@ export default {
|
||||
methods: {
|
||||
initData() {
|
||||
$(function () {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
$('#table').bootstrapTable({
|
||||
columns: [
|
||||
{field: 'id', title: 'id', align: 'center', width: '5%'},
|
||||
{field: 'charmValueMin', title: '魅力值下限', align: 'center', width: '5%',},
|
||||
{field: 'charmValueMax', title: '魅力值上限', align: 'center', width: '5%',},
|
||||
{field: 'title', title: '帽子名称', align: 'center', width: '5%'},
|
||||
{field: 'picSecond', title: '时长(秒)', align: 'center', width: '5%',},
|
||||
{field: 'notifySwitch', title: '飘屏开关', align: 'center', width: '5%',
|
||||
formatter: function (val,row,index) {
|
||||
if (val == '0') {
|
||||
return '关'
|
||||
} else {
|
||||
return '开'
|
||||
$('#table').bootstrapTable('destroy');
|
||||
$('#table').bootstrapTable({
|
||||
columns: [
|
||||
{ field: 'id', title: 'id', align: 'center', width: '5%' },
|
||||
{ field: 'charmValueMin', title: '魅力值下限', align: 'center', width: '5%', },
|
||||
{ field: 'charmValueMax', title: '魅力值上限', align: 'center', width: '5%', },
|
||||
{ field: 'title', title: '帽子名称', align: 'center', width: '5%' },
|
||||
{ field: 'picSecond', title: '时长(秒)', align: 'center', width: '5%', },
|
||||
{
|
||||
field: 'notifySwitch', title: '飘屏开关', align: 'center', width: '5%',
|
||||
formatter: function (val, row, index) {
|
||||
if (val == '0') {
|
||||
return '关'
|
||||
} else {
|
||||
return '开'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'notifyBackgroundUrl', title: '飘屏背景图片', align: 'center', width: '5%',
|
||||
formatter: function (val, row, index) {
|
||||
return "<img src='" + val + "' width='40' height='40'>";
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
width: '10%',
|
||||
formatter: function (val, row, index) {
|
||||
const JoinHandId = row.id
|
||||
const charmValueMin = row.charmValueMin
|
||||
const charmValueMax = row.charmValueMax
|
||||
const title = row.title
|
||||
const picSecond = row.picSecond
|
||||
const picUrl = row.picUrl
|
||||
const notifySwitch = row.notifySwitch
|
||||
const notifyBackgroundUrl = row.notifyBackgroundUrl
|
||||
console.log('JoinHandId·········', JoinHandId)
|
||||
return '<button id="btnEdit" name="btnEdit" class="btn btn-sm btn-success opt-edit" JoinHandId=' + JoinHandId + ' charmValueMin=' + charmValueMin + ' charmValueMax=' + charmValueMax +
|
||||
' title=' + title + ' picSecond=' + picSecond + ' picUrl=' + picUrl + ' notifySwitch=' + notifySwitch + ' notifyBackgroundUrl=' + notifyBackgroundUrl + '>' +
|
||||
'<i class="glyphicon glyphicon-edit"></i> 编辑</button>' +
|
||||
'<button class="btn btn-sm btn-danger opt-remove" JoinHandId=' + JoinHandId +
|
||||
'><i class="glyphicon glyphicon-remove"></i>删除</button>';
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{field: 'notifyBackgroundUrl', title: '飘屏背景图片', align: 'center', width: '5%',
|
||||
formatter: function (val,row,index) {
|
||||
return "<img src='"+val+"' width='40' height='40'>";
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
width: '10%',
|
||||
formatter: function (val, row, index) {
|
||||
const JoinHandId = row.id
|
||||
const charmValueMin = row.charmValueMin
|
||||
const charmValueMax = row.charmValueMax
|
||||
const title = row.title
|
||||
const picSecond = row.picSecond
|
||||
const picUrl = row.picUrl
|
||||
const notifySwitch = row.notifySwitch
|
||||
const notifyBackgroundUrl = row.notifyBackgroundUrl
|
||||
console.log('JoinHandId·········', JoinHandId)
|
||||
return '<button id="btnEdit" name="btnEdit" class="btn btn-sm btn-success opt-edit" JoinHandId=' + JoinHandId + ' charmValueMin=' + charmValueMin + ' charmValueMax=' + charmValueMax +
|
||||
' title=' + title + ' picSecond='+ picSecond + ' picUrl=' + picUrl + ' notifySwitch=' + notifySwitch + ' notifyBackgroundUrl=' + notifyBackgroundUrl + '>' +
|
||||
'<i class="glyphicon glyphicon-edit"></i> 编辑</button>'+
|
||||
'<button class="btn btn-sm btn-danger opt-remove" JoinHandId=' + JoinHandId +
|
||||
'><i class="glyphicon glyphicon-remove"></i>删除</button>';
|
||||
}
|
||||
}
|
||||
],
|
||||
undefinedText: 0,
|
||||
cache: false,
|
||||
striped: true,
|
||||
showRefresh: false,
|
||||
pageSize: 20,
|
||||
pagination: true,
|
||||
pageList: [20, 50, 100, 200, 300, 500],
|
||||
search: false,
|
||||
sidePagination: "server", //表示服务端请求
|
||||
queryParamsType: "undefined",
|
||||
queryParams: function queryParams(params) { //设置查询参数
|
||||
var param = {
|
||||
pageNum: params.pageNumber,
|
||||
pageSize: params.pageSize,
|
||||
};
|
||||
return param;
|
||||
},
|
||||
toolbar: '#toolbar',
|
||||
url: '/admin/blindDate/listJoinHand.action',
|
||||
onLoadSuccess: function (res) { //加载成功时执行
|
||||
console.log("load success");
|
||||
},
|
||||
onLoadError: function () { //加载失败时执行
|
||||
console.log("load fail");
|
||||
}
|
||||
});
|
||||
|
||||
// 查询刷新
|
||||
$('#btnSearch').on('click', function () {
|
||||
TableHelper.doRefresh('#table');
|
||||
});
|
||||
|
||||
|
||||
//新建标签
|
||||
$("#addBtn").click(function () {
|
||||
$("#modal_charmMin").val("");
|
||||
$("#modal_charmMax").val("");
|
||||
$('#modal_JoinHandTitle').val("");
|
||||
$("#modal_picSecond").val('');
|
||||
$("#picUrl").val("");
|
||||
$('#picImage').attr("src", '');
|
||||
$("#picImgInfo").html('');
|
||||
$("#picUploadFile").val('');
|
||||
$("#notifyBackgroundUrl").val("");
|
||||
$('#notifyBackgroundUrlImage').attr("src", '');
|
||||
$("#notifyBackgroundUrlImgInfo").html('');
|
||||
$("#notifyBackgroundUrlUploadFile").val('');
|
||||
$("#addJoinHandModal").modal('show');
|
||||
});
|
||||
|
||||
//编辑
|
||||
$('#table').on('click','.opt-edit', function () {
|
||||
const JoinHandId = $(this).attr('JoinHandId');
|
||||
const charmValueMin = $(this).attr('charmValueMin');
|
||||
const charmValueMax = $(this).attr('charmValueMax');
|
||||
const title = $(this).attr('title');
|
||||
const picSecond = $(this).attr('picSecond');
|
||||
const picUrl = $(this).attr('picUrl');
|
||||
const notifySwitch = $(this).attr('notifySwitch');
|
||||
const notifyBackgroundUrl = $(this).attr('notifyBackgroundUrl');
|
||||
console.log("param======", JoinHandId, charmValueMin, charmValueMax, title, picSecond, picUrl, notifyBackgroundUrl)
|
||||
$("#e_id").val(JoinHandId);
|
||||
$("#e_modal_charmMin").val(charmValueMin);
|
||||
$("#e_modal_charmMax").val(charmValueMax);
|
||||
$('#e_modal_JoinHandTitle').val(title);
|
||||
$("#e_modal_picSecond").val(picSecond);
|
||||
$("#e_notifySwitch").val(notifySwitch);
|
||||
// 设置图片
|
||||
$("#e_picUploadFile").val('');
|
||||
$('#e_picUrl').val(picUrl);
|
||||
$('#e_picImage').attr("src", picUrl);
|
||||
if (picUrl != '') {
|
||||
$("#e_picImgInfo").html('已上传');
|
||||
} else {
|
||||
$("#e_picImgInfo").html('未上传');
|
||||
}
|
||||
|
||||
$("#e_notifyBackgroundUrlUploadFile").val('');
|
||||
$('#e_notifyBackgroundUrl').val(notifyBackgroundUrl);
|
||||
$('#e_notifyBackgroundUrlImage').attr("src", notifyBackgroundUrl);
|
||||
|
||||
if (notifyBackgroundUrl != 'undefined' && notifyBackgroundUrl !== '') {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('已上传');
|
||||
} else {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('未上传');
|
||||
}
|
||||
$("#updateJoinHandModal").modal('show');
|
||||
});
|
||||
|
||||
|
||||
// 编辑
|
||||
$("#updateJoinHand").click(function () {
|
||||
console.log("id", $("#e_id").val());
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
||||
data: $('#updateForm').serialize(),
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
$("#tipMsg").text("保存成功");
|
||||
$("#tipModal").modal('show');
|
||||
TableHelper.doRefresh("#table");
|
||||
$("#updateItemModal").modal('hide');
|
||||
} else {
|
||||
$("#tipMsg").text("保存失败." + json.message);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//删除
|
||||
$('#table').on('click','.opt-remove', function () {
|
||||
const JoinHandId = $(this).attr('JoinHandId');
|
||||
console.log("id=======", JoinHandId)
|
||||
if (confirm("你确认删除该场景吗?")) {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/admin/blindDate/delJoinHand.action",
|
||||
data: {
|
||||
id: JoinHandId,
|
||||
],
|
||||
undefinedText: 0,
|
||||
cache: false,
|
||||
striped: true,
|
||||
showRefresh: false,
|
||||
pageSize: 20,
|
||||
pagination: true,
|
||||
pageList: [20, 50, 100, 200, 300, 500],
|
||||
search: false,
|
||||
sidePagination: "server", //表示服务端请求
|
||||
queryParamsType: "undefined",
|
||||
queryParams: function queryParams(params) { //设置查询参数
|
||||
var param = {
|
||||
pageNum: params.pageNumber,
|
||||
pageSize: params.pageSize,
|
||||
};
|
||||
return param;
|
||||
},
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
console.log(json.data)
|
||||
TableHelper.doRefresh("#table");
|
||||
} else {
|
||||
$("#tipMsg").text("删除帽子失败." + json.message);
|
||||
}
|
||||
toolbar: '#toolbar',
|
||||
url: '/admin/blindDate/listJoinHand.action',
|
||||
onLoadSuccess: function (res) { //加载成功时执行
|
||||
console.log("load success");
|
||||
},
|
||||
onLoadError: function () { //加载失败时执行
|
||||
console.log("load fail");
|
||||
}
|
||||
});
|
||||
|
||||
// 查询刷新
|
||||
$('#btnSearch').on('click', function () {
|
||||
TableHelper.doRefresh('#table');
|
||||
});
|
||||
|
||||
|
||||
//新建标签
|
||||
$("#addBtn").click(function () {
|
||||
$("#modal_charmMin").val("");
|
||||
$("#modal_charmMax").val("");
|
||||
$('#modal_JoinHandTitle').val("");
|
||||
$("#modal_picSecond").val('');
|
||||
$("#picUrl").val("");
|
||||
$('#picImage').attr("src", '');
|
||||
$("#picImgInfo").html('');
|
||||
$("#picUploadFile").val('');
|
||||
$("#notifyBackgroundUrl").val("");
|
||||
$('#notifyBackgroundUrlImage').attr("src", '');
|
||||
$("#notifyBackgroundUrlImgInfo").html('');
|
||||
$("#notifyBackgroundUrlUploadFile").val('');
|
||||
$("#addJoinHandModal").modal('show');
|
||||
});
|
||||
|
||||
//编辑
|
||||
$('#table').on('click', '.opt-edit', function () {
|
||||
const JoinHandId = $(this).attr('JoinHandId');
|
||||
const charmValueMin = $(this).attr('charmValueMin');
|
||||
const charmValueMax = $(this).attr('charmValueMax');
|
||||
const title = $(this).attr('title');
|
||||
const picSecond = $(this).attr('picSecond');
|
||||
const picUrl = $(this).attr('picUrl');
|
||||
const notifySwitch = $(this).attr('notifySwitch');
|
||||
const notifyBackgroundUrl = $(this).attr('notifyBackgroundUrl');
|
||||
console.log("param======", JoinHandId, charmValueMin, charmValueMax, title, picSecond, picUrl, notifyBackgroundUrl)
|
||||
$("#e_id").val(JoinHandId);
|
||||
$("#e_modal_charmMin").val(charmValueMin);
|
||||
$("#e_modal_charmMax").val(charmValueMax);
|
||||
$('#e_modal_JoinHandTitle').val(title);
|
||||
$("#e_modal_picSecond").val(picSecond);
|
||||
$("#e_notifySwitch").val(notifySwitch);
|
||||
// 设置图片
|
||||
$("#e_picUploadFile").val('');
|
||||
$('#e_picUrl').val(picUrl);
|
||||
$('#e_picImage').attr("src", picUrl);
|
||||
if (picUrl != '') {
|
||||
$("#e_picImgInfo").html('已上传');
|
||||
} else {
|
||||
$("#e_picImgInfo").html('未上传');
|
||||
}
|
||||
|
||||
$("#e_notifyBackgroundUrlUploadFile").val('');
|
||||
$('#e_notifyBackgroundUrl').val(notifyBackgroundUrl);
|
||||
$('#e_notifyBackgroundUrlImage').attr("src", notifyBackgroundUrl);
|
||||
|
||||
if (notifyBackgroundUrl != 'undefined' && notifyBackgroundUrl !== '') {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('已上传');
|
||||
} else {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('未上传');
|
||||
}
|
||||
$("#updateJoinHandModal").modal('show');
|
||||
});
|
||||
|
||||
|
||||
// 编辑
|
||||
$("#updateJoinHand").click(function () {
|
||||
console.log("id", $("#e_id").val());
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
||||
data: $('#updateForm').serialize(),
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
$("#tipMsg").text("保存成功");
|
||||
$("#tipModal").modal('show');
|
||||
TableHelper.doRefresh("#table");
|
||||
$("#updateItemModal").modal('hide');
|
||||
} else {
|
||||
$("#tipMsg").text("保存失败." + json.message);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//删除
|
||||
$('#table').on('click', '.opt-remove', function () {
|
||||
const JoinHandId = $(this).attr('JoinHandId');
|
||||
console.log("id=======", JoinHandId)
|
||||
if (confirm("你确认删除该场景吗?")) {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/admin/blindDate/delJoinHand.action",
|
||||
data: {
|
||||
id: JoinHandId,
|
||||
},
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
console.log(json.data)
|
||||
TableHelper.doRefresh("#table");
|
||||
} else {
|
||||
$("#tipMsg").text("删除帽子失败." + json.message);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
// 新增
|
||||
$("#add-JoinHand").click(function () {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
||||
data: $('#addForm').serialize(),
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
$("#tipMsg").text("保存成功");
|
||||
$("#tipModal").modal('show');
|
||||
TableHelper.doRefresh("#table");
|
||||
} else {
|
||||
$("#tipMsg").text("保存失败." + json.message);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#picUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'picUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#picUrl').val(json.path);
|
||||
$('#picImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#picImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#picImgInfo").html('未上传成功');
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
// 新增
|
||||
$("#add-JoinHand").click(function () {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/admin/blindDate/addOrUpdateJoinHand.action",
|
||||
data: $('#addForm').serialize(),
|
||||
dataType: "json",
|
||||
success: function (json) {
|
||||
if (json.success) {
|
||||
$("#tipMsg").text("保存成功");
|
||||
$("#tipModal").modal('show');
|
||||
TableHelper.doRefresh("#table");
|
||||
} else {
|
||||
$("#tipMsg").text("保存失败." + json.message);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#e_picUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'e_picUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#e_picUrl').val(json.path);
|
||||
$('#e_picImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#picImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#picImgInfo").html('未上传成功');
|
||||
}
|
||||
console.log(json.path);
|
||||
|
||||
$('#picUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'picUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#picUrl').val(json.path);
|
||||
$('#picImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#picImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#picImgInfo").html('未上传成功');
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
})
|
||||
|
||||
$('#e_picUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'e_picUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#e_picUrl').val(json.path);
|
||||
$('#e_picImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#picImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#picImgInfo").html('未上传成功');
|
||||
|
||||
$('#notifyBackgroundUrlUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'notifyBackgroundUrlUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#notifyBackgroundUrl').val(json.path);
|
||||
$('#notifyBackgroundUrlImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#notifyBackgroundUrlImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#notifyBackgroundUrlImgInfo").html('未上传成功');
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
console.log(json.path);
|
||||
});
|
||||
})
|
||||
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
$('#notifyBackgroundUrlUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'notifyBackgroundUrlUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#notifyBackgroundUrl').val(json.path);
|
||||
$('#notifyBackgroundUrlImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#notifyBackgroundUrlImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#notifyBackgroundUrlImgInfo").html('未上传成功');
|
||||
$('#e_notifyBackgroundUrlUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'e_notifyBackgroundUrlUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#e_notifyBackgroundUrl').val(json.path);
|
||||
$('#e_notifyBackgroundUrlImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('未上传成功');
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
})
|
||||
|
||||
$('#e_notifyBackgroundUrlUploadBtn').on('click', function () {
|
||||
$.ajaxFileUpload({
|
||||
fileElementId: 'e_notifyBackgroundUrlUploadFile', //需要上传的文件域的ID,即<input type="file">的ID。
|
||||
url: '/admin/blindDate/upload', //后台方法的路径
|
||||
type: 'post', //当要提交自定义参数时,这个参数要设置成post
|
||||
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写,jQuery会自动判断。
|
||||
secureuri: false, //是否启用安全提交,默认为false。
|
||||
async: true, //是否是异步
|
||||
success: function (json) { //提交成功后自动执行的处理函数,参数data就是服务器返回的数据。
|
||||
if (json.path) {
|
||||
$('#e_notifyBackgroundUrl').val(json.path);
|
||||
$('#e_notifyBackgroundUrlImage').attr("src", json.path);
|
||||
if (json.path != '') {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('已上传成功');
|
||||
} else {
|
||||
$("#e_notifyBackgroundUrlImgInfo").html('未上传成功');
|
||||
}
|
||||
console.log(json.path);
|
||||
} else {
|
||||
$("#tipMsg").text(json.msg);
|
||||
$("#tipModal").modal('show');
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) { //提交失败自动执行的处理函数。
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
@@ -570,6 +570,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -156,6 +156,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -290,6 +290,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -133,6 +133,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -267,6 +267,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -594,6 +594,15 @@ export default {
|
||||
$("#radishRenewPrice").val("");
|
||||
$("#radishOriginalPrice").val("");
|
||||
|
||||
$("input:radio[name='goldSale']")[0].checked = true;
|
||||
$("input:radio[name='radishSale']")[0].checked = true;
|
||||
$("input:radio[name='enable']")[0].checked = true;
|
||||
$("input:radio[name='isSale']")[0].checked = true;
|
||||
$("input:radio[name='isNobleLimit']")[0].checked = true;
|
||||
$("input:radio[name='isMonsterLimit']")[0].checked = true;
|
||||
$("input:radio[name='isWeekStarLimit']")[0].checked = true;
|
||||
$("input:radio[name='isActivityLimit']")[0].checked = true;
|
||||
|
||||
$("#nobleId").btComboBox('disable');
|
||||
ComboboxHelper.setDef("#nobleId", '0');
|
||||
|
||||
@@ -1026,6 +1035,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -114,6 +114,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -115,16 +115,19 @@ export default {
|
||||
autoclose: true
|
||||
});
|
||||
picker1.on('changeDate', function () {
|
||||
var date = $('#beginDate').datepicker('getDate');
|
||||
picker2.datepicker('setStartDate', date);
|
||||
var date = $('#beginDate').datetimepicker('getDate');
|
||||
picker2.datetimepicker('setStartDate', date);
|
||||
});
|
||||
picker2.on('changeDate', function () {
|
||||
var date = $('#endDate').datepicker('getDate');
|
||||
picker1.datepicker('setEndDate', date);
|
||||
var date = $('#endDate').datetimepicker('getDate');
|
||||
picker1.datetimepicker('setEndDate', date);
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -489,6 +489,9 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -711,6 +711,10 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#regionTable').bootstrapTable('destroy');
|
||||
$('#channelTable').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -272,6 +272,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -482,6 +482,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -257,6 +257,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -197,6 +197,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -471,6 +471,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -200,6 +200,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -548,6 +548,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
function clearForm(formId) {
|
||||
|
@@ -407,6 +407,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -815,6 +815,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -773,6 +773,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -201,6 +201,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -472,6 +472,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -143,6 +143,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -185,6 +185,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -228,6 +228,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -823,6 +823,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -147,6 +147,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -959,6 +959,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -977,6 +977,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -342,6 +342,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -571,6 +571,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -476,6 +476,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -575,6 +575,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -329,6 +329,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -186,6 +186,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -477,6 +477,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -382,6 +382,9 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
// 初始化团队选择器
|
||||
|
@@ -454,6 +454,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@@ -350,6 +350,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -784,6 +784,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -254,6 +254,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -306,6 +306,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -770,6 +770,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -333,6 +333,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -364,6 +364,9 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -785,6 +785,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
function cleanModal(obj) {
|
||||
|
@@ -193,6 +193,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -970,6 +970,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -535,6 +535,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -100,6 +100,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -390,6 +390,9 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -1207,6 +1207,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
function clearModal() {
|
||||
|
@@ -1304,6 +1304,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
function clearModal() {
|
||||
|
@@ -297,6 +297,9 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
|
||||
// 根据type获取路径名称
|
||||
|
@@ -218,6 +218,9 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -327,12 +327,12 @@ export default {
|
||||
autoclose: true
|
||||
});
|
||||
picker1.on('changeDate', function () {
|
||||
var date = $('#beginDate').datepicker('getDate');
|
||||
picker2.datepicker('setStartDate', date);
|
||||
var date = $('#beginDate').datetimepicker('getDate');
|
||||
picker2.datetimepicker('setStartDate', date);
|
||||
});
|
||||
picker2.on('changeDate', function () {
|
||||
var date = $('#endDate').datepicker('getDate');
|
||||
picker1.datepicker('setEndDate', date);
|
||||
var date = $('#endDate').datetimepicker('getDate');
|
||||
picker1.datetimepicker('setEndDate', date);
|
||||
});
|
||||
|
||||
// 批准提现申请
|
||||
@@ -579,6 +579,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@@ -378,6 +378,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
$('#table').bootstrapTable('destroy');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user