fix: 修改标题文字,去除log,修改配置文件
This commit is contained in:
@@ -31,7 +31,7 @@ vpn:https://60.247.58.110:33543
|
|||||||
数据库路径 数据库密码 adc_forecast root root
|
数据库路径 数据库密码 adc_forecast root root
|
||||||
插件信息
|
插件信息
|
||||||
|
|
||||||
长安测试环境简介 应用服务器 操作系统 Linux 应用程序 访问地址
|
测试环境简介 应用服务器 操作系统 Linux 应用程序 访问地址
|
||||||
ip:端口 程序用户名(超管)
|
ip:端口 程序用户名(超管)
|
||||||
服务器用户名 程序密码(超管)
|
服务器用户名 程序密码(超管)
|
||||||
服务器密码 程序用户名(普通用户)
|
服务器密码 程序用户名(普通用户)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 66 KiB |
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<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>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="@/assets/imgs/logo.jpg" alt="">
|
<!-- <img src="@/assets/imgs/logo.jpg" alt="">-->
|
||||||
</div>
|
</div>
|
||||||
<div class="breadcrumb">
|
<div class="breadcrumb">
|
||||||
<el-breadcrumb separator="/">
|
<el-breadcrumb separator="/">
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<el-form :model="form" label-position="top" label-width="80px">
|
<el-form :model="form" label-position="top" label-width="80px">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<h1>长安汽车-科技长安,智慧伙伴</h1>
|
<h1>大众</h1>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户名:">
|
<el-form-item label="用户名:">
|
||||||
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
|
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
|
||||||
|
|||||||
+113
-113
@@ -23,145 +23,145 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="report-download">
|
<div class="report-download">
|
||||||
<span>报告详情</span>
|
<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>
|
||||||
<div class="preview-box" v-watermark="{ text: watermarkText }">
|
|
||||||
<div class="preview-content" v-html="content"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {downloadFile} from "@/utils/downloadFile";
|
import {downloadFile} from "@/utils/downloadFile";
|
||||||
import {formatDate} from '@/utils/date'
|
import {formatDate} from '@/utils/date'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ReportDetail",
|
name: "ReportDetail",
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
watermarkText: '', // 水印
|
watermarkText: '', // 水印
|
||||||
content: '',
|
content: '',
|
||||||
row: {},
|
row: {},
|
||||||
}
|
|
||||||
},
|
|
||||||
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;
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 下载
|
methods: {
|
||||||
downloadRow(row){
|
// 预览
|
||||||
// this.$confirm('此操作将下载所选数据文件, 是否继续?', '提示', {
|
previewRow() {
|
||||||
// confirmButtonText: '确定',
|
if(!this.$route.query.row){
|
||||||
// cancelButtonText: '取消',
|
this.$router.push({path: '/report/list', query: {id: this.$route.query.id}});
|
||||||
// type: 'warning'
|
return
|
||||||
// }).then(() => {
|
}
|
||||||
|
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 => {
|
this.$api.report.reportDownload({fileId: row.fileId}).then(res => {
|
||||||
downloadFile(res);
|
downloadFile(res);
|
||||||
})
|
})
|
||||||
// })
|
// })
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.previewRow();
|
||||||
}
|
}
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.previewRow();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.report-detail {
|
.report-detail {
|
||||||
.title {
|
.title {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
border-bottom: 1px solid #EBEEF5;
|
border-bottom: 1px solid #EBEEF5;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
margin: 0 18px 0 22px;
|
margin: 0 18px 0 22px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #262626;
|
color: #262626;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.desc{
|
||||||
.desc{
|
padding: 11px 26px 6px 48px;
|
||||||
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;
|
display: flex;
|
||||||
justify-content: flex-start;
|
align-items: center;
|
||||||
align-items: flex-start;
|
justify-content: space-between;
|
||||||
margin-bottom: 12px;
|
padding: 0 7px 0 9px;
|
||||||
label{
|
|
||||||
display: inline-block;
|
span {
|
||||||
height: 19px;
|
font-size: 16px;
|
||||||
line-height: 19px;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
color: #262626;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.preview-box {
|
||||||
|
// 定位使水印不溢出元素
|
||||||
|
position: relative;
|
||||||
|
// 居中
|
||||||
|
width: calc(100% - 13px - 14px);
|
||||||
|
margin-left: 13px;
|
||||||
|
|
||||||
.report-download {
|
.preview-content {
|
||||||
height: 40px;
|
//margin: 0 14px 0 13px;
|
||||||
background: #F2F6FC;
|
padding-bottom: 11px;
|
||||||
border: 1px solid #EBEEF5;
|
|
||||||
margin: 0 14px 0 13px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 0 7px 0 9px;
|
|
||||||
|
|
||||||
span {
|
img {
|
||||||
font-size: 16px;
|
max-width: 100% !important;
|
||||||
font-weight: 500;
|
}
|
||||||
color: #262626;
|
table{
|
||||||
}
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.preview-box {
|
|
||||||
// 定位使水印不溢出元素
|
|
||||||
position: relative;
|
|
||||||
// 居中
|
|
||||||
width: calc(100% - 13px - 14px);
|
|
||||||
margin-left: 13px;
|
|
||||||
|
|
||||||
.preview-content {
|
}
|
||||||
//margin: 0 14px 0 13px;
|
|
||||||
padding-bottom: 11px;
|
|
||||||
|
|
||||||
img {
|
|
||||||
max-width: 100% !important;
|
|
||||||
}
|
|
||||||
table{
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="text" @click="previewRow(row)">预览</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>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<el-button type="text" @click="openReportModify('modify', row)">编辑</el-button>
|
<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" class="del-btn" @click="reportDelete(row.id)">删除</el-button>
|
||||||
<el-button type="text" @click="previewRow(row)">预览</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>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|||||||
+3
-3
@@ -12,12 +12,12 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
// 配置跨域
|
// 配置跨域
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://127.0.0.1:7060', // 服务器
|
target: 'http://10.94.1.164:7060', // 服务器
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
// 请求静态图片配置项
|
// 请求静态图片配置项
|
||||||
'/api/home/pic': {
|
'/api/home/pic': {
|
||||||
target: 'http://127.0.0.1:7061', // 图片请求的nginx网址
|
target: 'http://10.94.1.164:7061', // 图片请求的nginx网址
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
config.plugin('html').tap(args => {
|
config.plugin('html').tap(args => {
|
||||||
args[0].title = '长安汽车'
|
args[0].title = '大众'
|
||||||
return args
|
return args
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user