Code Monkey home page Code Monkey logo

macrozheng / mall-admin-web Goto Github PK

View Code? Open in Web Editor NEW
11.6K 11.6K 7.0K 1.94 MB

mall-admin-web是一个电商后台管理系统的前端项目,基于Vue+Element实现。 主要包括商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等功能。

Home Page: https://www.macrozheng.com/admin/

License: Apache License 2.0

JavaScript 15.64% HTML 0.20% Vue 81.74% CSS 1.42% SCSS 1.00%
axios element-ui v-charts vue vue-router vuex

mall-admin-web's People

Contributors

macrozheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mall-admin-web's Issues

后台管理端http://192.168.x.x:port访问问题

您好,我在学习您的项目时遇到了问题,部署成功后,只能使用http://localhost:port登陆,无法使用http://192.168.x.x:port访问,如何解
网上找了很多方法,如下
方法一
修改 config/index.js 的 host 属性为 ‘0.0.0.0'或192.168.x.x 不起作用
方法二

修改 build/webpack.dev.conf.js 的 devServer 配置

增加 disableHostCheck = true
也不起作用
方法三
打开package.json文件,找到下面的代码

"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.114",
也不起作用

请问如何解决http://192.168.x.x:port访问问题

功能还会完善吗?

1.点击审核详情 没有反应
2.动态权限问题,不同用户访问不同页面
目前普通用户访问总是提示这个
image

三级路由跳转

源代码中 router/index.js 中配置的路由为两级,但permission表结构中数据存在了三级路由,目前按三级做数据结构导致第三极无法跳转,但因为菜单和数据权限相关,又不得不在permission中添加三级数据。不知道滴三级路由如何实现

性能好差

考虑下优化性能,首页还是做好看一点

打包部署后 woff ttf 404

npm run build 打包部署到 服务器 tomcat 中后, woff ttf 404 文件无法访问。本地mac环境正常

使用Docker有问题

我在windows下npm run dev没问题,打包、解决静态资源访问的问题,搞完之后打镜像、run,访问的时候只能看到登陆界面,登不进去(确保后端调用没障碍,全部在云服务器);
好吧我怀疑是打包有问题,咱再尝试一个思路,在linux上run dev试试
使用node+python镜像,把源码拷进去,npm install、npm run dev
跑起来了,访问一下还是一样的问题
(浏览器完全没报错,就是没法登陆)

调用generateOrder报错

调用com.symbio.webuy.api.controller.OmsapiOrderController的generateOrder函数报错ava.lang.ClassCastException: java.lang.String cannot be cast to com.symbio.webuy.api.domain.MemberDetails
at com.symbio.webuy.api.service.impl.UmsMemberServiceImpl.getCurrentMember(UmsMemberServiceImpl.java:130) ~

指向UmsMemberServiceImpl的getCurrentMember函数说转型错误

前端登录不了

我在一台电脑上运行mall-admin-web,在本地是能正常登录的,但是在另外一台电脑上通过浏览器不能登录(能进入登录界面),请问这是什么问题,下图是调试相关信息

微信图片_20190531164436

图片上传oss问题

提示跨域,项目在本地跑有障碍吗?同时还有一个问题,源码中upload 组件上传的参数和OSS要求的验证方式是如何匹配的

方法缺失问题

商品\商品列表 下
handleShowVerifyDetail(审核详情)
handleShowProduct(查看)
handleShowLog(日志)
这三个js方法丢失,页面功能无法正常使用,您提供的访问网址上这几个功能也无法正常使用,另外自己down下来的项目也是一样缺失这些方法。期待您的回答

商品分类列表渲染 第二个循环问题

ProductInfoDetail.vue
i<this.productCateOptions[i].children.length;

