diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index fe4aea4..a534ad4 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -26,8 +26,8 @@ const webpackConfig = merge(baseWebpackConfig, { devtool: config.build.productionSourceMap ? config.build.devtool : false, output: { path: config.build.assetsRoot, - filename: utils.assetsPath('js/[name].js'), - chunkFilename: utils.assetsPath('js/[id].js') + filename: utils.assetsPath('js/[name].[chunkhash].js'), + chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') }, plugins: [ // http://vuejs.github.io/vue-loader/en/workflow/production.html diff --git a/config/index.js b/config/index.js index 11be9a3..b6283b8 100644 --- a/config/index.js +++ b/config/index.js @@ -56,12 +56,12 @@ module.exports = { build: { // Template for index.html - index: path.resolve(__dirname, '../dist/index.html'), + index: path.resolve(__dirname, '../dist/management/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../dist'), + assetsRoot: path.resolve(__dirname, '../dist/management/'), assetsSubDirectory: 'static', - assetsPublicPath: './', + assetsPublicPath: '/management/', /** * Source Maps diff --git a/index.html b/index.html index df13af0..8e0bea6 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,16 @@ - + 数字化管理系统 - +
- diff --git a/src/router/index.js b/src/router/index.js index 8a1aef4..d94711b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -51,6 +51,7 @@ const mainRoutes = { } const router = new Router({ + base: '/management/', mode: 'history', scrollBehavior: () => ({ y: 0 }), isAddDynamicMenuRoutes: false, // 是否已经添加动态(菜单)路由 diff --git a/src/views/modules/staff/archives/index.vue b/src/views/modules/staff/archives/index.vue new file mode 100644 index 0000000..a3d0ffc --- /dev/null +++ b/src/views/modules/staff/archives/index.vue @@ -0,0 +1,251 @@ + + + + + diff --git a/src/views/modules/staff/manage/compoments/staff-manage-left/index.vue b/src/views/modules/staff/manage/compoments/staff-manage-left/index.vue new file mode 100644 index 0000000..1013939 --- /dev/null +++ b/src/views/modules/staff/manage/compoments/staff-manage-left/index.vue @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/staff/manage/compoments/staff-manage-right/index.vue b/src/views/modules/staff/manage/compoments/staff-manage-right/index.vue new file mode 100644 index 0000000..4f2559a --- /dev/null +++ b/src/views/modules/staff/manage/compoments/staff-manage-right/index.vue @@ -0,0 +1,171 @@ + + + diff --git a/src/views/modules/staff/manage/index copy.vue b/src/views/modules/staff/manage/index copy.vue new file mode 100644 index 0000000..3750c80 --- /dev/null +++ b/src/views/modules/staff/manage/index copy.vue @@ -0,0 +1,37 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/modules/staff/manage/index.vue b/src/views/modules/staff/manage/index.vue new file mode 100644 index 0000000..379ff82 --- /dev/null +++ b/src/views/modules/staff/manage/index.vue @@ -0,0 +1,265 @@ + + + + + diff --git a/src/views/modules/staff/profile/componments/chart-form/index.vue b/src/views/modules/staff/profile/componments/chart-form/index.vue new file mode 100644 index 0000000..8183919 --- /dev/null +++ b/src/views/modules/staff/profile/componments/chart-form/index.vue @@ -0,0 +1,71 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/staff/profile/componments/employees-number/index.vue b/src/views/modules/staff/profile/componments/employees-number/index.vue new file mode 100644 index 0000000..5157c95 --- /dev/null +++ b/src/views/modules/staff/profile/componments/employees-number/index.vue @@ -0,0 +1,55 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/staff/profile/componments/query-form/index.vue b/src/views/modules/staff/profile/componments/query-form/index.vue new file mode 100644 index 0000000..166886d --- /dev/null +++ b/src/views/modules/staff/profile/componments/query-form/index.vue @@ -0,0 +1,363 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/staff/profile/index.vue b/src/views/modules/staff/profile/index.vue new file mode 100644 index 0000000..fd31161 --- /dev/null +++ b/src/views/modules/staff/profile/index.vue @@ -0,0 +1,67 @@ + + + + + + + +