|
@@ -40,11 +40,13 @@
|
|
|
popper-class="popverClass"
|
|
popper-class="popverClass"
|
|
|
trigger="click"
|
|
trigger="click"
|
|
|
@show="getReportAndFile(scope.row)"
|
|
@show="getReportAndFile(scope.row)"
|
|
|
|
|
+ @hide="refresh=false"
|
|
|
>
|
|
>
|
|
|
<div slot="reference" class="div_operation el-icon-s-order">查阅记录</div>
|
|
<div slot="reference" class="div_operation el-icon-s-order">查阅记录</div>
|
|
|
- <div v-loading="fileLoading" class="div_content">
|
|
|
|
|
- <!-- 获取所有输出报告-->
|
|
|
|
|
- <!-- <template v-if="record.report.length && record.report[0]">
|
|
|
|
|
|
|
+ <div v-loading="fileLoading">
|
|
|
|
|
+ <div v-if="refresh" class="div_content">
|
|
|
|
|
+ <!-- 获取所有输出报告-->
|
|
|
|
|
+ <!-- <template v-if="record.report.length && record.report[0]">
|
|
|
<div v-for="(item, index) in record.report" :key="index" class="content_item">
|
|
<div v-for="(item, index) in record.report" :key="index" class="content_item">
|
|
|
<span style="cursor: pointer;" @click="openReport(item, record.bizKey)">
|
|
<span style="cursor: pointer;" @click="openReport(item, record.bizKey)">
|
|
|
<i class="el-icon-tickets" style="font-size: 18px;" />
|
|
<i class="el-icon-tickets" style="font-size: 18px;" />
|
|
@@ -53,89 +55,90 @@
|
|
|
<br>
|
|
<br>
|
|
|
</div>
|
|
</div>
|
|
|
</template> -->
|
|
</template> -->
|
|
|
- <div v-if="record.file.length && snapshotId" class="content_item">
|
|
|
|
|
- <!-- <div class="sub_operation">快照</div> -->
|
|
|
|
|
- <ibps-attachment
|
|
|
|
|
- v-model="snapshotId"
|
|
|
|
|
- :download="hasRole"
|
|
|
|
|
- readonly
|
|
|
|
|
- multiple
|
|
|
|
|
- upload-type="attachment"
|
|
|
|
|
- store="id"
|
|
|
|
|
- style="width: 100%;"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div v-if="record.file.length && fileId" class="content_item">
|
|
|
|
|
- <div class="sub_operation ibps-icon-folder-open-o">附件</div>
|
|
|
|
|
- <ibps-attachment
|
|
|
|
|
- v-model="fileId"
|
|
|
|
|
- :download="hasRole"
|
|
|
|
|
- readonly
|
|
|
|
|
- multiple
|
|
|
|
|
- upload-type="attachment"
|
|
|
|
|
- store="id"
|
|
|
|
|
- style="width: 100%; height: 100%; max-height: 180px; overflow-y: auto;"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- <div v-if="(!record.report.length || !record.report[0]) && (!record.file.length || !fileId)">无报表及附件数据</div> -->
|
|
|
|
|
- <!-- 二级菜单,内审管审特有 -->
|
|
|
|
|
- <template v-if="specialType.hasOwnProperty(typeId)">
|
|
|
|
|
- <el-popover
|
|
|
|
|
- :ref="'popover3-' + scope.row.id"
|
|
|
|
|
- placement="left"
|
|
|
|
|
- width="350"
|
|
|
|
|
- popper-class="popverClass_sub"
|
|
|
|
|
- trigger="click"
|
|
|
|
|
- >
|
|
|
|
|
- <div slot="reference" class="sub_operation ibps-icon-folder-o">{{ specialBtn[typeId].label }}</div>
|
|
|
|
|
- <div v-if="record.special && record.special.length" class="div_content">
|
|
|
|
|
- <div v-for="(item, index) in record.special" :key="index" class="content_item">
|
|
|
|
|
- <div class="sub_content">
|
|
|
|
|
- <div class="title">{{ specialBtn[typeId].desc }}项{{ item.flag }}</div>
|
|
|
|
|
- <div class="sub_item">
|
|
|
|
|
- <div class="desc">{{ specialBtn[typeId].desc }}前</div>
|
|
|
|
|
- <ibps-attachment
|
|
|
|
|
- v-model="item.beforeImprove"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- :download="hasRole"
|
|
|
|
|
- :readonly="true"
|
|
|
|
|
- accept="*"
|
|
|
|
|
- :multiple="true"
|
|
|
|
|
- upload-type="attachment"
|
|
|
|
|
- store="id"
|
|
|
|
|
- media-type=""
|
|
|
|
|
- media=""
|
|
|
|
|
- style="width: 100%;"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="sub_item">
|
|
|
|
|
- <div class="desc">{{ specialBtn[typeId].desc }}后</div>
|
|
|
|
|
- <ibps-attachment
|
|
|
|
|
- v-model="item.afterImprove"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- :download="hasRole"
|
|
|
|
|
- :readonly="true"
|
|
|
|
|
- accept="*"
|
|
|
|
|
- :multiple="true"
|
|
|
|
|
- upload-type="attachment"
|
|
|
|
|
- store="id"
|
|
|
|
|
- media-type=""
|
|
|
|
|
- media=""
|
|
|
|
|
- style="width: 100%;"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="content_item">
|
|
|
|
|
- <span style="cursor: pointer;" @click="openReport(specialBtn[typeId].path, item.id_)">
|
|
|
|
|
- <i class="el-icon-tickets" style="font-size: 14px;" />
|
|
|
|
|
- {{ specialBtn[typeId].name }}
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <div v-if="record.file.length && snapshotId" class="content_item">
|
|
|
|
|
+ <!-- <div class="sub_operation">快照</div> -->
|
|
|
|
|
+ <ibps-attachment
|
|
|
|
|
+ v-model="snapshotId"
|
|
|
|
|
+ :download="hasRole"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ multiple
|
|
|
|
|
+ upload-type="attachment"
|
|
|
|
|
+ store="id"
|
|
|
|
|
+ style="width: 100%;"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="record.file.length && fileId" class="content_item">
|
|
|
|
|
+ <div class="sub_operation ibps-icon-folder-open-o">附件</div>
|
|
|
|
|
+ <ibps-attachment
|
|
|
|
|
+ v-model="fileId"
|
|
|
|
|
+ :download="hasRole"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ multiple
|
|
|
|
|
+ upload-type="attachment"
|
|
|
|
|
+ store="id"
|
|
|
|
|
+ style="width: 100%; height: 100%; max-height: 180px; overflow-y: auto;"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <div v-if="(!record.report.length || !record.report[0]) && (!record.file.length || !fileId)">无报表及附件数据</div> -->
|
|
|
|
|
+ <!-- 二级菜单,内审管审特有 -->
|
|
|
|
|
+ <template v-if="specialType.hasOwnProperty(typeId)">
|
|
|
|
|
+ <el-popover
|
|
|
|
|
+ :ref="'popover3-' + scope.row.id"
|
|
|
|
|
+ placement="left"
|
|
|
|
|
+ width="350"
|
|
|
|
|
+ popper-class="popverClass_sub"
|
|
|
|
|
+ trigger="click"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div slot="reference" class="sub_operation ibps-icon-folder-o">{{ specialBtn[typeId].label }}</div>
|
|
|
|
|
+ <div v-if="record.special && record.special.length" class="div_content">
|
|
|
|
|
+ <div v-for="(item, index) in record.special" :key="index" class="content_item">
|
|
|
|
|
+ <div class="sub_content">
|
|
|
|
|
+ <div class="title">{{ specialBtn[typeId].desc }}项{{ item.flag }}</div>
|
|
|
|
|
+ <div class="sub_item">
|
|
|
|
|
+ <div class="desc">{{ specialBtn[typeId].desc }}前</div>
|
|
|
|
|
+ <ibps-attachment
|
|
|
|
|
+ v-model="item.beforeImprove"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :download="hasRole"
|
|
|
|
|
+ :readonly="true"
|
|
|
|
|
+ accept="*"
|
|
|
|
|
+ :multiple="true"
|
|
|
|
|
+ upload-type="attachment"
|
|
|
|
|
+ store="id"
|
|
|
|
|
+ media-type=""
|
|
|
|
|
+ media=""
|
|
|
|
|
+ style="width: 100%;"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="sub_item">
|
|
|
|
|
+ <div class="desc">{{ specialBtn[typeId].desc }}后</div>
|
|
|
|
|
+ <ibps-attachment
|
|
|
|
|
+ v-model="item.afterImprove"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :download="hasRole"
|
|
|
|
|
+ :readonly="true"
|
|
|
|
|
+ accept="*"
|
|
|
|
|
+ :multiple="true"
|
|
|
|
|
+ upload-type="attachment"
|
|
|
|
|
+ store="id"
|
|
|
|
|
+ media-type=""
|
|
|
|
|
+ media=""
|
|
|
|
|
+ style="width: 100%;"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="content_item">
|
|
|
|
|
+ <span style="cursor: pointer;" @click="openReport(specialBtn[typeId].path, item.id_)">
|
|
|
|
|
+ <i class="el-icon-tickets" style="font-size: 14px;" />
|
|
|
|
|
+ {{ specialBtn[typeId].name }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- <div v-else>无对应数据</div>
|
|
|
|
|
- </el-popover>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <div v-else>无对应数据</div>
|
|
|
|
|
+ </el-popover>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</template>
|
|
</template>
|
|
@@ -213,6 +216,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
return {
|
|
return {
|
|
|
|
|
+ refresh: false, // 控制弹出窗的显示与隐藏 实现组件刷新作用
|
|
|
hasRole,
|
|
hasRole,
|
|
|
width: 210,
|
|
width: 210,
|
|
|
selection: false,
|
|
selection: false,
|
|
@@ -462,9 +466,12 @@ export default {
|
|
|
const sortedResults = requestOrder.map(index => res[index])
|
|
const sortedResults = requestOrder.map(index => res[index])
|
|
|
this.fileId = [...new Set(sortedResults.reduce((acc, cur) => acc.concat(cur.file), []))].join(',')
|
|
this.fileId = [...new Set(sortedResults.reduce((acc, cur) => acc.concat(cur.file), []))].join(',')
|
|
|
this.snapshotId = [...new Set(sortedResults.reduce((acc, cur) => acc.concat(cur.snapshot), []))].join(',')
|
|
this.snapshotId = [...new Set(sortedResults.reduce((acc, cur) => acc.concat(cur.snapshot), []))].join(',')
|
|
|
|
|
+ // console.log({ 'snapshotId': this.snapshotId.split(','), 'fileId': this.fileId.split(',') })
|
|
|
|
|
+ this.refresh = true
|
|
|
this.fileLoading = false
|
|
this.fileLoading = false
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.fileLoading = false
|
|
this.fileLoading = false
|
|
|
|
|
+ this.refresh = true
|
|
|
console.log('error', err)
|
|
console.log('error', err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|