fanghuisheng 3 lat temu
rodzic
commit
d0dbaa217c
100 zmienionych plików z 0 dodań i 14362 usunięć
  1. 0 4
      .history/.env_20210715142421.development
  2. 0 4
      .history/.env_20211209144213.development
  3. 0 4
      .history/.env_20211209144220.development
  4. 0 4
      .history/.env_20211209144221.development
  5. 0 29
      .history/public/static/config_20210723174527.js
  6. 0 29
      .history/public/static/config_20211208161136.js
  7. 0 29
      .history/public/static/config_20211208161208.js
  8. 0 29
      .history/public/static/config_20211208161932.js
  9. 0 29
      .history/public/static/config_20211208161941.js
  10. 0 67
      .history/src/main_20210803095441.js
  11. 0 68
      .history/src/main_20211209142423.js
  12. 0 68
      .history/src/main_20211209142558.js
  13. 0 68
      .history/src/main_20211209142601.js
  14. 0 69
      .history/src/main_20211209142638.js
  15. 0 69
      .history/src/main_20211209142958.js
  16. 0 69
      .history/src/main_20211209143017.js
  17. 0 69
      .history/src/main_20211209143610.js
  18. 0 111
      .history/src/utils/request_20210729181608.js
  19. 0 111
      .history/src/utils/request_20211208164559.js
  20. 0 111
      .history/src/utils/request_20211208165117.js
  21. 0 111
      .history/src/utils/request_20211208170148.js
  22. 0 111
      .history/src/utils/request_20211208174447.js
  23. 0 111
      .history/src/utils/request_20211208174749.js
  24. 0 111
      .history/src/utils/request_20211208174755.js
  25. 0 111
      .history/src/utils/request_20211208174807.js
  26. 0 111
      .history/src/utils/request_20211208174812.js
  27. 0 111
      .history/src/utils/request_20211208174949.js
  28. 0 111
      .history/src/utils/request_20211208175056.js
  29. 0 111
      .history/src/utils/request_20211208175230.js
  30. 0 111
      .history/src/utils/request_20211208175307.js
  31. 0 111
      .history/src/utils/request_20211208175452.js
  32. 0 111
      .history/src/utils/request_20211208175510.js
  33. 0 111
      .history/src/utils/request_20211208175654.js
  34. 0 117
      .history/src/utils/request_20211208175750.js
  35. 0 117
      .history/src/utils/request_20211208175758.js
  36. 0 117
      .history/src/utils/request_20211208175840.js
  37. 0 117
      .history/src/utils/request_20211208180037.js
  38. 0 117
      .history/src/utils/request_20211208180833.js
  39. 0 117
      .history/src/utils/request_20211208180844.js
  40. 0 117
      .history/src/utils/request_20211209112916.js
  41. 0 117
      .history/src/utils/request_20211209113336.js
  42. 0 117
      .history/src/utils/request_20211209113831.js
  43. 0 117
      .history/src/utils/request_20211209114028.js
  44. 0 117
      .history/src/utils/request_20211209114033.js
  45. 0 117
      .history/src/utils/request_20211209114431.js
  46. 0 117
      .history/src/utils/request_20211209131131.js
  47. 0 117
      .history/src/utils/request_20211209131246.js
  48. 0 117
      .history/src/utils/request_20211209131254.js
  49. 0 117
      .history/src/utils/request_20211209131258.js
  50. 0 117
      .history/src/utils/request_20211209131412.js
  51. 0 117
      .history/src/utils/request_20211209131458.js
  52. 0 117
      .history/src/utils/request_20211209131545.js
  53. 0 117
      .history/src/utils/request_20211209131551.js
  54. 0 117
      .history/src/utils/request_20211209131556.js
  55. 0 117
      .history/src/utils/request_20211209131854.js
  56. 0 118
      .history/src/utils/request_20211209140352.js
  57. 0 118
      .history/src/utils/request_20211209140402.js
  58. 0 118
      .history/src/utils/request_20211209140415.js
  59. 0 123
      .history/src/utils/request_20211209140937.js
  60. 0 123
      .history/src/utils/request_20211209141044.js
  61. 0 124
      .history/src/utils/request_20211209141102.js
  62. 0 121
      .history/src/utils/request_20211209141107.js
  63. 0 127
      .history/src/utils/request_20211209141228.js
  64. 0 127
      .history/src/utils/request_20211209141249.js
  65. 0 121
      .history/src/utils/request_20211209141304.js
  66. 0 129
      .history/src/utils/request_20211209141523.js
  67. 0 129
      .history/src/utils/request_20211209141547.js
  68. 0 130
      .history/src/utils/request_20211209141711.js
  69. 0 119
      .history/src/utils/request_20211209141743.js
  70. 0 121
      .history/src/utils/request_20211209141838.js
  71. 0 121
      .history/src/utils/request_20211209141851.js
  72. 0 121
      .history/src/utils/request_20211209143032.js
  73. 0 121
      .history/src/utils/request_20211209143420.js
  74. 0 121
      .history/src/utils/request_20211209143916.js
  75. 0 121
      .history/src/utils/request_20211209143933.js
  76. 0 120
      .history/src/utils/request_20211209144029.js
  77. 0 120
      .history/src/utils/request_20211209144203.js
  78. 0 287
      .history/src/views/login_20210803095432.vue
  79. 0 287
      .history/src/views/login_20211208170849.vue
  80. 0 287
      .history/src/views/login_20211208170904.vue
  81. 0 287
      .history/src/views/login_20211208172238.vue
  82. 0 287
      .history/src/views/login_20211208172317.vue
  83. 0 287
      .history/src/views/login_20211208173528.vue
  84. 0 287
      .history/src/views/login_20211208173534.vue
  85. 0 288
      .history/src/views/login_20211208175329.vue
  86. 0 288
      .history/src/views/login_20211208175348.vue
  87. 0 288
      .history/src/views/login_20211208175357.vue
  88. 0 287
      .history/src/views/login_20211208175430.vue
  89. 0 287
      .history/src/views/login_20211208180211.vue
  90. 0 287
      .history/src/views/login_20211208180226.vue
  91. 0 287
      .history/src/views/login_20211208180749.vue
  92. 0 287
      .history/src/views/login_20211209113354.vue
  93. 0 287
      .history/src/views/login_20211209113425.vue
  94. 0 284
      .history/src/views/login_20211209114330.vue
  95. 0 284
      .history/src/views/login_20211209114342.vue
  96. 0 287
      .history/src/views/login_20211209114417.vue
  97. 0 288
      .history/src/views/login_20211209135331.vue
  98. 0 291
      .history/src/views/login_20211209135552.vue
  99. 0 287
      .history/src/views/login_20211209135632.vue
  100. 0 295
      .history/src/views/login_20211209135918.vue

