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