feat: 项目进展统计删除功能添加

This commit is contained in:
kun 2024-03-19 17:35:19 +08:00
parent ee44870604
commit a509514d69
2 changed files with 14 additions and 2 deletions

View File

@ -200,6 +200,10 @@ export const globalPlanGovermentEdit = (params: any) => {
export const globalPlanGovermentAudit = (params: any) => {
return http.post(BASEURL + `/gov/projectNodePlan/examine`, params);
};
// 全景计划删除
export const globalPlanGovermentDelete = (params: any) => {
return http.post(BASEURL + `/gov/projectNodePlan/delete`, params);
};
// 全景计划(政务端)------------
// 全景计划分页列表

View File

@ -60,6 +60,7 @@
<img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" />
<span>重新填报</span>
</el-button>
<el-button v-auth="'node_plan_del'" type="danger" link :icon="Delete" @click="handleDeleteItem(row)">删除</el-button>
</template>
<template #fillState="{ row }">
<span>{{
@ -118,12 +119,14 @@ import {
globalPlanEngList,
globalPlanGovermentAdd,
globalPlanGovermentEdit,
globalPlanGovermentAudit
globalPlanGovermentAudit,
globalPlanGovermentDelete
} from "@/api/modules/huizhou";
import { getDicList } from "@/api/modules/jxjview";
import { ElMessage } from "element-plus";
import { useRoute } from "vue-router";
import { useHandleData } from "@/hooks/useHandleData";
import { Delete } from "@element-plus/icons-vue";
const rowId = ref("");
const aproveVisible = ref(false);
const route = useRoute();
@ -214,7 +217,7 @@ const columns: ColumnProps[] = [
// return scoped.row.isSendBack == 1 ? "" : "";
// }
// },
{ prop: "operation", label: "操作", width: 340, fixed: "right" }
{ prop: "operation", label: "操作", width: 360, fixed: "right" }
];
const formData = ref({
nodeNumber: "",
@ -344,6 +347,11 @@ const formConfig = {
};
//
const searchName = ref<string>("");
//
const handleDeleteItem = async (params: any) => {
await useHandleData(globalPlanGovermentDelete, { id: params.id }, `删除【${params.subItemName}`);
proTable.value.getTableList();
};
//
const againApply = async (row: any) => {
await useHandleData(globalPlanGovermentAudit, { id: row.id, fillState: 4 }, `是否重新填报`);