fix: 首批通过不展示审批按钮
parent
0b42f9ef3c
commit
a2b80d08a0
|
@ -2,7 +2,7 @@
|
||||||
<ItemCard title="待办工单" v-bind="$attrs">
|
<ItemCard title="待办工单" v-bind="$attrs">
|
||||||
<el-button slot="operate" type="primary" plain @click="goPage()">查看更多</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]">
|
<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="index" width="50"> </el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="标题" prop="taskName">
|
<el-table-column show-overflow-tooltip label="标题" prop="taskName">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="weight600">{{ scope.row.taskName }}</span>
|
<span class="weight600">{{ scope.row.taskName }}</span>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<el-table-column show-overflow-tooltip label="时间" prop="createTime"></el-table-column>
|
<el-table-column show-overflow-tooltip label="时间" prop="createTime"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="操作" width="60px">
|
<el-table-column show-overflow-tooltip label="操作" width="60px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<cb-link @click="goPage(scope.row)" style="font-size: 14px">审批</cb-link>
|
<cb-link @click="goPage(scope.row)" v-if="scope.row.approveStatus != 1" style="font-size: 14px">审批</cb-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</cb-table>
|
</cb-table>
|
||||||
|
@ -68,7 +68,10 @@ export default {
|
||||||
getItemList() {
|
getItemList() {
|
||||||
getTaskList(this.params).then(data => {
|
getTaskList(this.params).then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
this.tableList = data.data.data
|
this.tableList = data.data.data.map((item, index) => {
|
||||||
|
item.index = (this.params.page - 1) * this.params.rows + index + 1
|
||||||
|
return item
|
||||||
|
})
|
||||||
this.total = data.data.total * 1
|
this.total = data.data.total * 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue