Alex vor 4 Jahren
Ursprung
Commit
72972b4794

BIN
src/assets/image/avataaars.jpg


BIN
src/assets/image/default.jpg


+ 13 - 13
src/router/index.js

@@ -160,19 +160,19 @@ export const constantRoutes = [{
       }
     }]
   },
-  {
-    path: '/my',
-    component: Layout,
-    hidden: true,
-    children: [{
-      path: 'publish',
-      name: 'publish',
-      component: (resolve) => require(['@/views/system/appUser/detail/publish'], resolve),
-      meta: {
-        title: '个人发表'
-      }
-    }, ]
-  },
+  // {
+  //   path: '/my',
+  //   component: Layout,
+  //   hidden: true,
+  //   children: [{
+  //     path: 'publish',
+  //     name: 'publish',
+  //     component: (resolve) => require(['@/views/system/appUser/detail/publish'], resolve),
+  //     meta: {
+  //       title: '个人发表'
+  //     }
+  //   }, ]
+  // },
   {
     path: '/news/detail/:id(\\d+)',
     component: (resolve) => require(['@/views/system/news/detail'], resolve),

+ 2 - 2
src/views/system/appUser/index.vue

@@ -67,7 +67,7 @@
       <el-table-column label="昵称" align="center" prop="nickName" />
       <el-table-column label="头像" align="center" >
         <template scope="scope">
-            <img width="40" height="40" slot="reference" :src="baseUrl + scope.row.avatar" />
+            <img width="40" height="40" slot="reference" :src="scope.row.avatar == null ? require('@/assets/image/avataaars.jpg') : baseUrl + scope.row.avatar" />
         </template>
       </el-table-column>
       <el-table-column
@@ -536,7 +536,7 @@ export default {
 
     myPublish(row) {
       this.$router.push({ 
-        path:'/my/publish',
+        path:'/user/publish',
         query: {
             uid: row.userId
         }

+ 6 - 6
src/views/system/personalModel/index.vue

@@ -28,7 +28,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
-          v-hasPermi="['system:model:add']"
+          v-hasPermi="['system:personal:model:add']"
         >新增</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -38,7 +38,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['system:model:edit']"
+          v-hasPermi="['system:personal:model:edit']"
         >修改</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -48,7 +48,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['system:model:remove']"
+          v-hasPermi="['system:personal:model:remove']"
         >删除</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -57,7 +57,7 @@
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
-          v-hasPermi="['system:model:export']"
+          v-hasPermi="['system:personal:model:export']"
         >导出</el-button>
       </el-col>
 	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -76,14 +76,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['system:model:edit']"
+            v-hasPermi="['system:personal:model:edit']"
           >修改</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['system:model:remove']"
+            v-hasPermi="['system:personal:model:remove']"
           >删除</el-button>
         </template>
       </el-table-column>

+ 6 - 6
src/views/system/templatePage/index.vue

@@ -37,7 +37,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
-          v-hasPermi="['system:templatePage:add']"
+          v-hasPermi="['system:personal:template:add']"
         >新增</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -47,7 +47,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['system:templatePage:edit']"
+          v-hasPermi="['system:personal:template:edit']"
         >修改</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -57,7 +57,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['system:templatePage:remove']"
+          v-hasPermi="['system:personal:template:remove']"
         >删除</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -66,7 +66,7 @@
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
-          v-hasPermi="['system:templatePage:export']"
+          v-hasPermi="['system:personal:template:export']"
         >导出</el-button>
       </el-col>
 	    <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -95,14 +95,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['system:templatePage:edit']"
+            v-hasPermi="['system:personal:template:edit']"
           >修改</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['system:templatePage:remove']"
+            v-hasPermi="['system:personal:template:remove']"
           >删除</el-button>
         </template>
       </el-table-column>