明树Git Lab

Commit 1dd94d13 authored by yangyajing's avatar yangyajing

投资控制

parent b5228558
Pipeline #106061 passed with stage
in 17 seconds
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
margin: 10px 0; margin: 10px 0;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center;
} }
.el-table{ .el-table{
margin-bottom: 10px; margin-bottom: 10px;
......
This diff is collapsed.
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<script setup> <script setup>
import { ref, onMounted, getCurrentInstance } from "vue"; import { ref, onMounted, getCurrentInstance } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import CommonTable from "@/components/common/commonTable.vue"; import CommonTable from "@/components/common/commonTable.vue";
const router = useRouter(); const router = useRouter();
...@@ -49,8 +50,8 @@ ...@@ -49,8 +50,8 @@
showOverflowTooltip: true showOverflowTooltip: true
}, },
{ {
prop: "projectCode", prop: "jcdw",
label: "项目编号", label: "决策单位",
showOverflowTooltip: true showOverflowTooltip: true
}, },
{ {
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
router.push({ router.push({
name: "addControl", name: "addControl",
query: { query: {
projectId: item.id controlId: item.id
} }
}); });
}; };
...@@ -108,10 +109,28 @@ ...@@ -108,10 +109,28 @@
name: "addControl", name: "addControl",
query: { query: {
isPreview: true, 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(() => { onMounted(() => {
getControlData(); 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