fix: 参数取值修改
parent
90247e5565
commit
69b7be76f6
|
@ -3,20 +3,20 @@
|
||||||
<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 type="index" width="50" label="序号"> </el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="标题" prop="task_name">
|
<el-table-column show-overflow-tooltip label="标题" prop="taskName">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="weight600">{{ scope.row.task_name }}</span>
|
<span class="weight600">{{ scope.row.taskName }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="状态" prop="approve_status">
|
<el-table-column show-overflow-tooltip label="状态" prop="approveStatus">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag class="custom-tag" :type="statusFilter(scope.row.approve_status, 'color')" effect="light" round>
|
<el-tag class="custom-tag" :type="statusFilter(scope.row.approveStatus, 'color')" effect="light" round>
|
||||||
{{ statusFilter(scope.row.approve_status, 'text') }}
|
{{ statusFilter(scope.row.approveStatus, 'text') }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="发起人" prop="create_name"></el-table-column>
|
<el-table-column show-overflow-tooltip label="发起人" prop="creatorId"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip label="时间" prop="create_time"></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)" style="font-size: 14px">审批</cb-link>
|
||||||
|
@ -68,13 +68,7 @@ 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.map(item => {
|
this.tableList = data.data.data
|
||||||
item.task_name = item.taskName || item.task_name
|
|
||||||
item.approve_status = item.approveStatus || item.approve_status
|
|
||||||
item.create_name = item.createName || item.create_name
|
|
||||||
item.create_time = item.createTime || item.create_time
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
this.total = data.data.total * 1
|
this.total = data.data.total * 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue