7a406b6f by 任超

style:打包配置文件

1 parent 37d6b4e4
......@@ -38,6 +38,7 @@
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"connect": "3.6.6",
"copy-webpack-plugin": "^6.0.0",
"element-ui": "^2.15.13",
"html-webpack-plugin": "3.2.0",
"runjs": "4.3.2",
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 14:30:48
-->
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="referrer" content="no-referrer" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= webpackConfig.name %></title>
</head>
<body>
<title>
<%= webpackConfig.name %>
</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</body>
</html>
<script>
window.baseUrl = location.origin || location.protocol +'//'+location.host
document.write("<s" + "cript type='text/javascript' src='./dist/config.js?" + Math.random().toString(36).substr(2) + "'></scr" + "ipt>");
window.baseUrl = location.origin || location.protocol + '//' + location.host
// window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR';
// window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b';
window.timeout=5000
window.authorization="bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6"
window.timeout = 5000
window.authorization = "bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6"
</script>
\ No newline at end of file
......
......@@ -4,12 +4,9 @@
* @LastEditTime: 2023-03-01 15:35:44
*/
export default {
// SERVERAPI: '/service-bdcsjsb-th', //浩浩
// SERVERAPI: '/service-bdcsjsb-zz',
TITLE: '汉中市数据上报系统',
SERVERAPI: '/bdcsjsb', //赵千
MANAGEMENTAPI: 'http://192.168.2.236/management'
// SERVERAPI: '/bdcsjsb-service'
// SERVERAPI: '/bdcsjsb-jiao0'
}
// 汉中
// export default {
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-10 16:43:16
* @LastEditTime: 2023-03-15 11:17:28
*/
import router from "./router";
import store from "./store";
......
......@@ -222,7 +222,7 @@ export const asyncRoutes = [
path: 'validationRule',
component: () => import('@/views/system/validationRule/index'),
name: 'validationRule',
meta: { title: '上报验规则配置' }
meta: { title: '上报验规则配置' }
},
{
path: 'timedTask',
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 11:08:56
*/
module.exports = {
title: '',
title: '数据上报系统',
/**
* @type {boolean} true | false
* @description Whether show the settings right-panel
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 14:37:05
*/
// 获取浏览器便签标题
import defaultSettings from '@/settings'
import config from '@/api/config'
const title = defaultSettings.title || '厦门市房屋数据服务平台'
const title = config.TITLE
export default function getPageTitle(pageTitle) {
export default function getPageTitle (pageTitle) {
if (pageTitle) {
return `${pageTitle} - ${title}`
}
......
......@@ -55,9 +55,9 @@
<script>
import columnar from "@/components/Echart/Columnar";
import work from "@/api/work";
export default {
import columnar from "@/components/Echart/Columnar";
import work from "@/api/work";
export default {
data () {
return {
// 日均接入量
......@@ -113,11 +113,11 @@
});
},
},
};
};
</script>
<style lang="scss" scoped>
.leftcard {
.leftcard {
width: 32%;
display: flex;
height: calc(100vh - 114px);
......@@ -131,6 +131,7 @@
text-align: center;
width: 100%;
}
.carda {
height: 22%;
background: url("~@/image/sthj.png") no-repeat;
......@@ -169,20 +170,21 @@
.qxjr {
background: url("~@/image/jrl3.png");
background-size: 100% 100%;
width: 29px;
height: 46px;
}
.sthj {
background: url("~@/image/jh.png");
background-size: 100% 100%;
width: 29px;
height: 46px;
}
p {
margin: 0 0.0156rem 0.0521rem 0.0156rem;
font-weight: 700;
width: 0.195rem;
height: 0.2475rem;
font-size: 0.2863rem;
font-size: 0.2867rem;
font-size: 30px;
}
}
......@@ -201,6 +203,7 @@
position: relative;
flex: 1;
height: 100%;
li {
font-size: 0.1042rem;
}
......@@ -209,16 +212,14 @@
.cardcontent-left::before {
position: absolute;
right: 0;
top: 0.3042rem;
top: 0.24rem;
content: "";
width: 0.0052rem;
height: 0.4688rem;
background: linear-gradient(
180deg,
background: linear-gradient(180deg,
#091b4c 0%,
#47b5e0 56%,
#091b4c 100%
);
#091b4c 100%);
}
.cardcontent-right {
......@@ -244,11 +245,11 @@
}
span:nth-child(2) {
font-size: 0.1142rem;
font-size: 20px;
font-weight: 900;
}
}
}
}
}
}
</style>
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 14:08:59
*/
import filter from '@/utils/filter.js'
class data extends filter {
constructor() {
......@@ -12,9 +17,9 @@ class data extends filter {
render: (h, scope) => {
return (
<div>
<span class='adopt' v-show={scope.row.receiveState == 0}></span>
<span class='adopt' v-show={scope.row.receiveState == 1}>验成功</span>
<span class='warehousing' v-show={scope.row.receiveState == 2}>验失败</span>
<span class='adopt' v-show={scope.row.receiveState == 0}></span>
<span class='adopt' v-show={scope.row.receiveState == 1}>验成功</span>
<span class='warehousing' v-show={scope.row.receiveState == 2}>验失败</span>
</div>
)
}
......@@ -46,7 +51,7 @@ class data extends filter {
{
prop: "bizMsgid",
label: "业务报文ID",
width: 98,
minWidth: 100,
},
{
prop: "createdate",
......@@ -56,12 +61,12 @@ class data extends filter {
{
prop: "recflowid",
label: "业务流水号",
width: 100,
minWidth: 100,
},
{
prop: "estatenum",
label: "不动产单元号",
width: 240,
minWidth: 160,
},
{
prop: "rectype",
......
<template>
<!-- 编辑 -->
<dialogBox ref="validRule" width="60%" @submitForm="handleSubmit" :closed="true" @closeDialog="handleClose"
customClass="editValidRule" multiple title="上报验规则设置">
customClass="editValidRule" multiple title="上报验规则设置">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px">
<el-row :gutter="20">
<el-col :span="12">
......@@ -84,10 +84,10 @@ export default {
)
}
},
// 验表达式
// 验表达式
{
prop: 'EXPRESSION',
label: '验表达式',
label: '验表达式',
render: (h, scope) => {
return (
<el-select value={scope.row[scope.column.property]} clearable
......@@ -204,7 +204,5 @@ export default {
}
}
</script>
<style rel="stylesheet/less" lang="less" scoped>
</style>
<style rel="stylesheet/less" lang="less" scoped></style>
......
......@@ -8,6 +8,8 @@ function resolve (dir) {
const name = defaultSettings.title
const port = process.env.port || process.env.npm_config_port || 8888 // dev port
const CopyWebpackPlugin = require('copy-webpack-plugin')
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
/**
......@@ -68,6 +70,7 @@ module.exports = {
'@': resolve('src')
}
},
plugins: [new CopyWebpackPlugin({ patterns: [{ from: 'src/api/config.js', to: 'config.js'}] })],
devtool: '#eval-source-map' //测试
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
......