|
|
@@ -82,20 +82,20 @@ layui.config({
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
- var re = treeTable.render({
|
|
|
+ var re = treeTable.render({
|
|
|
elem: '#LAY-list-manage',
|
|
|
- url: '/Admin/Col/IndexData?CurColId='+CurColId,
|
|
|
+ url: '/Admin/Col/IndexData?CurColId=' + CurColId,
|
|
|
icon_key: 'title',
|
|
|
is_checkbox: true,
|
|
|
- end: function(e){
|
|
|
+ end: function (e) {
|
|
|
form.render();
|
|
|
},
|
|
|
cols: [
|
|
|
{
|
|
|
key: 'title',
|
|
|
title: '名称',
|
|
|
- template: function(item){
|
|
|
- return '<span style="color:#333;">'+item.title+'</span>';
|
|
|
+ template: function (item) {
|
|
|
+ return '<span style="color:#333;">' + item.title + '</span>';
|
|
|
}
|
|
|
},
|
|
|
// {
|
|
|
@@ -117,11 +117,18 @@ layui.config({
|
|
|
align: 'center',
|
|
|
},
|
|
|
{
|
|
|
- key: 'Status',
|
|
|
- title: '状态',
|
|
|
+ key: 'Sort',
|
|
|
+ title: '排序',
|
|
|
width: '100px',
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
+ edit: 'text'
|
|
|
+ },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // key: 'Status',
|
|
|
+ // title: '状态',
|
|
|
+ // width: '100px',
|
|
|
+ // align: 'center',
|
|
|
+ // },
|
|
|
{
|
|
|
title: '操作',
|
|
|
width: '350px',
|
|
|
@@ -158,7 +165,7 @@ layui.config({
|
|
|
, submit = layero.find('iframe').contents().find('#' + submitID);
|
|
|
|
|
|
//详细内容
|
|
|
- if(iframeWindow.Contentsedit) iframeWindow.Contentsedit.sync();
|
|
|
+ if (iframeWindow.Contentsedit) iframeWindow.Contentsedit.sync();
|
|
|
|
|
|
|
|
|
//监听提交
|
|
|
@@ -192,7 +199,7 @@ layui.config({
|
|
|
});
|
|
|
layer.full(perContent);
|
|
|
});
|
|
|
- treeTable.on('tree(edit)', function (res) {
|
|
|
+ treeTable.on('tree(edit)', function (res) {
|
|
|
var data = res.item;
|
|
|
var perContent = layer.open({
|
|
|
type: 2
|
|
|
@@ -205,9 +212,9 @@ layui.config({
|
|
|
var iframeWindow = window['layui-layer-iframe' + index]
|
|
|
, submitID = 'LAY-list-front-submit'
|
|
|
, submit = layero.find('iframe').contents().find('#' + submitID);
|
|
|
-
|
|
|
+
|
|
|
//详细内容
|
|
|
- if(iframeWindow.Contentsedit) iframeWindow.Contentsedit.sync();
|
|
|
+ if (iframeWindow.Contentsedit) iframeWindow.Contentsedit.sync();
|
|
|
|
|
|
//监听提交
|
|
|
iframeWindow.layui.form.on('submit(' + submitID + ')', function (data) {
|
|
|
@@ -243,7 +250,7 @@ layui.config({
|
|
|
});
|
|
|
layer.full(perContent);
|
|
|
});
|
|
|
- treeTable.on('tree(del)', function (res) {
|
|
|
+ treeTable.on('tree(del)', function (res) {
|
|
|
var data = res.item;
|
|
|
layer.confirm('确定要删除吗?删除后不能恢复!', function (index) {
|
|
|
$.ajax({
|