添加预览

dev
黄泽腾 2 years ago
parent cef3eccc5c
commit eaa77161de

@ -168,12 +168,24 @@
@click.native="printSupCert(scope.row)">打印 @click.native="printSupCert(scope.row)">打印
</el-button> </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" 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 type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
撤回 撤回
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -336,6 +348,7 @@ export default {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
headers: {}, headers: {},
imgViewerVisible: false, imgViewerVisible: false,
imgViewer: false,
imgList: [], imgList: [],
classesDisplay: false, classesDisplay: false,
selectedOptions: [], selectedOptions: [],
@ -538,7 +551,7 @@ export default {
this.imgList = response.data; this.imgList = response.data;
} }
}); });
this.imgViewerVisible = true; this.imgViewer = true;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };
@ -547,6 +560,7 @@ export default {
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
this.imgViewer = false;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };

@ -203,12 +203,24 @@
<el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)"> <el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)">
</el-button> </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" 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 type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
撤回 撤回
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -362,6 +374,7 @@ export default {
selectedOptions: [], selectedOptions: [],
selectedOptions2: [], selectedOptions2: [],
imgViewerVisible: false, imgViewerVisible: false,
imgViewer: false,
imgList: [], imgList: [],
options: regionDataPlus, options: regionDataPlus,
rules: { rules: {
@ -558,7 +571,7 @@ export default {
this.imgList=response.data; this.imgList=response.data;
} }
}); });
this.imgViewerVisible = true; this.imgViewer = true;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };
@ -567,6 +580,7 @@ export default {
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
this.imgViewer = false;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };

@ -240,12 +240,24 @@
@click.native="printSupCert(scope.row)">打印 @click.native="printSupCert(scope.row)">打印
</el-button> </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" 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 type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
撤回 撤回
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -402,6 +414,7 @@ export default {
fromOptions: [], fromOptions: [],
fromPMOptions: [], fromPMOptions: [],
imgViewerVisible: false, imgViewerVisible: false,
imgViewer: false,
imgList: [], imgList: [],
pmQuery: { pmQuery: {
customerId: null, customerId: null,
@ -573,7 +586,7 @@ export default {
this.imgList = response.data; this.imgList = response.data;
} }
}); });
this.imgViewerVisible = true; this.imgViewer = true;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };
@ -582,6 +595,7 @@ export default {
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
this.imgViewer = false;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };

Loading…
Cancel
Save