yjj hace 5 años
padre
commit
9d3fa088b1
Se han modificado 5 ficheros con 3867 adiciones y 160 borrados
  1. 1 1
      public/index.html
  2. 9 1
      src/router/routes.js
  3. 13 0
      src/views/Home/mencCofig.js
  4. 100 0
      src/views/systemConfig/ConfigManage.vue
  5. 3744 158
      yarn.lock

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title>admincraft-module</title>
+    <title>慧牧科技——云服务平台</title>
   </head>
   <body>
     <noscript>

+ 9 - 1
src/router/routes.js

@@ -12,7 +12,10 @@ import MessageServicMer from '../views/messageManagement/MessageServicMer.vue'
 import MessageTemplate from '../views/messageManagement/MessageTemplate.vue'
 /* 树目录结构 */
 import TreeManagement from '../views/treeStructure/TreeManagement.vue'
-
+/**
+ * 系统配置
+ */
+import sysConfigManage from '../views/systemConfig/ConfigManage'
 
 /* 模板 */
 import Aa from '../views/template/Aa.vue'
@@ -83,6 +86,11 @@ export default [
 				name: 'treeManagement',
 				component: TreeManagement
 			},
+			{
+				path: '/sysConfigManage',
+				name: 'sysConfigManage',
+				component: sysConfigManage
+			},
 			// 模板
 			{
 				path: '/aa',

+ 13 - 0
src/views/Home/mencCofig.js

@@ -2,6 +2,19 @@
 export const menuData = [
     // 有子菜单 字菜单不分组的
     {
+        oneMenuName: "系统配置",
+        iconClassName: "el-icon-monitor",
+        index: '0',
+        disabled: false, // 是否禁用
+        childList: [
+            {
+                optionName: '配置管理',
+                index: '0-0',
+                routerName: "sysConfigManage"
+            }
+        ]
+    },
+    {
         oneMenuName: "设备管理",
         iconClassName: "el-icon-monitor",
         index: '1',

+ 100 - 0
src/views/systemConfig/ConfigManage.vue

@@ -0,0 +1,100 @@
+<template>
+    <div>
+        <el-row style="border-bottom: 2px solid #eee;padding:8px;">
+            <el-col :span="10">工具</el-col>
+            <el-col :span="10"></el-col>
+            <el-col :span="4">
+                <el-button type="primary" @click="handleNew">新建</el-button>
+            </el-col>
+        </el-row>
+        <el-row style="margin-top:10px;">
+            <el-table :data="configList">
+                <el-table-column
+                        prop="id"
+                        label="#"
+                        width="48"
+                ></el-table-column>
+                <el-table-column
+                        prop="name"
+                        label="名称"
+                        width="108"
+                ></el-table-column>
+                <el-table-column
+                        prop="code"
+                        label="编码"
+                        width="108"
+                ></el-table-column>
+                <el-table-column
+                        label="配置"
+                        width="180"
+                >
+                    <template slot-scope="scope">
+                        <el-button @click="handleShow(scope.row)" size="small" type="text">查看</el-button>
+                    </template>
+                </el-table-column>
+                <el-table-column
+                        prop="created"
+                        label="创建时间"
+                        width="180"
+                ></el-table-column>
+            </el-table>
+        </el-row>
+        <el-dialog title="修改/添加 配置" :visible.sync="dialogVisible" width="80%">
+            <el-form label-width="80px;" :model="formData">
+                <el-form-item label="名称:">
+                    <el-input v-model="formData.name"></el-input>
+                </el-form-item>
+                <el-form-item label="编码:">
+                    <el-input v-model="formData.code"></el-input>
+                </el-form-item>
+                <el-form-item label="配置:">
+                    
+                </el-form-item>
+            </el-form>
+            <span slot="footer" class="dialog-footer">
+                <el-button @click="dialogVisible = false">取 消</el-button>
+                <el-button type="primary" @click="handleSubmit">确 定</el-button>
+            </span>
+        </el-dialog>
+    </div>
+</template>
+
+<script>
+    export default {
+        name: "ConfigManage",
+        data(){
+            return {
+                configList:null,
+                dialogVisible:false,
+                formData:{
+                    name:'',
+                    code:'',
+                    config:{},
+
+                }
+            }
+        },
+        methods:{
+            handleShow(row){
+                console.log(row)
+            },
+            handleNew(){
+
+            },
+            handleSubmit(){
+
+            },
+
+
+            clearForm(){
+                this.formData.name=""
+                this.formData.code =""
+                this.formData.config={}
+            }
+        }
+    }
+</script>
+
+<style scoped>
+
+</style>

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 3744 - 158
yarn.lock