").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});
diff --git a/src/main/resources/static/assets/js/vendor/sortable/moduleSet.js b/src/main/resources/static/assets/js/vendor/sortable/moduleSet.js
new file mode 100644
index 0000000..53b5866
--- /dev/null
+++ b/src/main/resources/static/assets/js/vendor/sortable/moduleSet.js
@@ -0,0 +1,72 @@
+$.fn.moduleSet = function(opt){
+ var setting = {
+ button:[
+ {text:'编辑',callback:function(){},iconfont:''},
+ {text:'美化',callback:function(){},iconfont:''},
+ {text:'删除',callback:function(){},iconfont:''},
+ ],
+ }
+
+ var options = $.extend({},setting,opt);
+ var M = {};
+
+ var _this = this;
+
+ // 初始化
+ M.init = function(){
+ $(_this).css('position','relative');
+ M.createStyle();
+ M.createElem(function(){
+ M.initShowModule();
+ });
+ }
+
+ // 显示方法
+ M.initShowModule = function(){
+ $(_this).mouseenter(function(){
+ $(_this).find('.panel-module-box').fadeIn(200);
+ }).mouseleave(function(){
+ $(_this).find('.panel-module-box').fadeOut(100);
+ })
+ }
+
+ // 创建样式
+ M.createStyle = function(){
+
+ if($('#panel-style').length > 0) return;
+
+ var style = '';
+
+ $($('head')[0]).append(style);
+
+ }
+
+ // 创建elem
+ M.createElem = function(callback){
+ if($(_this).find('.panel-module-handle').length > 0) return;
+
+ var btnGroup = '';
+ for(var i = 0; i < options.button.length; i++){
+ btnGroup += '
';
+
+ // 绑定事件
+ M.createEvent(i);
+
+ }
+
+ var elem = '
';
+ $(_this).append(elem);
+ // 创建后回调
+ callback && typeof(callback) == 'function' && callback(this);
+
+ }
+
+ // 创建事件
+ M.createEvent = function(index){
+ $(_this).delegate('button:eq('+index+')','click',function(){
+ !!options.button[index].callback && typeof(options.button[index].callback) == 'function' && options.button[index].callback(this);
+ })
+ }
+
+ M.init();
+}
\ No newline at end of file
diff --git a/src/main/resources/static/route/columnmng/list.html b/src/main/resources/static/route/columnmng/list.html
index bdbb57c..338cdb4 100644
--- a/src/main/resources/static/route/columnmng/list.html
+++ b/src/main/resources/static/route/columnmng/list.html
@@ -108,24 +108,6 @@
return rowData;
}
},
- {field: 'gridNumber', width: 120, title: '栅格值', align:'center',
- templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
- return rowData;
- }
- },
- {field: 'orderNumber', width: 120, title: '排序(降序)', align:'center',
- templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
- return rowData;
- }
- },
{field: 'openType', width: 100, title: '开启状态', align:'center',
templet: function(row) {
var rowData = row[this.field];
@@ -147,24 +129,14 @@
return rowData;
}
},
- {field: 'linkWay', width: 180, title: '跳转方式', align:'center',
+ {field:'cz', width:220, title: '操作', align:'center', fixed: 'right',
templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
+ var rowData = '
' +
+ '' +
+ '
';
return rowData;
}
- },
- {field: 'linkAddr', width: 180, title: '跳转地址', align:'center',
- templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
- return rowData;
- }
- },
+ }
]
],
page: true,
@@ -238,6 +210,28 @@
$(document).on('click', '#search', function() {
reloadTable(1);
});
+
+ table.on('tool(dataTable)', function(obj) {
+ var data = obj.data;
+ var event = obj.event;
+ if (event === 'mngItem') {
+ top.layer.open({
+ type: 2,
+ title: false,
+ closeBtn: 1,
+ area: ['50%', '95%'],
+ shadeClose: true,
+ anim: 2,
+ content: top.restAjax.path('route/columnmngitem/list-area.html?columnId={columnId}', [data.columnId]),
+ end: function () {
+ reloadTable();
+ }
+ })
+ }
+ });
+
+
+
// 事件 - 增删改
table.on('toolbar(dataTable)', function(obj) {
var layEvent = obj.event;
diff --git a/src/main/resources/static/route/columnmng/save.html b/src/main/resources/static/route/columnmng/save.html
index a5ffec9..7a3bd78 100644
--- a/src/main/resources/static/route/columnmng/save.html
+++ b/src/main/resources/static/route/columnmng/save.html
@@ -59,15 +59,15 @@