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

Commit 4dd625f

Browse files
apijson-table: add _fields for multiple table case
1 parent 10961f8 commit 4dd625f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@
196196
if (data.code==200) {
197197
var arr = data["[]"]
198198
for (var i=0;i<arr.length;i++) {
199-
arr[i] = arr[i][thisp.table.model_name]
199+
var o = JSON.parse(JSON.stringify(arr[i][thisp.table.model_name]))
200+
o._fields = JSON.parse(JSON.stringify(arr[i]))
201+
arr[i] = o
200202
}
201203

202204
if (!thisp.tcolumns_init) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /