修复部分问题 已部署上线一版
This commit is contained in:
parent
b9f97fe312
commit
90da91f6d3
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue