perf: 移除 办公管理无用的删除按钮

This commit is contained in:
konbai
2022-12-24 19:57:41 +08:00
parent 8f7e095eb0
commit a575cbd046
2 changed files with 1 additions and 55 deletions

View File

@@ -29,17 +29,6 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['workflow:process:remove']"
>删除</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -89,7 +78,7 @@
<script>
import { listFinishedProcess } from '@/api/workflow/process';
import { delDeployment, revokeProcess } from "@/api/workflow/finished";
import { revokeProcess } from "@/api/workflow/finished";
export default {
name: "Finished",
@@ -234,20 +223,6 @@ export default {
this.$modal.msgSuccess(res.msg);
this.getList();
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除流程定义编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return delDeployment(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
}
}
};

View File

@@ -29,17 +29,6 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -85,10 +74,6 @@
<script>
import { listTodoProcess } from '@/api/workflow/process';
import {
delDeployment,
exportDeployment
} from "@/api/workflow/todo";
export default {
name: "Todo",
@@ -199,20 +184,6 @@ export default {
this.open = true;
this.title = "添加流程定义";
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除流程定义编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function () {
return delDeployment(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;