高敬炎 преди 2 години
родител
ревизия
84a09f15de
променени са 2 файла, в които са добавени 305 реда и са изтрити 71 реда
  1. 294 0
      unimall-admin/src/router/route.json
  2. 11 71
      unimall-admin/src/views/aboutUsInfo/index.vue

+ 294 - 0
unimall-admin/src/router/route.json

@@ -0,0 +1,294 @@
+[
+
+    {
+        "redirect": "noredirect",
+        "path": "/sys",
+        "children": [{
+            "path": "admin",
+            "meta": {
+                "noCache": true,
+                "icon": "admin",
+                "perms": [
+                    "admin:admin:list",
+                    "admin:admin:create",
+                    "admin:admin:update",
+                    "admin:admin:delete"
+                ],
+                "title": "管理员"
+            },
+            "name": "admin",
+            "page": "/sys/admin"
+        }, {
+            "path": "role",
+            "meta": {
+                "noCache": true,
+                "icon": "role",
+                "perms": [
+                    "admin:role:list",
+                    "admin:role:create",
+                    "admin:role:delete",
+                    "admin:role:update",
+                    "admin:role:permissionList",
+                    "admin:permission:list"
+                ],
+                "title": "角色管理"
+            },
+            "name": "role",
+            "page": "/sys/role"
+        }],
+        "meta": {
+            "icon": "sys",
+            "title": "系统管理"
+        },
+        "name": "sysManage",
+        "alwaysShow": true
+    },
+    {
+        "redirect": "noredirect",
+        "name": "sysTools",
+        "path": "/tools",
+        "meta": {
+            "icon": "tools",
+            "title": "系统工具"
+        },
+        "alwaysShow": true,
+        "children": [{
+                "path": "api",
+                "name": "api",
+                "page": "/tools/api/api",
+                "meta": {
+                    "title": "API文档",
+                    "icon": "api",
+                    "noCache": true,
+                    "perms": [
+                        "tools:api:list"
+                    ]
+                }
+            },
+            {
+                "path": "gen",
+                "name": "gen",
+                "page": "/tools/gen",
+                "meta": {
+                    "title": "代码生成",
+                    "icon": "gen",
+                    "noCache": true,
+                    "perms": [
+                        "tools:gen:list",
+                        "tools:gen:create",
+                        "tools:gen:delete",
+                        "tools:gen:update"
+                    ]
+                }
+            },
+            {
+                "path": "gen/edit/:tableId(\\d+)",
+                "hidden": true,
+                "meta": {
+                    "noCache": true,
+                    "perms": [],
+                    "title": "配置项修改"
+                },
+                "name": "genEdit",
+                "page": "/tools/gen/editTable"
+            }
+
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "articleManagement",
+        "path": "/articleManagement",
+        "meta": {
+            "icon": "log",
+            "title": "文章管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "articleManagement",
+                "page": "/articleManagement",
+                "meta": {
+                    "title": "文章",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            },
+            {
+                "path": "artide/edit",
+                "hidden": true,
+                "meta": {
+                    "noCache": true,
+                    "perms": [],
+                    "title": "修改文章"
+                },
+                "name": "artideEdit",
+                "page": "/articleManagement/edit"
+            },
+            {
+                "path": "artide/add",
+                "hidden": true,
+                "name": "addArtideManagement",
+                "page": "/articleManagement/add",
+                "meta": {
+                    "title": "新增文章",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            } 
+    ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "messageManagement",
+        "path": "/messageManagement",
+        "meta": {
+            "icon": "log",
+            "title": "留言管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "messageManagement",
+                "page": "/messageManagement",
+                "meta": {
+                    "title": "留言列表",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            }
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "carouselManagement",
+        "path": "/carouselManagement",
+        "meta": {
+            "icon": "log",
+            "title": "轮播图管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "carouselManagement",
+                "page": "/carouselManagement",
+                "meta": {
+                    "title": "轮播图列表",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            }
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "imageManagement",
+        "path": "/imageManagement",
+        "meta": {
+            "icon": "log",
+            "title": "图片管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "imageManagement",
+                "page": "/imageManagement",
+                "meta": {
+                    "title": "图片列表",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            }
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "aboutUsInfo",
+        "path": "/aboutUsInfo",
+        "meta": {
+            "icon": "log",
+            "title": "关于我们管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "aboutUsInfo",
+                "page": "/aboutUsInfo",
+                "meta": {
+                    "title": "关于我们列表",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            }
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "name": "productManagement",
+        "path": "/productManagement",
+        "meta": {
+            "icon": "log",
+            "title": "产品管理"
+        },
+        "alwaysShow": true,
+        "children": [
+            {
+                "path": "list",
+                "name": "productManagement",
+                "page": "/productManagement",
+                "meta": {
+                    "title": "产品",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            },
+            {
+                "path": "product/edit",
+                "hidden": true,
+                "meta": {
+                    "noCache": true,
+                    "perms": [],
+                    "title": "编辑产品"
+                },
+                "name": "productEdit",
+                "page": "/productManagement/edit"
+            },
+            {
+                "path": "product/add",
+                "hidden": true,
+                "name": "productAdd",
+                "page": "/productManagement/add",
+                "meta": {
+                    "title": "新增产品",
+                    "icon": "logininfor",
+                    "noCache": true
+                }
+            } 
+        ]
+    },
+    {
+        "redirect": "noredirect",
+        "path": "/profile",
+        "hidden": true,
+        "children": [{
+            "path": "password",
+            "meta": {
+                "noCache": true,
+                "title": "修改密码"
+            },
+            "name": "password",
+            "page": "/profile/password"
+        }],
+        "alwaysShow": true
+    },
+    {
+        "redirect": "/404",
+        "path": "*",
+        "hidden": true
+    }
+]

+ 11 - 71
unimall-admin/src/views/aboutUsInfo/index.vue

@@ -10,72 +10,13 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="副标题" prop="deputyTitle">
-        <el-input
-          v-model="queryParams.deputyTitle"
-          placeholder="请输入副标题"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="分类" prop="classify">
-        <el-input
-          v-model="queryParams.classify"
-          placeholder="请输入分类"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="内容" prop="content">
-        <el-input
-          v-model="queryParams.content"
-          placeholder="请输入内容"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="语言" prop="language">
-        <el-input
-          v-model="queryParams.language"
-          placeholder="请输入语言"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-        <el-form-item label="状态" prop="status">
-        <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
-          <el-option label="请选择字典生成" value="" />
-        </el-select>
-      </el-form-item>
-      <el-form-item label="" prop="gmtCreate">
-        <el-date-picker clearable size="small" style="width: 200px"
-          v-model="queryParams.gmtCreate"
-          type="date"
-          value-format="yyyy-MM-dd"
-          placeholder="选择">
-        </el-date-picker>
-      </el-form-item>
-      <el-form-item label="" prop="gmtUpdate">
-        <el-date-picker clearable size="small" style="width: 200px"
-          v-model="queryParams.gmtUpdate"
-          type="date"
-          value-format="yyyy-MM-dd"
-          placeholder="选择">
-        </el-date-picker>
-      </el-form-item>
-      <el-form-item label="删除标识" prop="deleteFlag">
-        <el-input
-          v-model="queryParams.deleteFlag"
-          placeholder="请输入删除标识"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
+
+      <el-form-item label="语言" prop="classification">
+            <el-select v-model="queryParams.language" placeholder="请选择语言" clearable size="small">
+              <el-option label="中文" value="中文" />
+              <el-option label="English" value="English" />
+            </el-select>
+          </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -112,7 +53,7 @@
           v-permission="['cloud:aboutUsInfo:remove']"
         >删除</el-button>
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="warning"
           icon="el-icon-download"
@@ -120,7 +61,7 @@
           @click="handleExport"
           v-permission="['cloud:aboutUsInfo:export']"
         >导出</el-button>
-      </el-col>
+      </el-col> -->
     </el-row>
 
     <el-table v-loading="loading" :data="aboutUsInfoList" @selection-change="handleSelectionChange">
@@ -134,8 +75,7 @@
       <el-table-column label="内容" align="center" prop="content" />
       <el-table-column label="详情" align="center" prop="details" />
       <el-table-column label="语言" align="center" prop="language" />
-      <el-table-column label="状态" align="center" prop="status" />
-      <el-table-column label="" align="center" prop="gmtCreate" width="180">
+      <el-table-column label="创建时间" align="center" prop="gmtCreate" width="180">
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.gmtCreate) }}</span>
         </template>
@@ -145,7 +85,7 @@
           <span>{{ parseTime(scope.row.gmtUpdate) }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="删除标识" align="center" prop="deleteFlag" />
+      
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button