Commit 81114361 authored by 祁正's avatar 祁正

改bug

parent fe5afda0
...@@ -129,12 +129,12 @@ ...@@ -129,12 +129,12 @@
<text>{{changProjectNumber}}</text> <text>{{changProjectNumber}}</text>
</div> </div>
<div > <div >
<FlowChart :dataList="list" :itemWidth="'130px'" :activeIndex="2"/> <FlowChart :dataList="list" :itemWidth="'130px'" :activeIndex="stepActive"/>
</div> </div>
</div> </div>
<!-- 表格数据 --> <!-- 表格数据 -->
<el-table @cell-mouse-enter="handleHover" @cell-mouse-leave="handleLeave" :data="costManageList" border @selection-change="handleSelectionChange"> <el-table @cell-mouse-enter="handleHover" @cell-mouse-leave="handleLeave" :data="costManageList" border @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="right"/> <el-table-column type="selection" align="center" :selectable="rowSelectable"></el-table-column>
<el-table-column label="申请人" align="center" prop="approvalUser" fixed /> <el-table-column label="申请人" align="center" prop="approvalUser" fixed />
<!-- <el-table-column label="项目编号" align="center" prop="projectNumber" width="180px"/>--> <!-- <el-table-column label="项目编号" align="center" prop="projectNumber" width="180px"/>-->
<el-table-column label="项目名称" align="center" prop="projectName" /> <el-table-column label="项目名称" align="center" prop="projectName" />
...@@ -445,6 +445,7 @@ const handleHover = (row, column, cell, event) => { ...@@ -445,6 +445,7 @@ const handleHover = (row, column, cell, event) => {
timer = setTimeout(() => { timer = setTimeout(() => {
changProjectNumber.value = row.projectNumber changProjectNumber.value = row.projectNumber
let i = allList.value.findIndex((item)=>item.nodeId === row.currentAudiRoleId) let i = allList.value.findIndex((item)=>item.nodeId === row.currentAudiRoleId)
console.log("i",i)
if(i === -1) stepActive.value = 1 if(i === -1) stepActive.value = 1
else stepActive.value = i+1 else stepActive.value = i+1
...@@ -461,7 +462,7 @@ const handleLeave = () => { ...@@ -461,7 +462,7 @@ const handleLeave = () => {
//获取所有流程列表,根据审批id //获取所有流程列表,根据审批id
const getNodeList = ()=>{ const getNodeList = ()=>{
getApproveNodeList(14).then(res=>{ getApproveNodeList(16).then(res=>{
console.log("lkoi",res) console.log("lkoi",res)
allList.value = res.data.nodeList allList.value = res.data.nodeList
list.value = res.data.nodeList.map(item=>{ list.value = res.data.nodeList.map(item=>{
...@@ -480,7 +481,7 @@ const getList = () => { ...@@ -480,7 +481,7 @@ const getList = () => {
Object.assign(costManageList,res.rows); Object.assign(costManageList,res.rows);
console.log("审批页数据",costManageList); console.log("审批页数据",costManageList);
for(let i in costManageList){ for(let i in costManageList){
costManageList[i].currentStatus = approvalStatusChange(projectCostRequestList[i].approvalStatus,projectCostRequestList[i].currentAudiRoleId) costManageList[i].currentStatus = approvalStatusChange(costManageList[i].approvalStatus,costManageList[i].currentAudiRoleId)
} }
getTopApproveInfo() getTopApproveInfo()
......
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