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-viewedit: fix @ROLE
  • Loading branch information
zhangchunlin committed Oct 12, 2019
commit fbd024929f8dcfb9a1f4da16303651f8f3f377ca
11 changes: 8 additions & 3 deletions uliweb_apijson/apijson/templates/vue/inc_apijson_viewedit.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
data: function(){
return {
l_request_tag: null,
role: "{{=role}}",
role: "{{=role or ''}}",
row: {},
row_saved: {},
viewedit_items: [],
Expand All @@ -38,8 +38,10 @@
init_viewedit: function(){
var params = {}
var model_params = {
"id":this.id,
"@role":this.role
"id":this.id
}
if (this.role!='') {
model_params["@role"] = this.role
}
params[this.model_name] = model_params
var thisp = this
Expand Down Expand Up @@ -89,6 +91,9 @@
this.row[d.key] = d.value
}
}
if (this.role!='') {
record_params["@role"] = this.role
}
params[this.l_request_tag] = record_params
params = this.ajax_hook("apijson_put","update",params)
var thisp = this
Expand Down