mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +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);
|
operat.url = admin.table.toolSpliceUrl(operat.url, operat.field, data);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var querys = '';
|
var fieldParam = operat.field(data, operat);
|
||||||
if (operat.url.indexOf("?") !== -1) {
|
|
||||||
querys = '&'
|
if (typeof fieldParam == 'string') {
|
||||||
|
operat.url = fieldParam
|
||||||
} else {
|
} 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)) {
|
if (admin.checkAuth(operat.auth, elem)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user