|
|
|
@ -212,7 +212,8 @@
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border highlight-current-row>
|
|
|
|
|
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border
|
|
|
|
|
highlight-current-row>
|
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
|
<el-table-column label="证书名称" prop="name"></el-table-column>
|
|
|
|
@ -235,14 +236,28 @@
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)">打印</el-button>
|
|
|
|
|
<el-button v-if="editType==1 && auditType!=1" type="text" size="small"
|
|
|
|
|
@click.native="printSupCert(scope.row)">打印
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="showImgViewer(scope.row)"
|
|
|
|
|
>预览
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
|
|
|
|
|
撤回
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-image-viewer
|
|
|
|
|
v-if="imgViewer"
|
|
|
|
|
style="z-index: 9999"
|
|
|
|
|
:on-close="closeImgViewer"
|
|
|
|
|
:url-list="imgList"
|
|
|
|
|
/>
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="certQuery.limit"
|
|
|
|
|
@current-change="certHandleCurrentChange"
|
|
|
|
@ -327,7 +342,8 @@
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="证书文件:">
|
|
|
|
|
<el-button type="primary" size="mini" @click.native="showImgViewer(currentAudit)">证书预览</el-button>
|
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList" />
|
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
|
|
|
|
|
:url-list="imgList"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
@ -335,7 +351,8 @@
|
|
|
|
|
<el-row style="margin-top: 12px">
|
|
|
|
|
<el-col :span="22">
|
|
|
|
|
<el-form-item label="结果说明:">
|
|
|
|
|
<el-input type="textarea":disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off" autosize></el-input>
|
|
|
|
|
<el-input type="textarea" :disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off"
|
|
|
|
|
autosize></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -398,6 +415,8 @@ export default {
|
|
|
|
|
fromPMOptions: [],
|
|
|
|
|
imgViewerVisible: false,
|
|
|
|
|
imgList: [],
|
|
|
|
|
imgViewer: false,
|
|
|
|
|
|
|
|
|
|
pmQuery: {
|
|
|
|
|
customerId: null,
|
|
|
|
|
companyName: null,
|
|
|
|
@ -556,8 +575,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
isAssetTypeAnImage(ext) {
|
|
|
|
|
return [
|
|
|
|
|
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].
|
|
|
|
|
indexOf(ext.toLowerCase()) !== -1;
|
|
|
|
|
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
|
|
|
|
|
},
|
|
|
|
|
showImgViewer(row) {
|
|
|
|
|
// let newWindow = window.open();
|
|
|
|
@ -570,13 +588,19 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
|
this.imgViewer = true;
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
};
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
|
},
|
|
|
|
|
closeImgViewer() {
|
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
|
this.imgViewer = false;
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
};
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
|
},
|
|
|
|
|