mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
修改table.operat.field的表现,更具灵活性
This commit is contained in:
@@ -1003,14 +1003,20 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
||||
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
||||
} else {
|
||||
|
||||
var querys = '';
|
||||
if (operat.url.indexOf("?") !== -1) {
|
||||
querys = '&'
|
||||
var fieldParam = operat.field(data, operat);
|
||||
|
||||
if (typeof fieldParam == 'string') {
|
||||
operat.url = fieldParam
|
||||
} else {
|
||||
querys = '?'
|
||||
var querys = '';
|
||||
if (operat.url.indexOf("?") !== -1) {
|
||||
querys = '&'
|
||||
} else {
|
||||
querys = '?'
|
||||
}
|
||||
operat.url += querys + $.param(fieldParam)
|
||||
}
|
||||
|
||||
operat.url += querys + $.param(operat.field(data, operat))
|
||||
}
|
||||
|
||||
if (admin.checkAuth(operat.auth, elem)) {
|
||||
|
||||
Reference in New Issue
Block a user