Browse Source

修改表单样式 切换成抽屉

asd123a20 2 years ago
parent
commit
fc2d74e9e6

+ 1 - 1
admin-code/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-content/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-content/src/views/home.vue

@@ -274,7 +274,7 @@ export default {
     }
   }
 }
-.el-dialog {
+.el-dialog, .el-drawer {
   .avatar-uploader-icon {
     font-size: 28px;
     color: #8c939d;

+ 1 - 1
admin-frame/.env

@@ -9,6 +9,6 @@ VUE_APP_HOME_TITLE=社会科学联合会信息管理系统
 # 首页描述
 VUE_APP_HOME_DESCRIDE=基于内容管理、系统管理、等功能的优秀网站管理系统。
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer
 # 文件上传地址 (app = 各模块自行配置名称)
 VUE_APP_FILE_UPLOAD=/api/files/frame/upload

+ 1 - 1
admin-frame/src/components/dialogAndDrawer.vue

@@ -20,7 +20,7 @@
 
 <script>
 const config = {
-  window: process.env.VUE_APP_WINDOW == 'dialog'
+  window: eval(process.env.VUE_APP_WINDOW == 'dialog')
 };
 export default {
   props: {

+ 1 - 1
admin-frame/src/components/filterList/index.vue

@@ -69,7 +69,7 @@ export default {
       type: Object,
       default: () => ({
         size: 'mini',
-        width: 150
+        width: 250
       })
     }
   },

+ 9 - 1
admin-frame/src/components/filterList/table.vue

@@ -4,6 +4,7 @@
     size="mini"
     :border="true"
     :data="listFields"
+    stripe
     style="width: 100%"
     @selection-change="handleSelectionChange"
     @row-dblclick="dblclick"
@@ -120,7 +121,8 @@ export default {
   ::v-deep .labelName {
     font-size: 15px;
     font-weight: 900;
-    color: #666;
+    color: #0036c9;
+    text-align: center;
   }
 }
 .text {
@@ -130,4 +132,10 @@ export default {
   white-space: nowrap;
   border: none;
 }
+.el-icon-delete {
+  color: #fc0000;
+}
+.el-icon-edit {
+  color: #02c002;
+}
 </style>

+ 7 - 1
admin-frame/src/components/menu/index.vue

@@ -32,7 +32,13 @@ export default {
   },
   computed: {
     menuData() {
-      return this.$tree(this.menuList) ?? [];
+      const tree = this.$tree(this.menuList) ?? [];
+      const item = tree.find(e => e.title == '系统管理');
+      if (item) {
+        tree.splice(1, 1);
+        tree.push(item);
+      }
+      return tree;
     }
   },
   data() {

+ 1 - 1
admin-img-news/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-log/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-menu/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-page/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-role-menu/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-role/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-toconfig/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer

+ 1 - 1
admin-user/.env

@@ -1,2 +1,2 @@
 # 窗口使用弹出还是抽屉 (dialog And drawer)
-VUE_APP_WINDOW=dialog
+VUE_APP_WINDOW=drawer