mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 11:32:48 +08:00
增加table的operat的url回调函数用法;增加table的operat的field的空判断
This commit is contained in:
@@ -999,8 +999,15 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
|||||||
operat.title = data[operat.extra] + ' - ' + operat.title;
|
operat.title = data[operat.extra] + ' - ' + operat.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof operat.url == 'function') {
|
||||||
|
operat.url = operat.url(data, operat);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (typeof operat.field != 'function') {
|
if (typeof operat.field != 'function') {
|
||||||
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
if(!admin.empty(operat.field)){
|
||||||
|
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var fieldParam = operat.field(data, operat);
|
var fieldParam = operat.field(data, operat);
|
||||||
|
|||||||
Reference in New Issue
Block a user