We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4dd625f + 695c780 commit c55212aCopy full SHA for c55212a
uliweb_apijson/apijson/templates/vue/inc_apijson_viewedit.html
@@ -5,7 +5,9 @@
5
"table",
6
"id",
7
"hook_init",
8
- "hook_ajax_params"
+ "hook_ajax_params",
9
+ "hook_ajax_post_result"
10
+
11
],
12
template: `<div>
13
<Spin size="large" fix v-if="loading"></Spin>
@@ -111,12 +113,19 @@
111
113
title: 'success update #'+thisp.row.id+' in table '+thisp.table.model_name,
112
114
desc: data.msg
115
})
116
+ if(thisp.hook_ajax_post_result){
117
+ thisp.hook_ajax_post_result(true, params, thisp.row_saved)
118
+ }
119
}
120
else {
121
thisp.$Notice.error({
122
title: 'error when update #'+thisp.row.id+' in table '+thisp.table.model_name,
123
124
125
126
+ thisp.hook_ajax_post_result(false, params, thisp.row_saved)
127
128
129
130
131
0 commit comments