File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
uliweb_apijson/apijson/templates/vue Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
"table" ,
6
6
"id" ,
7
7
"hook_init" ,
8
- "hook_ajax_params"
8
+ "hook_ajax_params" ,
9
+ "hook_ajax_post_result"
10
+
9
11
] ,
10
12
template : `<div>
11
13
<Spin size="large" fix v-if="loading"></Spin>
111
113
title : 'success update #' + thisp . row . id + ' in table ' + thisp . table . model_name ,
112
114
desc : data . msg
113
115
} )
116
+ if ( thisp . hook_ajax_post_result ) {
117
+ thisp . hook_ajax_post_result ( true , params , thisp . row_saved )
118
+ }
114
119
}
115
120
else {
116
121
thisp . $Notice . error ( {
117
122
title : 'error when update #' + thisp . row . id + ' in table ' + thisp . table . model_name ,
118
123
desc : data . msg
119
124
} )
125
+ if ( thisp . hook_ajax_post_result ) {
126
+ thisp . hook_ajax_post_result ( false , params , thisp . row_saved )
127
+ }
128
+
120
129
}
121
130
}
122
131
} )
You can’t perform that action at this time.
0 commit comments