+ 0 - 4
.history/.env_20210715142421.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='/'

+ 0 - 4
.history/.env_20211209144213.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL=''

+ 0 - 4
.history/.env_20211209144220.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='https://qhome.usky.cn/fivapi/'

+ 0 - 4
.history/.env_20211209144221.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='https://qhome.usky.cn/fivapi/'

+ 0 - 29
.history/public/static/config_20210723174527.js

@@ -1,29 +0,0 @@
-// api 请求路径
-var PLATFROM_CONFIG = {};
-// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
-// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
-
-PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api" //线上
-PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
-
-// 本地json文件请求路径
-PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
-PLATFROM_CONFIG.ione = "/vuefiv/1.json"
-
-
-
-// 当前站点 siteId 信息存储
-// var PLATFROM_SITEID = {};
-// PLATFROM_SITEID.id = 0;
-
-
-//alarming WEBSOCKET
-// let userInfo = window.localStorage.getItem("key");
-// var PLATFROM_WEBSOCKET = {};
-// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
-
-
-//iframe 请求路径
-//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
-// var PLATFROM_IFRAME = {};
-// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 0 - 29
.history/public/static/config_20211208161136.js

@@ -1,29 +0,0 @@
-// api 请求路径
-var PLATFROM_CONFIG = {};
-// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
-// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
-
-PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/api" //线上
-PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
-
-// 本地json文件请求路径
-PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
-PLATFROM_CONFIG.ione = "/vuefiv/1.json"
-
-
-
-// 当前站点 siteId 信息存储
-// var PLATFROM_SITEID = {};
-// PLATFROM_SITEID.id = 0;
-
-
-//alarming WEBSOCKET
-// let userInfo = window.localStorage.getItem("key");
-// var PLATFROM_WEBSOCKET = {};
-// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
-
-
-//iframe 请求路径
-//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
-// var PLATFROM_IFRAME = {};
-// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 0 - 29
.history/public/static/config_20211208161208.js

