fix: 首页工单跳转

develop
时启龙 2024-08-28 23:03:49 +08:00
parent 59b0c799d1
commit 4aeb7fdc62
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template>
<ItemCard title="待办工单" v-bind="$attrs">
<el-button slot="operate" type="primary" plain>查看更多</el-button>
<el-button slot="operate" type="primary" plain @click="goPage()"></el-button>
<cb-table :data="tableList" :params="params" :get-list="getItemList" :total="total" :pageSizes="[15]">
<el-table-column type="index" width="50" label="序号"> </el-table-column>
<el-table-column show-overflow-tooltip label="标题" prop="task_name">
@ -19,7 +19,7 @@
<el-table-column show-overflow-tooltip label="时间" prop="create_time"></el-table-column>
<el-table-column show-overflow-tooltip label="操作" width="60px">
<template slot-scope="scope">
<cb-link @click="handleOperation(scope.row)" style="font-size: 14px">审批</cb-link>
<cb-link @click="goPage(scope.row)" style="font-size: 14px">审批</cb-link>
</template>
</el-table-column>
</cb-table>
@ -70,8 +70,10 @@ export default {
}
})
},
handleOperation(row) {
console.log('操作任务', row)
goPage(row) {
// TODO
const url = row ? `http://36.111.150.83:9527/taskManageFlow?taskCode=${row.task_code}&src=fromYW` : 'http://36.111.150.83:9527/faultRepairsList'
window.location.href = url
}
}
}