|
@@ -43,3 +43,184 @@ func (e *SysMenu) Generate() model2.ActiveRecord {
|
|
|
func (e *SysMenu) GetId() interface{} {
|
|
|
return e.Id
|
|
|
}
|
|
|
+
|
|
|
+var (
|
|
|
+ NoDeptMenu = `[
|
|
|
+ {
|
|
|
+ "path": "/usermanagement",
|
|
|
+ "name": "usermanagement",
|
|
|
+ "icon": "icon-icon-",
|
|
|
+ "component": "@/views/usermanagement/index.vue",
|
|
|
+ "redirect": "/usermanagement/user",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "用户管理"
|
|
|
+ },
|
|
|
+ "children": [
|
|
|
+ {
|
|
|
+ "path": "/usermanagement/user",
|
|
|
+ "name": "user",
|
|
|
+ "icon": "icon-icon-",
|
|
|
+ "component": "@/views/usermanagement/user/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "用户管理"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/usermanagement/company",
|
|
|
+ "name": "company",
|
|
|
+ "icon": "icon-zhuye1",
|
|
|
+ "component": "@/views/usermanagement/company/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "公司管理"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+]`
|
|
|
+
|
|
|
+ HaveDeptMenu = `[
|
|
|
+ {
|
|
|
+ "path": "/home",
|
|
|
+ "name": "home",
|
|
|
+ "icon": "icon-shouye_zhuyehui",
|
|
|
+ "component": "@/views/home/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "工作台"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/essentialinfo",
|
|
|
+ "name": "essentialinfo",
|
|
|
+ "icon": "icon-zhuye1",
|
|
|
+ "component": "@/views/essentialinfo/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "基本信息"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/usermanagement",
|
|
|
+ "name": "usermanagement",
|
|
|
+ "icon": "icon-icon-",
|
|
|
+ "component": "@/views/usermanagement/index.vue",
|
|
|
+ "redirect": "/usermanagement/user",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "用户管理"
|
|
|
+ },
|
|
|
+ "children": [
|
|
|
+ {
|
|
|
+ "path": "/usermanagement/user",
|
|
|
+ "name": "user",
|
|
|
+ "icon": "icon-icon-",
|
|
|
+ "component": "@/views/usermanagement/user/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "用户管理"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/usermanagement/company",
|
|
|
+ "name": "company",
|
|
|
+ "icon": "icon-zhuye1",
|
|
|
+ "component": "@/views/usermanagement/company/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "公司管理"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/stockcontrol",
|
|
|
+ "name": "stockcontrol",
|
|
|
+ "icon": "icon-_kucun",
|
|
|
+ "component": "@/views/stockcontrol/index.vue",
|
|
|
+ "redirect": "/stockcontrol/storagePut",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "库存管理"
|
|
|
+ },
|
|
|
+ "children": [
|
|
|
+ {
|
|
|
+ "path": "/stockcontrol/storagePut",
|
|
|
+ "name": "storagePut",
|
|
|
+ "icon": "icon-_kucun",
|
|
|
+ "component": "@/views/stockcontrol/storagePut/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "入库管理"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/stockcontrol/storageFrom",
|
|
|
+ "name": "storageFrom",
|
|
|
+ "icon": "icon-ruku",
|
|
|
+ "component": "@/views/stockcontrol/storageFrom/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "出库管理"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/stockcontrol/storageInquire",
|
|
|
+ "name": "storageInquire",
|
|
|
+ "icon": "icon-fenxixiangmuku",
|
|
|
+ "component": "@/views/stockcontrol/storageInquire/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "库存查询"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/stockcontrol/transmitReceive",
|
|
|
+ "name": "transmitReceive",
|
|
|
+ "icon": "icon-ruku",
|
|
|
+ "component": "@/views/stockcontrol/transmitReceive/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "收发记录"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/salesmanagement",
|
|
|
+ "name": "salesmanagement",
|
|
|
+ "icon": "icon-chukuliucheng",
|
|
|
+ "component": "@/views/salesmanagement/index.vue",
|
|
|
+ "redirect": "/salesmanagement/sellManage",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "销售管理"
|
|
|
+ },
|
|
|
+ "children": [
|
|
|
+ {
|
|
|
+ "path": "/salesmanagement/sellManage",
|
|
|
+ "name": "sellManage",
|
|
|
+ "icon": "icon-chukuliucheng",
|
|
|
+ "component": "@/views/salesmanagement/sellManage/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "销售管理"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "path": "/salesmanagement/storageOrderGoods",
|
|
|
+ "name": "storageOrderGoods",
|
|
|
+ "icon": "icon-dingdan",
|
|
|
+ "component": "@/views/salesmanagement/storageOrderGoods/index.vue",
|
|
|
+ "meta": {
|
|
|
+ "roles": false,
|
|
|
+ "title": "销售订单"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+]
|
|
|
+`
|
|
|
+)
|