|
@@ -180,10 +180,11 @@ export const JeecgListMixin = {
|
|
|
ids += this.selectedRowKeys[a] + ",";
|
|
|
}
|
|
|
var that = this;
|
|
|
- this.$confirm({
|
|
|
- title: "确认删除",
|
|
|
- content: "是否删除选中数据?",
|
|
|
- onOk: function () {
|
|
|
+ this.$confirm('是否删除选中数据?', '确认删除', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() =>{
|
|
|
that.loading = true;
|
|
|
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
|
|
|
if (res.success) {
|
|
@@ -199,7 +200,7 @@ export const JeecgListMixin = {
|
|
|
that.loading = false;
|
|
|
});
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
handleDelete: function (id) {
|