|
@@ -36,9 +36,9 @@
|
|
|
@sort-change="sortChange"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
- <el-table-column type="selection" width="55"></el-table-column>
|
|
|
+ <el-table-column type="selection" width="55" :selectable="selectableStatus"></el-table-column>
|
|
|
|
|
|
- <el-table-column v-for="item in columnList" :render-header="$commonJS.renderHeaderMethods" :key="item.field" :prop="item.field" :label="item.name" :sortable="item.ifSort?'custom':false" :width="item.width || 'auto'">
|
|
|
+ <el-table-column v-for="item in columnList" :render-header="$commonJS.renderHeaderMethods" :key="item.field" :prop="item.field" :label="item.name" :sortable="item.ifSort?'custom':false" :width="item.width || 'auto'" :min-width="item.minWidth?item.minWidth:''">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="item.field == 'type'" v-html="examineType[scope.row.type]"></div>
|
|
|
<div v-else-if="item.field == 'status'" v-html="status[scope.row.status]"></div>
|
|
@@ -63,9 +63,9 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="180px">
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope" v-if="scope.row.status!=1">
|
|
|
<el-button size="mini" type="primary" @click="examine(scope.row,1)"><i class="el-icon-check"></i>通过</el-button>
|
|
|
- <el-button size="mini" type="danger" @click="examine(scope.row,2)"><i class="el-icon-close"></i>不通过</el-button>
|
|
|
+ <el-button size="mini" type="danger" @click="examine(scope.row,0)"><i class="el-icon-close"></i>不通过</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -75,7 +75,7 @@
|
|
|
<div v-if="multipleSelection.length">
|
|
|
已选择{{ multipleSelection.length }}条数据
|
|
|
<el-button size="mini" type="primary" @click="examineAll(1)"><i class="el-icon-check"></i>审核通过</el-button>
|
|
|
- <el-button size="mini" type="danger" @click="examineAll(2)"><i class="el-icon-close"></i>审核通过</el-button>
|
|
|
+ <el-button size="mini" type="danger" @click="examineAll(0)"><i class="el-icon-close"></i>审核不通过</el-button>
|
|
|
</div>
|
|
|
<div v-else></div>
|
|
|
<el-pagination background layout="total, sizes, prev, pager, next, jumper"
|
|
@@ -102,12 +102,13 @@ const defaultColumn = [
|
|
|
field:'content',
|
|
|
name:'待审核内容',
|
|
|
ifSort:false,
|
|
|
+ minWidth:'200px'
|
|
|
},
|
|
|
{
|
|
|
field:'createName',
|
|
|
name:'发起人',
|
|
|
ifSort:false,
|
|
|
- width:'150px',
|
|
|
+ width:'120px',
|
|
|
type:"function",
|
|
|
useFunction:(data)=>{
|
|
|
return data.createName || data.personnelName
|
|
@@ -117,31 +118,31 @@ const defaultColumn = [
|
|
|
field:'createTime',
|
|
|
name:'发起时间时间',
|
|
|
ifSort:false,
|
|
|
- width:'180px',
|
|
|
+ width:'160px',
|
|
|
},
|
|
|
{
|
|
|
field:'status',
|
|
|
name:'任务状态',
|
|
|
ifSort:false,
|
|
|
- width:'150px',
|
|
|
+ width:'120px',
|
|
|
},
|
|
|
{
|
|
|
field:'auditResult',
|
|
|
name:'审核结果',
|
|
|
ifSort:false,
|
|
|
- width:'150px',
|
|
|
+ width:'120px',
|
|
|
},
|
|
|
{
|
|
|
field:'handleName',
|
|
|
name:'审核人',
|
|
|
ifSort:false,
|
|
|
- width:'150px',
|
|
|
+ width:'120px',
|
|
|
},
|
|
|
{
|
|
|
field:'handleTime',
|
|
|
name:'审核时间',
|
|
|
ifSort:false,
|
|
|
- width:'180px',
|
|
|
+ width:'160px',
|
|
|
},
|
|
|
]
|
|
|
const defaultSearchForm = {
|
|
@@ -183,6 +184,13 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectableStatus(row,index){
|
|
|
+ if(row.status == 1){
|
|
|
+ return false
|
|
|
+ }else{
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
//查询审核任务列表
|
|
|
getList(){
|
|
|
this.loading = true
|