@@ -1,29 +0,0 @@
-// api 请求路径
-var PLATFROM_CONFIG = {};
-// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
-// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
-
-PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api" //线上
-PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
-
-// 本地json文件请求路径
-PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
-PLATFROM_CONFIG.ione = "/vuefiv/1.json"
-
-
-
-// 当前站点 siteId 信息存储
-// var PLATFROM_SITEID = {};
-// PLATFROM_SITEID.id = 0;
-
-
-//alarming WEBSOCKET
-// let userInfo = window.localStorage.getItem("key");
-// var PLATFROM_WEBSOCKET = {};
-// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
-
-
-//iframe 请求路径
-//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
-// var PLATFROM_IFRAME = {};
-// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 0 - 29
.history/public/static/config_20211208161932.js

@@ -1,29 +0,0 @@
-// api 请求路径
-var PLATFROM_CONFIG = {};
-// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
-// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
-
-PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
-PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
-
-// 本地json文件请求路径
-PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
-PLATFROM_CONFIG.ione = "/vuefiv/1.json"
-
-
-
-// 当前站点 siteId 信息存储
-// var PLATFROM_SITEID = {};
-// PLATFROM_SITEID.id = 0;
-
-
-//alarming WEBSOCKET
-// let userInfo = window.localStorage.getItem("key");
-// var PLATFROM_WEBSOCKET = {};
-// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
-
-
-//iframe 请求路径
-//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
-// var PLATFROM_IFRAME = {};
-// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 0 - 29
.history/public/static/config_20211208161941.js

@@ -1,29 +0,0 @@
-// api 请求路径
-var PLATFROM_CONFIG = {};
-// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
-// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
-
-PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
-PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
-
-// 本地json文件请求路径
-PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
-PLATFROM_CONFIG.ione = "/vuefiv/1.json"
-
-
-
-// 当前站点 siteId 信息存储
-// var PLATFROM_SITEID = {};
-// PLATFROM_SITEID.id = 0;
-
-
-//alarming WEBSOCKET
-// let userInfo = window.localStorage.getItem("key");
-// var PLATFROM_WEBSOCKET = {};
-// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
-
-
-//iframe 请求路径
-//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
-// var PLATFROM_IFRAME = {};
-// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 0 - 67
.history/src/main_20210803095441.js

@@ -1,67 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142423.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        sessionStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142558.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142601.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209142638.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        console.log(localStorage)
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209142958.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        console.log(localStorage)
-        localStorage.removeItem("assToken");
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209143017.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        console.log(sessionStorage)
-        sessionStorage.removeItem("assToken");
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209143610.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-import { removeToken } from './utils/auth';
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        removeToken()
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 111
.history/src/utils/request_20210729181608.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-    // baseURL: baseURL,
-    baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-    withCredentials: true, // send cookies when cross-domain requests
-    timeout: 5000, // request timeout
-    headers: {
-        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-    },
-})
-// request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208164559.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208165117.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        // baseURL: baseURL,
-        baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208170148.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174447.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174749.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174755.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174807.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174812.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208174949.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175056.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175230.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175307.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175452.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175510.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 111
.history/src/utils/request_20211208175654.js

@@ -1,111 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-            // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208175750.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208175758.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208175840.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208180037.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208180833.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            // 'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211208180844.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209112916.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209113336.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209113831.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209114028.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209114033.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209114431.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131131.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131246.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131254.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131258.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-// import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131412.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-// import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131458.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131545.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131551.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131556.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-// import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-            if (config.method == 'get') {
-                let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-                let obj_val = '';
-                for (let k in config.data) {
-                    obj_val += k + "=" + config.data[k] + "&";
-                }
-                config.url += ext_str + obj_val;
-            }
-            // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 117
.history/src/utils/request_20211209131854.js

@@ -1,117 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 118
.history/src/utils/request_20211209140352.js

@@ -1,118 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            ''
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 118
.history/src/utils/request_20211209140402.js

@@ -1,118 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken':
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 118
.history/src/utils/request_20211209140415.js

@@ -1,118 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 123
.history/src/utils/request_20211209140937.js

