diff --git a/src/App.vue b/src/App.vue index de7b12b..606c173 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,253 +1,284 @@ - - - - + + + + diff --git a/src/api/index.js b/src/api/index.js index 4838a02..808cdb4 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,69 +1,75 @@ -import axios from 'axios' -// if (process.env.NODE_ENV === 'development') { -// axios.defaults.baseURL = '/api' -// } else if (process.env.NODE_ENV === 'production') { -// axios.defaults.baseURL = '/api' -// } -//设置请求头参数 common 为设置所有的接口 post为设置post请求的接口 -// axios.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('access_token')}`; - -// 电力概况 -export const getCompanyInfo = (params) => { - return axios.get('api/Handler/Company.ashx', { - params - }) -}; -// 路线查询 下拉 -export const getLine = (params) => { - return axios.get('api/Handler/Line.ashx', { - params - }) -}; -// 查询设备素材 -export const getDevice = (params) => { - return axios.get('api/Handler/Device.ashx', { - params - }) -}; -//班组故障查询 -export const getBanzugz = (params) => { - return axios.get('api/Handler/Banzugz.ashx', { - params - }) -}; -//查询工单统计 -export const getGdtj = (params) => { - return axios.get('api/Handler/gdtj.ashx', { - params - }) -}; -//查询单位本周故障 -export const getDwbzgz = (params) => { - return axios.get('api/Handler/Dwbzgz.ashx', { - params - }) -}; -//查询供电所供电质量情况 -export const getGdsgdzl = (params) => { - return axios.get('api/Handler/Gdsgdzl.ashx', { - params - }) -}; -//查询配变停运情况 -export const getPbtyqk = (params) => { - return axios.get('api/Handler/Pbtyqk.ashx', { - params - }) -}; -// //查询天气 -// export const getWather = (params) => { -// return axios.get('aps/weather/prediction/', { -// params -// }) -// }; -//查询天气 -export const Weather = (params) => { - return axios.get('api/Handler/Weather.ashx', { - params - }) +import axios from 'axios' +// if (process.env.NODE_ENV === 'development') { +// axios.defaults.baseURL = '/api' +// } else if (process.env.NODE_ENV === 'production') { +// axios.defaults.baseURL = '/api' +// } +//设置请求头参数 common 为设置所有的接口 post为设置post请求的接口 +// axios.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('access_token')}`; + +// 电力概况 +export const getCompanyInfo = (params) => { + return axios.get('api/Handler/Company.ashx', { + params + }) +}; +// 路线查询 下拉 +export const getLine = (params) => { + return axios.get('api/Handler/Line.ashx', { + params + }) +}; +// 查询设备素材 +export const getDevice = (params) => { + return axios.get('api/Handler/Device.ashx', { + params + }) +}; +//班组故障查询 +export const getBanzugz = (params) => { + return axios.get('api/Handler/Banzugz.ashx', { + params + }) +}; +//查询工单统计 +export const getGdtj = (params) => { + return axios.get('api/Handler/gdtj.ashx', { + params + }) +}; +//查询单位本周故障 +export const getDwbzgz = (params) => { + return axios.get('api/Handler/Dwbzgz.ashx', { + params + }) +}; +//查询供电所供电质量情况 +export const getGdsgdzl = (params) => { + return axios.get('api/Handler/Gdsgdzl.ashx', { + params + }) +}; +//查询配变停运情况 +export const getPbtyqk = (params) => { + return axios.get('api/Handler/Pbtyqk.ashx', { + params + }) +}; +// //查询天气 +// export const getWather = (params) => { +// return axios.get('aps/weather/prediction/', { +// params +// }) +// }; +//查询天气 +// export const Weather = (params) => { +// return axios.get('api/Handler/Weather.ashx', { +// params +// }) +// }; +//查询天气1 +export const Weather = (params) => { + return axios.get('api/Handler/Data.ashx', { + params + }) }; \ No newline at end of file diff --git a/src/assets/videos/1667823525562.mp4 b/src/assets/videos/1667823525562.mp4 new file mode 100644 index 0000000..24f69be Binary files /dev/null and b/src/assets/videos/1667823525562.mp4 differ diff --git a/src/views/index.vue b/src/views/index.vue index a69839a..efed98a 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,2069 +1,2069 @@ - - - - - + + + + + diff --git a/vue.config.js b/vue.config.js index 8ab8349..d7c050b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,37 +1,37 @@ -module.exports = { - // 打包文件配置 - publicPath: "/", - assetsDir: "static", - lintOnSave: false, - devServer: { - // overlay: { // 让浏览器 overlay 同时显示警告和错误 - // warnings: true, - // errors: true, - // }, - // hotOnly: true, - // open: false, // npm run serve后自动打开页面 - // https: false, // https:{type:Boolean} - // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0) - // port: 8989, // 开发服务器运行端口号 - proxy: { - '/api': { //代理的名字 - target:'http://111.229.30.246:3111/', - // target: 'http://172.16.1.254:3111/', - ws: true, - changeOrigin: true, - pathRewrite:{ - '^/api':'', - } - }, - // '/aps': { //代理的名字 - // target:'http://www.jcznedu.com:5000/', - // // target: 'http://172.16.1.254:3111/', - // ws: true, - // changeOrigin: true, - // pathRewrite:{ - // '^/aps':'', - // } - // } - } - } +module.exports = { + // 打包文件配置 + publicPath: "/", + assetsDir: "static", + lintOnSave: false, + devServer: { + // overlay: { // 让浏览器 overlay 同时显示警告和错误 + // warnings: true, + // errors: true, + // }, + // hotOnly: true, + // open: false, // npm run serve后自动打开页面 + // https: false, // https:{type:Boolean} + // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0) + // port: 8989, // 开发服务器运行端口号 + proxy: { + '/api': { //代理的名字 + // target:'http://111.229.30.246:3111/', + target: 'http://172.16.1.254:3111/', + ws: true, + changeOrigin: true, + pathRewrite:{ + '^/api':'', + } + }, + // '/aps': { //代理的名字 + // target:'http://www.jcznedu.com:5000/', + // // target: 'http://172.16.1.254:3111/', + // ws: true, + // changeOrigin: true, + // pathRewrite:{ + // '^/aps':'', + // } + // } + } + } } \ No newline at end of file