Skip to content
Merged

Sync #41

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apijson-table: fix @ROLE in apijson-delete
  • Loading branch information
zhangchunlin committed Oct 12, 2019
commit ffdca01cdc5983aab174dffe72c9fc6d81b69527
6 changes: 5 additions & 1 deletion uliweb_apijson/apijson/templates/vue/inc_apijson_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,13 @@
var params = {
"@tag": thisp.l_request_tag
}
params[thisp.l_request_tag] = {
var model_params = {
"id": thisp.delete_params.row.id
}
if (thisp.role!="") {
model_params["@role"] = thisp.role
}
params[thisp.l_request_tag] = model_params
params = thisp.ajax_hook("apijson_delete","delete",params)
$.ajax({
type: "POST",
Expand Down