6b1380e3 by 任超

style:字典

1 parent 9eca0a30
1 # just a flag 1 # just a flag
2 ENV = 'demonstration' 2 ENV = 'production'
3 NODE_ENV=development 3 NODE_ENV=production
4 # base api 4 # base api
5 VUE_APP_BASE_API = '/dev-api' 5 VUE_APP_BASE_API = '/service-bdcdj'
6 6
7 # 演示,正式后端 7 # 演示,正式后端
8 VUE_APP_API_BASE_URL = 'http://192.168.2.38:8018' 8 VUE_APP_API_BASE_URL = 'http://192.168.2.38:8008/service-bdcdj'
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
4 "description": "HOUTAI", 4 "description": "HOUTAI",
5 "author": "psh", 5 "author": "psh",
6 "scripts": { 6 "scripts": {
7 "dev": "vue-cli-service serve --mode development", 7 "dev": "vue-cli-service serve",
8 "build": "vue-cli-service build --mode build-development" 8 "build": "vue-cli-service build"
9 }, 9 },
10 "dependencies": { 10 "dependencies": {
11 "@babel/polyfill": "^7.12.1", 11 "@babel/polyfill": "^7.12.1",
......
...@@ -22,14 +22,13 @@ ...@@ -22,14 +22,13 @@
22 </template> 22 </template>
23 <script> 23 <script>
24 import { mapGetters } from 'vuex' 24 import { mapGetters } from 'vuex'
25 import logonImg from '@/image/logo.png'
26 export default { 25 export default {
27 computed: { 26 computed: {
28 ...mapGetters(['sidebar', 'avatar', 'name']) 27 ...mapGetters(['sidebar', 'avatar', 'name'])
29 }, 28 },
30 data () { 29 data () {
31 return { 30 return {
32 logo: logonImg 31 logo: require('../../image/logo.png')
33 } 32 }
34 }, 33 },
35 methods: { 34 methods: {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 .sidebar-container { 8 .sidebar-container {
9 transition: width 0.28s; 9 transition: width 0.28s;
10 width: $sideBarWidth !important; 10 width: $sideBarWidth !important;
11 height: calc(100% - $headerHeight); 11 height: calc(100% - #{$headerHeight});
12 position: fixed; 12 position: fixed;
13 font-size: 0px; 13 font-size: 0px;
14 top: $headerHeight; 14 top: $headerHeight;
......
...@@ -224,7 +224,22 @@ export default { ...@@ -224,7 +224,22 @@ export default {
224 }) 224 })
225 }, 225 },
226 handleMinus (index, row) { 226 handleMinus (index, row) {
227 this.$confirm('此操作将永久删除, 是否继续?', '提示', {
228 confirmButtonText: '确定',
229 cancelButtonText: '取消',
230 type: 'warning'
231 }).then(() => {
227 removeTreeListItem(this.tableData, row.bsmDict) 232 removeTreeListItem(this.tableData, row.bsmDict)
233 this.$message({
234 type: 'success',
235 message: '删除成功!'
236 })
237 }).catch(() => {
238 this.$message({
239 type: 'info',
240 message: '已取消删除'
241 })
242 })
228 }, 243 },
229 handleSubmit () { 244 handleSubmit () {
230 editDictNode({ 245 editDictNode({
......
...@@ -25,8 +25,10 @@ module.exports = { ...@@ -25,8 +25,10 @@ module.exports = {
25 assetsDir: 'static', 25 assetsDir: 'static',
26 lintOnSave: process.env.NODE_ENV === 'development', 26 lintOnSave: process.env.NODE_ENV === 'development',
27 productionSourceMap: false, 27 productionSourceMap: false,
28 filenameHashing: false,
28 // webpack开发服务器 29 // webpack开发服务器
29 devServer: { 30 devServer: {
31 hot: true,
30 port: port, 32 port: port,
31 open: true, 33 open: true,
32 disableHostCheck: true, 34 disableHostCheck: true,
...@@ -37,24 +39,29 @@ module.exports = { ...@@ -37,24 +39,29 @@ module.exports = {
37 proxy: { 39 proxy: {
38 '/bdcdj': { 40 '/bdcdj': {
39 target: process.env.VUE_APP_API_BASE_URL,//本机服务 41 target: process.env.VUE_APP_API_BASE_URL,//本机服务
40 ws: false,
41 changeOrigin: true, 42 changeOrigin: true,
42 pathRewrite: { 43 pathRewrite: {
43 '^/bdcdj': '' // 需要rewrite的, 44 '^/bdcdj': ''
45 }
46 },
47 '/service-bdcdj': {
48 target: process.env.VUE_APP_API_BASE_URL,
49 changeOrigin: true,
50 pathRewrite: {
51 '^/service-bdcdj': ''
44 } 52 }
45 } 53 }
46
47 }, 54 },
48 }, 55 },
49 css: { 56 css: {
50 extract: true, // 是否使用css分离插件 ExtractTextPlugin 57 extract: false, // 是否使用css分离插件 ExtractTextPlugin
51 sourceMap: false, // 开启 CSS source maps? 58 sourceMap: false, // 开启 CSS source maps?
52 loaderOptions: { 59 loaderOptions: {
53 sass: { 60 sass: {
54 prependData: `@import "@/styles/variables.scss";` 61 prependData: `@import "@/styles/variables.scss";`
55 } 62 }
56 }, 63 },
57 modules: false,// 启用 CSS modules for all css / pre-processor files. 64 modules: false,
58 }, 65 },
59 // configureWebpack通过操作对象的形式,来修改默认的webpack配置 66 // configureWebpack通过操作对象的形式,来修改默认的webpack配置
60 configureWebpack: { 67 configureWebpack: {
...@@ -117,17 +124,17 @@ module.exports = { ...@@ -117,17 +124,17 @@ module.exports = {
117 name: 'chunk-libs', 124 name: 'chunk-libs',
118 test: /[\\/]node_modules[\\/]/, 125 test: /[\\/]node_modules[\\/]/,
119 priority: 10, 126 priority: 10,
120 chunks: 'initial' // only package third parties that are initially dependent 127 chunks: 'initial'
121 }, 128 },
122 elementUI: { 129 elementUI: {
123 name: 'chunk-elementUI', // split elementUI into a single package 130 name: 'chunk-elementUI',
124 priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app 131 priority: 20,
125 test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm 132 test: /[\\/]node_modules[\\/]_?element-ui(.*)/
126 }, 133 },
127 commons: { 134 commons: {
128 name: 'chunk-commons', 135 name: 'chunk-commons',
129 test: resolve('src/components'), // can customize your rules 136 test: resolve('src/components'),
130 minChunks: 3, // minimum common number 137 minChunks: 3,
131 priority: 5, 138 priority: 5,
132 reuseExistingChunk: true 139 reuseExistingChunk: true
133 } 140 }
......