Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7a406b6f
authored
2023-03-15 14:43:52 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:打包配置文件
1 parent
37d6b4e4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
224 additions
and
198 deletions
package.json
public/index.html
src/api/config.js
src/permission.js
src/router/index.js
src/settings.js
src/utils/get-page-title.js
src/views/home/dataView/leftcard.vue
src/views/jsbwcx/data/index.js
src/views/system/components/editValidRule.vue
vue.config.js
package.json
View file @
7a406b6
...
...
@@ -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"
,
...
...
public/index.html
View file @
7a406b6
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 14:30:48
-->
<!DOCTYPE html>
<html>
<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>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<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>
<div
id=
"app"
></div>
</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"
</script>
window
.
timeout
=
5000
window
.
authorization
=
"bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6"
</script>
\ No newline at end of file
...
...
src/api/config.js
View file @
7a406b6
...
...
@@ -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 {
...
...
src/permission.js
View file @
7a406b6
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-1
0 16:43:16
* @LastEditTime: 2023-03-1
5 11:17:28
*/
import
router
from
"./router"
;
import
store
from
"./store"
;
...
...
src/router/index.js
View file @
7a406b6
...
...
@@ -222,7 +222,7 @@ export const asyncRoutes = [
path
:
'validationRule'
,
component
:
()
=>
import
(
'@/views/system/validationRule/index'
),
name
:
'validationRule'
,
meta
:
{
title
:
'上报
效
验规则配置'
}
meta
:
{
title
:
'上报
校
验规则配置'
}
},
{
path
:
'timedTask'
,
...
...
src/settings.js
View file @
7a406b6
/*
* @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
...
...
src/utils/get-page-title.js
View file @
7a406b6
/*
* @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
}
`
}
...
...
src/views/home/dataView/leftcard.vue
View file @
7a406b6
...
...
@@ -55,200 +55,201 @@
<
script
>
import
columnar
from
"@/components/Echart/Columnar"
;
import
work
from
"@/api/work"
;
export
default
{
data
()
{
return
{
// 日均接入量
qxerrer
:
""
,
qxsuccess
:
""
,
sterrer
:
""
,
stsuccess
:
""
,
qxjrl
:
""
,
stjrl
:
""
,
qxcgl
:
""
,
stcgl
:
""
};
import
columnar
from
"@/components/Echart/Columnar"
;
import
work
from
"@/api/work"
;
export
default
{
data
()
{
return
{
// 日均接入量
qxerrer
:
""
,
qxsuccess
:
""
,
sterrer
:
""
,
stsuccess
:
""
,
qxjrl
:
""
,
stjrl
:
""
,
qxcgl
:
""
,
stcgl
:
""
};
},
mounted
()
{
this
.
getsthjqxjrtotal
();
},
components
:
{
columnar
},
computed
:
{
qxjrlList
:
function
()
{
return
this
.
qxjrl
&&
this
.
qxjrl
.
toString
().
split
(
""
);
},
mounted
()
{
this
.
getsthjqxjrtotal
(
);
stjrlList
:
function
()
{
return
this
.
stjrl
&&
this
.
stjrl
.
toString
().
split
(
""
);
},
components
:
{
columnar
},
computed
:
{
qxjrlList
:
function
()
{
return
this
.
qxjrl
&&
this
.
qxjrl
.
toString
().
split
(
""
);
},
stjrlList
:
function
()
{
return
this
.
stjrl
&&
this
.
stjrl
.
toString
().
split
(
""
);
},
},
methods
:
{
getsthjqxjrtotal
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
p
=
{
DJLX
:
""
,
QLLX
:
""
,
XZQDM
:
""
,
};
let
res
=
await
work
.
getsthjqxjrtotal
(
p
);
this
.
stjrl
=
res
.
result
.
stsum
this
.
qxjrl
=
res
.
result
.
qxsum
this
.
qxerrer
=
Number
(
res
.
result
.
qxjrerrer
)
this
.
sterrer
=
Number
(
res
.
result
.
sthjerrer
)
if
(
res
.
result
.
sum
==
"0"
)
{
this
.
qxcgl
=
"100%"
this
.
stcgl
=
"100%"
}
else
{
let
qxcglnum
=
Number
(
res
.
result
.
qxjrsuccess
)
/
this
.
qxjrl
*
100
let
stcgl
=
Number
(
res
.
result
.
sthjsuccess
)
/
this
.
qxjrl
*
100
this
.
qxcgl
=
qxcglnum
.
toFixed
(
2
)
+
"%"
;
this
.
stcgl
=
stcgl
.
toFixed
(
2
)
+
"%"
;
}
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
},
methods
:
{
getsthjqxjrtotal
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
p
=
{
DJLX
:
""
,
QLLX
:
""
,
XZQDM
:
""
,
};
let
res
=
await
work
.
getsthjqxjrtotal
(
p
);
this
.
stjrl
=
res
.
result
.
stsum
this
.
qxjrl
=
res
.
result
.
qxsum
this
.
qxerrer
=
Number
(
res
.
result
.
qxjrerrer
)
this
.
sterrer
=
Number
(
res
.
result
.
sthjerrer
)
if
(
res
.
result
.
sum
==
"0"
)
{
this
.
qxcgl
=
"100%"
this
.
stcgl
=
"100%"
}
else
{
let
qxcglnum
=
Number
(
res
.
result
.
qxjrsuccess
)
/
this
.
qxjrl
*
100
let
stcgl
=
Number
(
res
.
result
.
sthjsuccess
)
/
this
.
qxjrl
*
100
this
.
qxcgl
=
qxcglnum
.
toFixed
(
2
)
+
"%"
;
this
.
stcgl
=
stcgl
.
toFixed
(
2
)
+
"%"
;
}
});
},
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
}
});
},
};
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.leftcard
{
width
:
32%
;
.leftcard
{
width
:
32%
;
display
:
flex
;
height
:
calc
(
100vh
-
114px
);
flex-direction
:
column
;
.card
{
height
:
22%
;
background
:
url("~@/image/qxjr.png")
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
text-align
:
center
;
width
:
100%
;
}
.carda
{
height
:
22%
;
background
:
url("~@/image/sthj.png")
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
text-align
:
center
;
width
:
100%
;
}
.card1
{
background
:
url("~@/image/sbtj.png")
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
box-sizing
:
border-box
;
flex
:
1
;
}
.cardhead
{
color
:
#02d9fd
;
line-height
:
0.125rem
;
letter-spacing
:
0.0104rem
;
position
:
absolute
;
font-size
:
0.1042rem
;
left
:
0
;
right
:
0
;
margin
:
auto
;
text-align
:
center
;
top
:
8px
;
font-weight
:
700
;
}
.rjjrlList
{
display
:
flex
;
height
:
calc
(
100vh
-
114px
);
flex-direction
:
column
;
margin-top
:
0.01781rem
;
.card
{
height
:
22%
;
background
:
url("~@/image/qxjr.png")
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
text-align
:
center
;
width
:
100%
;
}
.carda
{
height
:
22%
;
background
:
url("~@/image/sthj.png")
no-repeat
;
.qxjr
{
background
:
url("~@/image/jrl3.png")
;
background-size
:
100%
100%
;
position
:
relative
;
text-align
:
center
;
width
:
100%
;
width
:
29px
;
height
:
46px
;
}
.
card1
{
background
:
url("~@/image/
sbtj.png")
no-repeat
;
.
sthj
{
background
:
url("~@/image/
jh.png")
;
background-size
:
100%
100%
;
position
:
relative
;
box-sizing
:
border-box
;
flex
:
1
;
width
:
29px
;
height
:
46px
;
}
.cardhead
{
color
:
#02d9fd
;
line-height
:
0.125rem
;
letter-spacing
:
0.0104rem
;
position
:
absolute
;
font-size
:
0.1042rem
;
left
:
0
;
right
:
0
;
margin
:
auto
;
text-align
:
center
;
top
:
8px
;
p
{
margin
:
0
0.0156rem
0.0521rem
0.0156rem
;
font-weight
:
700
;
font-size
:
30px
;
}
}
.rjjrlList
{
display
:
flex
;
margin-top
:
0.01781rem
;
.qxjr
{
background
:
url("~@/image/jrl3.png")
;
background-size
:
100%
100%
;
}
.cardcontent
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
//
padding
:
35px
20px
20px
20px
;
box-sizing
:
border-box
;
color
:
#e3f1ff
;
margin-top
:
0.1263rem
;
.cardcontent-left
{
width
:
60%
;
flex-direction
:
column
;
position
:
relative
;
flex
:
1
;
height
:
100%
;
.sthj
{
background
:
url("~@/image/jh.png")
;
background-size
:
100%
100%
;
li
{
font-size
:
0.1042rem
;
}
}
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
;
}
.cardcontent-left
::before
{
position
:
absolute
;
right
:
0
;
top
:
0.24rem
;
content
:
""
;
width
:
0.0052rem
;
height
:
0.4688rem
;
background
:
linear-gradient
(
180deg
,
#091b4c
0%
,
#47b5e0
56%
,
#091b4c
100%
);
}
.cardcontent
{
.cardcontent-right
{
flex
:
1
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
//
padding
:
35px
20px
20px
20px
;
box-sizing
:
border-box
;
color
:
#e3f1ff
;
margin-top
:
0.1263rem
;
.cardcontent-left
{
width
:
60%
;
flex-direction
:
column
;
position
:
relative
;
flex
:
1
;
height
:
100%
;
li
{
font-size
:
0.1042rem
;
}
}
flex-direction
:
column
;
font-size
:
0.09977rem
;
.cardcontent-left
::before
{
position
:
absolute
;
right
:
0
;
top
:
0.3042rem
;
content
:
""
;
width
:
0.0052rem
;
height
:
0.4688rem
;
background
:
linear-gradient
(
180deg
,
#091b4c
0%
,
#47b5e0
56%
,
#091b4c
100%
);
.bad
{
color
:
#c97168
;
}
.cardcontent-right
{
flex
:
1
;
width
:
100%
;
height
:
100%
;
flex-direction
:
column
;
font-size
:
0.09977rem
;
.cg
{
color
:
#5fba7d
;
}
.bad
{
color
:
#c97168
;
}
p
{
margin-bottom
:
0.0417rem
;
.cg
{
color
:
#5fba7d
;
span
:
nth-child
(
1
)
{
margin-right
:
0.0781rem
;
}
p
{
margin-bottom
:
0.0417rem
;
span
:
nth-child
(
1
)
{
margin-right
:
0.0781rem
;
}
span
:nth-child
(
2
)
{
font-size
:
0.1142rem
;
font-weight
:
900
;
}
span
:nth-child
(
2
)
{
font-size
:
20px
;
font-weight
:
900
;
}
}
}
}
}
</
style
>
...
...
src/views/jsbwcx/data/index.js
View file @
7a406b6
/*
* @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
:
"业务流水号"
,
w
idth
:
100
,
minW
idth
:
100
,
},
{
prop
:
"estatenum"
,
label
:
"不动产单元号"
,
width
:
24
0
,
minWidth
:
16
0
,
},
{
prop
:
"rectype"
,
...
...
src/views/system/components/editValidRule.vue
View file @
7a406b6
<
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
>
...
...
vue.config.js
View file @
7a406b6
...
...
@@ -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配置
...
...
Please
register
or
sign in
to post a comment