asd123a20 3 rokov pred
rodič
commit
e70f79ea81

+ 1 - 1
service-media/app/model/leave.js

@@ -9,7 +9,7 @@ const SchemaDefine = {
   msg: { type: String, required: true },
   // 父级id
   parentId: { type: String, required: true },
-  // 状态 0=待审核 1=已发布
+  // 状态 0=待审核 1=已发布 2=已驳回
   status: { type: String, required: true },
 };
 const schema = new Schema(SchemaDefine);

+ 1 - 1
service-media/app/service/leave.js

@@ -5,7 +5,7 @@ const Service = require('egg').Service;
 class LeaveService extends Service {
   constructor(ctx) {
     super(ctx);
-    this.model = this.ctx.model.Discuss;
+    this.model = this.ctx.model.Leave;
   }
   async create({ source, target, msg, parentId, status }) {
     assert(source, 'source不存在');

+ 49 - 13
service-naf/config/menu.js

@@ -130,13 +130,22 @@ const data = [
     parentCode: 'journalHome',
     icon: 'el-icon-star-on',
   },
+  // 商城商品
+  {
+    module: 'marketgoods',
+    path: '',
+    title: '商城商品',
+    code: 'marketgoods',
+    parentCode: null,
+    icon: 'el-icon-star-on',
+  },
   // 商品管理
   {
     module: 'goods',
     path: '/goods/home',
     title: '货品管理',
     code: 'goodsHome',
-    parentCode: null,
+    parentCode: 'marketgoods',
     icon: 'el-icon-star-on',
   },
   // 商城管理
@@ -145,6 +154,15 @@ const data = [
     path: '/market/home',
     title: '商品管理',
     code: 'marketHome',
+    parentCode: 'marketgoods',
+    icon: 'el-icon-star-on',
+  },
+  // 用户会员
+  {
+    module: 'uservip',
+    path: '',
+    title: '用户会员',
+    code: 'uservip',
     parentCode: null,
     icon: 'el-icon-star-on',
   },
@@ -154,7 +172,16 @@ const data = [
     path: '/clientUser/home',
     title: '用户管理',
     code: 'clientUserHome',
-    parentCode: null,
+    parentCode: 'uservip',
+    icon: 'el-icon-star-on',
+  },
+  // vip
+  {
+    module: 'clientVip',
+    path: '/clientVip/home',
+    title: '会员管理',
+    code: 'clientVipHome',
+    parentCode: 'uservip',
     icon: 'el-icon-star-on',
   },
   // 机构管理
@@ -163,7 +190,7 @@ const data = [
     path: '/org/home',
     title: '机构管理',
     code: 'orgHome',
-    parentCode: null,
+    parentCode: 'uservip',
     icon: 'el-icon-star-on',
   },
   // 活动管理
@@ -184,15 +211,6 @@ const data = [
     parentCode: null,
     icon: 'el-icon-star-on',
   },
-  // vip
-  {
-    module: 'clientVip',
-    path: '/clientVip/home',
-    title: '会员管理',
-    code: 'clientVipHome',
-    parentCode: null,
-    icon: 'el-icon-star-on',
-  },
   // 题库管理
   {
     module: 'problem',
@@ -229,13 +247,31 @@ const data = [
     parentCode: null,
     icon: 'el-icon-star-on',
   },
+  // 留言评论
+  {
+    module: 'media',
+    path: '',
+    title: '留言评论',
+    code: 'media',
+    parentCode: null,
+    icon: 'el-icon-star-on',
+  },
   // 评论管理
   {
     module: 'discuss',
     path: '/discuss/home',
     title: '评论管理',
     code: 'discussHome',
-    parentCode: null,
+    parentCode: 'media',
+    icon: 'el-icon-star-on',
+  },
+  // 留言管理
+  {
+    module: 'leave',
+    path: '/leave/home',
+    title: '留言管理',
+    code: 'leaveHome',
+    parentCode: 'media',
     icon: 'el-icon-star-on',
   },
 ];