fix: 修改标题文字,去除log,修改配置文件

This commit is contained in:
yangjianze
2022-12-14 15:22:24 +08:00
parent c27a4674eb
commit f5e5990a3b
9 changed files with 122 additions and 122 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ vpnhttps://60.247.58.110:33543
数据库路径 数据库密码 adc_forecast root root
插件信息
长安测试环境简介 应用服务器 操作系统 Linux 应用程序 访问地址
测试环境简介 应用服务器 操作系统 Linux 应用程序 访问地址
ip:端口 程序用户名(超管)
服务器用户名 程序密码(超管)
服务器密码 程序用户名(普通用户)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico">-->
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="header">
<div class="logo">
<img src="@/assets/imgs/logo.jpg" alt="">
<!-- <img src="@/assets/imgs/logo.jpg" alt="">-->
</div>
<div class="breadcrumb">
<el-breadcrumb separator="/">
+1 -1
View File
@@ -4,7 +4,7 @@
<div class="login-box">
<el-form :model="form" label-position="top" label-width="80px">
<el-form-item>
<h1>长安汽车-科技长安智慧伙伴</h1>
<h1>大众</h1>
</el-form-item>
<el-form-item label="用户名:">
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
+113 -113
View File
@@ -23,145 +23,145 @@
</div>
<div class="report-download">
<span>报告详情</span>
<el-button type="primary" @click="downloadRow(row)">报告下载</el-button>
<!-- <el-button type="primary" @click="downloadRow(row)">报告下载</el-button>-->
</div>
<div class="preview-box" v-watermark="{ text: watermarkText }">
<div class="preview-content" v-html="content"></div>
</div>
<div class="preview-box" v-watermark="{ text: watermarkText }">
<div class="preview-content" v-html="content"></div>
</div>
</div>
</template>
<script>
import {downloadFile} from "@/utils/downloadFile";
import {formatDate} from '@/utils/date'
import {downloadFile} from "@/utils/downloadFile";
import {formatDate} from '@/utils/date'
export default {
name: "ReportDetail",
data(){
return {
watermarkText: '', // 水印
content: '',
row: {},
}
},
methods: {
// 预览
previewRow() {
if(!this.$route.query.row){
this.$router.push({path: '/report/list', query: {id: this.$route.query.id}});
return
export default {
name: "ReportDetail",
data(){
return {
watermarkText: '', // 水印
content: '',
row: {},
}
this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`;
this.row = JSON.parse(this.$route.query.row);
this.$api.report.reportGetReportHtmlId({id: this.row.id}).then(({data}) => {
this.content = data.content;
})
},
// 下载
downloadRow(row){
// this.$confirm('此操作将下载所选数据文件, 是否继续?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
methods: {
// 预览
previewRow() {
if(!this.$route.query.row){
this.$router.push({path: '/report/list', query: {id: this.$route.query.id}});
return
}
this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`;
this.row = JSON.parse(this.$route.query.row);
this.$api.report.reportGetReportHtmlId({id: this.row.id}).then(({data}) => {
this.content = data.content;
})
},
// 下载
downloadRow(row){
// this.$confirm('此操作将下载所选数据文件, 是否继续?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
this.$api.report.reportDownload({fileId: row.fileId}).then(res => {
downloadFile(res);
})
// })
// })
}
},
created() {
this.previewRow();
}
},
created() {
this.previewRow();
}
}
</script>
<style lang="scss" scoped>
.report-detail {
.title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-bottom: 1px solid #EBEEF5;
height: 42px;
line-height: 42px;
margin: 0 18px 0 22px;
text-align: center;
.report-detail {
.title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-bottom: 1px solid #EBEEF5;
height: 42px;
line-height: 42px;
margin: 0 18px 0 22px;
text-align: center;
span {
font-size: 16px;
font-weight: 600;
color: #262626;
span {
font-size: 16px;
font-weight: 600;
color: #262626;
}
}
}
.desc{
padding: 11px 26px 6px 48px;
.desc{
padding: 11px 26px 6px 48px;
.desc-item{
.desc-item{
display: flex;
justify-content: flex-start;
align-items: flex-start;
margin-bottom: 12px;
label{
display: inline-block;
height: 19px;
line-height: 19px;
font-size: 14px;
font-weight: 400;
color: #595959;
width: 64px;
border-right: 1px solid #BFBFBF;
margin-right: 9px;
}
div,p{
flex: 1;
font-size: 14px;
font-weight: 400;
color: #434343;
}
p{
line-height: 20px;
text-align: justify;
}
}
}
.report-download {
height: 40px;
background: #F2F6FC;
border: 1px solid #EBEEF5;
margin: 0 14px 0 13px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
margin-bottom: 12px;
label{
display: inline-block;
height: 19px;
line-height: 19px;
font-size: 14px;
font-weight: 400;
color: #595959;
width: 64px;
border-right: 1px solid #BFBFBF;
margin-right: 9px;
}
div,p{
flex: 1;
font-size: 14px;
font-weight: 400;
color: #434343;
}
p{
line-height: 20px;
text-align: justify;
align-items: center;
justify-content: space-between;
padding: 0 7px 0 9px;
span {
font-size: 16px;
font-weight: 500;
color: #262626;
}
}
}
.preview-box {
// 定位使水印不溢出元素
position: relative;
// 居中
width: calc(100% - 13px - 14px);
margin-left: 13px;
.report-download {
height: 40px;
background: #F2F6FC;
border: 1px solid #EBEEF5;
margin: 0 14px 0 13px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 7px 0 9px;
.preview-content {
//margin: 0 14px 0 13px;
padding-bottom: 11px;
span {
font-size: 16px;
font-weight: 500;
color: #262626;
}
}
.preview-box {
// 定位使水印不溢出元素
position: relative;
// 居中
width: calc(100% - 13px - 14px);
margin-left: 13px;
img {
max-width: 100% !important;
}
table{
margin: 0 auto;
}
.preview-content {
//margin: 0 14px 0 13px;
padding-bottom: 11px;
img {
max-width: 100% !important;
}
table{
margin: 0 auto;
}
}
}
}
}
</style>
+1 -1
View File
@@ -126,7 +126,7 @@
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
<template #default="{ row }">
<el-button type="text" @click="previewRow(row)">预览</el-button>
<el-button type="text" @click="downloadRow(row)">下载</el-button>
<!-- <el-button type="text" @click="downloadRow(row)">下载</el-button>-->
</template>
</vxe-column>
</vxe-table>
+1 -1
View File
@@ -67,7 +67,7 @@
<el-button type="text" @click="openReportModify('modify', row)">编辑</el-button>
<el-button type="text" class="del-btn" @click="reportDelete(row.id)">删除</el-button>
<el-button type="text" @click="previewRow(row)">预览</el-button>
<el-button type="text" @click="downloadRow(row)">下载</el-button>
<!-- <el-button type="text" @click="downloadRow(row)">下载</el-button>-->
</template>
</vxe-column>
</vxe-table>
+3 -3
View File
@@ -12,12 +12,12 @@ module.exports = {
proxy: {
// 配置跨域
'/api': {
target: 'http://127.0.0.1:7060', // 服务器
target: 'http://10.94.1.164:7060', // 服务器
changeOrigin: true,
},
// 请求静态图片配置项
'/api/home/pic': {
target: 'http://127.0.0.1:7061', // 图片请求的nginx网址
target: 'http://10.94.1.164:7061', // 图片请求的nginx网址
changeOrigin: true
}
@@ -25,7 +25,7 @@ module.exports = {
},
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].title = '长安汽车'
args[0].title = '大众'
return args
})
},