|
|
@@ -102,17 +102,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
- <div class="count">
|
|
|
+ <div class="count" v-show="scope === '0'">
|
|
|
<Count :sum="sum" />
|
|
|
</div>
|
|
|
- <div class="table">
|
|
|
+ <div class="table" v-show="scope === '0'">
|
|
|
<UpLoadTable
|
|
|
:tableData="tableData"
|
|
|
@change_icon="changeIcon"
|
|
|
:imgFlag="imgFlag"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="page">
|
|
|
+ <div class="page" v-show="scope === '0'">
|
|
|
<Tablepage
|
|
|
:totalPage="totalPage"
|
|
|
:currentPage="currentPage"
|
|
|
@@ -310,13 +310,13 @@ export default {
|
|
|
alert("请导入附件");
|
|
|
return;
|
|
|
}
|
|
|
- this.submitRequest();
|
|
|
}
|
|
|
this.submitRequest();
|
|
|
},
|
|
|
// 获取文件名
|
|
|
getFileInfo: function (event) {
|
|
|
this.file = event.target.files;
|
|
|
+ console.log(this.file)
|
|
|
this.fileDes = [];
|
|
|
this.file.forEach((item) => {
|
|
|
this.fileDes.push(item.name);
|
|
|
@@ -337,9 +337,7 @@ export default {
|
|
|
// 提交接口
|
|
|
submitRequest: function () {
|
|
|
let paramData = new FormData();
|
|
|
- this.file.forEach((item) => {
|
|
|
- paramData.append("file", item);
|
|
|
- });
|
|
|
+ paramData.append("file", this.file);
|
|
|
paramData.append("dataName", this.inforName);
|
|
|
paramData.append("dataDesc", this.inforDes);
|
|
|
paramData.append("sourceTime", this.materialTime);
|