diff --git a/public/static/iconfont/demo_index.html b/public/static/iconfont/demo_index.html index aa7a3bc..b47e4f5 100644 --- a/public/static/iconfont/demo_index.html +++ b/public/static/iconfont/demo_index.html @@ -22,86 +22,86 @@
  • Font class
  • Symbol
  • - + 查看项目 - +

    Unicode 引用

    @@ -151,7 +151,7 @@
      - +
    • @@ -160,7 +160,7 @@
      .icon-caiwu
    • - +
    • @@ -169,7 +169,7 @@
      .icon-shouquanguanli
    • - +
    • @@ -178,7 +178,7 @@
      .icon-shebeiguanli
    • - +
    • @@ -187,7 +187,7 @@
      .icon-changdiguanli
    • - +
    • @@ -196,7 +196,7 @@
      .icon-yunyingguanli
    • - +
    • @@ -205,7 +205,7 @@
      .icon-left
    • - +
    • @@ -214,7 +214,7 @@
      .icon-right
    • - +
    • @@ -223,7 +223,7 @@
      .icon-shangpinguanli
    • - +
    • @@ -232,7 +232,7 @@
      .icon-xitongrizhi
    • - +
    • @@ -241,7 +241,7 @@
      .icon-baobiaotongji4
    • - +
    • @@ -250,7 +250,7 @@
      .icon-yemian-copy
    • - +
    • @@ -259,7 +259,7 @@
      .icon-shebeiguanli1
    • - +

    font-class 引用

    @@ -288,7 +288,7 @@
      - +
    • 财务
      #icon-caiwu
    • - +
    • 授权管理
      #icon-shouquanguanli
    • - +
    • 设备管理
      #icon-shebeiguanli
    • - +
    • 场地管理
      #icon-changdiguanli
    • - +
    • 运营管理
      #icon-yunyingguanli
    • - +
    • left
      #icon-left
    • - +
    • right
      #icon-right
    • - +
    • 商品管理
      #icon-shangpinguanli
    • - +
    • 系统日志
      #icon-xitongrizhi
    • - +
    • 报表统计d
      #icon-baobiaotongji4
    • - +
    • 首页-选中
      #icon-yemian-copy
    • - +
    • 设备管理
      #icon-shebeiguanli1
    • - +

    Symbol 引用

    diff --git a/src/api/login.js b/src/api/login.js index 0b97e35..2523862 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -8,10 +8,10 @@ export function loginByUsername(username, password) { const data = { username, password, - "grant_type": 'merchant_password' + // "grant_type": 'merchant_password' } return axios({ - url: BASE_API + '/oauth/token', + url: BASE_API + '/back/home/login', method: 'POST', data: qs.stringify(data), headers: { @@ -23,7 +23,7 @@ export function loginByUsername(username, password) { export function logout() { return axios({ - url: '/login/logout', + url: '/back/home/logout', method: 'post' }) } @@ -35,4 +35,3 @@ export function getUserInfo(token) { params: { token } }) } - diff --git a/src/config.js b/src/config.js index 6392228..4d61252 100644 --- a/src/config.js +++ b/src/config.js @@ -3,7 +3,8 @@ export const DEVICE_TYPE_SMALL = "quxia" export const DEVICE_TYPE_BIG = "quxia-vm" export const client_id = 'test' export const client_secret = "test" -export const BASE_API = "https://rapapi.renqilai.com/app/mock/39"; +// export const BASE_API = "https://rapapi.renqilai.com/app/mock/39"; +export const BASE_API = "https://test.tall.wiki/datang/v1.0"; export const pageSize = 20 export const SHELF_MAX_ROW=7 diff --git a/src/router/index.js b/src/router/index.js index a797e89..f0da2bd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,36 +22,44 @@ export const constantRoutes = [ }, { path: '/', - redirect: '/dashboard/index' + redirect: '/privilegeManagement/account' }, - { - path: '/dashboard', - component: Layout, - children: [ - { - path: '/dashboard/index', - component: () => import('@/views/dashboard/index'), - name: '首页', - /* affix: true 一直固定不关闭 */ - meta: { title: '首页', icon: 'yemian-copy', noCache: true, affix: true } - }, - ] - }, - /* inject new router */ - require("./modules/orgManage.js").default, - require("./modules/device.js").default, - require("./modules/shelfs.js").default, - require("./modules/location.js").default, - require("./modules/inventory.js").default, - require("./modules/advertisingManagement.js").default, - require("./modules/commodityManagement.js").default, require("./modules/privilegeManagement.js").default, - require("./modules/distribution.js").default, - require("./modules/marketingCenter.js").default, - require("./modules/valueAddedManagement.js").default, - require("./modules/order.js").default, + require("./menus/index.js").default, + require("./menus/profile.js").default, + require("./menus/news.js").default, + require("./menus/building.js").default, + require("./menus/production.js").default, + require("./menus/notice.js").default, + require("./menus/information.js").default, + require("./menus/approval.js").default, + require("./menus/system.js").default, + require("./menus/department.js").default, { path: '*', redirect: '/404', hidden: true } - + // { + // path: '/dashboard', + // component: Layout, + // children: [ + // { + // path: '/dashboard/index', + // component: () => import('@/views/dashboard/index'), + // name: '首页', + // // /* affix: true 一直固定不关闭 */ + // meta: { title: '首页', icon: 'yemian-copy', noCache: true, affix: true } + // }, + // ] + // }, + /* inject new router */ + // require("./modules/orgManage.js").default, + // require("./modules/device.js").default, + // require("./modules/shelfs.js").default, + // require("./modules/location.js").default, + // require("./modules/inventory.js").default, + // require("./modules/advertisingManagement.js").default, + // require("./modules/commodityManagement.js").default, + // require("./modules/distribution.js").default, + // require("./modules/marketingCenter.js").default, + // require("./modules/order.js").default, ]; diff --git a/src/router/menus/approval.js b/src/router/menus/approval.js new file mode 100644 index 0000000..3fa7281 --- /dev/null +++ b/src/router/menus/approval.js @@ -0,0 +1,60 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/approval', + component: Layout, + meta: {title: '审批事项', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/approval1', + code: '0701', + component: () => import('@/views/richText/index'), + name: '公务用车', + meta: {title: '公务用车', noCache: false, affix: false} + }, + { + path: '/approval2', + code: '0702', + component: () => import('@/views/richText/index'), + name: '领导干部外出报备', + meta: {title: '领导干部外出报备', noCache: false, affix: false}, + }, + { + path: '/approval3', + code: '0703', + component: () => import('@/views/richText/index'), + name: '疫情防控', + meta: {title: '疫情防控', noCache: false, affix: false}, + }, + { + path: '/approval4', + code: '0704', + component: () => import('@/views/richText/index'), + name: '用印申请', + meta: {title: '用印申请', noCache: false, affix: false}, + }, + { + path: '/approval5', + code: '0705', + component: () => import('@/views/richText/index'), + name: '业务招待事项', + meta: {title: '业务招待事项', noCache: false, affix: false}, + }, + { + path: '/approval6', + code: '0706', + component: () => import('@/views/richText/index'), + name: '会议室使用', + meta: {title: '会议室使用', noCache: false, affix: false}, + }, + { + path: '/approval7', + code: '0707', + component: () => import('@/views/richText/index'), + name: '办公用品领用', + meta: {title: '办公用品领用', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/building.js b/src/router/menus/building.js new file mode 100644 index 0000000..18bebe0 --- /dev/null +++ b/src/router/menus/building.js @@ -0,0 +1,53 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/building', + component: Layout, + meta: {title: '党的建设', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/building1', + code: '0301', + component: () => import('@/views/lists/index'), + name: '中心组学习', + meta: {title: '中心组学习', noCache: false, affix: false} + }, + { + path: '/building2', + code: '0302', + component: () => import('@/views/lists/index'), + name: '示范党委', + meta: {title: '示范党委', noCache: false, affix: false}, + }, + { + path: '/building3', + code: '0303', + component: () => import('@/views/lists/index'), + name: '党支部达标', + meta: {title: '党支部达标', noCache: false, affix: false}, + }, + { + path: '/building4', + code: '0304', + component: () => import('@/views/lists/index'), + name: '群团工作', + meta: {title: '群团工作', noCache: false, affix: false}, + }, + { + path: '/building5', + code: '0305', + component: () => import('@/views/lists/index'), + name: '党建动态', + meta: {title: '党建动态', noCache: false, affix: false}, + }, + { + path: '/building6', + code: '0306', + component: () => import('@/views/lists/index'), + name: '党风廉政', + meta: {title: '党风廉政', noCache: false, affix: false}, + }, + ] +}; + +export default commodityManagement diff --git a/src/router/menus/department.js b/src/router/menus/department.js new file mode 100644 index 0000000..57e6d2e --- /dev/null +++ b/src/router/menus/department.js @@ -0,0 +1,123 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/profile', + component: Layout, + meta: {title: '部门首页', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/profile1', + code: '0901', + component: () => import('@/views/richText/index'), + name: '总经理工作部', + meta: {title: '总经理工作部', noCache: false, affix: false} + }, + { + path: '/profile2', + code: '0902', + component: () => import('@/views/richText/index'), + name: '计划营销部', + meta: {title: '计划营销部', noCache: false, affix: false}, + }, + { + path: '/profile3', + code: '0903', + component: () => import('@/views/richText/index'), + name: '财务管理部', + meta: {title: '财务管理部', noCache: false, affix: false}, + }, + { + path: '/profile4', + code: '0904', + component: () => import('@/views/richText/index'), + name: '人力资源部', + meta: {title: '人力资源部', noCache: false, affix: false}, + }, + { + path: '/profile5', + code: '0905', + component: () => import('@/views/richText/index'), + name: '党群工作部', + meta: {title: '党群工作部', noCache: false, affix: false}, + }, + { + path: '/profile6', + code: '0906', + component: () => import('@/views/richText/index'), + name: '纪委办公室(审计部)', + meta: {title: '纪委办公室(审计部)', noCache: false, affix: false}, + }, + { + path: '/profile7', + code: '0907', + component: () => import('@/views/richText/index'), + name: '燃料采购部', + meta: {title: '燃料采购部', noCache: false, affix: false}, + }, + { + path: '/profile8', + code: '0908', + component: () => import('@/views/richText/index'), + name: '物资管理部', + meta: {title: '物资管理部', noCache: false, affix: false}, + }, + { + path: '/profile9', + code: '0909', + component: () => import('@/views/richText/index'), + name: '项目开发部', + meta: {title: '项目开发部', noCache: false, affix: false}, + }, + { + path: '/profile10', + code: '0910', + component: () => import('@/views/richText/index'), + name: '燃料质量验收部', + meta: {title: '燃料质量验收部', noCache: false, affix: false}, + }, + { + path: '/profile11', + code: '0911', + component: () => import('@/views/richText/index'), + name: '安全监督部', + meta: {title: '安全监督部', noCache: false, affix: false}, + }, + { + path: '/profile12', + code: '0912', + component: () => import('@/views/richText/index'), + name: '设备部', + meta: {title: '设备部', noCache: false, affix: false}, + }, + { + path: '/profile13', + code: '0913', + component: () => import('@/views/richText/index'), + name: '发电部', + meta: {title: '发电部', noCache: false, affix: false}, + }, + { + path: '/profile14', + code: '0914', + component: () => import('@/views/richText/index'), + name: '维护部', + meta: {title: '维护部', noCache: false, affix: false}, + }, + { + path: '/profile15', + code: '0915', + component: () => import('@/views/richText/index'), + name: '热工专业', + meta: {title: '热工专业', noCache: false, affix: false}, + }, + { + path: '/profile16', + code: '0916', + component: () => import('@/views/richText/index'), + name: '电气专业', + meta: {title: '电气专业', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/index.js b/src/router/menus/index.js new file mode 100644 index 0000000..fb6e485 --- /dev/null +++ b/src/router/menus/index.js @@ -0,0 +1,17 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/index', + component: Layout, + meta: {title: '首页', icon: 'yemian-copy', noCache: true, affix: false}, + children: [ + { + path: '/index/index', + component: () => import('@/views/index/index'), + name: '首页', + meta: {title: '首页', noCache: false, affix: false} + }, + ] +}; + +export default commodityManagement diff --git a/src/router/menus/information.js b/src/router/menus/information.js new file mode 100644 index 0000000..e8e78ff --- /dev/null +++ b/src/router/menus/information.js @@ -0,0 +1,46 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/information', + component: Layout, + meta: {title: '信息公开', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/information1', + code: '0601', + component: () => import('@/views/richText/index'), + name: '基本信息', + meta: {title: '基本信息', noCache: false, affix: false} + }, + { + path: '/information2', + code: '0602', + component: () => import('@/views/richText/index'), + name: '经营管理', + meta: {title: '经营管理', noCache: false, affix: false}, + }, + { + path: '/information3', + code: '0603', + component: () => import('@/views/richText/index'), + name: '公司公告', + meta: {title: '公司公告', noCache: false, affix: false}, + }, + { + path: '/information4', + code: '0604', + component: () => import('@/views/richText/index'), + name: '社会责任', + meta: {title: '社会责任', noCache: false, affix: false}, + }, + { + path: '/information5', + code: '0605', + component: () => import('@/views/richText/index'), + name: '关于信息公开', + meta: {title: '关于信息公开', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/news.js b/src/router/menus/news.js new file mode 100644 index 0000000..f48c2f4 --- /dev/null +++ b/src/router/menus/news.js @@ -0,0 +1,81 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/news', + component: Layout, + meta: {title: '新闻中心', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/news1', + code: '0201', + component: () => import('@/views/lists/index'), + name: '集团新闻', + meta: {title: '集团新闻', noCache: false, affix: false} + }, + { + path: '/news2', + code: '0202', + component: () => import('@/views/lists/index'), + name: '省公司新闻', + meta: {title: '省公司新闻', noCache: false, affix: false}, + }, + { + path: '/news3', + code: '0203', + component: () => import('@/views/lists/index'), + name: '公司新闻', + meta: {title: '公司新闻', noCache: false, affix: false}, + }, + { + path: '/news4', + code: '0204', + component: () => import('@/views/lists/index'), + name: '图片新闻', + meta: {title: '图片新闻', noCache: false, affix: false}, + }, + { + path: '/news5', + code: '0205', + component: () => import('@/views/lists/index'), + name: '热点专题', + meta: {title: '热点专题', noCache: false, affix: false}, + }, + { + path: '/news6', + code: '0206', + component: () => import('@/views/lists/index'), + name: '媒体关注', + meta: {title: '媒体关注', noCache: false, affix: false}, + }, + { + path: '/news7', + code: '0207', + component: () => import('@/views/lists/index'), + name: '视频新闻', + meta: {title: '视频新闻', noCache: false, affix: false}, + }, + { + path: '/news8', + code: '0208', + component: () => import('@/views/lists/index'), + name: '专题片', + meta: {title: '专题片', noCache: false, affix: false}, + }, + { + path: '/news9', + code: '0209', + component: () => import('@/views/lists/index'), + name: '企业画册', + meta: {title: '企业画册', noCache: false, affix: false}, + }, + { + path: '/news10', + code: '0210', + component: () => import('@/views/lists/index'), + name: '现场采风', + meta: {title: '现场风采', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/notice.js b/src/router/menus/notice.js new file mode 100644 index 0000000..e473e5f --- /dev/null +++ b/src/router/menus/notice.js @@ -0,0 +1,46 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/notice', + component: Layout, + meta: {title: '通知公告', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/notice1', + code: '0501', + component: () => import('@/views/lists/index'), + name: '通知', + meta: {title: '通知', noCache: false, affix: false} + }, + { + path: '/notice2', + code: '0502', + component: () => import('@/views/lists/index'), + name: '通报', + meta: {title: '通报', noCache: false, affix: false}, + }, + { + path: '/notice3', + code: '0503', + component: () => import('@/views/lists/index'), + name: '公告', + meta: {title: '公告', noCache: false, affix: false}, + }, + { + path: '/notice4', + code: '0504', + component: () => import('@/views/lists/index'), + name: '值班安排', + meta: {title: '值班安排', noCache: false, affix: false}, + }, + { + path: '/notice5', + code: '0505', + component: () => import('@/views/lists/index'), + name: '浮窗', + meta: {title: '浮窗', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/production.js b/src/router/menus/production.js new file mode 100644 index 0000000..4ce0318 --- /dev/null +++ b/src/router/menus/production.js @@ -0,0 +1,46 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/production', + component: Layout, + meta: {title: '安全生产', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/production1', + code: '0401', + component: () => import('@/views/lists/index'), + name: '安全会议', + meta: {title: '安全会议', noCache: false, affix: false} + }, + { + path: '/production2', + code: '0402', + component: () => import('@/views/lists/index'), + name: '安全生产记录', + meta: {title: '安全生产记录', noCache: false, affix: false}, + }, + { + path: '/production3', + code: '0403', + component: () => import('@/views/lists/index'), + name: '应急管理', + meta: {title: '应急管理', noCache: false, affix: false}, + }, + { + path: '/production4', + code: '0404', + component: () => import('@/views/lists/index'), + name: '三讲一落实', + meta: {title: '三讲一落实', noCache: false, affix: false}, + }, + { + path: '/production5', + code: '0405', + component: () => import('@/views/lists/index'), + name: '曝光台', + meta: {title: '曝光台', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/profile.js b/src/router/menus/profile.js new file mode 100644 index 0000000..10efcb2 --- /dev/null +++ b/src/router/menus/profile.js @@ -0,0 +1,46 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/profile', + component: Layout, + meta: {title: '公司概况', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/profile1', + code: '0101', + component: () => import('@/views/richText/index'), + name: '公司简介', + meta: {title: '公司简介', noCache: false, affix: false} + }, + { + path: '/profile2', + code: '0102', + component: () => import('@/views/richText/index'), + name: '公司领导', + meta: {title: '公司领导', noCache: false, affix: false}, + }, + { + path: '/profile3', + code: '0103', + component: () => import('@/views/richText/index'), + name: '组织架构', + meta: {title: '组织架构', noCache: false, affix: false}, + }, + { + path: '/profile4', + code: '0104', + component: () => import('@/views/richText/index'), + name: '企业VI', + meta: {title: '企业VI', noCache: false, affix: false}, + }, + { + path: '/profile5', + code: '0105', + component: () => import('@/views/richText/index'), + name: '联系方式', + meta: {title: '联系方式', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/router/menus/system.js b/src/router/menus/system.js new file mode 100644 index 0000000..cb47a00 --- /dev/null +++ b/src/router/menus/system.js @@ -0,0 +1,67 @@ +import Layout from '@/views/layout/Layout' + +const commodityManagement = { + path: '/profile', + component: Layout, + meta: {title: '制度资料', icon: 'dingdan', noCache: true, affix: false}, + children: [ + { + path: '/profile1', + code: '0801', + component: () => import('@/views/richText/index'), + name: '集团公司制度', + meta: {title: '集团公司制度', noCache: false, affix: false} + }, + { + path: '/profile2', + code: '0802', + component: () => import('@/views/richText/index'), + name: '山西公司制度', + meta: {title: '山西公司制度', noCache: false, affix: false}, + }, + { + path: '/profile3', + code: '0803', + component: () => import('@/views/richText/index'), + name: '行业标准与制度', + meta: {title: '行业标准与制度', noCache: false, affix: false}, + }, + { + path: '/profile4', + code: '0804', + component: () => import('@/views/richText/index'), + name: '公司制度', + meta: {title: '公司制度', noCache: false, affix: false}, + }, + { + path: '/profile5', + code: '0805', + component: () => import('@/views/richText/index'), + name: '地方规章', + meta: {title: '地方规章', noCache: false, affix: false}, + }, + { + path: '/profile6', + code: '0806', + component: () => import('@/views/richText/index'), + name: '培训课件', + meta: {title: '培训课件', noCache: false, affix: false}, + }, + { + path: '/profile7', + code: '0807', + component: () => import('@/views/richText/index'), + name: '培训影像', + meta: {title: '培训影像', noCache: false, affix: false}, + }, + { + path: '/profile8', + code: '0808', + component: () => import('@/views/richText/index'), + name: '科技创新', + meta: {title: '科技创新', noCache: false, affix: false}, + } + ] +}; + +export default commodityManagement diff --git a/src/views/index/detailsOfDistribution.vue b/src/views/index/detailsOfDistribution.vue new file mode 100644 index 0000000..a99e610 --- /dev/null +++ b/src/views/index/detailsOfDistribution.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/index/form.vue b/src/views/index/form.vue new file mode 100644 index 0000000..d23cba9 --- /dev/null +++ b/src/views/index/form.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/views/index/index.vue b/src/views/index/index.vue new file mode 100644 index 0000000..7060392 --- /dev/null +++ b/src/views/index/index.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/src/views/layout/components/AppMain.vue b/src/views/layout/components/AppMain.vue index 6fa3321..c97f6ee 100644 --- a/src/views/layout/components/AppMain.vue +++ b/src/views/layout/components/AppMain.vue @@ -33,4 +33,3 @@ export default { background: $pageBg; } - diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index c76ce38..9ad22d0 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -5,7 +5,6 @@ :is-active="sidebar.opened" class="hamburger-container" /> - diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index 1fea0ea..40b02be 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -1,26 +1,30 @@