@@ -261,19 +261,37 @@ export default {
261
261
})
262
262
},
263
263
handleToProject (row ) {
264
- toProjectTableCheckRole (row .tableId , false ).then (response => {
264
+ this .$confirm (' 正在使用代码生成请确认?' , ' 提示' , {
265
+ confirmButtonText: ' 生成' ,
266
+ cancelButtonText: ' 取消' ,
267
+ type: ' warning'
268
+ }).then (function () {
269
+ return toProjectTableCheckRole (row .tableId , false )
270
+ }).then ((response ) => {
265
271
this .msgSuccess (response .msg )
266
- })
272
+ }). catch ( function () {})
267
273
},
268
274
handleToProjectCheckRole (row ) {
269
- toProjectTableCheckRole (row .tableId , true ).then (response => {
275
+ this .$confirm (' 正在使用代码生成【带权限】请确认?' , ' 提示' , {
276
+ confirmButtonText: ' 生成' ,
277
+ cancelButtonText: ' 取消' ,
278
+ type: ' warning'
279
+ }).then (function () {
280
+ return toProjectTableCheckRole (row .tableId , true )
281
+ }).then ((response ) => {
270
282
this .msgSuccess (response .msg )
271
- })
283
+ }). catch ( function () {})
272
284
},
273
285
handleToDB (row ) {
274
- toDBTable (row .tableId ).then (response => {
286
+ this .$confirm (' 正在使用【菜单以及API生成到数据库】请确认?' , ' 提示' , {
287
+ confirmButtonText: ' 写入DB' ,
288
+ cancelButtonText: ' 取消' ,
289
+ type: ' warning'
290
+ }).then (function () {
291
+ return toDBTable (row .tableId )
292
+ }).then ((response ) => {
275
293
this .msgSuccess (response .msg )
276
- })
294
+ }). catch ( function () {})
277
295
},
278
296
// 多选框选中数据
279
297
handleSelectionChange (selection ) {
0 commit comments