Jelajahi Sumber

新增菜单图标,修改菜单表单

huangfh 2 tahun lalu
induk
melakukan
0512bca6cf

+ 22 - 0
src/config/iconList.js

@@ -114,5 +114,27 @@ export default [
       "iconfont icon-iframe",
       "iconfont icon-huanyingye",
     ]
+  },
+  {
+    label: "客户端图标",
+    list: [
+      '_icon-edit',
+      'hcicon-ditusousuo',
+      'hcicon-wj-rz',
+      'hcicon-rizhichaxun',
+      'hcicon-zuoyejindu',
+      'hcicon-baobiaofenxigongchengliangjindu',
+      'hcicon-luxiang1',
+      'hcicon-zu304',
+      'hcicon-jiancezhan',
+      'hcicon-bezier',
+      'hcicon-yinzhang',
+      'hcicon-renwushezhi',
+      'hcicon-guanliyuan',
+      'cicon-mail-o',
+      'hcicon-shujutongji',
+      'hcicon-shigong',
+      'hcicon-tianqi'
+    ]
   }
 ]

+ 1 - 1
src/main.js

@@ -28,7 +28,7 @@ import crudCommon from '@/mixins/crud';
 import tenantPackage from './views/system/tenantpackage';
 
 //iconfont
-import "@/styles/font/font_3360398_a0wxj1qt51u.css"
+import "@/styles/icon/index.scss"
 
 // 注册全局crud驱动
 window.$crudCommon = crudCommon;

File diff ditekan karena terlalu besar
+ 2 - 0
src/styles/icon/_cicon.scss


File diff ditekan karena terlalu besar
+ 2 - 0
src/styles/icon/_hcicon.scss


File diff ditekan karena terlalu besar
+ 2 - 0
src/styles/icon/_icon.scss


File diff ditekan karena terlalu besar
+ 2 - 0
src/styles/icon/_lib.scss


+ 4 - 0
src/styles/icon/index.scss

@@ -0,0 +1,4 @@
+@import 'icon';
+@import 'lib';
+@import 'cicon';
+@import "hcicon";

+ 4 - 17
src/views/system/menu.vue

@@ -141,14 +141,7 @@
               prop: "source",
               type: "icon",
               slot: true,
-              iconList: iconList,
-              rules: [
-                {
-                  required: true,
-                  message: "请输入菜单图标",
-                  trigger: "click"
-                }
-              ]
+              iconList: iconList
             },
             {
               label: "菜单编号",
@@ -175,7 +168,7 @@
                   value: 2
                 }
               ],
-              hide: true,
+              value: 1,
               rules: [
                 {
                   required: true,
@@ -225,6 +218,7 @@
               type: "number",
               row: true,
               span: 24,
+              value: 1,
               rules: [
                 {
                   required: true,
@@ -246,14 +240,7 @@
               prop: "textInfo",
               type: "textarea",
               span: 24,
-              minRows: 2,
-              rules: [
-                {
-                  required: true,
-                  message: "请输入菜单排序",
-                  trigger: "blur"
-                }
-              ]
+              minRows: 2
             }
           ]
         },

+ 13 - 0
src/views/testView/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/views/testView/xxxx/abcd.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "abcd"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 1 - 1
vue.config.js

@@ -26,7 +26,7 @@ module.exports = {
     proxy: {
       '/api': {
         //本地服务接口地址
-        target: 'http://localhost',
+        target: 'http://192.168.31.96',
         //远程演示服务地址,可用于直接启动项目
         //target: 'https://saber.bladex.vip/api',
         ws: true,

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini