diff --git a/src/main/resources/static/route/shop/list.html b/src/main/resources/static/route/shop/list.html
index 1026f17..8cc1ad4 100644
--- a/src/main/resources/static/route/shop/list.html
+++ b/src/main/resources/static/route/shop/list.html
@@ -31,23 +31,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -172,36 +158,6 @@
}
});
}
-
- function showImg() {
- var viewer = new Viewer(document.getElementById("imgShow"),{
- inline: true,
- url: 'data-original',
- navbar: false,
- zoomRatio: 0.4,
- button: true,
- title: false,
- keyboard: false,
- toolbar: {
- zoomIn: 1,
- zoomOut: 1,
- oneToOne: 1,
- reset: 1,
- prev: 0,
- play: 0,
- next: 0,
- rotateLeft: 1,
- rotateRight: 1,
- flipHorizontal: 1,
- flipVertical: 1,
- },
- viewed: function () {
- viewer.view(0);
- }
- });
- }
-
-
// 重载表格
function reloadTable(currentPage) {
table.reload('dataTable', {
@@ -317,12 +273,12 @@
}
});
- table.on('tool(dataTable)', function(obj){
+ table.on('tool(dataTable)', function(obj) {
//var checkStatus = table.checkStatus(obj.config.id);
var data = obj.data;
var event = obj.event;
- if(event === 'show') {
+ if (event === 'show') {
layer.open({
type: 2,
title: false,
@@ -330,27 +286,26 @@
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
- content: top.restAjax.path('route/shop/show.html?shopId={shopId}', [data.showId]),
- end: function() {
+ content: top.restAjax.path('route/shop/show.html?shopId={shopId}', [data.shopId]),
+ end: function () {
reloadTable();
}
- });
-
- // switch(obj.event){
- // case 'add':
- // layer.msg('添加');
- // break;
- // case 'delete':
- // layer.msg('删除');
- // break;
- // case 'update':
- // layer.msg('编辑');
- // break;
- // };
+ })
+ } else if (event === 'staff'){
+ layer.open({
+ type: 2,
+ title: false,
+ closeBtn: 0,
+ area: ['90%', '90%'],
+ shadeClose: true,
+ anim: 2,
+ content: top.restAjax.path('route/shopstaff/list.html?shopId={shopId}', [data.shopId]),
+ end: function () {
+ reloadTable();
+ }
+ })
+ }
});
-
-
-
});