Merge branch 'hhl' of SH-Arbitrate/Arbitrate-Frontend into dev

This commit was merged in pull request #57.
This commit is contained in:
2023-10-01 18:28:57 +08:00
committed by Gitea
@@ -148,7 +148,7 @@
> >
<div v-for="(item, index) in applicateArr" :key="index"> <div v-for="(item, index) in applicateArr" :key="index">
<a href="#" @click="toFile(item, index)" style="color: blue"> <a href="#" @click="toFile(item, index)" style="color: blue">
{{ item }} {{ item.annexName }}
</a> </a>
</div> </div>
</el-form-item> </el-form-item>
@@ -163,8 +163,8 @@
" "
> >
<div v-for="(item, index) in quiltArr" :key="index"> <div v-for="(item, index) in quiltArr" :key="index">
<a href="#" @click="toFile(item, index)" style="color: blue"> <a href="#" @click="toFile1(item, index)" style="color: blue">
{{ item }} {{ item.annexName }}
</a> </a>
</div> </div>
@@ -798,11 +798,18 @@ export default {
this.form3.paymentArr1 = this.initpaymentArr1; this.form3.paymentArr1 = this.initpaymentArr1;
console.log(this.caseAttachList, "caseAttachList"); console.log(this.caseAttachList, "caseAttachList");
this.caseAttachList.forEach((item) => { this.caseAttachList.forEach((item) => {
console.log(item, "iytem");
if (item.annexType == 2) { if (item.annexType == 2) {
this.applicateArr.push(item.annexName); this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
} }
if (item.annexType == 6) { if (item.annexType == 6) {
this.quiltArr.push(item.annexName); this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
} }
}); });
this.fileList = this.caseAttachList; this.fileList = this.caseAttachList;
@@ -1006,10 +1013,17 @@ export default {
} }
}); });
}, },
// 详情显示,展示案件文件 // 详情显示,展示申请人案件文件
toFile(item, index) { toFile(item, index) {
window.open( window.open(
window.location.origin + "/API" + this.caseAttachList[index].annexPath, window.location.origin + "/API" + this.applicateArr[index].annexPath,
"_black"
);
},
// 被申请人文件
toFile1(item, index) {
window.open(
window.location.origin + "/API" + this.quiltArr[index].annexPath,
"_black" "_black"
); );
}, },