调整field的表现;

This commit is contained in:
2022-08-11 09:55:45 +08:00
parent 19fa870f27
commit bba154a1df
2 changed files with 14 additions and 5 deletions

View File

@@ -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,

View File

@@ -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)) {