mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
调整field的表现;
This commit is contained in:
@@ -76,6 +76,7 @@ define(["jquery", "easy-admin", "treetable", "iconPickerFa", "autocomplete"], fu
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
text: '编辑',
|
text: '编辑',
|
||||||
url: init.edit_url,
|
url: init.edit_url,
|
||||||
@@ -83,7 +84,7 @@ define(["jquery", "easy-admin", "treetable", "iconPickerFa", "autocomplete"], fu
|
|||||||
auth: 'edit',
|
auth: 'edit',
|
||||||
class: 'layui-btn layui-btn-xs layui-btn-success',
|
class: 'layui-btn layui-btn-xs layui-btn-success',
|
||||||
extend: 'data-full="true"',
|
extend: 'data-full="true"',
|
||||||
if:'status'
|
if: 'status'
|
||||||
}, {
|
}, {
|
||||||
text: '删除',
|
text: '删除',
|
||||||
method: 'none',
|
method: 'none',
|
||||||
@@ -178,7 +179,7 @@ define(["jquery", "easy-admin", "treetable", "iconPickerFa", "autocomplete"], fu
|
|||||||
$('#icon').val('fa ' + data.icon);
|
$('#icon').val('fa ' + data.icon);
|
||||||
},
|
},
|
||||||
success: function (d) {
|
success: function (d) {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
autocomplete.render({
|
autocomplete.render({
|
||||||
|
|||||||
@@ -754,9 +754,9 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
|||||||
}
|
}
|
||||||
} else if (typeof operat.if == 'string') {
|
} else if (typeof operat.if == 'string') {
|
||||||
|
|
||||||
var ifValue = admin.table.returnColumnValue(data,operat.if,false);
|
var ifValue = admin.table.returnColumnValue(data, operat.if, false);
|
||||||
|
|
||||||
if(!ifValue){
|
if (!ifValue) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -975,7 +975,15 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
|||||||
if (typeof operat.field != 'function') {
|
if (typeof operat.field != 'function') {
|
||||||
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
||||||
} else {
|
} else {
|
||||||
operat.url = operat.field(operat.url, data, operat)
|
|
||||||
|
var querys = '';
|
||||||
|
if (operat.url.indexOf("?") !== -1) {
|
||||||
|
querys = '&'
|
||||||
|
} else {
|
||||||
|
querys = '?'
|
||||||
|
}
|
||||||
|
|
||||||
|
operat.url += querys + $.param(operat.field(data, operat))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (admin.checkAuth(operat.auth, elem)) {
|
if (admin.checkAuth(operat.auth, elem)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user