明树Git Lab

Commit d22c977e authored by yangyajing's avatar yangyajing

项目管理决策流程开发

parent a9deae8e
Pipeline #104242 passed with stage
in 13 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
> >
<template #operations="{ row, index }"> <template #operations="{ row, index }">
<el-button link type="primary" size="small" @click="fillProject(row)">继续填报</el-button> <el-button link type="primary" size="small" @click="fillProject(row)">继续填报</el-button>
<el-button link type="primary" size="small" @click="approvalProject(row)">发起审批</el-button> <el-button link type="primary" size="small"
:loading="row.loading" @click="approvalProject(row)"
>发起审批</el-button>
</template> </template>
</common-table> </common-table>
</div> </div>
...@@ -104,8 +106,30 @@ ...@@ -104,8 +106,30 @@
currentPage.value = page; currentPage.value = page;
getProjectData(); getProjectData();
} }
const fillProject = () => {}; const fillProject = (item) => {
const approvalProject = () => {}; router.push({
name: "addProject",
params: {
type: "xmlz"
},
query: {
projectId: item.id
}
});
};
const approvalProject = (item) => {
item.loading = true;
proxy.$post({
url: "/api/project/startJuece",
data: {
id: item.id
},
callback: (data) => {
item.loading = false;
getProjectData();
}
})
};
onMounted(() => { onMounted(() => {
getProjectData(); getProjectData();
}) })
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
@current-page-change="handleCurrentPageChange" @current-page-change="handleCurrentPageChange"
> >
<template #operations="{ row, index }"> <template #operations="{ row, index }">
<el-button link type="primary" size="small" @click="getResult(row)">查询决策结果</el-button> <el-button link type="primary" size="small"
:loading="row.loading" @click="getResult(row)"
>查询决策结果</el-button>
</template> </template>
</common-table> </common-table>
</div> </div>
...@@ -93,7 +95,19 @@ ...@@ -93,7 +95,19 @@
currentPage.value = page; currentPage.value = page;
getProjectData(); getProjectData();
} }
const getResult = () => {}; const getResult = (item) => {
item.loading = true;
proxy.$post({
url: "/api/project/queryJueceResult",
data: {
id: item.id
},
callback: (data) => {
item.loading = false;
getProjectData();
}
})
};
onMounted(() => { onMounted(() => {
getProjectData(); getProjectData();
}) })
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
> >
<template #operations="{ row, index }"> <template #operations="{ row, index }">
<el-button link type="primary" size="small" @click="previewProject(row)">查看</el-button> <el-button link type="primary" size="small" @click="previewProject(row)">查看</el-button>
<el-button link type="primary" size="small" @click="editProject(row)">编辑</el-button> <el-button link type="primary" size="small" @click="editProject(row)">发起立项</el-button>
<el-button link type="danger" size="small" @click="deleteProject(row)">删除</el-button> <el-button link type="danger" size="small" @click="deleteProject(row)">删除</el-button>
</template> </template>
</common-table> </common-table>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
{ {
prop: "operations", prop: "operations",
label: "操作", label: "操作",
width: 190, width: 120,
slot: "operations", slot: "operations",
fixed: "right", fixed: "right",
align: "center" align: "center"
......
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