|
@@ -1,14 +1,17 @@
|
|
<template>
|
|
<template>
|
|
<!-- 无效理由和证据 -->
|
|
<!-- 无效理由和证据 -->
|
|
<div>
|
|
<div>
|
|
- <div style="display:flex;justify-content: flex-end;margin-bottom:10px">
|
|
|
|
|
|
+ <div style="display:flex;justify-content: flex-end;margin-bottom:10px" v-if=" $reportPermission(reportId,[0,1])">
|
|
<el-button type="primary" size="small" @click="addInvalid">添加无效理由</el-button>
|
|
<el-button type="primary" size="small" @click="addInvalid">添加无效理由</el-button>
|
|
<!-- <el-button type="primary" size="small" @click="addCourtOpinion">添加法院意见</el-button> -->
|
|
<!-- <el-button type="primary" size="small" @click="addCourtOpinion">添加法院意见</el-button> -->
|
|
<el-button type="primary" size="small" @click="addCourtOpinion" v-if="this.tableField2.findIndex(item=>{return item.fieldKey.slice(-1) == 2})==-1">添加法院二审意见</el-button>
|
|
<el-button type="primary" size="small" @click="addCourtOpinion" v-if="this.tableField2.findIndex(item=>{return item.fieldKey.slice(-1) == 2})==-1">添加法院二审意见</el-button>
|
|
<el-button type="primary" size="small" @click="openField">显示栏位管理</el-button>
|
|
<el-button type="primary" size="small" @click="openField">显示栏位管理</el-button>
|
|
<el-button type="primary" size="small" @click="exportInvalid" :loading="btnLoading">导出无效理由</el-button>
|
|
<el-button type="primary" size="small" @click="exportInvalid" :loading="btnLoading">导出无效理由</el-button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <div style="display:flex;justify-content: flex-end;margin-bottom:10px" v-else>
|
|
|
|
+ <el-button type="primary" size="small" @click="openField">显示栏位管理</el-button>
|
|
|
|
+ <el-button type="primary" size="small" @click="exportInvalid" :loading="btnLoading">导出无效理由</el-button>
|
|
|
|
+ </div>
|
|
<el-table border ref="table" v-if="refreshData" :data="tableData" v-loading="tableLoading" row-key="pId" :expand-row-keys="expands" :span-method="objectSpanMethod" :maxHeight="tableHeight">
|
|
<el-table border ref="table" v-if="refreshData" :data="tableData" v-loading="tableLoading" row-key="pId" :expand-row-keys="expands" :span-method="objectSpanMethod" :maxHeight="tableHeight">
|
|
<el-table-column prop="id" label="序号" align="center" width="80px">
|
|
<el-table-column prop="id" label="序号" align="center" width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -112,7 +115,7 @@
|
|
<div v-else v-html="getData1(scope.row,item.fieldKey)" class="div_MAX_Height"></div>
|
|
<div v-else v-html="getData1(scope.row,item.fieldKey)" class="div_MAX_Height"></div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align="center" width="180px" type prop="id">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" width="180px" type prop="id" v-if=" $reportPermission(reportId,[0,1])">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button @click.native.prevent="editRow(scope.row)" type="text" size="small"> 编辑 </el-button>
|
|
<el-button @click.native.prevent="editRow(scope.row)" type="text" size="small"> 编辑 </el-button>
|
|
@@ -532,9 +535,8 @@ export default {
|
|
var index1 = this.expands.findIndex(item=>{
|
|
var index1 = this.expands.findIndex(item=>{
|
|
return item == row.pId
|
|
return item == row.pId
|
|
})
|
|
})
|
|
- var scrollTop = 0
|
|
|
|
|
|
+ var scrollTop = document.querySelector('.el-table__body-wrapper').scrollTop
|
|
if (index1 == -1) {
|
|
if (index1 == -1) {
|
|
- scrollTop = document.querySelector('.el-table__body-wrapper').scrollTop
|
|
|
|
var a = []
|
|
var a = []
|
|
a[0] = this.tableData.slice(0,index+1)
|
|
a[0] = this.tableData.slice(0,index+1)
|
|
a[1]= this.tableData.slice(index+1,this.tableData.length)
|
|
a[1]= this.tableData.slice(index+1,this.tableData.length)
|