Commit c9eec451 by 张杰

v1.10.0版本需求

1 parent 7417e72f
This diff could not be displayed because it is too large.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"port": 10200, "port": 10200,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve --progress",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"echarts": "^5.2.2", "echarts": "^5.2.2",
"element-ui": "^2.15.7", "element-ui": "^2.15.7",
"glsx-common": "^1.4.9",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"moment": "^2.29.1", "moment": "^2.29.1",
"sass": "^1.45.1", "sass": "^1.45.1",
...@@ -31,7 +30,8 @@ ...@@ -31,7 +30,8 @@
"eslint": "^6.7.2", "eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"sass-loader": "^10.0.3", "sass-loader": "^10.0.3",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11",
"webpack-bundle-analyzer": "^4.6.1"
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
......
This diff could not be displayed because it is too large.
...@@ -205,7 +205,12 @@ import { ...@@ -205,7 +205,12 @@ import {
GET_HOME_NEWBINDDEVICEINFO, GET_HOME_NEWBINDDEVICEINFO,
} from "@/services/home"; } from "@/services/home";
//import chartConfig from "@/chart/chartConfig.js"; //import chartConfig from "@/chart/chartConfig.js";
import * as echarts from "echarts"; import * as echarts from "echarts/core";
import { LineChart,PieChart } from 'echarts/charts';
echarts.use([
LineChart,
PieChart
])
export default { export default {
data() { data() {
return { return {
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<div class=""> <div class="">
<el-tabs v-model="activeTabs"> <el-tabs v-model="activeTabs">
<el-tab-pane label="选择数据" name="1"> <el-tab-pane label="选择数据" name="1">
<select-info ref="selectInfoCom" v-if="activeTabs == 1" :id="id" :key="id"></select-info> <select-info ref="selectInfoCom" :id="id" :key="id"></select-info>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="导入数据" name="2"> <el-tab-pane label="导入数据" name="2">
<import-vehicle ref="importVehicleCom" v-if="activeTabs == 2" :id="id" :key="id"></import-vehicle> <import-vehicle ref="importVehicleCom" :id="id" :key="id"></import-vehicle>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="按组织授权" name="3"> <el-tab-pane label="按组织授权" name="3">
<authorization-info ref="authorizationInfoCom" v-if="activeTabs == 3" :id="id" :key="id"></authorization-info> <authorization-info ref="authorizationInfoCom" :id="id" :key="id"></authorization-info>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
<div class="tree_box" v-loading="treeLoading"> <div class="tree_box" v-loading="treeLoading">
<el-scrollbar class="el_scroll"> <el-scrollbar class="el_scroll">
<el-tree ref="elTree" :key="id" :data="organizationList" default-expand-all :props="treeProps" :default-checked-keys="checkKeys" show-checkbox node-key="id" :filter-node-method="filterNode"> <el-tree ref="elTree" :data="organizationList" default-expand-all :props="treeProps" :default-checked-keys="checkKeys" show-checkbox node-key="id" :filter-node-method="filterNode">
</el-tree> </el-tree>
</el-scrollbar> </el-scrollbar>
</div> </div>
...@@ -46,13 +46,12 @@ export default { ...@@ -46,13 +46,12 @@ export default {
}; };
}, },
created() { created() {
},
mounted() {
let list = this.$store.state.organizationUserTree; let list = this.$store.state.organizationUserTree;
if (!list || list.length <= 0) { if (!list || list.length <= 0) {
this.getList(); this.getList();
} }
console.log(this.$store.state.organizationUserTree);
},
mounted() {
this.getInfo(); this.getInfo();
}, },
methods: { methods: {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="tree_box"> <div class="tree_box">
<el-scrollbar class="el_scroll" v-loading="treeLoading"> <el-scrollbar class="el_scroll" v-loading="treeLoading">
<el-tree :key="id" :data="vehicleList" :props="treeProps" :default-checked-keys="checkKeys" show-checkbox lazy node-key="id" :load="loadNode" :render-content="renderTreeContent" @check="onCheckChange"> <el-tree :data="vehicleList" :props="treeProps" :default-checked-keys="checkKeys" show-checkbox lazy node-key="id" :load="loadNode" :render-content="renderTreeContent" @check="onCheckChange">
</el-tree> </el-tree>
</el-scrollbar> </el-scrollbar>
</div> </div>
......
...@@ -8,6 +8,8 @@ function resolve(dir) { ...@@ -8,6 +8,8 @@ function resolve(dir) {
const dev = process.env.NODE_ENV === "development"; const dev = process.env.NODE_ENV === "development";
const getPublicPath = dev ? `//localhost:${port}` : 'http://e-shield-system.glsx.com.cn'; const getPublicPath = dev ? `//localhost:${port}` : 'http://e-shield-system.glsx.com.cn';
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = { module.exports = {
// publicPath: dev ? `//localhost:${port}` : "/", // publicPath: dev ? `//localhost:${port}` : "/",
outputDir: "dist", outputDir: "dist",
...@@ -29,6 +31,7 @@ module.exports = { ...@@ -29,6 +31,7 @@ module.exports = {
} }
}, },
lintOnSave: false, lintOnSave: false,
chainWebpack: config => { chainWebpack: config => {
config.resolve.alias config.resolve.alias
.set('@', resolve('src')) .set('@', resolve('src'))
...@@ -36,16 +39,16 @@ module.exports = { ...@@ -36,16 +39,16 @@ module.exports = {
.set('config', resolve('src/config')) .set('config', resolve('src/config'))
.set('utils', resolve('src/utils')) .set('utils', resolve('src/utils'))
.set('services', resolve('src/services')) .set('services', resolve('src/services'))
const fontRule = config.module.rule('fonts'); // const fontRule = config.module.rule('fonts');
fontRule.uses.clear(); // fontRule.uses.clear();
fontRule // fontRule
.use('file-loader') // .use('file-loader')
.loader('file-loader') // .loader('file-loader')
.options({ // .options({
name: 'fonts/[name].[hash:8].[ext]', // name: 'fonts/[name].[hash:8].[ext]',
//publicPath: getPublicPath // //publicPath: getPublicPath
}) // })
.end() // .end()
}, },
configureWebpack: { configureWebpack: {
output: { output: {
...@@ -55,6 +58,9 @@ module.exports = { ...@@ -55,6 +58,9 @@ module.exports = {
libraryTarget: 'umd', libraryTarget: 'umd',
// 按需加载相关 // 按需加载相关
jsonpFunction: `webpackJsonp_${name}` jsonpFunction: `webpackJsonp_${name}`
} },
plugins: [
new BundleAnalyzerPlugin()
],
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!