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

Commitc55212a

Browse files
authored
Merge pull request#15 from tangjn/master
add ajax post result
2 parents4dd625f +695c780 commitc55212a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"table",
66
"id",
77
"hook_init",
8-
"hook_ajax_params"
8+
"hook_ajax_params",
9+
"hook_ajax_post_result"
10+
911
],
1012
template:`<div>
1113
<Spin size="large" fix v-if="loading"></Spin>
@@ -111,12 +113,19 @@
111113
title:'success update #'+thisp.row.id+' in table '+thisp.table.model_name,
112114
desc:data.msg
113115
})
116+
if(thisp.hook_ajax_post_result){
117+
thisp.hook_ajax_post_result(true,params,thisp.row_saved)
118+
}
114119
}
115120
else{
116121
thisp.$Notice.error({
117122
title:'error when update #'+thisp.row.id+' in table '+thisp.table.model_name,
118123
desc:data.msg
119124
})
125+
if(thisp.hook_ajax_post_result){
126+
thisp.hook_ajax_post_result(false,params,thisp.row_saved)
127+
}
128+
120129
}
121130
}
122131
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp