diff --git a/README.md b/README.md index ec9055791d4397f497acdce991fd384f57c08226..806d95ee5b99dfd91e1efdba8661055d68f344e5 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ _商品素材取自小米商城_ - 创建数据库:linjiashop ```sql CREATE DATABASE IF NOT EXISTS linjiashop DEFAULT CHARSET utf8 COLLATE utf8_general_ci; - CREATE USER 'linjiashop'@'%' IDENTIFIED BY 'linjiashop191028'; + CREATE USER 'linjiashop'@'%' IDENTIFIED BY 'linjiaSHOP@191028'; GRANT ALL privileges ON linjiashop.* TO 'linjiashop'@'%'; flush privileges; ``` @@ -149,11 +149,9 @@ _商品素材取自小米商城_ - 启动微信开发工具导入linjiashop-wxapp/dist/wx 目录即可预览小程序 ## 技术交流 -- 关注公众号:嗨客帝国,点击对应的项目菜单进群交流。 +- 关注公众号:嗨客帝国,点击对应的项目菜单进群交流。 ![公众号二维码](doc/guide/img/haike.jpg) -- 论坛提问: -[http://bbs.enilu.cn](http://bbs.enilu.cn) ## 在线文档 - 项目文档:[http://microapp.gitee.io/linjiashop](http://microapp.gitee.io/linjiashop/) - 该项目克隆并扩展自[web-flash](https://github.com/enilu/web-flash),所以开发的时候多看看web-flash的[在线文档](http://enilu.gitee.io/web-flash) diff --git a/doc/.vuepress/config.js b/doc/.vuepress/config.js index df92b815ba941406a0e0e00e2a92fbb5a8810405..2c61eb14206f6b0e7ee556cf251ea43c4d62316c 100644 --- a/doc/.vuepress/config.js +++ b/doc/.vuepress/config.js @@ -3,8 +3,8 @@ module.exports = { description: '使用邻家小铺搭建自己的全平台商城系统', base: '/linjiashop/', head: [ - ['link', { rel: 'shortcut icon', type: "image/x-icon", href: './favicon.ico' }], - ['script',{},` + ['link', {rel: 'shortcut icon', type: "image/x-icon", href: './favicon.ico'}], + ['script', {}, ` var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); @@ -16,7 +16,7 @@ module.exports = { ] ], evergreen: true, - editLinkText:'在 GitHub 上编辑此页', + editLinkText: '在 GitHub 上编辑此页', port: 8090, ga: 'UA-71886989-13', themeConfig: { @@ -26,97 +26,102 @@ module.exports = { editLinkText: '编辑此页面!', nav: [ {text: '指南', link: '/guide/base/preface'}, - {text: '生态系统', - items:[ - {text:"项目",items:[ - {text:'linjiashop-flutter(app)',link:'/ecosystem/app'}, - {text:'linjiashop-uniapp',link:'/ecosystem/uniapp'}, - {text:'web-flash',link:'http://enilu.gitee.io/web-flash'}, - {text:'code-generator',link:'http://enilu.gitee.io/web-flash/ecosystem/code-generator.html'}, - {text:'database-doc-generator',link:'http://enilu.gitee.io/web-flash/ecosystem/database-doc-generator.html'}, - {text:'material-admin',link:'https://enilu.gitee.io/material-admin'} + { + text: '生态系统', + items: [ + { + text: "项目", items: [ + {text: 'linjiashop-flutter(app)', link: '/ecosystem/app'}, + {text: 'linjiashop-uniapp', link: '/ecosystem/uniapp'}, + {text: 'web-flash', link: 'http://enilu.gitee.io/web-flash'}, + {text: 'code-generator', link: 'http://enilu.gitee.io/web-flash/ecosystem/code-generator.html'}, + {text: 'database-doc-generator', link: 'http://enilu.gitee.io/web-flash/ecosystem/database-doc-generator.html'}, + {text: 'material-admin', link: 'https://enilu.gitee.io/material-admin'} + ] + }, + { + text: '帮助', items: [ + {text: '在线资源', link: '/guide/base/resource'}, + {text: '问答社区', link: '/guide/other/xiaomiquan'}, + {text: '视频教程', link: '/guide/other/video'}, + {text: 'QQ群(254059156)', link: 'https://jq.qq.com/?_wv=1027&k=5rEmcb6'}, + {text: '作者blog', link: 'http://blog.enilu.cn'}, + {text: 'FAQ', link: '/guide/other/faq'}, + {text: 'Change Log', link: '/guide/other/changelog'} ] }, - {text:'帮助',items:[ - {text: '在线资源',link:'/guide/base/resource'}, - {text:'问答社区',link:'/guide/other/xiaomiquan'}, - {text:'视频教程',link:'/guide/other/video'}, - {text:'QQ群(254059156)',link:'https://jq.qq.com/?_wv=1027&k=5rEmcb6'}, - {text:'作者blog',link:'http://blog.enilu.cn'}, - {text:'FAQ',link:'/guide/other/faq'}, - {text:'Change Log',link:'/guide/other/changelog'} - ]}, ] }, {text: '上线实战', link: '/online/summary'}, - {text: '捐赠',link:'/donate'}, + {text: '捐赠', link: '/donate'}, {text: 'Gitee', link: 'https://gitee.com/microapp/linjiashop'} ], sidebar: { - '/guide/':[ - { - title: '准备', - collapsable: false, - children: [ - '/guide/base/preface', - '/guide/base/jdkAndMaven', - '/guide/base/modules' - ] - }, - { - title: '快速开始', - collapsable: false, - children: [ - '/guide/quickstart/quickstart', - '/guide/quickstart/clone', - '/guide/quickstart/initDb', - '/guide/quickstart/config', - '/guide/quickstart/startup' - ] - }, - { - title: '二次开发', - collapsable: false, - children: [ - '/guide/develop/develop', - '/guide/develop/api', - '/guide/develop/banner', - '/guide/develop/attribute', - '/guide/develop/wechat' - ] - }, { - title: '其他', - collapsable: false, - children:[ - '/guide/other/faq', - '/guide/other/changelog' - ] - } - ],'/online/':[ - { - title: '上线实战', - collapsable: false, - children: [ - '/online/summary', - '/online/day01', - '/online/day02', - '/online/day04', - '/online/day05', - '/online/day06' - ] - } + '/guide/': [ + { + title: '准备', + collapsable: false, + children: [ + '/guide/base/preface', + '/guide/base/jdkAndMaven', + '/guide/base/modules' + ] + }, + { + title: '快速开始', + collapsable: false, + children: [ + '/guide/quickstart/quickstart', + '/guide/quickstart/clone', + '/guide/quickstart/initDb', + '/guide/quickstart/config', + '/guide/quickstart/startup' + ] + }, + { + title: '二次开发', + collapsable: false, + children: [ + '/guide/develop/develop', + '/guide/develop/api', + '/guide/develop/banner', + '/guide/develop/attribute', + '/guide/develop/wechat', + '/guide/develop/express' + ] + }, { + title: '其他', + collapsable: false, + children: [ + '/guide/other/faq', + '/guide/other/changelog' + ] + } + ], '/online/': [ + { + title: '上线实战', + collapsable: false, + children: [ + '/online/summary', + '/online/day01', + '/online/day02', + '/online/day04', + '/online/day05', + '/online/day06' + ] + } - ],'/ecosystem/':[ - { - title:'生态系统', - collapsable: false, - children: [ - '/ecosystem/app', - '/ecosystem/uniapp' - ] - }] - } + ], '/ecosystem/': [ + { + title: '生态系统', + collapsable: false, + children: [ + '/ecosystem/app', + '/ecosystem/uniapp' + ] + }] + } } } diff --git a/doc/guide/base/preface.md b/doc/guide/base/preface.md index 92c8234c2336af3e70f682133f33d55e878d19be..80c055ce3285bb6309b429996efc956080060630 100644 --- a/doc/guide/base/preface.md +++ b/doc/guide/base/preface.md @@ -114,7 +114,7 @@ linjiashop包含了后台管理功能和手机端商城业务功能 - 创建数据库:linjiashop ```sql CREATE DATABASE IF NOT EXISTS linjiashop DEFAULT CHARSET utf8 COLLATE utf8_general_ci; - CREATE USER 'linjiashop'@'%' IDENTIFIED BY 'linjiashop191028'; + CREATE USER 'linjiashop'@'%' IDENTIFIED BY 'linjiaSHOP@191028'; GRANT ALL privileges ON linjiashop.* TO 'linjiashop'@'%'; flush privileges; ``` @@ -149,6 +149,6 @@ linjiashop包含了后台管理功能和手机端商城业务功能 ## 技术交流 -- QQ群:254059156 +- QQ群:254059156(已满) 909904351(2群) - [商业支持](../other/xiaomiquan.html) - 微信:myenilu,添加请备注:邻家小铺 diff --git a/doc/guide/develop/express.md b/doc/guide/develop/express.md new file mode 100644 index 0000000000000000000000000000000000000000..4e33232e4e4db73ec64dd0ab05579e0951b71f58 --- /dev/null +++ b/doc/guide/develop/express.md @@ -0,0 +1,29 @@ +# 物流对接 + +## 设计 +本系统针对物流对接需求设计如下 +- 定义顶级物流相关接口:ExpressApi +- 针对每类物流服务接口商需要新建一个类并实现上述ExpressApi接口 +- 系统参数中配置系统当前要使用的对接服务,比如邻家小铺系统默认对接的是快递鸟的物流查询服务,则系统参数配置如下: + ``` + cfgkey = api.express.info.query.provider + cfgValue = kdniaoService + ``` + +## 使用 +- 系统目前仅对接了个查询实时订单功能(见:ExpressApi.java) +```java + + /** + * 查询快递实时信息 + * @param orderNo 快递单号 + * @param companyCode 快递公司编码 + * @return + */ + ExpressInfo realTimeQuery(String orderNo, String companyCode) ; +``` +- 在后台管理和用户端可以查看已发货的的订单的快信息 + - 后台管理 + ![后台管理查看物流信息](../img/develop/express_admin.png) + - 用户端 + ![用户端查看物流信息](../img/develop/express_mobile.jpg) \ No newline at end of file diff --git a/doc/guide/img/develop/express_admin.png b/doc/guide/img/develop/express_admin.png new file mode 100644 index 0000000000000000000000000000000000000000..603b7a65880d3afe863342407fd6af063d23f184 Binary files /dev/null and b/doc/guide/img/develop/express_admin.png differ diff --git a/doc/guide/img/develop/express_mobile.jpg b/doc/guide/img/develop/express_mobile.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5985a1e717a3ef56dd2250ab92162c4c8b08dcba Binary files /dev/null and b/doc/guide/img/develop/express_mobile.jpg differ diff --git a/doc/guide/other/changelog.md b/doc/guide/other/changelog.md index 3e754ee47ae8c2606f5ea73b17d3c98850b91c2f..267f3b64609124f4d1b5eedc14aff32e18a6e572 100644 --- a/doc/guide/other/changelog.md +++ b/doc/guide/other/changelog.md @@ -1,4 +1,18 @@ # Change log +## Latest +### Issues +- 去掉Menu中无用的status字段 +- 重构菜单功能,增加菜单图标选择,菜单类别等逻辑 +- 引入vue-select组件代替el-input+select的下拉选择用法 +- 添加DictSelct组件 +- 接入阿里云短信服务 +- 重构消息管理模块,将远程模板编号从消息发送其迁移到消息模板配置中 +- 优化订单号生成规则 +- 去掉BeanUtil中对com.sun包的引用 +- 完善物流跟踪服务,可通过配置切换具体的物流服务商(系统默认对接的快递鸟) + +### Fixes +- Fix 文件下载bug ## v0.6 [gitee](https://gitee.com/microapp/linjiashop/releases/v0.6) [github](https://github.com/microapp-store/linjiashop/releases/tag/v0.6) diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/FileController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/FileController.java index 35482b6b03bfb730aacc069c404d2f1d970921ae..5e3550b647277a429c203bda23f674f7e602be70 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/FileController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/FileController.java @@ -84,7 +84,7 @@ public class FileController extends BaseController { bis = new BufferedInputStream(fis); int i = bis.read(buffer); while(i != -1){ - os.write(buffer); + os.write(buffer,0,i); buffer = new byte[length]; i = bis.read(buffer); } diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagesenderController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagesenderController.java index 2bc084767ef3f43763ac90fb9f5b1e9a2ea6721e..827658c625bd4e739fecafe169ae2f3c4dc7849c 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagesenderController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagesenderController.java @@ -2,10 +2,10 @@ package cn.enilu.flash.api.controller.message; import cn.enilu.flash.bean.constant.factory.PageFactory; import cn.enilu.flash.bean.core.BussinessLog; - import cn.enilu.flash.bean.entity.message.MessageSender; import cn.enilu.flash.bean.enumeration.Permission; import cn.enilu.flash.bean.vo.front.Rets; +import cn.enilu.flash.bean.vo.query.SearchFilter; import cn.enilu.flash.service.message.MessagesenderService; import cn.enilu.flash.utils.factory.Page; import org.apache.shiro.authz.annotation.RequiresPermissions; @@ -44,8 +44,17 @@ public class MessagesenderController { public Object save(@ModelAttribute @Valid MessageSender messageSender) { if(messageSender.getId()!=null){ MessageSender old = messagesenderService.get(messageSender.getId()); + old.setName(messageSender.getName()); + old.setClassName(messageSender.getClassName()); + messagesenderService.update(old); + }else { + + MessageSender old = messagesenderService.get(SearchFilter.build("className",messageSender.getClassName())); + if(old!=null){ + return Rets.failure("改短信发送器已存在,请勿重复添加"); + } + messagesenderService.insert(messageSender); } - messagesenderService.save(messageSender); return Rets.success(); } diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagetemplateController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagetemplateController.java index eb2fe24741dad59d12e43ba3f745f2fd483e8295..35dc9995bf26e3ab8e780eedbf02e6b03ef0a811 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagetemplateController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/message/MessagetemplateController.java @@ -7,6 +7,7 @@ import cn.enilu.flash.bean.enumeration.Permission; import cn.enilu.flash.bean.exception.ApplicationException; import cn.enilu.flash.bean.exception.ApplicationExceptionEnum; import cn.enilu.flash.bean.vo.front.Rets; +import cn.enilu.flash.bean.vo.query.SearchFilter; import cn.enilu.flash.service.message.MessagetemplateService; import cn.enilu.flash.utils.factory.Page; import org.apache.shiro.authz.annotation.RequiresPermissions; @@ -38,6 +39,10 @@ public class MessagetemplateController { @RequiresPermissions(value = {Permission.MSG_TPL_EDIT}) public Object save(@ModelAttribute @Valid MessageTemplate messageTemplate) { if(messageTemplate.getId()==null){ + MessageTemplate old = messagetemplateService.get(SearchFilter.build("code",messageTemplate.getCode())); + if(old!=null){ + return Rets.failure("模板编码已被使用"); + } messagetemplateService.insert(messageTemplate); }else { messagetemplateService.update(messageTemplate); diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/shop/OrderController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/shop/OrderController.java index 4b3002668fc6c3c558624b38d4f330b44ccd16c0..595428831a52209710dfb3ed7d3f40679158c4b9 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/shop/OrderController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/shop/OrderController.java @@ -3,6 +3,7 @@ package cn.enilu.flash.api.controller.shop; import cn.enilu.flash.bean.constant.CfgKey; import cn.enilu.flash.bean.constant.factory.PageFactory; import cn.enilu.flash.bean.core.BussinessLog; +import cn.enilu.flash.bean.entity.shop.ExpressInfo; import cn.enilu.flash.bean.entity.shop.Order; import cn.enilu.flash.bean.entity.system.FileInfo; import cn.enilu.flash.bean.enumeration.shop.OrderEnum; @@ -11,8 +12,8 @@ import cn.enilu.flash.bean.exception.ApplicationExceptionEnum; import cn.enilu.flash.bean.vo.front.Rets; import cn.enilu.flash.bean.vo.query.SearchFilter; import cn.enilu.flash.security.JwtUtil; -import cn.enilu.flash.service.api.KdniaoResponse; -import cn.enilu.flash.service.api.KdniaoService; +import cn.enilu.flash.service.api.express.kdniao.KdniaoResponse; +import cn.enilu.flash.service.api.express.kdniao.KdniaoService; import cn.enilu.flash.service.shop.OrderService; import cn.enilu.flash.service.system.CfgService; import cn.enilu.flash.service.system.FileService; @@ -136,13 +137,9 @@ public class OrderController { Order order = orderService.getByOrderSn(orderSn); return Rets.success(order); } - @RequestMapping(value="/getShippingInfo/{shippingSn}/{shipperCode}") - public Object getShippingInfo(String shippingSn,String shipperCode){ - String apiKdniaoUserid = cfgService.getCfgValue(CfgKey.API_KDNIAO_USERID); - if (StringUtil.isEmpty(apiKdniaoUserid)) { - return Rets.failure("你没有配置快递鸟服务参数"); - } - KdniaoResponse response = kdniaoService.realTimeQuery(shippingSn,shipperCode); + @RequestMapping(value="/getExpressInfo/{orderSn}") + public Object getExpressInfo(@PathVariable("orderSn")String orderSn){ + ExpressInfo response = orderService.getExpressInfo(orderSn); return Rets.success(response); } } diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/DictController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/DictController.java index e15b3fc753ea1cda5ad3942d20e26ba1186e49d9..fbef1ed7e857bb6c77b8817c5d60bd8ff754af9b 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/DictController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/DictController.java @@ -6,6 +6,7 @@ import cn.enilu.flash.bean.enumeration.Permission; import cn.enilu.flash.bean.exception.ApplicationException; import cn.enilu.flash.bean.exception.ApplicationExceptionEnum; import cn.enilu.flash.bean.vo.front.Rets; +import cn.enilu.flash.cache.DictCache; import cn.enilu.flash.service.system.DictService; import cn.enilu.flash.utils.BeanUtil; import cn.enilu.flash.utils.StringUtil; @@ -13,10 +14,7 @@ import cn.enilu.flash.warpper.DictWarpper; import cn.enilu.flash.web.controller.BaseController; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -31,7 +29,8 @@ import java.util.List; public class DictController extends BaseController { @Autowired private DictService dictService; - + @Autowired + private DictCache dictCache; /** * 获取所有字典列表 */ @@ -77,5 +76,10 @@ public class DictController extends BaseController { dictService.delteDict(id); return Rets.success(); } + @RequestMapping(value = "/getDicts/{dictName}", method = RequestMethod.GET) + public Object getDicts(@PathVariable("dictName") String dictName) { + List dicts = dictCache.getDictsByPname(dictName); + return Rets.success(dicts); + } } diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/MenuController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/MenuController.java index 04ec166ec0d2b209198bfdbedf1284a541be696d..40e85fbe9e00b9c3fbc69d875129f3a1a4bf1db1 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/MenuController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/MenuController.java @@ -1,6 +1,5 @@ package cn.enilu.flash.api.controller.system; -import cn.enilu.flash.bean.constant.state.MenuStatus; import cn.enilu.flash.bean.core.AuthorizationUser; import cn.enilu.flash.bean.core.BussinessLog; import cn.enilu.flash.bean.entity.system.Menu; @@ -8,10 +7,7 @@ import cn.enilu.flash.bean.enumeration.Permission; import cn.enilu.flash.bean.exception.ApplicationException; import cn.enilu.flash.bean.exception.ApplicationExceptionEnum; import cn.enilu.flash.bean.vo.front.Rets; -import cn.enilu.flash.bean.vo.node.MenuNode; -import cn.enilu.flash.bean.vo.node.Node; -import cn.enilu.flash.bean.vo.node.RouterMenu; -import cn.enilu.flash.bean.vo.node.ZTreeNode; +import cn.enilu.flash.bean.vo.node.*; import cn.enilu.flash.cache.TokenCache; import cn.enilu.flash.service.system.LogObjectHolder; import cn.enilu.flash.service.system.MenuService; @@ -41,6 +37,7 @@ import java.util.Map; @RequestMapping("/menu") public class MenuController extends BaseController { + private Logger logger = LoggerFactory.getLogger(MenuController.class); @Autowired private MenuService menuService; @@ -54,33 +51,55 @@ public class MenuController extends BaseController { List list = menuService.getSideBarMenus(shiroUser.getRoleList()); return Rets.success(list); } + @RequestMapping(value = "/list", method = RequestMethod.GET) - @RequiresPermissions(value = {Permission.MENU}) public Object list() { List list = menuService.getMenus(); return Rets.success(list); } + @RequestMapping(value = "/tree", method = RequestMethod.GET) + public Object tree() { + List list = menuService.getMenus(); + List treeSelectNodes = Lists.newArrayList(); + for (MenuNode menuNode : list) { + TreeSelectNode tsn = transfer(menuNode); + treeSelectNodes.add(tsn); + } + return Rets.success(treeSelectNodes); + } + + public TreeSelectNode transfer(MenuNode node) { + TreeSelectNode tsn = new TreeSelectNode(); + tsn.setId(node.getCode()); + tsn.setLabel(node.getName()); + if (node.getChildren() != null && !node.getChildren().isEmpty()) { + List children = Lists.newArrayList(); + for (MenuNode child : node.getChildren()) { + children.add(transfer(child)); + } + tsn.setChildren(children); + } + return tsn; + } + @RequestMapping(method = RequestMethod.POST) @BussinessLog(value = "编辑菜单", key = "name") @RequiresPermissions(value = {Permission.MENU_EDIT}) public Object save(@ModelAttribute @Valid Menu menu) { //判断是否存在该编号 - if(menu.getId()==null) { + if (menu.getId() == null) { String existedMenuName = ConstantFactory.me().getMenuNameByCode(menu.getCode()); if (StringUtil.isNotEmpty(existedMenuName)) { throw new ApplicationException(ApplicationExceptionEnum.EXISTED_THE_MENU); } - menu.setStatus(MenuStatus.ENABLE.getCode()); } //设置父级菜单编号 menuService.menuSetPcode(menu); - if(menu.getId()==null){ + if (menu.getId() == null) { menuService.insert(menu); - }else { - Menu old = menuService.get(menu.getId()); - LogObjectHolder.me().set(old); + } else { menuService.update(menu); } return Rets.success(); @@ -95,7 +114,7 @@ public class MenuController extends BaseController { throw new ApplicationException(ApplicationExceptionEnum.REQUEST_NULL); } //演示环境不允许删除初始化的菜单 - if(id.intValue()<70){ + if (id.intValue() < 70) { return Rets.failure("演示环境不允许删除初始菜单"); } //缓存菜单的名称 @@ -112,7 +131,7 @@ public class MenuController extends BaseController { public Object menuTreeListByRoleId(Integer roleId) { List menuIds = menuService.getMenuIdsByRoleId(roleId); List roleTreeList = null; - if (menuIds==null||menuIds.isEmpty()) { + if (menuIds == null || menuIds.isEmpty()) { roleTreeList = menuService.menuTreeList(null); } else { roleTreeList = menuService.menuTreeList(menuIds); @@ -121,10 +140,10 @@ public class MenuController extends BaseController { List list = menuService.generateMenuTreeForRole(roleTreeList); //element-ui中tree控件中如果选中父节点会默认选中所有子节点,所以这里将所有非叶子节点去掉 - Map map = cn.enilu.flash.utils.Lists.toMap(roleTreeList,"id"); - Map> group = cn.enilu.flash.utils.Lists.group(roleTreeList,"pId"); - for(Map.Entry> entry:group.entrySet()){ - if(entry.getValue().size()>1){ + Map map = cn.enilu.flash.utils.Lists.toMap(roleTreeList, "id"); + Map> group = cn.enilu.flash.utils.Lists.group(roleTreeList, "pId"); + for (Map.Entry> entry : group.entrySet()) { + if (entry.getValue().size() > 1) { roleTreeList.remove(map.get(entry.getKey())); } } @@ -132,7 +151,7 @@ public class MenuController extends BaseController { List checkedIds = Lists.newArrayList(); for (ZTreeNode zTreeNode : roleTreeList) { if (zTreeNode.getChecked() != null && zTreeNode.getChecked() - &&zTreeNode.getpId().intValue()!=0) { + && zTreeNode.getpId().intValue() != 0) { checkedIds.add(zTreeNode.getId()); } } diff --git a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/UserController.java b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/UserController.java index 56e275b1421344fccb8d174a61c9d9a3d863a392..26bb36b3da8fb7c7665199bb1f05c5bdd98cbf64 100644 --- a/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/UserController.java +++ b/linjiashop-admin-api/src/main/java/cn/enilu/flash/api/controller/system/UserController.java @@ -46,7 +46,8 @@ public class UserController extends BaseController { @RequestMapping(value = "/list",method = RequestMethod.GET) @RequiresPermissions(value = {Permission.USER}) public Object list(@RequestParam(required = false) String account, - @RequestParam(required = false) String name){ + @RequestParam(required = false) String name, + @RequestParam(required = false) Integer sex){ Page page = new PageFactory().defaultPage(); if(StringUtil.isNotEmpty(name)){ page.addFilter(SearchFilter.build("name", SearchFilter.Operator.LIKE, name)); @@ -54,7 +55,8 @@ public class UserController extends BaseController { if(StringUtil.isNotEmpty(account)){ page.addFilter(SearchFilter.build("account", SearchFilter.Operator.LIKE, account)); } - page.addFilter(SearchFilter.build("status",SearchFilter.Operator.GT,0)); + page.addFilter( "status",SearchFilter.Operator.GT,0); + page.addFilter("sex", sex); page = managerService.queryPage(page); List list = (List) new UserWarpper(BeanUtil.objectsToMaps(page.getRecords())).warp(); page.setRecords(list); diff --git a/linjiashop-admin-api/src/main/resources/application-dev.properties b/linjiashop-admin-api/src/main/resources/application-dev.properties index 2c7f7a2c667e99fbb22efce3ea1593923b81d892..f0c3ad59ce6c86fd14576356f25fad75190b4dae 100644 --- a/linjiashop-admin-api/src/main/resources/application-dev.properties +++ b/linjiashop-admin-api/src/main/resources/application-dev.properties @@ -1,8 +1,8 @@ ## 开发环境配置 debug=true -spring.datasource.url=jdbc:mysql://enilu-db:3306/linjiashop?useUnicode=true&characterEncoding=UTF8 -spring.datasource.username=root -spring.datasource.password=sheseerzuo123@ABC +spring.datasource.url=jdbc:mysql://localhost:3306/linjiashop?useUnicode=true&characterEncoding=UTF8 +spring.datasource.username=linjiashop +spring.datasource.password=linjiaSHOP@191028 ## 首次启动需要设置下列配置为create,以便系统可以自动创建表并导入./import.sql文件 spring.jpa.hibernate.ddl-auto=create #默认使用InnoDB引擎 diff --git a/linjiashop-admin-api/src/main/resources/import.sql b/linjiashop-admin-api/src/main/resources/import.sql index d4d9bcff37d432c266b74133ae1e9d12618b183b..d5aebab50bf9e541d9561409c889875e5048c457 100644 --- a/linjiashop-admin-api/src/main/resources/import.sql +++ b/linjiashop-admin-api/src/main/resources/import.sql @@ -43,15 +43,15 @@ INSERT INTO `t_message` (`id`, `create_by`, `create_time`, `modify_by`, `modify_ -- ---------------------------- -- Records of t_message_sender.sql -- ---------------------------- -INSERT INTO `t_message_sender` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `class_name`, `name`, `tpl_code`) VALUES (1, 1, '2019-12-10 18:57:57', NULL, NULL, 'tencentSmsSender', ' 腾讯短信-注册登录短信验证码', '2873783'); -INSERT INTO `t_message_sender` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `class_name`, `name`, `tpl_code`) VALUES (2, 1, '2019-12-10 18:57:57', NULL, NULL, 'defaultEmailSender', '默认邮件发送器', NULL); +INSERT INTO `t_message_sender` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `class_name`, `name`) VALUES (1, 1, '2019-12-10 18:57:57', NULL, NULL, 'tencentSmsSender', ' 腾讯短信-注册登录短信验证码'); +INSERT INTO `t_message_sender` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `class_name`, `name`) VALUES (2, 1, '2019-12-10 18:57:57', NULL, NULL, 'defaultEmailSender', '默认邮件发送器'); -- ---------------------------- -- Records of t_message_template.sql -- ---------------------------- -INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`) VALUES (1, NULL, NULL, NULL, NULL, 'REGISTER_CODE', '注册页面,点击获取验证码', '【腾讯云】校验码{1},请于5分钟内完成验证,如非本人操作请忽略本短信。', 1, '注册验证码', '0'); -INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`) VALUES (2, NULL, NULL, NULL, NULL, 'EMAIL_TEST', '测试发送', '你好:{1},欢迎使用{2}', 2, '测试邮件', '1'); -INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`) VALUES (3, NULL, NULL, NULL, NULL, 'EMAIL_HTML_TEMPLATE_TEST', '测试发送模板邮件', '你好${userName}欢迎使用${appName},这是html模板邮件', 2, '测试发送模板邮件', '1'); +INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`, `remote_tpl_code`) VALUES (1, NULL, NULL, NULL, NULL, 'REGISTER_CODE', '注册页面,点击获取验证码', '【腾讯云】校验码{1},请于5分钟内完成验证,如非本人操作请忽略本短信。', 1, '注册验证码', '0','11111'); +INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`, `remote_tpl_code`) VALUES (2, NULL, NULL, NULL, NULL, 'EMAIL_TEST', '测试发送', '你好:{1},欢迎使用{2}', 2, '测试邮件', '1',null); +INSERT INTO `t_message_template` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `cond`, `content`, `id_message_sender`, `title`, `type`, `remote_tpl_code`) VALUES (3, NULL, NULL, NULL, NULL, 'EMAIL_HTML_TEMPLATE_TEST', '测试发送模板邮件', '你好${userName}欢迎使用${appName},这是html模板邮件', 2, '测试发送模板邮件', '1',null); -- ---------------------------- -- Records of t_shop_address.sql @@ -94,6 +94,9 @@ INSERT INTO `t_shop_category_banner_rel` (`id`, `create_by`, `create_time`, `mod INSERT INTO `t_shop_category_banner_rel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `id_banner`, `id_category`) VALUES (6, 1, '2019-12-10 18:57:57', NULL, NULL, 5, 3); INSERT INTO `t_shop_category_banner_rel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `id_banner`, `id_category`) VALUES (7, 1, '2019-12-10 18:57:57', NULL, NULL, 7, 4); +INSERT INTO `t_shop_express_info` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `express_company`, `id_order`, `info`, `shipping_sn`, `state`) VALUES (1, NULL, '2021-1-3 01:06:40', NULL, '2021-1-3 01:17:41', '圆通快递', 4, '[{\"AcceptTime\":\"2020-12-25 23:02:51\",\"AcceptStation\":\"【广东省广州市白云区大源公司】 已收件 取件人: 王仟 (15112094169)\"},{\"AcceptTime\":\"2020-12-26 01:00:51\",\"AcceptStation\":\"【广东省广州市白云区大源】 已发出 下一站 【广州转运中心公司】\"},{\"AcceptTime\":\"2020-12-26 02:12:34\",\"AcceptStation\":\"【广州转运中心公司】 已收入\"},{\"AcceptTime\":\"2020-12-26 03:02:34\",\"AcceptStation\":\"【广州转运中心】 已发出\"},{\"AcceptTime\":\"2020-12-28 04:26:14\",\"AcceptStation\":\"【浦东转运中心公司】 已收入\"},{\"AcceptTime\":\"2020-12-28 04:42:09\",\"AcceptStation\":\"【浦东转运中心】 已发出 下一站 【上海市浦东新区博兴菏泽路分部公司】\"},{\"AcceptTime\":\"2020-12-28 07:33:45\",\"AcceptStation\":\"【上海市浦东新区博兴菏泽路分部公司】 已收入\"},{\"AcceptTime\":\"2020-12-28 08:41:53\",\"AcceptStation\":\"【上海市浦东新区博兴菏泽路分部公司】 派件中 派件人: 李红彬 电话 13381798120 如有疑问,请联系:18521102150\"},{\"AcceptTime\":\"2020-12-28 11:54:00\",\"AcceptStation\":\"快件已由上海市莱阳路431号店菜鸟驿站代收,请及时取件,如有疑问请联系13262707273\"},{\"AcceptTime\":\"2020-12-28 19:59:21\",\"AcceptStation\":\"客户签收人: 已签收,签收人凭取货码签收。 已签收 感谢使用圆通速递,期待再次为您服务 如有疑问请联系:13381798120,投诉电话:18521102150\"}]', 'YT9420173297830', 1); +INSERT INTO `t_shop_express_info` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `express_company`, `id_order`, `info`, `shipping_sn`, `state`) VALUES (2, NULL, '2021-1-3 02:20:06', NULL, '2021-1-3 02:20:06', '圆通快递', 3, '[{\"AcceptTime\":\"2020-12-25 23:02:51\",\"AcceptStation\":\"【广东省广州市白云区大源公司】 已收件 取件人: 王仟 (15112094169)\"},{\"AcceptTime\":\"2020-12-26 01:00:51\",\"AcceptStation\":\"【广东省广州市白云区大源】 已发出 下一站 【广州转运中心公司】\"},{\"AcceptTime\":\"2020-12-26 02:12:34\",\"AcceptStation\":\"【广州转运中心公司】 已收入\"},{\"AcceptTime\":\"2020-12-26 03:02:34\",\"AcceptStation\":\"【广州转运中心】 已发出\"},{\"AcceptTime\":\"2020-12-28 04:26:14\",\"AcceptStation\":\"【浦东转运中心公司】 已收入\"},{\"AcceptTime\":\"2020-12-28 04:42:09\",\"AcceptStation\":\"【浦东转运中心】 已发出 下一站 【上海市浦东新区博兴菏泽路分部公司】\"},{\"AcceptTime\":\"2020-12-28 07:33:45\",\"AcceptStation\":\"【上海市浦东新区博兴菏泽路分部公司】 已收入\"},{\"AcceptTime\":\"2020-12-28 08:41:53\",\"AcceptStation\":\"【上海市浦东新区博兴菏泽路分部公司】 派件中 派件人: 李红彬 电话 13381798120 如有疑问,请联系:18521102150\"},{\"AcceptTime\":\"2020-12-28 11:54:00\",\"AcceptStation\":\"快件已由上海市莱阳路431号店菜鸟驿站代收,请及时取件,如有疑问请联系13262707273\"},{\"AcceptTime\":\"2020-12-28 19:59:21\",\"AcceptStation\":\"客户签收人: 已签收,签收人凭取货码签收。 已签收 感谢使用圆通速递,期待再次为您服务 如有疑问请联系:13381798120,投诉电话:18521102150\"}]', 'YT9420173297830', 1); + -- ---------------------------- -- Records of t_shop_goods.sql -- ---------------------------- @@ -219,6 +222,12 @@ INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_ INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (12, 1, '2020-5-31 21:48:12', 1, '2020-5-31 21:48:12', '快递鸟接口地址', 'api.kdniao.url', 'http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx'); INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (13, 1, '2020-5-31 21:48:12', 1, '2020-5-31 21:48:12', '快递鸟用户id', 'api.kdniao.userid', '快递鸟userid'); INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (14, 1, '2020-5-31 21:48:12', 1, '2020-5-31 21:48:12', '快递鸟apikey', 'api.kdniao.apikey', NULL); +INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (15, 1, '2021-1-2 23:24:43', 1, '2021-1-2 23:24:43', '阿里云短信accessKeyId', 'api.aliyun.sms.access.key.id', ''); +INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (16, 1, '2021-1-2 23:24:43', 1, '2021-1-2 23:24:43', '阿里云短信accessSecret', 'api.aliyun.sms.access.secret', ''); +INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (17, 1, '2021-1-2 23:24:43', 1, '2021-1-2 23:24:43', '阿里云短信regionId', 'api.aliyun.sms.region.id', 'cn-hangzhou'); +INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (18, 1, '2021-1-2 23:24:43', 1, '2021-1-2 23:24:43', '阿里云短信签名', 'api.aliyun.sms.sign.name', 'ABC商城'); +INSERT INTO `t_sys_cfg` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `cfg_desc`, `cfg_name`, `cfg_value`) VALUES (19, 1, '2021-1-2 23:24:43', 1, '2021-1-2 23:24:43', '快递查询接口提供方', 'api.express.info.query.provider', 'kdniaoService'); + -- ---------------------------- -- Records of t_sys_dept.sql -- ---------------------------- @@ -391,95 +400,93 @@ INSERT INTO `t_sys_login_log` (`id`, `create_time`, `ip`, `logname`, `message`, -- ---------------------------- -- Records of t_sys_menu.sql -- ---------------------------- -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (1, 1, '2019-7-31 22:04:30', 1, '2019-11-4 17:09:34', 'system', 'layout', 0, 'system', 1, NULL, 1, '系统管理', 4, '0', '[0],', 1, NULL, '/system'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (2, 1, '2019-7-31 22:04:30', 1, '2019-3-11 22:25:38', 'cms', 'layout', 0, 'documentation', 1, NULL, 1, 'CMS管理', 3, '0', '[0],', 1, NULL, '/cms'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (3, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:09:09', 'operationMgr', 'layout', 0, 'operation', 1, NULL, 1, '运维管理', 6, '0', '[0],', 1, NULL, '/optionMgr'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (4, 1, '2019-7-31 22:04:30', 1, '2019-4-16 18:59:15', 'mgr', 'views/system/user/index', 0, 'user', 1, NULL, 2, '用户管理', 1, 'system', '[0],[system],', 1, NULL, '/mgr'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (5, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrAdd', NULL, 0, NULL, 0, NULL, 3, '添加用户', 1, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (6, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrEdit', NULL, 0, NULL, 0, NULL, 3, '修改用户', 2, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (7, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrDelete', NULL, 0, NULL, 0, 0, 3, '删除用户', 3, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (8, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrReset', NULL, 0, NULL, 0, 0, 3, '重置密码', 4, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/reset'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (9, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrFreeze', NULL, 0, NULL, 0, 0, 3, '冻结用户', 5, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/freeze'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (10, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrUnfreeze', NULL, 0, NULL, 0, 0, 3, '解除冻结用户', 6, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/unfreeze'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (11, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrSetRole', NULL, 0, NULL, 0, 0, 3, '分配角色', 7, 'mgr', '[0],[system],[mgr],', 1, NULL, '/mgr/setRole'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (12, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'role', 'views/system/role/index', 0, 'peoples', 1, 0, 2, '角色管理', 2, 'system', '[0],[system],', 1, NULL, '/role'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (13, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleAdd', NULL, 0, NULL, 0, 0, 3, '添加角色', 1, 'role', '[0],[system],[role],', 1, NULL, '/role/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (14, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleEdit', NULL, 0, NULL, 0, 0, 3, '修改角色', 2, 'role', '[0],[system],[role],', 1, NULL, '/role/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (15, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleDelete', NULL, 0, NULL, 0, 0, 3, '删除角色', 3, 'role', '[0],[system],[role],', 1, NULL, '/role/remove'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (16, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleSetAuthority', NULL, 0, NULL, 0, 0, 3, '配置权限', 4, 'role', '[0],[system],[role],', 1, NULL, '/role/setAuthority'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (17, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menu', 'views/system/menu/index', 0, 'menu', 1, 0, 2, '菜单管理', 4, 'system', '[0],[system],', 1, NULL, '/menu'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (18, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuAdd', NULL, 0, NULL, 0, 0, 3, '添加菜单', 1, 'menu', '[0],[system],[menu],', 1, NULL, '/menu/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (19, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuEdit', NULL, 0, NULL, 0, 0, 3, '修改菜单', 2, 'menu', '[0],[system],[menu],', 1, NULL, '/menu/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (20, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuDelete', NULL, 0, NULL, 0, 0, 3, '删除菜单', 3, 'menu', '[0],[system],[menu],', 1, NULL, '/menu/remove'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (21, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dept', 'views/system/dept/index', 0, 'dept', 1, NULL, 2, '部门管理', 3, 'system', '[0],[system],', 1, NULL, '/dept'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (22, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dict', 'views/system/dict/index', 0, 'dict', 1, NULL, 2, '字典管理', 4, 'system', '[0],[system],', 1, NULL, '/dict'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (23, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptEdit', NULL, 0, NULL, 0, NULL, 3, '修改部门', 1, 'dept', '[0],[system],[dept],', 1, NULL, '/dept/update'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (24, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptDelete', NULL, 0, NULL, 0, NULL, 3, '删除部门', 1, 'dept', '[0],[system],[dept],', 1, NULL, '/dept/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (25, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictAdd', NULL, 0, NULL, 0, NULL, 3, '添加字典', 1, 'dict', '[0],[system],[dict],', 1, NULL, '/dict/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (26, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictEdit', NULL, 0, NULL, 0, NULL, 3, '修改字典', 1, 'dict', '[0],[system],[dict],', 1, NULL, '/dict/update'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (27, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictDelete', NULL, 0, NULL, 0, NULL, 3, '删除字典', 1, 'dict', '[0],[system],[dict],', 1, NULL, '/dict/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (28, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptList', NULL, 0, NULL, 0, NULL, 3, '部门列表', 5, 'dept', '[0],[system],[dept],', 1, NULL, '/dept/list'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (29, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptDetail', NULL, 0, NULL, 0, NULL, 3, '部门详情', 6, 'dept', '[0],[system],[dept],', 1, NULL, '/dept/detail'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (30, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictList', NULL, 0, NULL, 0, NULL, 3, '字典列表', 5, 'dict', '[0],[system],[dict],', 1, NULL, '/dict/list'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (31, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictDetail', NULL, 0, NULL, 0, NULL, 3, '字典详情', 6, 'dict', '[0],[system],[dict],', 1, NULL, '/dict/detail'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (32, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptAdd', NULL, 0, NULL, 0, NULL, 3, '添加部门', 1, 'dept', '[0],[system],[dept],', 1, NULL, '/dept/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (33, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfg', 'views/system/cfg/index', 0, 'cfg', 1, NULL, 2, '参数管理', 10, 'system', '[0],[system],', 1, NULL, '/cfg'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (34, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgAdd', NULL, 0, NULL, 0, NULL, 3, '添加系统参数', 1, 'cfg', '[0],[system],[cfg],', 1, NULL, '/cfg/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (35, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgEdit', NULL, 0, NULL, 0, NULL, 3, '修改系统参数', 2, 'cfg', '[0],[system],[cfg],', 1, NULL, '/cfg/update'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (36, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgDelete', NULL, 0, NULL, 0, NULL, 3, '删除系统参数', 3, 'cfg', '[0],[system],[cfg],', 1, NULL, '/cfg/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (37, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'task', 'views/system/task/index', 0, 'task', 1, NULL, 2, '任务管理', 11, 'system', '[0],[system],', 1, NULL, '/task'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (38, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskAdd', NULL, 0, NULL, 0, NULL, 3, '添加任务', 1, 'task', '[0],[system],[task],', 1, NULL, '/task/add'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (39, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskEdit', NULL, 0, NULL, 0, NULL, 3, '修改任务', 2, 'task', '[0],[system],[task],', 1, NULL, '/task/update'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (40, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskDelete', NULL, 0, NULL, 0, NULL, 3, '删除任务', 3, 'task', '[0],[system],[task],', 1, NULL, '/task/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (41, 1, '2019-3-11 22:29:54', 1, '2019-3-11 22:29:54', 'channel', 'views/cms/channel/index', 0, 'channel', 1, NULL, 2, '栏目管理', 1, 'cms', '[0],[cms],', 1, NULL, '/channel'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (42, 1, '2019-3-11 22:30:17', 1, '2019-3-11 22:30:17', 'article', 'views/cms/article/index', 0, 'documentation', 1, NULL, 2, '文章管理', 2, 'cms', '[0],[cms],', 1, NULL, '/article'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (43, 1, '2019-3-11 22:30:52', 1, '2019-3-11 22:30:52', 'banner', 'views/cms/banner/index', 0, 'banner', 1, NULL, 2, 'banner管理', 6, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/banner'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (44, 1, '2019-3-18 19:45:37', 1, '2019-3-18 19:45:37', 'contacts', 'views/cms/contacts/index', 0, 'contacts', 1, NULL, 2, '邀约管理', 4, 'cms', '[0],[cms],', 1, NULL, '/contacts'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (45, 1, '2019-3-19 10:25:05', 1, '2019-3-19 10:25:05', 'file', 'views/cms/file/index', 0, 'file', 1, NULL, 2, '文件存储', 7, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/fileMgr'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (46, 1, '2019-3-11 22:30:17', 1, '2019-3-11 22:30:17', 'editArticle', 'views/cms/article/edit.vue', 0, 'articleEdit', 1, NULL, 2, '新建文章', 1, 'cms', '[0],[cms],', 1, NULL, '/cms/articleEdit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (47, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskLog', 'views/system/task/taskLog', 1, 'task', 1, NULL, 2, '任务日志', 4, 'system', '[0],[system],', 1, NULL, '/taskLog'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (48, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:25:31', 'log', 'views/operation/log/index', 0, 'log', 1, NULL, 2, '业务日志', 6, 'operationMgr', '[0],[operationMgr],', 1, NULL, '/log'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (49, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:25:36', 'loginLog', 'views/operation/loginLog/index', 0, 'logininfor', 1, NULL, 2, '登录日志', 6, 'operationMgr', '[0],[operationMgr],', 1, NULL, '/loginLog'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (50, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'logClear', NULL, 0, NULL, 0, NULL, 3, '清空日志', 3, 'log', '[0],[system],[log],', 1, NULL, '/log/delLog'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (51, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'logDetail', NULL, 0, NULL, 0, NULL, 3, '日志详情', 3, 'log', '[0],[system],[log],', 1, NULL, '/log/detail'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (52, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'loginLogClear', NULL, 0, NULL, 0, NULL, 3, '清空登录日志', 1, 'loginLog', '[0],[system],[loginLog],', 1, NULL, '/loginLog/delLoginLog'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (53, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'loginLogList', NULL, 0, NULL, 0, NULL, 3, '登录日志列表', 2, 'loginLog', '[0],[system],[loginLog],', 1, NULL, '/loginLog/list'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (54, 1, '2019-6-2 10:10:20', 1, '2019-6-2 10:10:20', 'druid', 'views/operation/druid/index', 0, 'monitor', 1, NULL, 2, '数据库管理', 1, 'operationMgr', '[0],[operationMgr],', 1, NULL, '/druid'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (55, 1, '2019-6-2 10:10:20', 1, '2019-6-2 10:10:20', 'swagger', 'views/operation/api/index', 0, 'swagger', 1, NULL, 2, '接口文档', 2, 'operationMgr', '[0],[operationMgr],', 1, NULL, '/swagger'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (56, 1, '2019-6-10 21:26:52', 1, '2019-6-10 21:26:52', 'messageMgr', 'layout', 0, 'message', 1, NULL, 1, '消息管理', 5, '0', '[0],', 1, NULL, '/message'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (57, 1, '2019-6-10 21:27:34', 1, '2019-6-10 21:27:34', 'msg', 'views/message/message/index', 0, 'message', 1, NULL, 2, '历史消息', 1, 'messageMgr', '[0],[messageMgr],', 1, NULL, '/history'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (58, 1, '2019-6-10 21:27:56', 1, '2019-6-10 21:27:56', 'msgTpl', 'views/message/template/index', 0, 'template', 1, NULL, 2, '消息模板', 2, 'messageMgr', '[0],[messageMgr],', 1, NULL, '/template'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (59, 1, '2019-6-10 21:28:21', 1, '2019-6-10 21:28:21', 'msgSender', 'views/message/sender/index', 0, 'sender', 1, NULL, 2, '消息发送者', 3, 'messageMgr', '[0],[messageMgr],', 1, NULL, '/sender'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (60, 1, '2019-6-10 21:28:21', 1, '2019-6-10 21:28:21', 'msgClear', NULL, 0, NULL, 1, NULL, 2, '清空历史消息', 3, 'messageMgr', '[0],[messageMgr],', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (61, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgTplEdit', NULL, 0, NULL, 0, NULL, 3, '编辑消息模板', 1, 'msgTpl', '[0],[messageMgr],[msgTpl]', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (62, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgTplDelete', NULL, 0, NULL, 0, NULL, 3, '删除消息模板', 2, 'msgTpl', '[0],[messageMgr],[msgTpl]', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (63, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgSenderEdit', NULL, 0, NULL, 0, NULL, 3, '编辑消息发送器', 1, 'msgSender', '[0],[messageMgr],[msgSender]', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (64, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgSenderDelete', NULL, 0, NULL, 0, NULL, 3, '删除消息发送器', 2, 'msgSender', '[0],[messageMgr],[msgSender]', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (65, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'fileUpload', NULL, 0, NULL, 0, NULL, 3, '上传文件', 1, 'file', '[0],[cms],[file],', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (66, 1, '2019-7-31 21:51:33', 1, '2019-7-31 21:51:33', 'bannerEdit', NULL, 0, NULL, 0, NULL, 3, '编辑banner', 1, 'banner', '[0],[cms],[banner],', 1, NULL, '/banner/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (67, 1, '2019-7-31 21:51:33', 1, '2019-7-31 21:51:33', 'bannerDelete', NULL, 0, NULL, 0, NULL, 3, '删除banner', 2, 'banner', '[0],[cms],[banner],', 1, NULL, '/banner/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (68, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'channelEdit', NULL, 0, NULL, 0, NULL, 3, '编辑栏目', 1, 'channel', '[0],[cms],[channel],', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (69, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'channelDelete', NULL, 0, NULL, 0, NULL, 3, '删除栏目', 2, 'channel', '[0],[cms],[channel],', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (70, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deleteArticle', NULL, 0, NULL, 0, NULL, 3, '删除文章', 2, 'article', '[0],[cms],[article]', 1, NULL, NULL); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (71, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopMgr', 'layout', 0, 'shop', 1, NULL, 1, '商城管理', 1, '0', '[0],', 1, NULL, '/shop'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (72, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopUser', 'views/shop/shopUser/index', 0, 'user', 1, NULL, 2, '会员管理', 1, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/shopUser'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (73, 1, '2019-11-4 19:01:20', 1, '2019-11-4 19:01:20', 'goods', 'views/shop/goods/index', 0, 'goods', 1, NULL, 2, '商品管理', 3, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/goods'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (74, 1, '2019-11-4 19:07:13', 1, '2019-11-4 19:07:13', 'order', 'views/shop/order/index', 0, 'order', 1, NULL, 2, '订单管理', 4, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/order'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (75, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'category', 'views/shop/category/index', 0, 'category', 1, NULL, 2, '商品类别', 2, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/category'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (76, 1, '2019-11-4 19:08:51', 1, '2019-11-4 19:08:51', 'cart', 'views/shop/cart/index', 0, 'cart', 1, NULL, 2, '购物车', 5, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/cart'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (77, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'goodsEdit', 'views/shop/goods/edit', 1, 'goods', 1, NULL, 2, '商品编辑', 2, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/goodsEdit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (78, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopUserDetail', 'views/shop/shopUser/detail', 1, 'user', 1, NULL, 2, '用户详情', 2, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/shopUserDetail'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (79, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'orderDetail', 'views/shop/order/detail', 1, 'order', 1, NULL, 2, '订单详情', 2, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/orderDetail'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (80, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'categoryEdit', NULL, 0, NULL, 0, NULL, 3, '编辑类别', 1, 'category', '[0],[shopMgr],[category],', 1, NULL, '/category/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (82, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'promotion', 'layout', 0, 'promotion', 1, NULL, 1, '推广管理', 2, '0', '[0],', 1, NULL, '/promotion'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (83, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topic', 'views/promotion/topic/index', 0, 'topic', 1, NULL, 2, '专题管理', 1, 'promotion', '[0],[promotion],', 1, NULL, '/topic'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (84, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topicEdit', NULL, 0, NULL, 0, NULL, 3, '编辑专题', 1, 'topic', '[0],[promotion],[topic],', 1, NULL, '/topic/edit'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (85, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topicDelete', NULL, 0, NULL, 0, NULL, 3, '删除专题', 2, 'topic', '[0],[promotion],[topic],', 1, NULL, '/topic/delete'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (86, 1, '2020-1-24 22:21:40', 1, '2020-1-24 22:21:40', 'favorite', 'views/shop/favorite/index', 0, 'favorite', 1, NULL, 2, '收藏列表', 6, 'shopMgr', '[0],[shopMgr],', 1, NULL, '/favorite'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (87, 1, '2020-2-9 10:18:33', 1, '2020-2-9 10:18:53', 'express', 'views/system/express/index', 0, 'express', 1, NULL, 2, '物流公司', 7, 'system', '[0],[system]', 1, NULL, '/express'); -INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `status`, `tips`, `url`) VALUES (88, 1, '2020-2-9 10:18:33', 1, '2020-2-9 10:18:53', 'expressEdit', NULL, NULL, NULL, 0, NULL, 3, '编辑物流公司', 1, 'express', '[0],[system],[express]', 1, NULL, '/express/edit'); - - +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (1, 1, '2019-7-31 22:04:30', 1, '2019-11-4 17:09:34', 'system', 'layout', 0, 'system', 1, NULL, 1, '系统管理', 4, '0', '[0],', NULL, '/system'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (2, 1, '2019-7-31 22:04:30', 1, '2019-3-11 22:25:38', 'cms', 'layout', 0, 'documentation', 1, NULL, 1, 'CMS管理', 3, '0', '[0],', NULL, '/cms'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (3, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:09:09', 'operationMgr', 'layout', 0, 'operation', 1, NULL, 1, '运维管理', 6, '0', '[0],', NULL, '/optionMgr'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (4, 1, '2019-7-31 22:04:30', 1, '2019-4-16 18:59:15', 'mgr', 'views/system/user/index', 0, 'user', 1, NULL, 2, '用户管理', 1, 'system', '[0],[system],', NULL, '/mgr'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (5, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrAdd', NULL, 0, NULL, 0, NULL, 3, '添加用户', 1, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (6, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrEdit', NULL, 0, NULL, 0, NULL, 3, '修改用户', 2, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (7, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrDelete', NULL, 0, NULL, 0, 0, 3, '删除用户', 3, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (8, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrReset', NULL, 0, NULL, 0, 0, 3, '重置密码', 4, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/reset'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (9, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrFreeze', NULL, 0, NULL, 0, 0, 3, '冻结用户', 5, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/freeze'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (10, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrUnfreeze', NULL, 0, NULL, 0, 0, 3, '解除冻结用户', 6, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/unfreeze'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (11, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'mgrSetRole', NULL, 0, NULL, 0, 0, 3, '分配角色', 7, 'mgr', '[0],[system],[mgr],', NULL, '/mgr/setRole'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (12, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'role', 'views/system/role/index', 0, 'peoples', 1, 0, 2, '角色管理', 2, 'system', '[0],[system],', NULL, '/role'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (13, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleAdd', NULL, 0, NULL, 0, 0, 3, '添加角色', 1, 'role', '[0],[system],[role],', NULL, '/role/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (14, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleEdit', NULL, 0, NULL, 0, 0, 3, '修改角色', 2, 'role', '[0],[system],[role],', NULL, '/role/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (15, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleDelete', NULL, 0, NULL, 0, 0, 3, '删除角色', 3, 'role', '[0],[system],[role],', NULL, '/role/remove'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (16, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'roleSetAuthority', NULL, 0, NULL, 0, 0, 3, '配置权限', 4, 'role', '[0],[system],[role],', NULL, '/role/setAuthority'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (17, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menu', 'views/system/menu/index', 0, 'menu', 1, 0, 2, '菜单管理', 4, 'system', '[0],[system],', NULL, '/menu'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (18, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuAdd', NULL, 0, NULL, 0, 0, 3, '添加菜单', 1, 'menu', '[0],[system],[menu],', NULL, '/menu/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (19, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuEdit', NULL, 0, NULL, 0, 0, 3, '修改菜单', 2, 'menu', '[0],[system],[menu],', NULL, '/menu/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (20, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'menuDelete', NULL, 0, NULL, 0, 0, 3, '删除菜单', 3, 'menu', '[0],[system],[menu],', NULL, '/menu/remove'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (21, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dept', 'views/system/dept/index', 0, 'dept', 1, NULL, 2, '部门管理', 3, 'system', '[0],[system],', NULL, '/dept'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (22, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dict', 'views/system/dict/index', 0, 'dict', 1, NULL, 2, '字典管理', 4, 'system', '[0],[system],', NULL, '/dict'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (23, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptEdit', NULL, 0, NULL, 0, NULL, 3, '修改部门', 1, 'dept', '[0],[system],[dept],', NULL, '/dept/update'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (24, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptDelete', NULL, 0, NULL, 0, NULL, 3, '删除部门', 1, 'dept', '[0],[system],[dept],', NULL, '/dept/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (25, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictAdd', NULL, 0, NULL, 0, NULL, 3, '添加字典', 1, 'dict', '[0],[system],[dict],', NULL, '/dict/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (26, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictEdit', NULL, 0, NULL, 0, NULL, 3, '修改字典', 1, 'dict', '[0],[system],[dict],', NULL, '/dict/update'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (27, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictDelete', NULL, 0, NULL, 0, NULL, 3, '删除字典', 1, 'dict', '[0],[system],[dict],', NULL, '/dict/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (28, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptList', NULL, 0, NULL, 0, NULL, 3, '部门列表', 5, 'dept', '[0],[system],[dept],', NULL, '/dept/list'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (29, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptDetail', NULL, 0, NULL, 0, NULL, 3, '部门详情', 6, 'dept', '[0],[system],[dept],', NULL, '/dept/detail'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (30, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictList', NULL, 0, NULL, 0, NULL, 3, '字典列表', 5, 'dict', '[0],[system],[dict],', NULL, '/dict/list'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (31, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'dictDetail', NULL, 0, NULL, 0, NULL, 3, '字典详情', 6, 'dict', '[0],[system],[dict],', NULL, '/dict/detail'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (32, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deptAdd', NULL, 0, NULL, 0, NULL, 3, '添加部门', 1, 'dept', '[0],[system],[dept],', NULL, '/dept/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (33, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfg', 'views/system/cfg/index', 0, 'cfg', 1, NULL, 2, '参数管理', 10, 'system', '[0],[system],', NULL, '/cfg'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (34, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgAdd', NULL, 0, NULL, 0, NULL, 3, '添加系统参数', 1, 'cfg', '[0],[system],[cfg],', NULL, '/cfg/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (35, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgEdit', NULL, 0, NULL, 0, NULL, 3, '修改系统参数', 2, 'cfg', '[0],[system],[cfg],', NULL, '/cfg/update'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (36, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'cfgDelete', NULL, 0, NULL, 0, NULL, 3, '删除系统参数', 3, 'cfg', '[0],[system],[cfg],', NULL, '/cfg/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (37, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'task', 'views/system/task/index', 0, 'task', 1, NULL, 2, '任务管理', 11, 'system', '[0],[system],', NULL, '/task'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (38, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskAdd', NULL, 0, NULL, 0, NULL, 3, '添加任务', 1, 'task', '[0],[system],[task],', NULL, '/task/add'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (39, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskEdit', NULL, 0, NULL, 0, NULL, 3, '修改任务', 2, 'task', '[0],[system],[task],', NULL, '/task/update'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (40, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskDelete', NULL, 0, NULL, 0, NULL, 3, '删除任务', 3, 'task', '[0],[system],[task],', NULL, '/task/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (41, 1, '2019-3-11 22:29:54', 1, '2019-3-11 22:29:54', 'channel', 'views/cms/channel/index', 0, 'channel', 1, NULL, 2, '栏目管理', 1, 'cms', '[0],[cms],', NULL, '/channel'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (42, 1, '2019-3-11 22:30:17', 1, '2019-3-11 22:30:17', 'article', 'views/cms/article/index', 0, 'documentation', 1, NULL, 2, '文章管理', 2, 'cms', '[0],[cms],', NULL, '/article'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (43, 1, '2019-3-11 22:30:52', 1, '2019-3-11 22:30:52', 'banner', 'views/cms/banner/index', 0, 'banner', 1, NULL, 2, 'banner管理', 6, 'shopMgr', '[0],[shopMgr],', NULL, '/banner'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (44, 1, '2019-3-18 19:45:37', 1, '2019-3-18 19:45:37', 'contacts', 'views/cms/contacts/index', 0, 'contacts', 1, NULL, 2, '邀约管理', 4, 'cms', '[0],[cms],', NULL, '/contacts'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (45, 1, '2019-3-19 10:25:05', 1, '2019-3-19 10:25:05', 'file', 'views/cms/file/index', 0, 'file', 1, NULL, 2, '文件存储', 7, 'shopMgr', '[0],[shopMgr],', NULL, '/fileMgr'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (46, 1, '2019-3-11 22:30:17', 1, '2019-3-11 22:30:17', 'editArticle', 'views/cms/article/edit.vue', 0, 'articleEdit', 1, NULL, 2, '新建文章', 1, 'cms', '[0],[cms],', NULL, '/cms/articleEdit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (47, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'taskLog', 'views/system/task/taskLog', 1, 'task', 1, NULL, 2, '任务日志', 4, 'system', '[0],[system],', NULL, '/taskLog'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (48, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:25:31', 'log', 'views/operation/log/index', 0, 'log', 1, NULL, 2, '业务日志', 6, 'operationMgr', '[0],[operationMgr],', NULL, '/log'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (49, 1, '2019-7-31 22:04:30', 1, '2019-6-2 10:25:36', 'loginLog', 'views/operation/loginLog/index', 0, 'logininfor', 1, NULL, 2, '登录日志', 6, 'operationMgr', '[0],[operationMgr],', NULL, '/loginLog'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (50, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'logClear', NULL, 0, NULL, 0, NULL, 3, '清空日志', 3, 'log', '[0],[system],[log],', NULL, '/log/delLog'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (51, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'logDetail', NULL, 0, NULL, 0, NULL, 3, '日志详情', 3, 'log', '[0],[system],[log],', NULL, '/log/detail'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (52, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'loginLogClear', NULL, 0, NULL, 0, NULL, 3, '清空登录日志', 1, 'loginLog', '[0],[system],[loginLog],', NULL, '/loginLog/delLoginLog'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (53, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'loginLogList', NULL, 0, NULL, 0, NULL, 3, '登录日志列表', 2, 'loginLog', '[0],[system],[loginLog],', NULL, '/loginLog/list'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (54, 1, '2019-6-2 10:10:20', 1, '2019-6-2 10:10:20', 'druid', 'views/operation/druid/index', 0, 'monitor', 1, NULL, 2, '数据库管理', 1, 'operationMgr', '[0],[operationMgr],', NULL, '/druid'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (55, 1, '2019-6-2 10:10:20', 1, '2019-6-2 10:10:20', 'swagger', 'views/operation/api/index', 0, 'swagger', 1, NULL, 2, '接口文档', 2, 'operationMgr', '[0],[operationMgr],', NULL, '/swagger'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (56, 1, '2019-6-10 21:26:52', 1, '2019-6-10 21:26:52', 'messageMgr', 'layout', 0, 'message', 1, NULL, 1, '消息管理', 5, '0', '[0],', NULL, '/message'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (57, 1, '2019-6-10 21:27:34', 1, '2019-6-10 21:27:34', 'msg', 'views/message/message/index', 0, 'message', 1, NULL, 2, '历史消息', 1, 'messageMgr', '[0],[messageMgr],', NULL, '/history'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (58, 1, '2019-6-10 21:27:56', 1, '2019-6-10 21:27:56', 'msgTpl', 'views/message/template/index', 0, 'template', 1, NULL, 2, '消息模板', 2, 'messageMgr', '[0],[messageMgr],', NULL, '/template'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (59, 1, '2019-6-10 21:28:21', 1, '2019-6-10 21:28:21', 'msgSender', 'views/message/sender/index', 0, 'sender', 1, NULL, 2, '消息发送者', 3, 'messageMgr', '[0],[messageMgr],', NULL, '/sender'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (60, 1, '2019-6-10 21:28:21', 1, '2019-6-10 21:28:21', 'msgClear', NULL, 0, NULL, 1, NULL, 2, '清空历史消息', 3, 'messageMgr', '[0],[messageMgr],', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (61, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgTplEdit', NULL, 0, NULL, 0, NULL, 3, '编辑消息模板', 1, 'msgTpl', '[0],[messageMgr],[msgTpl]', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (62, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgTplDelete', NULL, 0, NULL, 0, NULL, 3, '删除消息模板', 2, 'msgTpl', '[0],[messageMgr],[msgTpl]', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (63, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgSenderEdit', NULL, 0, NULL, 0, NULL, 3, '编辑消息发送器', 1, 'msgSender', '[0],[messageMgr],[msgSender]', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (64, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'msgSenderDelete', NULL, 0, NULL, 0, NULL, 3, '删除消息发送器', 2, 'msgSender', '[0],[messageMgr],[msgSender]', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (65, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'fileUpload', NULL, 0, NULL, 0, NULL, 3, '上传文件', 1, 'file', '[0],[cms],[file],', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (66, 1, '2019-7-31 21:51:33', 1, '2019-7-31 21:51:33', 'bannerEdit', NULL, 0, NULL, 0, NULL, 3, '编辑banner', 1, 'banner', '[0],[cms],[banner],', NULL, '/banner/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (67, 1, '2019-7-31 21:51:33', 1, '2019-7-31 21:51:33', 'bannerDelete', NULL, 0, NULL, 0, NULL, 3, '删除banner', 2, 'banner', '[0],[cms],[banner],', NULL, '/banner/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (68, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'channelEdit', NULL, 0, NULL, 0, NULL, 3, '编辑栏目', 1, 'channel', '[0],[cms],[channel],', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (69, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'channelDelete', NULL, 0, NULL, 0, NULL, 3, '删除栏目', 2, 'channel', '[0],[cms],[channel],', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (70, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'deleteArticle', NULL, 0, NULL, 0, NULL, 3, '删除文章', 2, 'article', '[0],[cms],[article]', NULL, NULL); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (71, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopMgr', 'layout', 0, 'shop', 1, NULL, 1, '商城管理', 1, '0', '[0],', NULL, '/shop'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (72, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopUser', 'views/shop/shopUser/index', 0, 'user', 1, NULL, 2, '会员管理', 1, 'shopMgr', '[0],[shopMgr],', NULL, '/shopUser'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (73, 1, '2019-11-4 19:01:20', 1, '2019-11-4 19:01:20', 'goods', 'views/shop/goods/index', 0, 'goods', 1, NULL, 2, '商品管理', 3, 'shopMgr', '[0],[shopMgr],', NULL, '/goods'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (74, 1, '2019-11-4 19:07:13', 1, '2019-11-4 19:07:13', 'order', 'views/shop/order/index', 0, 'order', 1, NULL, 2, '订单管理', 4, 'shopMgr', '[0],[shopMgr],', NULL, '/order'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (75, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'category', 'views/shop/category/index', 0, 'category', 1, NULL, 2, '商品类别', 2, 'shopMgr', '[0],[shopMgr],', NULL, '/category'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (76, 1, '2019-11-4 19:08:51', 1, '2019-11-4 19:08:51', 'cart', 'views/shop/cart/index', 0, 'cart', 1, NULL, 2, '购物车', 5, 'shopMgr', '[0],[shopMgr],', NULL, '/cart'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (77, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'goodsEdit', 'views/shop/goods/edit', 1, 'goods', 1, NULL, 2, '商品编辑', 2, 'shopMgr', '[0],[shopMgr],', NULL, '/goodsEdit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (78, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'shopUserDetail', 'views/shop/shopUser/detail', 1, 'user', 1, NULL, 2, '用户详情', 2, 'shopMgr', '[0],[shopMgr],', NULL, '/shopUserDetail'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (79, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'orderDetail', 'views/shop/order/detail', 1, 'order', 1, NULL, 2, '订单详情', 2, 'shopMgr', '[0],[shopMgr],', NULL, '/orderDetail'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (80, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'categoryEdit', NULL, 0, NULL, 0, NULL, 3, '编辑类别', 1, 'category', '[0],[shopMgr],[category],', NULL, '/category/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (82, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'promotion', 'layout', 0, 'promotion', 1, NULL, 1, '推广管理', 2, '0', '[0],', NULL, '/promotion'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (83, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topic', 'views/promotion/topic/index', 0, 'topic', 1, NULL, 2, '专题管理', 1, 'promotion', '[0],[promotion],', NULL, '/topic'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (84, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topicEdit', NULL, 0, NULL, 0, NULL, 3, '编辑专题', 1, 'topic', '[0],[promotion],[topic],', NULL, '/topic/edit'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (85, 1, '2019-7-31 22:04:30', 1, '2019-7-31 22:04:30', 'topicDelete', NULL, 0, NULL, 0, NULL, 3, '删除专题', 2, 'topic', '[0],[promotion],[topic],', NULL, '/topic/delete'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (86, 1, '2020-1-24 22:21:40', 1, '2020-1-24 22:21:40', 'favorite', 'views/shop/favorite/index', 0, 'favorite', 1, NULL, 2, '收藏列表', 6, 'shopMgr', '[0],[shopMgr],', NULL, '/favorite'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (87, 1, '2020-2-9 10:18:33', 1, '2020-2-9 10:18:53', 'express', 'views/system/express/index', 0, 'express', 1, NULL, 2, '物流公司', 7, 'system', '[0],[system]', NULL, '/express'); +INSERT INTO `t_sys_menu` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `code`, `component`, `hidden`, `icon`, `ismenu`, `isopen`, `levels`, `name`, `num`, `pcode`, `pcodes`, `tips`, `url`) VALUES (88, 1, '2020-2-9 10:18:33', 1, '2020-2-9 10:18:53', 'expressEdit', NULL, 0, NULL, 0, NULL, 3, '编辑物流公司', 1, 'express', '[0],[system],[express]', NULL, '/express/edit'); -- ---------------------------- -- Records of t_sys_notice.sql diff --git a/linjiashop-admin/package.json b/linjiashop-admin/package.json index 8539631bb554ec20096bfd4301f9dafa0c9bf8eb..ef756ec10c43dfa3f3369b1ea62d102ac9ed7a7b 100644 --- a/linjiashop-admin/package.json +++ b/linjiashop-admin/package.json @@ -15,6 +15,7 @@ "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, "dependencies": { + "@riophae/vue-treeselect": "^0.4.0", "axios": "0.18.0", "browserslist": "^4.9.0", "caniuse-lite": "^1.0.30001030", diff --git a/linjiashop-admin/src/api/shop/order.js b/linjiashop-admin/src/api/shop/order.js index bc913fe24cd77c2d9f2d49731271d925f229f8cf..ef970bb7056e9fc70ecf205e05311c4270e1fb6b 100644 --- a/linjiashop-admin/src/api/shop/order.js +++ b/linjiashop-admin/src/api/shop/order.js @@ -64,9 +64,9 @@ export default { } }) }, - getShippingInfo:function(shippingSn,shipperCode){ + getExpressInfo:function(orderSn){ return request({ - url:'/shop/order/getShippingInfo/'+shippingSn+'/'+shipperCode, + url:'/shop/order/getExpressInfo/'+orderSn, method:'get' }) } diff --git a/linjiashop-admin/src/api/system/dict.js b/linjiashop-admin/src/api/system/dict.js index 81cdf102d73d4d18993eb57f1f168d6291fa6016..8db962ad8bf3c4c68f10508ed29c64f26db3070c 100644 --- a/linjiashop-admin/src/api/system/dict.js +++ b/linjiashop-admin/src/api/system/dict.js @@ -34,3 +34,10 @@ export function remove(id) { } }) } + +export function getDicts(dictName) { + return request({ + url:'/dict/getDicts/'+dictName, + method:'get' + }) +} diff --git a/linjiashop-admin/src/api/system/menu.js b/linjiashop-admin/src/api/system/menu.js index 018dd876a5d137b82c302a3f331ef6962167840e..c524fe5defa9c474b13435f6bc179f84186f3dcc 100644 --- a/linjiashop-admin/src/api/system/menu.js +++ b/linjiashop-admin/src/api/system/menu.js @@ -41,3 +41,10 @@ export function menuTreeListByRoleId(roleId) { } }) } + +export function getMenuTree() { + return request({ + url: '/menu/tree', + method: 'get' + }) +} diff --git a/linjiashop-admin/src/components/DictSelect/index.vue b/linjiashop-admin/src/components/DictSelect/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..7b5f3fa3ea300139b1ce212ab3693f03c57a3183 --- /dev/null +++ b/linjiashop-admin/src/components/DictSelect/index.vue @@ -0,0 +1,69 @@ + + + diff --git a/linjiashop-admin/src/components/IconSelect/index.vue b/linjiashop-admin/src/components/IconSelect/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..f17a1a3c9a73f01002b0e207def9a1860871e5f7 --- /dev/null +++ b/linjiashop-admin/src/components/IconSelect/index.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/linjiashop-admin/src/components/IconSelect/requireIcons.js b/linjiashop-admin/src/components/IconSelect/requireIcons.js new file mode 100644 index 0000000000000000000000000000000000000000..56edb9f14cbbb322d1ce9fe7952aa8d8c73ff54f --- /dev/null +++ b/linjiashop-admin/src/components/IconSelect/requireIcons.js @@ -0,0 +1,10 @@ +const req = require.context('../../icons/svg', false, /\.svg$/) +const requireAll = requireContext => requireContext.keys() + +const re = /\.\/(.*)\.svg/ + +const icons = requireAll(req).map(i => { + return i.match(re)[1] +}) + +export default icons diff --git a/linjiashop-admin/src/main.js b/linjiashop-admin/src/main.js index 771ba88c88d5a060040a37b3c3e2a141eb5804a3..39336246a9fc25ec195ea441107e9e4566116768 100644 --- a/linjiashop-admin/src/main.js +++ b/linjiashop-admin/src/main.js @@ -15,6 +15,18 @@ import i18n from './lang' // Internationalization import '@/icons' // icon import '@/permission' // permission control +/** + * 全局引用自定义公共组件 + */ +import DictSelect from './components/DictSelect' +Vue.component('dict-select',DictSelect) +/** + * 全局引用第三方组件 + */ +import Treeselect from "@riophae/vue-treeselect"; +import "@riophae/vue-treeselect/dist/vue-treeselect.css"; +Vue.component('treeselect',Treeselect) + import Print from '@/utils/print' // 打印 Vue.use(Print) diff --git a/linjiashop-admin/src/views/message/sender/index.vue b/linjiashop-admin/src/views/message/sender/index.vue index 5b17fd3349fdad0d4bff14ee293bee3845bae6e7..ccfd7bb2c8a325ae7a92df629e5fb4f2380b00ca 100644 --- a/linjiashop-admin/src/views/message/sender/index.vue +++ b/linjiashop-admin/src/views/message/sender/index.vue @@ -23,11 +23,6 @@ {{scope.row.className}} - - - - + @@ -59,11 +54,7 @@ - - - - - + {{ $t('button.submit') }} diff --git a/linjiashop-admin/src/views/message/sender/t_message_sender.js b/linjiashop-admin/src/views/message/sender/t_message_sender.js index 04f317a0c08caa59f94713c8ecbccd2b648d52bd..4dbd2b84ad342d35dd404cfee11e33f79ca19770 100644 --- a/linjiashop-admin/src/views/message/sender/t_message_sender.js +++ b/linjiashop-admin/src/views/message/sender/t_message_sender.js @@ -9,7 +9,6 @@ export default { form: { name:'', className:'', - tplCode:'', id: '' }, listQuery: { @@ -33,18 +32,6 @@ export default { return statusMap[status] } }, - computed: { - - //表单验证 - rules() { - return { - // cfgName: [ - // { required: true, message: this.$t('config.name') + this.$t('common.isRequired'), trigger: 'blur' }, - // { min: 3, max: 2000, message: this.$t('config.name') + this.$t('config.lengthValidation'), trigger: 'blur' } - // ] - } - } - }, created() { this.init() }, @@ -116,9 +103,6 @@ export default { save({ name:this.form.name, className:this.form.className, - tplCode:this.form.tplCode, - createBy:this.form.createBy, - createTime:this.form.createTime, id: this.form.id }).then(response => { this.$message({ diff --git a/linjiashop-admin/src/views/message/template/index.vue b/linjiashop-admin/src/views/message/template/index.vue index 2b4acdb3a7be5d76832bc9788c146f185882b80b..e41a4f04d9d1028786a14c036630924af2815657 100644 --- a/linjiashop-admin/src/views/message/template/index.vue +++ b/linjiashop-admin/src/views/message/template/index.vue @@ -1,108 +1,167 @@ diff --git a/linjiashop-admin/src/views/message/template/t_message_template.js b/linjiashop-admin/src/views/message/template/t_message_template.js index 2b313738d574fcdfc4f11cc5ca10cf172d0e26d7..6ae89799a81b98b0bd67a4a3429dd68accfbe450 100644 --- a/linjiashop-admin/src/views/message/template/t_message_template.js +++ b/linjiashop-admin/src/views/message/template/t_message_template.js @@ -1,7 +1,9 @@ import { remove, getList, save } from '@/api/message/template' import { queryAll } from '@/api/message/sender' +import permission from '@/directive/permission/index.js' export default { + directives: { permission }, data() { return { formVisible: false, @@ -13,13 +15,16 @@ export default { content:'', cond:'', idMessageSender:'', + remoteTplCode:'', id: '' }, sendList:[], listQuery: { page: 1, limit: 20, - id: undefined + id: '', + idMessageSender: '', + title: '' }, total: 0, list: null, @@ -37,18 +42,6 @@ export default { return statusMap[status] } }, - computed: { - - //表单验证 - rules() { - return { - // cfgName: [ - // { required: true, message: this.$t('config.name') + this.$t('common.isRequired'), trigger: 'blur' }, - // { min: 3, max: 2000, message: this.$t('config.name') + this.$t('config.lengthValidation'), trigger: 'blur' } - // ] - } - } - }, created() { this.init() }, @@ -73,6 +66,8 @@ export default { }, reset() { this.listQuery.id = '' + this.listQuery.idMessageSender = '' + this.listQuery.title = '' this.listQuery.page = 1 this.fetchData() }, @@ -109,6 +104,7 @@ export default { content:'', cond:'', idMessageSender:'', + remoteTplCode:'', id: '' } }, @@ -126,6 +122,7 @@ export default { title:this.form.title, content:this.form.content, cond:this.form.cond, + remoteTplCode:this.form.remoteTplCode, idMessageSender:this.form.idMessageSender, id: this.form.id }).then(response => { @@ -151,6 +148,10 @@ export default { }) return false }, + editItem(record){ + this.selRow= Object.assign({},record); + this.edit() + }, edit() { if (this.checkSel()) { this.isAdd = false @@ -159,6 +160,10 @@ export default { this.formVisible = true } }, + removeItem(record){ + this.selRow = record + this.remove() + }, remove() { if (this.checkSel()) { var id = this.selRow.id diff --git a/linjiashop-admin/src/views/shop/order/index.vue b/linjiashop-admin/src/views/shop/order/index.vue index 826bf909b47556f21c3c2d2055932832bd6321c4..e28eb28e3c23e832f4baa1a6733e6f6a07b6c731 100644 --- a/linjiashop-admin/src/views/shop/order/index.vue +++ b/linjiashop-admin/src/views/shop/order/index.vue @@ -215,8 +215,8 @@ - {{activity.acceptStation}} + :timestamp="activity.AcceptTime"> + {{activity.AcceptStation}} diff --git a/linjiashop-admin/src/views/shop/order/order.js b/linjiashop-admin/src/views/shop/order/order.js index 9c69bd977d70a0cd593e9ccb4ca345ce75f09dab..d100878c0b25b963fb019254138968d41fd21f0e 100644 --- a/linjiashop-admin/src/views/shop/order/order.js +++ b/linjiashop-admin/src/views/shop/order/order.js @@ -207,8 +207,8 @@ export default { shipperCode = express.code } } - orderApi.getShippingInfo(data.shippingSn,shipperCode).then( response => { - this.shippingInfo.form['traces'] = response.data.traces + orderApi.getExpressInfo(data.orderSn,shipperCode).then( response => { + this.shippingInfo.form['traces'] = response.data.infoList this.shippingInfo.show = true }) diff --git a/linjiashop-admin/src/views/system/menu/index.vue b/linjiashop-admin/src/views/system/menu/index.vue index 64822fd7aeb4021bc10bceccee934b123c5c7b26..b2787385aaefde5c4ddfeae8638a9393c00631d8 100644 --- a/linjiashop-admin/src/views/system/menu/index.vue +++ b/linjiashop-admin/src/views/system/menu/index.vue @@ -1,15 +1,15 @@ diff --git a/linjiashop-admin/src/views/system/menu/menu.js b/linjiashop-admin/src/views/system/menu/menu.js index f75a466e95f04d1f7731b1cc7d89feaca4d52bb3..cf1c385d3ac595e7fa9feb5c5f7f66ef91704f27 100644 --- a/linjiashop-admin/src/views/system/menu/menu.js +++ b/linjiashop-admin/src/views/system/menu/menu.js @@ -1,9 +1,12 @@ import treeTable from '@/components/TreeTable' -import { getList, save, delMenu } from '@/api/system/menu' +import { getList, save, delMenu, getMenuTree } from '@/api/system/menu' +import permission from '@/directive/permission/index.js' +import IconSelect from '@/components/IconSelect' export default { + directives: { permission }, name: 'treeTableDemo', - components: { treeTable }, + components: { treeTable, IconSelect }, data() { return { showTree: false, @@ -12,20 +15,19 @@ export default { label: 'name', children: 'children' }, - listLoading: true, - expandAll: true, + expandAll: false, formTitle: '', formVisible: false, isAdd: false, form: { id: '', - pname: '', name: '', code: '', url: '', pcode: '', ismenu: 1, + hidden:false, num: 1 }, rules: { @@ -38,13 +40,14 @@ export default { { min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' } ], url: [ - { required: true, message: '请输入请求地址', trigger: 'blur' } + { required: true, message: '请输入资源地址', trigger: 'blur' } ], num: [ { required: true, message: '请输入排序', trigger: 'blur' } ] }, data: [], + treeData:[], selRow: {} } }, @@ -52,8 +55,16 @@ export default { this.init() }, methods: { + // 选择图标 + selected(name) { + this.form.icon = name + this.$forceUpdate() + }, init() { this.fetchData() + getMenuTree().then(response => { + this.treeData = response.data + }) }, fetchData() { this.listLoading = true @@ -62,11 +73,6 @@ export default { this.listLoading = false }) }, - handleNodeClick(data, node) { - this.form.pcode = data.code - this.form.pname = data.name - this.showTree = false - }, checkSel() { if (this.selRow && this.selRow.id) { return true @@ -78,10 +84,13 @@ export default { return false }, add() { - this.form = {} + this.form = {ismenu: 1,hidden:false} this.formTitle = '添加菜单' this.formVisible = true this.isAdd = true + if(this.$refs['form'] !== undefined) { + this.$refs['form'].resetFields() + } }, save() { var self = this @@ -104,22 +113,16 @@ export default { }) }, edit(row) { - this.form = row + this.form= Object.assign({},row); if (row.isMenuName === '是') { this.form.ismenu = 1 } else { this.form.ismenu = 0 } - if (row.statusName === '启用') { - this.form.status = 1 - } else { - this.form.status = 0 + if (this.form.pcode=='0') { + this.form.pcode =undefined } - if (row.parent) { - this.form.pcode = row.parent.code - this.form.pname = row.parent.name - } - console.log(this.form.pcode) + this.formTitle = '编辑菜单' this.formVisible = true this.isAdd = false @@ -137,8 +140,19 @@ export default { }) this.fetchData() }).catch(err =>{ + this.$notify.error({ + title: '错误', + message:err, + }) }) }) + }, + componentTips(){ + this.$notify({ + title: '提示', + dangerouslyUseHTMLString:true, + message: '顶级目录请输入layout,
左侧惨淡请根据实际组件路径输入:views/...
功能按钮无需输入该值' + }) } } } diff --git a/linjiashop-admin/src/views/system/user/index.vue b/linjiashop-admin/src/views/system/user/index.vue index 0bf6f4560a427d4234798ab3a43a57e5a8d14363..8f95fff998636cf4587ee964bd7f083ef95bc7ee 100644 --- a/linjiashop-admin/src/views/system/user/index.vue +++ b/linjiashop-admin/src/views/system/user/index.vue @@ -1,7 +1,7 @@