增加table的operat的url回调函数用法;增加table的operat的field的空判断

This commit is contained in:
2023-01-02 09:56:03 +08:00
parent 605d2396c9
commit 5f1124426c

View File

@@ -999,8 +999,15 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
operat.title = data[operat.extra] + ' - ' + operat.title;
}
if (typeof operat.url == 'function') {
operat.url = operat.url(data, operat);
}
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 {
var fieldParam = operat.field(data, operat);