Commit e54963d7 authored by qiyaxin's avatar qiyaxin

改bug

parent 207378c7
......@@ -208,6 +208,11 @@ const reset = () => {
queryParams.approveStatus = null
getList()
}
// 提交搜索表单
const onSearch = () => {
getList()
}
//获取当前用户角色信息
const getRoleInfo = ()=>{
getRoleId().then(res=>{
......@@ -404,14 +409,15 @@ const getNodeList = ()=>{
const projectCostRequestList = reactive([]);
const getList=()=> {
loading.value = true;
console.log("参数",queryParams);
getCostRequestList(queryParams).then(response => {
loading.value = false;
total.value = response.total
Object.assign(projectCostRequestList, response.rows);
console.log("项目费用申请审批-列表",projectCostRequestList)
for(let i in projectCostRequestList){
projectCostRequestList[i].currentStatus = approvalStatusChange(projectCostRequestList[i].approveStatus,projectCostRequestList[i].currentAuditRoleId)
}
console.log("项目费用申请审批-列表",projectCostRequestList)
getTopApproveInfo()
});
......
......@@ -231,7 +231,6 @@ const handleSelectionChange = (val) => {
})
}
//导出
const handleExport = ()=>{
if (ids.value.length === 0) {
......@@ -246,7 +245,6 @@ const handleExport = ()=>{
}
}
//获取所有审批流程
const getAllshenpiList = ()=>{
getAllapproveList(14).then(response => {
......@@ -278,6 +276,7 @@ const reset = () => {
const onSearch = () => {
getList()
}
// 鼠标悬停更改步骤条
const hoverColumnData = ref('');
const stepActive = ref(1);
......@@ -294,18 +293,10 @@ const handleHover = (row, column, cell, event) => {
let i = allList.value.findIndex((item)=>item.nodeId === row.currentAuditRoleId)
if(i === -1) stepActive.value = 1
else stepActive.value = i+1
}, 300);
}
const handleLeave = () => {
if (timer) {
clearTimeout(timer);
}
......@@ -313,7 +304,6 @@ const handleLeave = () => {
getTopApproveInfo()
}, 300);
}
// 新增按钮
......
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