getCateNameById(id){
let name=null;
for(let i=0;i<this.productCateOptions.length;i++){
for(let j=0; i<this.productCateOptions[i].children.length;j++){
if(this.productCateOptions[i].children[j].value===id){
name=this.productCateOptions[i].children[j].label;
return name;
}
}

管理后台用户角色权限

用户、权限、角色的管理还缺失了,我可以一起开发,想问下现在有在计划开发吗?还是正 在开发?

优惠券管理问题

我创建了优惠券,时间设置正确了,为什么状态栏显示已过期
微信截图_20190705104352

vue调用后台问题请求

请教一个问题:我在linux上部署了VUE前端的项目,同时也在这个机器上部署了相对应的后台服务,但奇怪的是前台的连接不调用这个后台的服务,而是调用我本地windows上起的后台服务,这个是为什么呢?

Nice project

Hi,
Is this frontend or backend? So if it's Web front-end, then there must be another backend?

在windows系统下npm install 遇到两个问题:1.安全漏洞 25 vulnerabilities (7 low, 13 moderate, 3 high, 2 critical) [email protected]不支持windows系统.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os"
:"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

added 1293 packages from 731 contributors and audited 11496 packages in 1065.74s
found 25 vulnerabilities (7 low, 13 moderate, 3 high, 2 critical)
run npm audit fix to fix them, or npm audit for detail

在前端添加滑块组件

在前端新建界面以后添加element-ui的滑块slider组件,添加后无法显示滑块下方的marks属性,在我自己的其他前端项目中均无此问题,element-ui我已更新到最新的2.12.0版本,麻烦解答一下,感激不尽

兼容IE11

系统不兼容IE11么,请问有什么需要修改的

mac pro npm install 问题

mall-admin-web这个项目不更新了吗?我这边在mac pro 环境下npm install 出现好多错误。
node版本:v12.4.0 npm版本:6.9.0
错误:
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.3/fse-v1.2.3-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)

make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64" "--napi_version=4" "--node_abi_napi=napi"
gyp ERR! cwd /Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents
gyp ERR! node -v v12.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/12.4.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:200:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/12.4.0/bin/node" "/Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/xuchaotong/IdeaProjects/mall-admin-web/node_modules/fsevents
node-pre-gyp ERR! node -v v12.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok

npm install 安装报错

E:\01_Work\mall-admin-web>npm install
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: Switch to the bfj package for fixes and new features!
npm ERR! registry error parsing json
npm WARN prefer global [email protected] should be installed with -g

[email protected] install E:\01_Work\mall-admin-web\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-48_binding.node":

ESOCKETTIMEDOUT

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

[email protected] postinstall E:\01_Work\mall-admin-web\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js

[email protected] postinstall E:\01_Work\mall-admin-web\node_modules\node-sass
node scripts/build.js

Building: E:\01_Work\01_DevSpace\nodes\nodejs\node.exe E:\01_Work\mall-admin-web\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\01_Work\01_DevSpace\nodes\nodejs\node.exe',
gyp verb cli 'E:\01_Work\mall-admin-web\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (E:\01_Work\mall-admin-web\node_modules\which\which.js:13:12)
gyp verb which failed at F (E:\01_Work\mall-admin-web\node_modules\which\which.js:68:19)
gyp verb which failed at E (E:\01_Work\mall-admin-web\node_modules\which\which.js:80:29)
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\which\which.js:89:16
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\isexe\index.js:42:5
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (E:\01_Work\mall-admin-web\node_modules\which\which.js:13:12)
gyp verb which failed at F (E:\01_Work\mall-admin-web\node_modules\which\which.js:68:19)
gyp verb which failed at E (E:\01_Work\mall-admin-web\node_modules\which\which.js:80:29)
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\which\which.js:89:16
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\isexe\index.js:42:5
gyp verb which failed at E:\01_Work\mall-admin-web\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundError (E:\01_Work\mall-admin-web\node_modules\which\which.js:13:12)\n at F (E:\01_Work\mall-admin-we
b\node_modules\which\which.js:68:19)\n at E (E:\01_Work\mall-admin-web\node_modules\which\which.js:80:29)\n at E:\01_Work\mall-admin-web\node_modules\which\which.js:89:16
\n at E:\01_Work\mall-admin-web\node_modules\isexe\index.js:42:5\n at E:\01_Work\mall-admin-web\node_modules\isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:123:15
)',
gyp verb which failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python C:\Python27\python.EXE
gyp verb check python version C:\Python27\python.EXE -c "import sys; print "2.7.9 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 6.9.1
gyp verb command install [ '6.9.1' ]
gyp verb install input version string "6.9.1"
gyp verb install installing version: 6.9.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 6.9.1
gyp verb build dir attempting to create "build" dir: E:\01_Work\mall-admin-web\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? E:\01_Work\mall-admin-web\node_modules\node-sass\build
gyp verb Not using VS2017: Could not use PowerShell to find VS2017
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: E:\01_Work\mall-admin-web\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: E:\01_Work\mall-admin-web\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: E:\01_Work\mall-admin-web\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'E:\01_Work\mall-admin-web\node_modules\node-sass\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'E:\01_Work\mall-admin-web\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\lenovo\.node-gyp\6.9.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\lenovo\.node-gyp\6.9.1',
gyp info spawn args '-Dnode_gyp_dir=E:\01_Work\mall-admin-web\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\lenovo\.node-gyp\6.9.1\<(target_arch)\node.lib',
gyp info spawn args '-Dmodule_root_dir=E:\01_Work\mall-admin-web\node_modules\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\01_Work\mall-admin-web\node_modules\node-sass\build',
gyp info spawn args '-Goutput_dir=.' ]
Traceback (most recent call last):
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 545, in script_main
return main(sys.argv[1:])
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 538, in main
return gyp_main(args)
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2004, in GenerateOutput
generator_flags))
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 943, in _GenerateProject
return _GenerateMSVSProject(project, options, version, generator_flags)
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1047, in _GenerateMSVSProject
p.WriteIfChanged()
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp\MSVSProject.py", line 208, in WriteIfChanged
encoding="Windows-1252")
File "E:\01_Work\mall-admin-web\node_modules\node-gyp\gyp\pylib\gyp\easy_xml.py", line 122, in WriteXmlIfChanged
xml_string = xml_string.decode(default_encoding).encode(encoding)
File "C:\Python27\lib\encodings\cp1252.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 6991-6994: character maps to
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (E:\01_Work\mall-admin-web\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "E:\01_Work\01_DevSpace\nodes\nodejs\node.exe" "E:\01_Work\mall-admin-web\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "-
-libsass_library="
gyp ERR! cwd E:\01_Work\mall-admin-web\node_modules\node-sass
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of echarts@>3.0.0 but none was installed.
npm WARN [email protected] requires a peer of echarts@^4.1.0 but none was installed.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none was installed.
npm WARN Error: EPERM: operation not permitted, scandir 'E:\01_Work\mall-admin-web\node_modules\har-validator\node_modules'
npm WARN at Error (native)
npm WARN { Error: EPERM: operation not permitted, scandir 'E:\01_Work\mall-admin-web\node_modules\har-validator\node_modules'
npm WARN at Error (native)
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'scandir',
npm WARN path: 'E:\01_Work\mall-admin-web\node_modules\har-validator\node_modules' }
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "E:\01_Work\01_DevSpace\nodes\nodejs\node.exe" "E:\01_Work\01_DevSpace\nodes\nodejs\node_global\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\01_Work\mall-admin-web\npm-debug.log

部署后上文路径容易出错

config 文件中 index.js 其中 assetsPublicPath: './', 应该改为相对路径不然
当 nginx 中
location /mall {
alias /usr/share/nginx/mall;
index index.html index.htm;
}
这样配置时会出现访问静态资源路径不正确的问题

sidebarItem多层路由嵌套的时候,路由路经显示不正确

比如这样
// 营销中心 分为优惠券管理和礼品卡管理
import Layout from '@/views/layout/Layout'

const ticketRouter = {
path: '/ticket',
component: Layout,
redirect: '/ticket/couponBatch/index',
name: 'Ticket',
meta: {
title: '营销中心',
icon: 'sms'
},
children: [{
path: 'couponBatch',
name: 'CouponBatch',
redirect: '/CouponBatch/index',
component: () => import('@/views/ticket/couponBatch/index'), // Parent router-view
meta: {
title: '优惠券管理',
icon: 'sms'
},
children: [{
path: 'CouponBatch/index',
name: 'CouponBatchIndex',
component: () => import('@/views/ticket/couponBatch/index'),
meta: {
title: '优惠券管理',
icon: 'sms'
}
}]
},
{
path: 'gifts',
component: () => import('@/views/ticket/gifts/index'), // Parent router-view
name: 'Gifts',
redirect: '/ticket/gifts/index',
children: [{
path: 'index',
component: () => import('@/views/ticket/gifts/index'),
name: 'GiftIndex',
meta: {
title: '礼品卡管理',
icon: 'sms'
}
}
]
}
]
}
export default ticketRouter

借鉴和合作

你好,我现在也做了类似springboot+vue-element的商场系统,https://github.com/linlinjava/litemall。
虽然关注比你多点,但是其实是我基于别的开源项目整合以及写的文档骗来的。由于自身前端能力较差,能不能参考或者拷贝前端少量代码。当然我会在readme里面写上你这里参考出处。当然,如果你觉得不合适,那我就自己摸索写吧。实际上,你后端技术也很强,不知道能不能合作和学习。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.