7a406b6f by 任超

style:打包配置文件

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