|
@@ -6,7 +6,8 @@
|
|
|
:changeFillId="changeFillId"
|
|
|
:accept="accept"
|
|
|
:filleNumber="1"
|
|
|
- :fileList="false"
|
|
|
+ :fileList="curQue.fileList"
|
|
|
+ :type="type"
|
|
|
/>
|
|
|
<!-- <div class="uploadBtn" @click="downLoad">
|
|
|
<img
|
|
@@ -17,7 +18,7 @@
|
|
|
下载表格
|
|
|
</div> -->
|
|
|
</div>
|
|
|
- <div class="dv" v-if="curQue.data">
|
|
|
+ <div class="dv" v-if="curQue.data">
|
|
|
<div class="main">
|
|
|
<div class="content">
|
|
|
<template v-if="curQue.data">
|
|
@@ -109,13 +110,16 @@ export default {
|
|
|
`/GCLSFileServer/WebFileDownload?UserCode=${data.UserCode}&UserType=${data.UserType}&SessionID=${data.SessionID}&FileID=${data.FileID}`;
|
|
|
},
|
|
|
remove() {
|
|
|
- this.data = null;
|
|
|
- this.curQue.data = null;
|
|
|
- this.curQue.fileList = [];
|
|
|
- this.$message.success("删除成功");
|
|
|
+ if (this.curQue.data) {
|
|
|
+ this.data = null;
|
|
|
+ this.curQue.data = null;
|
|
|
+ this.curQue.fileList = [];
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ }
|
|
|
},
|
|
|
changeFillId(fileList, item, index) {
|
|
|
this.curQue.fileList = fileList;
|
|
|
+ // this.$set(this.curQue,data,fileList[0].response.file_info_list[0])
|
|
|
this.curQue.data = fileList[0].response.file_info_list[0];
|
|
|
if (this.curQue.data.file_name.indexOf("pdf") != -1) {
|
|
|
this.curQue.data = fileList[0].response.file_info_list[0];
|
|
@@ -123,6 +127,7 @@ export default {
|
|
|
process.env.VUE_APP_BASE_API + this.curQue.data.file_relative_path;
|
|
|
this.getNumPages();
|
|
|
}
|
|
|
+ this.$forceUpdate();
|
|
|
},
|
|
|
// 获取pdf的页数
|
|
|
getNumPages() {
|