Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-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
6b1380e3
authored
2022-09-14 09:04:46 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:字典
1 parent
9eca0a30
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
21 deletions
.env.production
package.json
src/layout/components/Navbar.vue
src/styles/sidebar.scss
src/views/system/dictionaries/components/editDialog.vue
vue.config.js
.env.production
View file @
6b1380e
# just a flag
ENV = '
demonstra
tion'
NODE_ENV=
development
ENV = '
produc
tion'
NODE_ENV=
production
# base api
VUE_APP_BASE_API = '/
dev-api
'
VUE_APP_BASE_API = '/
service-bdcdj
'
# 演示,正式后端
VUE_APP_API_BASE_URL = 'http://192.168.2.38:80
18
'
VUE_APP_API_BASE_URL = 'http://192.168.2.38:80
08/service-bdcdj
'
...
...
package.json
View file @
6b1380e
...
...
@@ -4,8 +4,8 @@
"description"
:
"HOUTAI"
,
"author"
:
"psh"
,
"scripts"
:
{
"dev"
:
"vue-cli-service serve
--mode development
"
,
"build"
:
"vue-cli-service build
--mode build-development
"
"dev"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
},
"dependencies"
:
{
"@babel/polyfill"
:
"^7.12.1"
,
...
...
src/layout/components/Navbar.vue
View file @
6b1380e
...
...
@@ -22,14 +22,13 @@
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
logonImg
from
'@/image/logo.png'
export
default
{
computed
:
{
...
mapGetters
([
'sidebar'
,
'avatar'
,
'name'
])
},
data
()
{
return
{
logo
:
logonImg
logo
:
require
(
'../../image/logo.png'
)
}
},
methods
:
{
...
...
src/styles/sidebar.scss
View file @
6b1380e
...
...
@@ -8,7 +8,7 @@
.sidebar-container
{
transition
:
width
0
.28s
;
width
:
$sideBarWidth
!
important
;
height
:
calc
(
100%
-
$headerHeight
);
height
:
calc
(
100%
-
#{
$headerHeight
}
);
position
:
fixed
;
font-size
:
0px
;
top
:
$headerHeight
;
...
...
src/views/system/dictionaries/components/editDialog.vue
View file @
6b1380e
...
...
@@ -224,7 +224,22 @@ export default {
})
},
handleMinus
(
index
,
row
)
{
removeTreeListItem
(
this
.
tableData
,
row
.
bsmDict
)
this
.
$confirm
(
'此操作将永久删除, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
removeTreeListItem
(
this
.
tableData
,
row
.
bsmDict
)
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
})
})
},
handleSubmit
()
{
editDictNode
({
...
...
vue.config.js
View file @
6b1380e
...
...
@@ -25,8 +25,10 @@ module.exports = {
assetsDir
:
'static'
,
lintOnSave
:
process
.
env
.
NODE_ENV
===
'development'
,
productionSourceMap
:
false
,
filenameHashing
:
false
,
// webpack开发服务器
devServer
:
{
hot
:
true
,
port
:
port
,
open
:
true
,
disableHostCheck
:
true
,
...
...
@@ -37,24 +39,29 @@ module.exports = {
proxy
:
{
'/bdcdj'
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
//本机服务
ws
:
false
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/bdcdj'
:
''
// 需要rewrite的,
'^/bdcdj'
:
''
}
},
'/service-bdcdj'
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/service-bdcdj'
:
''
}
}
},
},
css
:
{
extract
:
tru
e
,
// 是否使用css分离插件 ExtractTextPlugin
extract
:
fals
e
,
// 是否使用css分离插件 ExtractTextPlugin
sourceMap
:
false
,
// 开启 CSS source maps?
loaderOptions
:
{
sass
:
{
prependData
:
`@import "@/styles/variables.scss";`
}
},
modules
:
false
,
// 启用 CSS modules for all css / pre-processor files.
modules
:
false
,
},
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack
:
{
...
...
@@ -117,17 +124,17 @@ module.exports = {
name
:
'chunk-libs'
,
test
:
/
[\\/]
node_modules
[\\/]
/
,
priority
:
10
,
chunks
:
'initial'
// only package third parties that are initially dependent
chunks
:
'initial'
},
elementUI
:
{
name
:
'chunk-elementUI'
,
// split elementUI into a single package
priority
:
20
,
// the weight needs to be larger than libs and app or it will be packaged into libs or app
test
:
/
[\\/]
node_modules
[\\/]
_
?
element-ui
(
.*
)
/
// in order to adapt to cnpm
name
:
'chunk-elementUI'
,
priority
:
20
,
test
:
/
[\\/]
node_modules
[\\/]
_
?
element-ui
(
.*
)
/
},
commons
:
{
name
:
'chunk-commons'
,
test
:
resolve
(
'src/components'
),
// can customize your rules
minChunks
:
3
,
// minimum common number
test
:
resolve
(
'src/components'
),
minChunks
:
3
,
priority
:
5
,
reuseExistingChunk
:
true
}
...
...
Please
register
or
sign in
to post a comment