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
c63c11ff
authored
2023-03-16 14:47:00 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
b3e5ffef
d21846df
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
66 additions
and
66 deletions
public/config.json
src/api/config.js
src/api/user.js
src/components/Echart/Rose/Chart.vue
src/layout/components/Navbar.vue
src/layout/components/Sidebar/sidebarLeft.vue
src/layout/index.vue
src/layout1/index.vue
src/main.js
src/styles/element-ui.scss
src/utils/get-page-title.js
src/views/jsbwcx/data/index.js
public/config.json
0 → 100644
View file @
c63c11f
{
"TITLE"
:
"汉中市数据上报系统"
}
\ No newline at end of file
src/api/config.js
View file @
c63c11f
/*
* @Description: 这个是所有api的前缀配置文件
* @Autor: renchao
* @LastEditTime: 2023-03-
01 15:35:44
* @LastEditTime: 2023-03-
16 13:37:11
*/
export
default
{
TITLE
:
'汉中市数据上报系统'
,
SERVERAPI
:
'/bdcsjsb'
,
//赵千
MANAGEMENTAPI
:
'http://192.168.2.236/management'
}
...
...
src/api/user.js
View file @
c63c11f
import
Vue
from
'vue'
import
request
from
'@/utils/request'
console
.
log
(
Vue
.
prototype
,
Vue
.
prototype
.
$BASE_API
);
import
SERVER
from
'./config'
// 获取用户信息
export
function
getUserInfo
()
{
...
...
src/components/Echart/Rose/Chart.vue
View file @
c63c11f
<
template
>
<Echart
:options=
"options"
id=
"centreLeft1Chart"
:key=
"key"
height=
"1.0417rem"
width=
"80%"
></Echart>
<Echart
:options=
"options"
id=
"centreLeft1Chart"
:key=
"key"
height=
"1.0417rem"
width=
"80%"
></Echart>
</
template
>
<
script
>
import
Echart
from
"@/common/echart"
;
export
default
{
import
Echart
from
"@/common/echart"
;
export
default
{
components
:
{
Echart
,
},
...
...
@@ -26,7 +21,7 @@
watch
:
{
cdata
:
{
handler
(
newData
)
{
console
.
log
(
"newData"
,
newData
);
this
.
options
=
{
color
:
[
"#37a2da"
,
...
...
@@ -86,12 +81,12 @@
deep
:
true
,
},
},
};
};
</
script
>
<
style
lang=
"scss"
scoped
>
#centreLeft1Chart
{
#centreLeft1Chart
{
margin-bottom
:
0.0521rem
;
margin-left
:
0.3125rem
;
}
}
</
style
>
...
...
src/layout/components/Navbar.vue
View file @
c63c11f
...
...
@@ -134,9 +134,8 @@ export default {
@extend
.xuanzhong;
}
/
deep
/
.el-menu-item.is-active
{
/
deep
/
.el-menu-item
.is-active
{
@extend
.xuanzhong;
}
.navbar
{
...
...
src/layout/components/Sidebar/sidebarLeft.vue
View file @
c63c11f
...
...
@@ -9,12 +9,12 @@
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
Logo
from
'./Logo'
import
SidebarItem
from
'./SidebarItem'
import
variables
from
'@/styles/variables.scss'
import
{
asyncRoutes
}
from
'@/router'
export
default
{
import
{
mapGetters
}
from
'vuex'
import
Logo
from
'./Logo'
import
SidebarItem
from
'./SidebarItem'
import
variables
from
'@/styles/variables.scss'
import
{
asyncRoutes
}
from
'@/router'
export
default
{
components
:
{
SidebarItem
,
Logo
},
computed
:
{
...
mapGetters
([
'permission_routes'
,
'sidebar'
]),
...
...
@@ -34,15 +34,12 @@
asyncRoutes
()
{
return
asyncRoutes
.
slice
(
0
,
3
)
}
},
mounted
()
{
console
.
log
(
"permission_routes"
,
this
.
permission_routes
);
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.el-menu--horizontal
{
.el-menu--horizontal
{
display
:
flex
;
background
:
none
!important
;
}
}
</
style
>
...
...
src/layout/index.vue
View file @
c63c11f
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-1
0 14:59:43
* @LastEditTime: 2023-03-1
6 11:15:48
-->
<
template
>
<div
class=
"app-wrapper jgWrapper"
>
...
...
@@ -12,10 +12,10 @@
</div>
</
template
>
<
script
>
import
{
AppMain
,
Navbar
,
Sidebar
,
TagsView
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
{
mapState
}
from
'vuex'
export
default
{
import
{
AppMain
,
Navbar
,
Sidebar
,
TagsView
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
{
mapState
}
from
'vuex'
export
default
{
name
:
'Layout'
,
components
:
{
AppMain
,
...
...
@@ -25,7 +25,6 @@
},
created
()
{
this
.
$store
.
dispatch
(
"products/setData"
,
"BDCJGPT"
);
console
.
log
(
"ZOULEJG"
);
},
mixins
:
[
ResizeMixin
],
computed
:
{
...
...
@@ -35,15 +34,15 @@
fixedHeader
:
state
=>
state
.
settings
.
fixedHeader
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
@import
"~@/styles/jgSidebar.scss"
;
@import
"~@/styles/jgSidebar.scss"
;
</
style
>
<
style
lang=
"scss"
scoped
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/mixin.scss"
;
.app-wrapper
{
.app-wrapper
{
@include
clearfix;
position
:
relative
;
height
:
100%
;
...
...
@@ -58,9 +57,9 @@
position
:
fixed
;
top
:
0
;
}
}
}
.appMain
{
.appMain
{
//
min-width
:
1280px
;
height
:
calc
(
100vh
-
101px
)
!important
;
box-sizing
:
border-box
;
...
...
@@ -68,5 +67,5 @@
.app-main
{
height
:
100%
;
}
}
}
</
style
>
...
...
src/layout1/index.vue
View file @
c63c11f
...
...
@@ -13,10 +13,10 @@
</div>
</
template
>
<
script
>
import
{
AppMain
,
Navbar
,
Sidebar
,
TagsView
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
{
mapState
}
from
'vuex'
export
default
{
import
{
AppMain
,
Navbar
,
Sidebar
,
TagsView
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
{
mapState
}
from
'vuex'
export
default
{
name
:
'Layout'
,
components
:
{
AppMain
,
...
...
@@ -27,7 +27,6 @@
mixins
:
[
ResizeMixin
],
created
()
{
this
.
$store
.
dispatch
(
"products/setData"
,
"BDCSBPT"
);
console
.
log
(
"ZOULEJG"
);
},
computed
:
{
...
mapState
({
...
...
@@ -36,13 +35,13 @@
fixedHeader
:
state
=>
state
.
settings
.
fixedHeader
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/sbSidebar.scss"
;
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/sbSidebar.scss"
;
.app-wrapper
{
.app-wrapper
{
@include
clearfix;
position
:
relative
;
height
:
100%
;
...
...
@@ -54,9 +53,9 @@
position
:
fixed
;
top
:
0
;
}
}
}
.drawer-bg
{
.drawer-bg
{
background
:
#000
;
opacity
:
0.3
;
width
:
100%
;
...
...
@@ -64,15 +63,15 @@
height
:
100%
;
position
:
absolute
;
z-index
:
999
;
}
}
.fixed-header
{
.fixed-header
{
width
:
100%
;
transition
:
width
0.28s
;
}
}
.el-dropdown-menu--small
{
.el-dropdown-menu--small
{
padding
:
0
;
width
:
5px
;
}
}
</
style
>
...
...
src/main.js
View file @
c63c11f
...
...
@@ -16,7 +16,7 @@ import '@/styles/element-variables.scss'
import
'@/styles/index.scss'
import
Base
from
'./base'
// 全局组件引入
import
mixin
from
'@/utils/mixin/theme.js'
import
axios
from
'axios'
import
dataV
from
'@jiaminghi/data-view'
;
import
*
as
echarts
from
"echarts"
...
...
@@ -52,15 +52,21 @@ import './image/icons' // icon
import
store
from
'./store'
import
router
from
'./router'
import
_
from
'lodash'
import
'./permission'
// permission control
Vue
.
use
(
Element
,
{
size
:
'small'
,
zIndex
:
1000
})
Vue
.
use
(
Base
)
Vue
.
component
(
'icon'
,
Icon
);
Vue
.
prototype
.
$echarts
=
echarts
Vue
.
use
(
dataV
)
new
Vue
({
axios
.
get
(
"./config.json"
)
.
then
((
res
)
=>
{
Vue
.
prototype
.
BASE_API
=
res
.
data
require
(
'./permission'
)
new
Vue
({
el
:
'#app'
,
router
,
store
,
render
:
h
=>
h
(
App
)
})
})
})
...
...
src/styles/element-ui.scss
View file @
c63c11f
...
...
@@ -521,6 +521,7 @@ table td {
.el-menu--horizontal
.el-menu--popup
.el-menu-item
:not
(
.is-disabled
)
:hover
,
.el-select-dropdown__item
:hover
,
.el-select-dropdown__item.selected
,
.el-menu--horizontal
.el-menu
.el-menu-item.is-active
,
.el-menu--horizontal
.el-menu--popup
.el-menu-item
:not
(
.is-disabled
)
:focus
{
background
:
url("~@/image/xzslitembg.png")
no-repeat
;
background-size
:
100%
100%
;
...
...
src/utils/get-page-title.js
View file @
c63c11f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-1
5 17:14:42
* @LastEditTime: 2023-03-1
6 13:31:27
*/
// 获取浏览器便签标题
import
config
from
'/public/config
'
const
title
=
config
.
TITLE
import
Vue
from
'vue
'
const
title
=
Vue
.
prototype
.
BASE_API
.
TITLE
export
default
function
getPageTitle
(
pageTitle
)
{
if
(
pageTitle
)
{
...
...
src/views/jsbwcx/data/index.js
View file @
c63c11f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-1
5 14:08:59
* @LastEditTime: 2023-03-1
6 13:44:11
*/
import
filter
from
'@/utils/filter.js'
class
data
extends
filter
{
...
...
@@ -51,7 +51,7 @@ class data extends filter {
{
prop
:
"bizMsgid"
,
label
:
"业务报文ID"
,
minWidth
:
1
0
0
,
minWidth
:
1
5
0
,
},
{
prop
:
"createdate"
,
...
...
Please
register
or
sign in
to post a comment