明树Git Lab

Commit 1dd94d13 authored by yangyajing's avatar yangyajing

投资控制

parent b5228558
Pipeline #106061 passed with stage
in 17 seconds
......@@ -142,6 +142,7 @@
margin: 10px 0;
display: flex;
justify-content: flex-end;
align-items: center;
}
.el-table{
margin-bottom: 10px;
......
This diff is collapsed.
......@@ -36,6 +36,7 @@
<script setup>
import { ref, onMounted, getCurrentInstance } from "vue";
import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import CommonTable from "@/components/common/commonTable.vue";
const router = useRouter();
......@@ -49,8 +50,8 @@
showOverflowTooltip: true
},
{
prop: "projectCode",
label: "项目编号",
prop: "jcdw",
label: "决策单位",
showOverflowTooltip: true
},
{
......@@ -99,7 +100,7 @@
router.push({
name: "addControl",
query: {
projectId: item.id
controlId: item.id
}
});
};
......@@ -108,10 +109,28 @@
name: "addControl",
query: {
isPreview: true,
projectId: item.id
controlId: item.id
}
})
}
const deleteControl = (item) => {
ElMessageBox.confirm("确认删除该项?", "提示",{
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
proxy.$post({
url: "/api/project/deleteTzkz",
data: {
id: item.id
},
callback: (data) => {
ElMessage.success("删除成功");
getControlData();
}
})
}).catch(() => {})
}
onMounted(() => {
getControlData();
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment