|
@@ -21,14 +21,14 @@
|
|
</div> -->
|
|
</div> -->
|
|
<div class="label-box">
|
|
<div class="label-box">
|
|
<span
|
|
<span
|
|
- :class="[index === active_index ? 'active' : '']"
|
|
|
|
v-for="(label, index) in label_list"
|
|
v-for="(label, index) in label_list"
|
|
:key="index"
|
|
:key="index"
|
|
|
|
+ :class="[index === active_index ? 'active' : '']"
|
|
@click="active_index = index"
|
|
@click="active_index = index"
|
|
>{{ label }}</span
|
|
>{{ label }}</span
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- <ul class="file-list" v-if="source_list[active_index].length > 0">
|
|
|
|
|
|
+ <ul v-if="source_list[active_index].length > 0" class="file-list">
|
|
<li v-for="(file, i) in source_list[active_index]" :key="i">
|
|
<li v-for="(file, i) in source_list[active_index]" :key="i">
|
|
<div class="file-name">
|
|
<div class="file-name">
|
|
<span>
|
|
<span>
|
|
@@ -38,18 +38,19 @@
|
|
<SvgIcon v-show="file.file_id" icon-class="uploadPreview" size="16" @click="viewDialog(file)" />
|
|
<SvgIcon v-show="file.file_id" icon-class="uploadPreview" size="16" @click="viewDialog(file)" />
|
|
<img
|
|
<img
|
|
v-if="isEnable(data.is_enable_download)"
|
|
v-if="isEnable(data.is_enable_download)"
|
|
- @click="downLoad(file)"
|
|
|
|
style="width: 16px; height: 16px"
|
|
style="width: 16px; height: 16px"
|
|
src="@/assets/download.png"
|
|
src="@/assets/download.png"
|
|
alt="download"
|
|
alt="download"
|
|
|
|
+ @click="downLoad(file)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- <p class="label-tips" v-else>暂无本类型文件,看看其他类型吧</p>
|
|
|
|
|
|
+ <p v-else class="label-tips">暂无本类型文件,看看其他类型吧</p>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<el-dialog
|
|
<el-dialog
|
|
|
|
+ v-if="visible"
|
|
:visible.sync="visible"
|
|
:visible.sync="visible"
|
|
:show-close="true"
|
|
:show-close="true"
|
|
:close-on-click-modal="true"
|
|
:close-on-click-modal="true"
|
|
@@ -58,7 +59,6 @@
|
|
:lock-scroll="true"
|
|
:lock-scroll="true"
|
|
width="80%"
|
|
width="80%"
|
|
top="0"
|
|
top="0"
|
|
- v-if="visible"
|
|
|
|
>
|
|
>
|
|
<iframe v-if="visible" :src="newpath" width="100%" :height="iframeHeight" frameborder="0"></iframe>
|
|
<iframe v-if="visible" :src="newpath" width="100%" :height="iframeHeight" frameborder="0"></iframe>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -86,7 +86,7 @@ export default {
|
|
active_index: 0,
|
|
active_index: 0,
|
|
visible: false,
|
|
visible: false,
|
|
newpath: '',
|
|
newpath: '',
|
|
- iframeHeight: window.innerHeight - 100 + 'px',
|
|
|
|
|
|
+ iframeHeight: `${window.innerHeight - 100}px`,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -142,8 +142,8 @@ export default {
|
|
FileID,
|
|
FileID,
|
|
};
|
|
};
|
|
location.href = `${
|
|
location.href = `${
|
|
- process.env.VUE_APP_BASE_API
|
|
|
|
- }/GCLSFileServer/WebFileDownload?UserCode=${data.UserCode}&UserType=${data.UserType}&SessionID=${data.SessionID}&FileID=${data.FileID}`;
|
|
|
|
|
|
+ process.env.VUE_APP_EEP
|
|
|
|
+ }/FileServer/WebFileDownload?UserCode=${data.UserCode}&UserType=${data.UserType}&SessionID=${data.SessionID}&FileID=${data.FileID}`;
|
|
},
|
|
},
|
|
// 预览
|
|
// 预览
|
|
viewDialog(file) {
|
|
viewDialog(file) {
|