Skip to content

Commit 1cbbf06

Browse files
committed
gen : added confirm
1 parent 5c416ff commit 1cbbf06

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/views/tools/gen/index.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ export default {
266266
cancelButtonText: '取消',
267267
type: 'warning'
268268
}).then(function() {
269-
toProjectTableCheckRole(row.tableId, false).then(response => {
270-
this.msgSuccess(response.msg)
271-
})
269+
return toProjectTableCheckRole(row.tableId, false)
270+
}).then((response) => {
271+
this.msgSuccess(response.msg)
272272
}).catch(function() {})
273273
},
274274
handleToProjectCheckRole(row) {
@@ -277,9 +277,9 @@ export default {
277277
cancelButtonText: '取消',
278278
type: 'warning'
279279
}).then(function() {
280-
toProjectTableCheckRole(row.tableId, true).then(response => {
281-
this.msgSuccess(response.msg)
282-
})
280+
return toProjectTableCheckRole(row.tableId, true)
281+
}).then((response) => {
282+
this.msgSuccess(response.msg)
283283
}).catch(function() {})
284284
},
285285
handleToDB(row) {
@@ -288,9 +288,9 @@ export default {
288288
cancelButtonText: '取消',
289289
type: 'warning'
290290
}).then(function() {
291-
toDBTable(row.tableId).then(response => {
292-
this.msgSuccess(response.msg)
293-
})
291+
return toDBTable(row.tableId)
292+
}).then((response) => {
293+
this.msgSuccess(response.msg)
294294
}).catch(function() {})
295295
},
296296
// 多选框选中数据

0 commit comments

Comments
 (0)