明树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 @@
>
<template #operations="{ row, index }">
<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>
</common-table>
</div>
......@@ -104,8 +106,30 @@
currentPage.value = page;
getProjectData();
}
const fillProject = () => {};
const approvalProject = () => {};
const fillProject = (item) => {
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(() => {
getProjectData();
})
......
......@@ -21,7 +21,9 @@
@current-page-change="handleCurrentPageChange"
>
<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>
</common-table>
</div>
......@@ -93,7 +95,19 @@
currentPage.value = page;
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(() => {
getProjectData();
})
......
......@@ -24,7 +24,7 @@
>
<template #operations="{ row, index }">
<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>
</template>
</common-table>
......
......@@ -63,7 +63,7 @@
{
prop: "operations",
label: "操作",
width: 190,
width: 120,
slot: "operations",
fixed: "right",
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