|
|
@@ -183,7 +183,7 @@
|
|
|
v-hasPermi="['core:drillDictionary:edit']"
|
|
|
>编辑
|
|
|
</el-button>
|
|
|
- <BtnTip
|
|
|
+ <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@@ -191,7 +191,7 @@
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['core:drillDictionary:remove']"
|
|
|
>删除
|
|
|
- </BtnTip>
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -442,21 +442,16 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- delDrillDictionary(ids)
|
|
|
- .then((response) => {
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认删除?")
|
|
|
+ .then(function () {
|
|
|
+ return delDrillDictionary(ids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
- this.$modal.msgSuccess("删除失败");
|
|
|
- });
|
|
|
- // this.$modal.confirm('是否确认删除预案演练库编号为"' + ids + '"的数据项?').then(function () {
|
|
|
- // return delDrillDictionary(ids);
|
|
|
- // }).then(() => {
|
|
|
- // this.getList();
|
|
|
- // this.$modal.msgSuccess("删除成功");
|
|
|
- // }).catch(() => {
|
|
|
- // });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|