|
@@ -52,6 +52,7 @@
|
|
const handleReview = (item, type) => {
|
|
const handleReview = (item, type) => {
|
|
const env = getAppEnvConfig();
|
|
const env = getAppEnvConfig();
|
|
const newUrl = env.VITE_GLOB_FFFILEVIEW_URL + encodeURIComponent(encode(item.fileUrl));
|
|
const newUrl = env.VITE_GLOB_FFFILEVIEW_URL + encodeURIComponent(encode(item.fileUrl));
|
|
|
|
+ const index = item.fileUrl.lastIndexOf('.');
|
|
const a = document.createElement('a');
|
|
const a = document.createElement('a');
|
|
a.href = newUrl;
|
|
a.href = newUrl;
|
|
switch (type) {
|
|
switch (type) {
|
|
@@ -62,7 +63,7 @@
|
|
case 2:
|
|
case 2:
|
|
downloadByUrl({
|
|
downloadByUrl({
|
|
url: item.fileUrl,
|
|
url: item.fileUrl,
|
|
- fileName: item.fileName,
|
|
|
|
|
|
+ fileName: item.fileName + item.fileUrl.slice(index),
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -111,16 +112,16 @@
|
|
<div v-html="initHtml(newsData?.newsContent)"></div>
|
|
<div v-html="initHtml(newsData?.newsContent)"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div style="z-index: 100;">
|
|
|
|
|
|
+ <div style="z-index: 100">
|
|
<a-form
|
|
<a-form
|
|
v-if="newsData.openReply !== 2 && !isAdmin"
|
|
v-if="newsData.openReply !== 2 && !isAdmin"
|
|
ref="formRef"
|
|
ref="formRef"
|
|
:model="formData"
|
|
:model="formData"
|
|
- style="position: absolute; bottom: 1%; right: 2%;"
|
|
|
|
|
|
+ style="position: absolute; bottom: 1%; right: 2%"
|
|
layout="vertical"
|
|
layout="vertical"
|
|
>
|
|
>
|
|
<a-form-item label="回复内容" name="content" :required="newsData.openReply === 1">
|
|
<a-form-item label="回复内容" name="content" :required="newsData.openReply === 1">
|
|
- <Textarea :rows="4" style="width: 300px;" v-model:value="formData.content" />
|
|
|
|
|
|
+ <Textarea :rows="4" style="width: 300px" v-model:value="formData.content" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item>
|
|
<a-form-item>
|
|
<a-button type="primary" :loading="isLoading" @click="handleSubmitRes">回复</a-button>
|
|
<a-button type="primary" :loading="isLoading" @click="handleSubmitRes">回复</a-button>
|
|
@@ -130,10 +131,10 @@
|
|
|
|
|
|
<div class="newsView-content-footer"> </div>
|
|
<div class="newsView-content-footer"> </div>
|
|
<div class="fileLListBox" v-if="Array.isArray(newsData.appendixList)">
|
|
<div class="fileLListBox" v-if="Array.isArray(newsData.appendixList)">
|
|
- <span style="margin-bottom: 12px; font-size: 16px; color: black;">{{ title }}附件:</span>
|
|
|
|
|
|
+ <span style="margin-bottom: 12px; font-size: 16px; color: black">{{ title }}附件:</span>
|
|
<ul>
|
|
<ul>
|
|
<li
|
|
<li
|
|
- style="display: flex; align-items: center; justify-content: space-between;"
|
|
|
|
|
|
+ style="display: flex; align-items: center; justify-content: space-between"
|
|
v-for="item in newsData.appendixList"
|
|
v-for="item in newsData.appendixList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
>
|
|
>
|
|
@@ -143,7 +144,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
- <span style="margin-right: 12px;" @click="handleReview(item, 1)">预览</span>
|
|
|
|
|
|
+ <span style="margin-right: 12px" @click="handleReview(item, 1)">预览</span>
|
|
<span @click="handleReview(item, 2)">下载</span>
|
|
<span @click="handleReview(item, 2)">下载</span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|