Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66d6d27

Browse files
committed
apijson-table: fix key and title problem in viewedit_items
1 parentfbd0249 commit66d6d27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎uliweb_apijson/apijson/templates/vue/inc_apijson_table.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@
257257
}
258258
}
259259
else{
260-
this.viewedit_items.push({title:"id",value:row.id,component:"input"})
260+
this.viewedit_items.push({key:"id",title:"id",value:row.id,component:"input"})
261261
vartype2comp={
262262
"boolean":"checkbox"
263263
}
264264
for(varkinrow){
265265
if(k!="id"&&k[0]!="_"){
266266
varvalue=row[k]
267267
varcomp=type2comp[typeofvalue]||"input"
268-
this.viewedit_items.push({title:k,value:value,component:comp})
268+
this.viewedit_items.push({title:k,key:k,value:value,component:comp})
269269
}
270270
}
271271
}
@@ -297,8 +297,8 @@
297297
//only save modified fields
298298
for(varkinthisp.viewedit_items){
299299
vard=thisp.viewedit_items[k]
300-
if(d.title=="id"||d.value!=row[d.title]){
301-
record_params[d.title]=d.value
300+
if(d.key=="id"||d.value!=row[d.key]){
301+
record_params[d.key]=d.value
302302
}
303303
}
304304
if(thisp.role!=""){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp