|
@@ -69,30 +69,30 @@
|
|
|
</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
|
|
|
- <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
|
|
|
- <el-table-column :label="$t('上传时间')" align="center" prop="createdate" :show-overflow-tooltip="true" width="120"/>
|
|
|
+ <!--<el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />-->
|
|
|
+ <!--<el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>-->
|
|
|
+ <!--<el-table-column :label="$t('上传时间')" align="center" prop="createdate" :show-overflow-tooltip="true" width="120"/>-->
|
|
|
<el-table-column :label="$t('操作')" align="center" width="120" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- v-if="scope.row.fileName.endsWith('pdf')||scope.row.fileName.endsWith('xlsx')||scope.row.fileName.endsWith('md')
|
|
|
- ||scope.row.fileName.endsWith('docx')||scope.row.fileName.endsWith('doc')||scope.row.fileName.endsWith('txt')
|
|
|
- ||scope.row.fileName.endsWith('jpg')||scope.row.fileName.endsWith('png')||scope.row.fileName.endsWith('csv')
|
|
|
- ||scope.row.fileName.endsWith('mp4')||scope.row.fileName.endsWith('svg')||scope.row.fileName.endsWith('dwg')
|
|
|
- ||scope.row.fileName.endsWith('flv')||scope.row.fileName.endsWith('swf')||scope.row.fileName.endsWith('gif')
|
|
|
- ||scope.row.fileName.endsWith('3gp')||scope.row.fileName.endsWith('mkv')||scope.row.fileName.endsWith('tif')"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-view"
|
|
|
- @click="handleSee(scope.row)"
|
|
|
- > {{ $t('预览') }}</el-button>
|
|
|
- <el-button
|
|
|
- v-if="scope.row.fileName.endsWith('ppt')||scope.row.fileName.endsWith('pptx') "
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-view"
|
|
|
- @click="handleSeePPT(scope.row)"
|
|
|
- > {{ $t('ppt预览') }}</el-button>
|
|
|
+ <!--<el-button-->
|
|
|
+ <!--v-if="scope.row.fileName.endsWith('pdf')||scope.row.fileName.endsWith('xlsx')||scope.row.fileName.endsWith('md')-->
|
|
|
+ <!--||scope.row.fileName.endsWith('docx')||scope.row.fileName.endsWith('doc')||scope.row.fileName.endsWith('txt')-->
|
|
|
+ <!--||scope.row.fileName.endsWith('jpg')||scope.row.fileName.endsWith('png')||scope.row.fileName.endsWith('csv')-->
|
|
|
+ <!--||scope.row.fileName.endsWith('mp4')||scope.row.fileName.endsWith('svg')||scope.row.fileName.endsWith('dwg')-->
|
|
|
+ <!--||scope.row.fileName.endsWith('flv')||scope.row.fileName.endsWith('swf')||scope.row.fileName.endsWith('gif')-->
|
|
|
+ <!--||scope.row.fileName.endsWith('3gp')||scope.row.fileName.endsWith('mkv')||scope.row.fileName.endsWith('tif')"-->
|
|
|
+ <!--size="mini"-->
|
|
|
+ <!--type="text"-->
|
|
|
+ <!--icon="el-icon-view"-->
|
|
|
+ <!--@click="handleSee(scope.row)"-->
|
|
|
+ <!--> {{ $t('预览') }}</el-button>-->
|
|
|
+ <!--<el-button-->
|
|
|
+ <!--v-if="scope.row.fileName.endsWith('ppt')||scope.row.fileName.endsWith('pptx') "-->
|
|
|
+ <!--size="mini"-->
|
|
|
+ <!--type="text"-->
|
|
|
+ <!--icon="el-icon-view"-->
|
|
|
+ <!--@click="handleSeePPT(scope.row)"-->
|
|
|
+ <!--> {{ $t('ppt预览') }}</el-button>-->
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -453,6 +453,7 @@
|
|
|
<script>
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { updateApply, getApply, handleApply } from "@/api/production/apply";
|
|
|
+import { listFile } from "@/api/production/saiApproveFile";
|
|
|
import { getHistorylist } from "@/api/ehs/approvedanger";
|
|
|
import { listUserPost } from "@/api/system/user";
|
|
|
import { treeselect, listDept } from "@/api/system/dept";
|
|
@@ -678,7 +679,6 @@ export default {
|
|
|
this.doc.id = id;
|
|
|
this.doc.queryParams.pId = id;
|
|
|
this.doc.pId = id;
|
|
|
- this.getFileList()
|
|
|
// 表单重置
|
|
|
this.reset();
|
|
|
this.inspector1 = null;
|
|
@@ -696,6 +696,7 @@ export default {
|
|
|
// 查询SAI开项管理详细
|
|
|
getApply(id).then(response => {
|
|
|
this.dataForm = response.data;
|
|
|
+ this.getFileList()
|
|
|
this.dataForm.applicantDept = Number(this.dataForm.applicantDept);
|
|
|
this.inspector1 = this.dataForm.applicant;
|
|
|
if (this.dataForm.inspectors != null) {
|
|
@@ -850,9 +851,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getFileList() {
|
|
|
- allFileList({
|
|
|
- pId: this.doc.queryParams.pId,
|
|
|
- pType: "saiApply"
|
|
|
+ listFile({
|
|
|
+ approveId: this.dataForm.saiApplyId
|
|
|
}).then(response => {
|
|
|
this.doc.commonfileListApply = response;
|
|
|
});
|