@@ -1,123 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        } else {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 123
.history/src/utils/request_20211209141044.js

@@ -1,123 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        } else {
-            // config.headers['accessToken'] = localStorage.getItem('assToken')
-
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 124
.history/src/utils/request_20211209141102.js

@@ -1,124 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        } else {
-
-
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209141107.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 127
.history/src/utils/request_20211209141228.js

@@ -1,127 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 127
.history/src/utils/request_20211209141249.js

@@ -1,127 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        if (
-
-            config.headers['Content-Type'] !==
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209141304.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 129
.history/src/utils/request_20211209141523.js

@@ -1,129 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 129
.history/src/utils/request_20211209141547.js

@@ -1,129 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 130
.history/src/utils/request_20211209141711.js

@@ -1,130 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.headers['Content-Type'] !=
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] ===
-                localStorage.getItem('assToken')
-
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 119
.history/src/utils/request_20211209141743.js

@@ -1,119 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209141838.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209141851.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209143032.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': sessionStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209143420.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': sessionStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209143916.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            'accessToken': getToken()
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 121
.history/src/utils/request_20211209143933.js

@@ -1,121 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-            // 'accessToken': getToken()
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 120
.history/src/utils/request_20211209144029.js

@@ -1,120 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        baseURL: baseURL,
-        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 120
.history/src/utils/request_20211209144203.js

@@ -1,120 +0,0 @@
-import axios from 'axios'
-import { ElMessage } from 'element-plus'
-// import store from '@/store'
-import { getToken } from '@/utils/auth'
-import qs from 'qs'
-
-// create an axios instance
-
-let baseURL = window.PLATFROM_CONFIG.baseUrl
-const service = axios.create({
-        // baseURL: baseURL,
-        baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-        withCredentials: true, // send cookies when cross-domain requests
-        timeout: 5000, // request timeout
-        headers: {
-            'Content-Type': 'application/json;charset=UTF-8',
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // do something before request is sent
-
-        // if (store.getters.token) {
-        //     // let each request carry token
-        //     // ['X-Token'] is a custom headers key
-        //     // please modify it according to the actual situation
-        //     config.headers['X-Token'] = getToken()
-        // }
-
-        if (config.method == 'get') {
-            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
-            let obj_val = '';
-            for (let k in config.data) {
-                obj_val += k + "=" + config.data[k] + "&";
-            }
-            config.url += ext_str + obj_val;
-        }
-        // return config;
-
-        return config
-    },
-    error => {
-        // do something with request error
-        console.log(error) // for debug
-        return Promise.reject(error)
-    }
-)
-
-// response interceptor
-service.interceptors.response.use(
-    /**
-     * If you want to get http information such as headers or status
-     * Please return  response => response
-     */
-
-    /**
-     * Determine the request status by custom code
-     * Here is just an example
-     * You can also judge the status by HTTP Status Code
-     */
-    response => {
-        const res = response.data
-
-        // console.log(res)
-
-
-        return res
-
-        // if the custom code is not 20000, it is judged as an error.
-        // if (res.code !== 200) {
-        //     Message({
-        //         message: res.message || 'Error',
-        //         type: 'error',
-        //         duration: 5 * 1000
-        //     })
-
-        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
-        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
-        //         // to re-login
-        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
-        //             confirmButtonText: 'Re-Login',
-        //             cancelButtonText: 'Cancel',
-        //             type: 'warning'
-        //         }).then(() => {
-        //             store.dispatch('user/resetToken').then(() => {
-        //                 location.reload()
-        //             })
-        //         })
-        //     }
-        //     return Promise.reject(new Error(res.message || 'Error'))
-        // } else {
-        //     return res
-        // }
-    },
-    error => {
-        // console.log('err' + error.response.data.msg) // for debug
-        ElMessage({
-            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
-            type: 'error',
-            duration: 5 * 1000
-        })
-        return Promise.reject(error)
-    }
-
-)
-
-export default service

+ 0 - 287
.history/src/views/login_20210803095432.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: 123456,
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208170849.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="6"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "密码长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: admin123,
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208170904.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="6"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "密码长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208172238.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="6"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208172317.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208173528.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        name: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208173534.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 288
.history/src/views/login_20211208175329.vue

@@ -1,288 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      var user = {
-        username: "admin",
-        password: "admin123",
-      };
-      this.login_api(user);
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 288
.history/src/views/login_20211208175348.vue

@@ -1,288 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      var user = {
-        username: "admin",
-        password: "admin123",
-      };
-      this.login_api(user);
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api({ query }).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 288
.history/src/views/login_20211208175357.vue

@@ -1,288 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      var user = {
-        username: "admin",
-        password: "admin123",
-      };
-      this.login_api(user);
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208175430.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208180211.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      await this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208180226.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211208180749.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211209113354.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({data:{
-        username: "admin",
-        password: "admin123",
-      }});
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211209113425.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 284
.history/src/views/login_20211209114330.vue

@@ -1,284 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api("admin", "admin123" );
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 284
.history/src/views/login_20211209114342.vue

@@ -1,284 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api("admin", "admin123");
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211209114417.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 288
.history/src/views/login_20211209135331.vue

@@ -1,288 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log('this.loginData');
-          console.log(this.loginData);
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 291
.history/src/views/login_20211209135552.vue

@@ -1,291 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-      loginData: "",
-
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-          this.loginData = requset.data;
-          console.log('this.loginData');
-          console.log(this.loginData);
-
-          localStorage.setItem('assToken',requset.data)
-
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 287
.history/src/views/login_20211209135632.vue

@@ -1,287 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-   
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-     
-          localStorage.setItem('assToken',requset.data)
-
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

+ 0 - 295
.history/src/views/login_20211209135918.vue

@@ -1,295 +0,0 @@
-<template>
-  <div class="loginBox">
-    <div class="loginInnerBox">
-      <h2 class="bigTit">智慧用电监控平台</h2>
-      <p class="loginTitle">用户登录</p>
-
-      <el-form
-        :label-position="labelPosition"
-        :model="loginForm"
-        :rules="rules"
-        ref="loginForm"
-        class="demo-loginForm"
-      >
-        <el-form-item prop="username" class="oneSec">
-          <img class="icon" src="../assets/images/userIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.username"
-            max="6"
-            placeholder="请输入登录ID"
-          ></el-input>
-        </el-form-item>
-
-        <el-form-item prop="password" class="oneSec">
-          <img class="icon" src="../assets/images/passwordIcon.png" alt="" />
-          <el-input
-            v-model="loginForm.password"
-            type="password"
-            placeholder="请输入密码"
-            maxlength="9"
-            auto-complete="new-password"
-            clearable
-            autocomplete="off"
-          ></el-input>
-        </el-form-item>
-        <div class="remember">
-          <el-checkbox label="记住密码" v-model="isChecked"></el-checkbox>
-        </div>
-        <el-form-item>
-          <el-button @click="submitForm" class="submitBox">登录</el-button>
-          <!-- <el-button @click="resetForm">重置</el-button> -->
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-<script>
-import * as api from "../api/login/user.js";
-import { ElMessage } from "element-plus";
-export default {
-  data() {
-    return {
-   
-      labelPosition: "right",
-
-      loginForm: {
-        username: "",
-        password: "",
-      },
-
-      rules: {
-        username: [
-          // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
-          { required: true, message: "请输入用户名", trigger: "blur" },
-          {
-            min: 3,
-            max: 6,
-            message: "用户名长度在 3 到 6 个字符",
-            trigger: "blur",
-          },
-        ],
-        password: [
-          { required: true, message: "请输密码", trigger: "blur" },
-          {
-            min: 3,
-            max: 9,
-            message: "密码长度在 3 到 9 个字符",
-            trigger: "blur",
-          },
-        ],
-      },
-
-      isChecked: true, // 记住密码
-    };
-  },
-  mounted() {
-    this.getCookie();
-    this.loginFree();
-  },
-
-  methods: {
-    loginFree() {
-      this.login_api({
-        username: "admin",
-        password: "admin123",
-      });
-      sessionStorage.setItem("userInfo", "admin");
-    },
-    //登录数据对接
-    login_api(query = {}) {
-      api.login_api(query).then((requset) => {
-        if (requset.status === "SUCCESS") {
-     
-          localStorage.setItem('assToken',requset.data)
-
-          setTimeout(function(){
-
-            console.log('获取token')
-            console.log(localStorage.getItem('assToken'))
-
-          },1000)
-         
-
-          this.$router.push({ path: "/home" });
-        } else {
-          ElMessage.error(requset.msg);
-        }
-      });
-    },
-
-    submitForm() {
-      // ref 用在组件中,就表示当前组件  通过 $refs.xxx可以拿到所有ref的集合
-      // this.$refs.loginForm  //当前的表单对象
-      this.$refs.loginForm.validate((valid) => {
-        if (valid) {
-          //valid成功为ture,失败为false
-          //发送请求 ,调用登录接口
-
-          this.login_api({
-            name: this.loginForm.username,
-            password: this.loginForm.password,
-          });
-          sessionStorage.setItem("userInfo", this.loginForm.username);
-          // alert('submit!');
-        } else {
-          console.log("校验失败");
-          return false;
-        }
-      });
-
-      if (this.isChecked) {
-        // 记住密码
-        this.setCookie(this.loginForm.username, this.loginForm.password, 30); // 保存期限为30天
-      } else {
-        this.clearCookie(); // 清空 Cookie
-      }
-    },
-
-    // 设置Cookie
-    setCookie(username, password, exdays) {
-      // 用户名, 密码, 保存天数
-      let exdate = new Date(); // 获取时间
-      exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays);
-      // 字符串拼接cookie
-      window.document.cookie =
-        "userName=" + username + ";path=/;expires=" + exdate.toGMTString();
-      window.document.cookie =
-        "userPwd=" + password + ";path=/;expires=" + exdate.toGMTString();
-    },
-    // 读取Cookie
-    getCookie() {
-      // console.log(document.cookie);
-      if (document.cookie.length > 0) {
-        let arr = document.cookie.split("; "); // 这里显示的格式需要切割一下自己可输出看下
-        for (let i = 0; i < arr.length; i++) {
-          let arr2 = arr[i].split("="); // 再次切割
-          // 判断查找相对应的值
-          if (arr2[0] == "userName") {
-            this.loginForm.usernameText = arr2[1]; // 保存到保存数据的地方
-          } else if (arr2[0] == "userPwd") {
-            this.loginForm.passwordText = arr2[1];
-          }
-        }
-      }
-    },
-    // 清除Cookie
-    clearCookie() {
-      this.setCookie("", "", -1); // 修改2值都为空,天数为负1天就好了
-    },
-    // resetForm() {
-    //   //表单重置
-    //   this.$refs.loginForm.resetFields();
-    // },
-  },
-};
-</script>
-
-<style lang="scss">
-.bigTit {
-  position: absolute;
-  top: -90px;
-  left: 7px;
-  text-align: center;
-  width: 100%;
-  color: #00e1eb;
-  font-size: 0.625rem;
-
-  //   margin-left:-0.775rem;
-  font-family: PangMenZhengDao Regular, PangMenZhengDao Regular-Regular;
-  font-weight: bold;
-  letter-spacing: 17px;
-}
-.loginBox {
-  background-image: url(../assets/images/login-bg.png) !important;
-  background-repeat: no-repeat;
-  background-size: cover;
-  width: 100%;
-  height: 100vh;
-  min-width: 1024px;
-  min-height: 600px;
-  background-position: center center;
-  display: block;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: red;
-
-  .loginInnerBox {
-    position: relative;
-    width: 8.3875rem;
-    height: 5.8rem;
-    background-image: url(../assets/images/loginIn-bg.png) !important;
-    background-size: cover;
-    padding: 0.45rem 0.775rem;
-    // text-align: center;
-    .loginTitle {
-      font-size: 0.45rem;
-      color: #00e1eb;
-      text-align: center;
-      letter-spacing: 12px;
-    }
-    .oneSec {
-      text-align: left;
-      width: 6.85rem;
-      height: 0.7375rem;
-      line-height: 0.7375rem;
-      background: rgba(11, 161, 248, 0.4);
-      border: 1px solid #0ba1f8;
-      margin-top: 0.4875rem;
-      position: relative;
-      .icon {
-        position: absolute;
-        top: 0.2rem;
-        left: 0.2rem;
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      input {
-        background: transparent;
-        border: 0;
-        -webkit-appearance: none;
-        border-radius: 0;
-        // padding: 12px 5px 12px 0;
-        color: #fff;
-        height: 47px;
-        caret-color: #fff;
-        outline: none;
-        font-size: 0.325rem;
-        padding-left: 0.85rem;
-        line-height: 0.7375rem;
-        height: 0.7375rem;
-      }
-    }
-    .remember {
-      margin: 0.275rem 0;
-      .el-checkbox__inner {
-        width: 0.3rem;
-        height: 0.3rem;
-      }
-      .el-checkbox__label {
-        font-size: 0.325rem;
-        font-weight: 300;
-      }
-      .el-checkbox__inner::after {
-        top: 0.07rem;
-        width: 0.0625rem;
-        left: 0.1125rem;
-      }
-      .el-checkbox {
-        color: #fff;
-      }
-    }
-    .submitBox {
-      width: 6.85rem;
-      // height: 0.7375rem;
-      opacity: 1;
-      background: #00e1eb;
-      color: #001a2b;
-      font-size: 0.45rem;
-      text-align: center;
-      // line-height: 0.7375rem;
-      cursor: pointer;
-    }
-  }
-}
-</style>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików