修复部分问题 已部署上线一版

This commit is contained in:
p71924506 2022-12-14 16:20:23 +08:00
parent b9f97fe312
commit 90da91f6d3
3 changed files with 29 additions and 5 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -1,5 +1,9 @@
<template>
<div class="app-container">
<marquee style="margin-bottom: 5px;font-size: 15px">
欢迎使用文件共享管理系统系统尚未完善如遇问题欢迎<a href="https://www.osredm.com/p71924506/file_sharing_ms_fe/issues" style="font-weight: bold">提交反馈</a>,谢谢
</marquee>
<!--搜索框-->
<div class="manageList-header-input">
<!-- 输入框 双向绑定数据 自带清空 -->
@ -19,7 +23,6 @@
<el-button style="margin-left: 10px" type="primary" @click="typeDialogVisible = true" plain>添加分类</el-button>
</div>
<el-dialog
@ -183,6 +186,11 @@ export default {
},
data() {
return {
//showInfo
showInfoStatus:false,
list: null,
listLoading: true,
//
@ -253,6 +261,20 @@ export default {
this.fetchData()
},
methods: {
//
showInfo(){
if (this.showInfoStatus == false) {
this.$notify.warning({
title:"注意",
message:"在线浏览功能支持office办公文档、PDF文档、txt、java、md等纯文本、图片、mp3、mp4多媒体格式其他格式请点击下载进行浏览",
duration: 0,
position: 'bottom-right'
})
this.showInfoStatus = true
}
},
getAllType(){
this.$api.getAllType().then((res)=>{
if (res.status === 0) {
@ -291,8 +313,8 @@ export default {
viewFile(link){
var url = 'http://127.0.0.1:9528/api/' + link; //访
this.viewUrl='http://192.168.1.198:8012/onlinePreview?url='+encodeURIComponent(toBase64(url))
var url = 'http://127.0.0.1:8043/api/' + link; //访
this.viewUrl='http://114.116.228.69:8041/onlinePreview?url='+encodeURIComponent(toBase64(url))
this.viewDialogVisible = true
//
// window.open();
@ -419,7 +441,9 @@ export default {
}
}
},
mounted() {
this.showInfo()
}
}
</script>

View File

@ -13,7 +13,7 @@ const name = defaultSettings.title || 'vue Admin Template' // page title
// For example, Mac: sudo npm run
// You can change the port by the following methods:
// port = 9528 npm run dev OR npm run dev --port = 9528
const port = process.env.port || process.env.npm_config_port || 9528 // dev port
const port = process.env.port || process.env.npm_config_port || 8043 // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {