whychdw
2020-07-11 9f37b2fad9d61300e1253bb0a7fcca4d71b3a3fa
提交config
4个文件已修改
1个文件已添加
26 ■■■■ 已修改文件
src/assets/js/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chart/LineChart.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/batt-list/history-page.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/file/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.js
New file
@@ -0,0 +1,4 @@
export default {
    http:process.env.NODE_ENV == 'dev'?
        'http://localhost:8919/Equip_System/':'',
};
src/components/chart/LineChart.vue
@@ -23,6 +23,8 @@
import "echarts/lib/component/title";
//引入图例标志
import "echarts/lib/component/legend";
//区域缩放
import "echarts/lib/component/dataZoom";
// 引入自定义主题
import "./theme/transparent"
@@ -102,8 +104,9 @@
                    {
                        type: 'inside',
                        xAxisIndex: [0],
                        zoomLock: true,
                        start: 0,
                        end: 35
                        end: 10
                    },
                ],
                series: []
src/main.js
@@ -2,6 +2,7 @@
import App from './App.vue'
import router from './router'
import store from './store'
import config from './assets/js/config'
import './api'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
@@ -53,6 +54,8 @@
    ("00"+ o[k]).substr((""+ o[k]).length));
    return format;
};
// 挂载配置
Vue.prototype.$config = config;
new Vue({
    router,
src/pages/batt-list/history-page.vue
@@ -63,7 +63,7 @@
        </el-drawer>
        <form
        ref="export" 
        action="http://localhost:8919/Equip_System/ExportTable.servlet"
        :action="action"
        method="post" 
        enctype="multipart/form-data">
            <input type="hidden" name="PageName" value="history"/>
@@ -94,6 +94,9 @@
        ChartConfigs,
    },
    data() {
        // 配置导出的action
        let action = this.$config.http+'ExportTable.servlet';
        return {
            form: {
                test_type: '',
@@ -116,6 +119,7 @@
            base64: '',
            dev_name: '',
            allData: [],
            action: action,
        }
    },
    watch: {
src/pages/file/index.vue
@@ -68,7 +68,7 @@
        </div>
        <form
        ref="export" 
        action="http://localhost:8919/Equip_System/ExportTable.servlet"
        :action="action"
        method="post" 
        enctype="multipart/form-data">
            <input type="hidden" name="PageName" value="fileout"/>
@@ -92,13 +92,17 @@
        MyTree
    },
    data() {
        // 配置导出的action
        let action = this.$config.http+'ExportTable.servlet';
        return {
            curDevId: '',
            curDevName: '',
            tableName: '',
            states: '',
            treeData: [],
            tableData: []
            tableData: [],
            action: action,
        }
    },
    mounted () {