Преглед на файлове

:tada: 调整表格样式

smallchill преди 6 години
родител
ревизия
af7ef304f8

+ 13 - 12
src/main.js

@@ -6,12 +6,12 @@ import router from './router/router';
 import './permission'; // 权限
 import './error'; // 日志
 import store from './store';
-import { loadStyle } from './util/util'
+import {loadStyle} from './util/util'
 import * as urls from '@/config/env';
 import Element from 'element-ui';
 import {
-    iconfontUrl,
-    iconfontVersion
+  iconfontUrl,
+  iconfontVersion
 } from '@/config/env';
 import i18n from './lang' // Internationalization
 import './styles/common.scss';
@@ -21,28 +21,29 @@ import basicContainer from './components/basic-container/main'
 Vue.use(router)
 Vue.use(VueAxios, axios)
 Vue.use(Element, {
-    i18n: (key, value) => i18n.t(key, value)
+  i18n: (key, value) => i18n.t(key, value)
 })
 Vue.use(window.AVUE, {
-    i18n: (key, value) => i18n.t(key, value)
+  size: 'small',
+  i18n: (key, value) => i18n.t(key, value)
 })
 //注册全局容器
 Vue.component('basicContainer', basicContainer)
 // 加载相关url地址
 Object.keys(urls).forEach(key => {
-    Vue.prototype[key] = urls[key];
+  Vue.prototype[key] = urls[key];
 })
 
 // 动态加载阿里云字体库
 iconfontVersion.forEach(ele => {
-    loadStyle(iconfontUrl.replace('$key', ele));
+  loadStyle(iconfontUrl.replace('$key', ele));
 })
 
 Vue.config.productionTip = false;
 
 new Vue({
-    router,
-    store,
-    i18n,
-    render: h => h(App)
-}).$mount('#app')
+  router,
+  store,
+  i18n,
+  render: h => h(App)
+}).$mount('#app')

+ 2 - 0
src/views/authority/apiscope.vue

@@ -101,6 +101,8 @@
         scopeMenuName: "菜单",
         menu: true,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           dialogWidth: "60%",
           tree: true,

+ 2 - 0
src/views/authority/datascope.vue

@@ -101,6 +101,8 @@
         scopeMenuName: "菜单",
         menu: true,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           dialogWidth: "60%",
           tree: true,

+ 2 - 0
src/views/authority/role.vue

@@ -103,6 +103,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           tree: true,
           border: true,

+ 2 - 0
src/views/desk/notice.vue

@@ -50,6 +50,8 @@
         },
         selectionList: [],
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/flow/follow.vue

@@ -61,6 +61,8 @@
         followBox: false,
         deleteReason: '',
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/flow/manager.vue

@@ -135,6 +135,8 @@
           label: '挂起'
         }],
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/flow/model.vue

@@ -138,6 +138,8 @@
         category: [],
         categoryValue: '',
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 8 - 3
src/views/monitor/log/api.vue

@@ -34,6 +34,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,
@@ -59,7 +61,8 @@
             },
             {
               label: "软件环境",
-              prop: "env"
+              prop: "env",
+              width:'80',
             },
             {
               label: "日志名",
@@ -67,7 +70,8 @@
             },
             {
               label: "请求方法",
-              prop: "method"
+              prop: "method",
+              width:'80'
             },
             {
               label: "请求接口",
@@ -75,7 +79,8 @@
             },
             {
               label: "日志时间",
-              prop: "createTime"
+              prop: "createTime",
+              width:'160'
             },
             {
               label: "用户代理",

+ 14 - 10
src/views/monitor/log/error.vue

@@ -34,6 +34,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,
@@ -46,28 +48,29 @@
             {
               label: "服务id",
               prop: "serviceId",
-              search: true
+              search: true,
+              width:'120'
             },
             {
               label: "服务host",
               prop: "serverHost",
-              search: true
+              search: true,
+              width:'120'
             },
             {
               label: "服务ip",
-              prop: "serverIp"
+              prop: "serverIp",
+              width:'160'
             },
             {
               label: "软件环境",
-              prop: "env"
-            },
-            {
-              label: "日志名",
-              prop: "title"
+              prop: "env",
+              width:'80'
             },
             {
               label: "请求方法",
-              prop: "method"
+              prop: "method",
+              width:'80'
             },
             {
               label: "请求接口",
@@ -75,7 +78,8 @@
             },
             {
               label: "日志时间",
-              prop: "createTime"
+              prop: "createTime",
+              width:'160'
             },
             {
               label: "用户代理",

+ 6 - 2
src/views/monitor/log/usual.vue

@@ -34,6 +34,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,
@@ -59,7 +61,8 @@
             },
             {
               label: "软件环境",
-              prop: "env"
+              prop: "env",
+              width:'80'
             },
             {
               label: "日志级别",
@@ -75,7 +78,8 @@
             },
             {
               label: "日志时间",
-              prop: "logData"
+              prop: "logData",
+              width:'160'
             },
             {
               label: "用户代理",

+ 2 - 0
src/views/resource/oss.vue

@@ -64,6 +64,8 @@
         },
         selectionList: [],
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/system/client.vue

@@ -46,6 +46,8 @@
         },
         selectionList: [],
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/system/dept.vue

@@ -58,6 +58,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           tree: true,
           border: true,

+ 2 - 0
src/views/system/dict.vue

@@ -53,6 +53,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           tree: true,
           border: true,

+ 2 - 0
src/views/system/menu.vue

@@ -53,6 +53,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           dialogWidth: "60%",
           tree: true,

+ 2 - 0
src/views/system/param.vue

@@ -46,6 +46,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/system/tenant.vue

@@ -46,6 +46,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/system/topmenu.vue

@@ -85,6 +85,8 @@
         menuGrantList: [],
         menuTreeObj: [],
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/system/user.vue

@@ -92,6 +92,8 @@
           deptTree: [],
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/tool/code.vue

@@ -53,6 +53,8 @@
           total: 0
         },
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/work/claim.vue

@@ -85,6 +85,8 @@
         flowUrl: '',
         workBox: false,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/work/done.vue

@@ -78,6 +78,8 @@
         flowUrl: '',
         workBox: false,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/work/send.vue

@@ -82,6 +82,8 @@
         flowUrl: '',
         workBox: false,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/work/start.vue

@@ -86,6 +86,8 @@
         flowUrl: '',
         workBox: false,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 2 - 0
src/views/work/todo.vue

@@ -85,6 +85,8 @@
         flowUrl: '',
         workBox: false,
         option: {
+          height:'auto',
+          calcHeight:'350',
           tip: false,
           border: true,
           index: true,

+ 4 - 1
vue.config.js

@@ -25,7 +25,10 @@ module.exports = {
     port: 1888,
     proxy: {
       '/api': {
-        target: 'https://saber.bladex.vip/api',
+        //本地服务接口地址
+        target: 'http://localhost',
+        //远程演示服务地址
+        //target: 'https://saber.bladex.vip/api',
         ws: true,
         pathRewrite: {
           '^/api': '/'