Browse Source

loading样式调整

Bella 2 năm trước cách đây
mục cha
commit
fd9ce48233

+ 2 - 0
src/api/data/basicInfo.js

@@ -97,6 +97,7 @@ const getUnderlyingSystem = () => {
  */
 const addUnderlyingSystem = (picture) => {
   let params = new FormData();
+  picture && picture !== "" && params.append("picture", picture);
   return post(`/data/underlying_system`, params);
 };
 
@@ -105,4 +106,5 @@ export {
   getCompanyBasicInfo,
   editCompanyBasicInfo,
   getBuildingList,
+  getUnderlyingSystem,
 };

+ 0 - 0
src/api/security/systemMonitor.js


+ 8 - 0
src/api/service/service.js

@@ -0,0 +1,8 @@
+import { get, post, put } from "@/utils/requestMethod";
+
+/**
+ * 获取服务列表
+ */
+const getServiceList = () => {
+  return get(`/server/server_list`);
+};

+ 1 - 1
src/main.js

@@ -5,7 +5,7 @@ import store from "./store";
 import axios from "axios";
 
 Vue.config.productionTip = false;
-
+import "./style/global.css"
 import ElementUI from "element-ui";
 import "./style/element-variables.scss";
 import locale from "element-ui/lib/locale/lang/zh-CN";

+ 10 - 0
src/style/global.css

@@ -0,0 +1,10 @@
+/* el-loading样式 */
+/* 修改动画的大小  给文字加粗效果 */
+.el-loading-spinner {
+  font-size: 40px;
+  font-weight: bold;
+}
+/* 修改文字的大小 */
+.el-loading-mask .el-loading-spinner .el-loading-text {
+  font-size: 18px;
+}

+ 1 - 1
src/utils/request.js

@@ -6,7 +6,7 @@ import { MessageBox, Message } from 'element-ui'
 // 创建axios实例
 const service = axios.create({
   baseURL: '/api',
-  timeout: 6000 // 请求超时
+  timeout: 8000000 // 请求超时
 })
 
 // 请求拦截