轮播图
This commit is contained in:
40
src/api/lpk/banner.js
Normal file
40
src/api/lpk/banner.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
|
||||||
|
// 查询分页列表
|
||||||
|
listPage: function(params) {
|
||||||
|
return request({
|
||||||
|
url: '/adminapi/banner/pageList',
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增、保存
|
||||||
|
saveNotice: function(data) {
|
||||||
|
return request({
|
||||||
|
url: '/adminapi/banner/saveOrUpdate',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 初始化
|
||||||
|
noticeInit: function(data) {
|
||||||
|
return request({
|
||||||
|
url: '/adminapi/banner/noticeInit/' + data,
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// 修改是否可见
|
||||||
|
updateAppletUseTo: function(sid, isEnable) {
|
||||||
|
return request({
|
||||||
|
url: '/adminapi/banner/isDisplayed/' + sid + "/" + isEnable
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -10,272 +10,272 @@ import Layout from '@/layout'
|
|||||||
import codemenu from './modules/codemenu'
|
import codemenu from './modules/codemenu'
|
||||||
|
|
||||||
export const constantRoutes = [{
|
export const constantRoutes = [{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: 'login'
|
redirect: 'login'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
component: () => import('@/views/login/login.vue'),
|
component: () => import('@/views/login/login.vue'),
|
||||||
name: 'login'
|
name: 'login'
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// path: '/',
|
// path: '/',
|
||||||
// redirect: 'userInfo/index'
|
// redirect: 'userInfo/index'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/index',
|
// path: '/index',
|
||||||
// component: () => import('@/views/userInfo/index.vue'),
|
// component: () => import('@/views/userInfo/index.vue'),
|
||||||
// name: 'index'
|
// name: 'index'
|
||||||
|
|
||||||
// },
|
// },
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/index',
|
path: '/index',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/index',
|
redirect: '/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/index',
|
path: '/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/index.vue'),
|
import('@/views/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '主页',
|
title: '主页',
|
||||||
noCache: true,
|
noCache: true,
|
||||||
affix: true
|
affix: true
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/userInfo',
|
path: '/userInfo',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: '用户信息'
|
title: '用户信息'
|
||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: '/userInfo/index',
|
path: '/userInfo/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/userInfo/index.vue'),
|
import('@/views/userInfo/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '用户信息列表'
|
title: '用户信息列表'
|
||||||
}
|
}
|
||||||
}, ]
|
}, ]
|
||||||
}, {
|
}, {
|
||||||
path: '/pms',
|
path: '/pms',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品管理'
|
title: '商品管理'
|
||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: 'product',
|
path: 'product',
|
||||||
name: 'product',
|
name: 'product',
|
||||||
component: () => import('@/views/pms/product/index'),
|
component: () => import('@/views/pms/product/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品列表',
|
title: '商品列表',
|
||||||
icon: 'product-list'
|
icon: 'product-list'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'addProduct',
|
path: 'addProduct',
|
||||||
name: 'addProduct',
|
name: 'addProduct',
|
||||||
component: () => import('@/views/pms/product/add'),
|
component: () => import('@/views/pms/product/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '添加商品',
|
title: '添加商品',
|
||||||
icon: 'product-add'
|
icon: 'product-add'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: 'updateProduct',
|
path: 'updateProduct',
|
||||||
name: 'updateProduct',
|
name: 'updateProduct',
|
||||||
component: () => import('@/views/pms/product/update'),
|
component: () => import('@/views/pms/product/update'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '修改商品',
|
title: '修改商品',
|
||||||
icon: 'product-add'
|
icon: 'product-add'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
}, {
|
}, {
|
||||||
path: 'productRecycle',
|
path: 'productRecycle',
|
||||||
name: 'productRecycle',
|
name: 'productRecycle',
|
||||||
component: () => import('@/views/pms/product/index'),
|
component: () => import('@/views/pms/product/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品回收站',
|
title: '商品回收站',
|
||||||
icon: 'product-recycle'
|
icon: 'product-recycle'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
},{
|
}, {
|
||||||
path: 'brand',
|
path: 'brand',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/pms/brand/index.vue'),
|
import('@/views/pms/brand/index.vue'),
|
||||||
name: 'brand',
|
name: 'brand',
|
||||||
meta: {
|
meta: {
|
||||||
title: '品牌管理'
|
title: '品牌管理'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'addBrand',
|
path: 'addBrand',
|
||||||
name: 'addBrand',
|
name: 'addBrand',
|
||||||
component: () => import('@/views/pms/brand/add'),
|
component: () => import('@/views/pms/brand/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '添加品牌'
|
title: '添加品牌'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'updateBrand',
|
path: 'updateBrand',
|
||||||
name: 'updateBrand',
|
name: 'updateBrand',
|
||||||
component: () => import('@/views/pms/brand/update'),
|
component: () => import('@/views/pms/brand/update'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '编辑品牌'
|
title: '编辑品牌'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'productCate',
|
path: 'productCate',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/pms/productCate/index'),
|
import('@/views/pms/productCate/index'),
|
||||||
name: 'productCate',
|
name: 'productCate',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品分类'
|
title: '商品分类'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'addProductCate',
|
path: 'addProductCate',
|
||||||
name: 'addProductCate',
|
name: 'addProductCate',
|
||||||
component: () => import('@/views/pms/productCate/add'),
|
component: () => import('@/views/pms/productCate/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '添加商品分类'
|
title: '添加商品分类'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'updateProductCate',
|
path: 'updateProductCate',
|
||||||
name: 'updateProductCate',
|
name: 'updateProductCate',
|
||||||
component: () => import('@/views/pms/productCate/update'),
|
component: () => import('@/views/pms/productCate/update'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '修改商品分类'
|
title: '修改商品分类'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'productAttr',
|
path: 'productAttr',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/pms/productAttr/index'),
|
import('@/views/pms/productAttr/index'),
|
||||||
name: 'giftCard',
|
name: 'giftCard',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品类型'
|
title: '商品类型'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
path: '/marketingCard',
|
path: '/marketingCard',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/marketingCard/applet',
|
redirect: '/marketingCard/applet',
|
||||||
children: [
|
children: [
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/marketingCard/applet',
|
path: '/marketingCard/applet',
|
||||||
component: () => import('@/views/marketingCard/applet.vue'),
|
component: () => import('@/views/marketingCard/applet.vue'),
|
||||||
name: 'applet',
|
name: 'applet',
|
||||||
meta: {
|
meta: {
|
||||||
title: '小程序礼包设置',
|
title: '小程序礼包设置',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/marketingCard/newUserGift',
|
path: '/marketingCard/newUserGift',
|
||||||
component: () => import('@/views/marketingCard/newUserGift.vue'),
|
component: () => import('@/views/marketingCard/newUserGift.vue'),
|
||||||
name: 'newUserGift',
|
name: 'newUserGift',
|
||||||
meta: {
|
meta: {
|
||||||
title: '新人推荐礼包设置',
|
title: '新人推荐礼包设置',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},{
|
}, {
|
||||||
path: '/marketingCard/index',
|
path: '/marketingCard/index',
|
||||||
component: () => import('@/views/marketingCard/index.vue'),
|
component: () => import('@/views/marketingCard/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '礼包设置',
|
title: '礼包设置',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/marketingCard/pickupCardSet',
|
path: '/marketingCard/pickupCardSet',
|
||||||
component: () => import('@/views/marketingCard/pickupCardSet.vue'),
|
component: () => import('@/views/marketingCard/pickupCardSet.vue'),
|
||||||
name: 'pickupCardSet',
|
name: 'pickupCardSet',
|
||||||
meta: {
|
meta: {
|
||||||
title: '个人卡设置',
|
title: '个人卡设置',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/marketingCard/corporateCardSet',
|
path: '/marketingCard/corporateCardSet',
|
||||||
component: () => import('@/views/marketingCard/corporateCardSet.vue'),
|
component: () => import('@/views/marketingCard/corporateCardSet.vue'),
|
||||||
name: 'corporateCardSet',
|
name: 'corporateCardSet',
|
||||||
meta: {
|
meta: {
|
||||||
title: '企业卡设置',
|
title: '企业卡设置',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// path: '/marketingCard/grantRecords',
|
// path: '/marketingCard/grantRecords',
|
||||||
// component: () => import('@/views/marketingCard/grantRecords.vue'),
|
// component: () => import('@/views/marketingCard/grantRecords.vue'),
|
||||||
// name: 'grantRecords',
|
// name: 'grantRecords',
|
||||||
// meta: {
|
// meta: {
|
||||||
// title: '发放记录',
|
// title: '发放记录',
|
||||||
// noCache: true
|
// noCache: true
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/marketingCard/carList',
|
// path: '/marketingCard/carList',
|
||||||
// component: () => import('@/views/marketingCard/carList.vue'),
|
// component: () => import('@/views/marketingCard/carList.vue'),
|
||||||
// name: 'carList',
|
// name: 'carList',
|
||||||
// meta: {
|
// meta: {
|
||||||
// title: '提货卡列表',
|
// title: '提货卡列表',
|
||||||
// noCache: true
|
// noCache: true
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
path: '/cardManage',
|
path: '/cardManage',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/cardManage/person',
|
redirect: '/cardManage/person',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/cardManage/person',
|
path: '/cardManage/person',
|
||||||
component: () => import('@/views/cardManage/person.vue'),
|
component: () => import('@/views/cardManage/person.vue'),
|
||||||
name: 'person',
|
name: 'person',
|
||||||
meta: {
|
meta: {
|
||||||
title: '个人卡统计',
|
title: '个人卡统计',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/cardManage/enterprise',
|
path: '/cardManage/enterprise',
|
||||||
component: () => import('@/views/cardManage/enterprise.vue'),
|
component: () => import('@/views/cardManage/enterprise.vue'),
|
||||||
name: 'enterprise',
|
name: 'enterprise',
|
||||||
meta: {
|
meta: {
|
||||||
title: '企业卡统计',
|
title: '企业卡统计',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/cardManage/giftCard',
|
path: '/cardManage/giftCard',
|
||||||
component: () => import('@/views/cardManage/giftCard.vue'),
|
component: () => import('@/views/cardManage/giftCard.vue'),
|
||||||
name: 'giftCard',
|
name: 'giftCard',
|
||||||
meta: {
|
meta: {
|
||||||
title: '福利卡统计',
|
title: '福利卡统计',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
path: '/pickupPoint',
|
path: '/pickupPoint',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/pickupPoint/index',
|
redirect: '/pickupPoint/index',
|
||||||
@@ -300,7 +300,7 @@ export const constantRoutes = [{
|
|||||||
meta: {
|
meta: {
|
||||||
title: '优惠券管理'
|
title: '优惠券管理'
|
||||||
}
|
}
|
||||||
},{
|
}, {
|
||||||
path: '/coupon/add',
|
path: '/coupon/add',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/coupon/add.vue'),
|
import('@/views/coupon/add.vue'),
|
||||||
@@ -310,210 +310,222 @@ export const constantRoutes = [{
|
|||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/network',
|
path: '/network',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/network/index',
|
redirect: '/network/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/network/index',
|
path: '/network/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/network/index.vue'),
|
import('@/views/network/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '支行管理'
|
title: '支行管理'
|
||||||
}
|
}
|
||||||
}, ]
|
}, ]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/commodity',
|
path: '/commodity',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/commodity/index',
|
redirect: '/commodity/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/commodity/index',
|
path: '/commodity/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/commodity/index.vue'),
|
import('@/views/commodity/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品信息'
|
title: '商品信息'
|
||||||
}
|
}
|
||||||
}, ]
|
}, ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/order',
|
path: '/order',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/order/index',
|
redirect: '/order/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/order/index',
|
path: '/order/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/order/index.vue'),
|
import('@/views/order/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '订单统计'
|
title: '订单统计'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/order/distributionCount',
|
path: '/order/distributionCount',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/order/distributionCount.vue'),
|
import('@/views/order/distributionCount.vue'),
|
||||||
name: 'distributionCount',
|
name: 'distributionCount',
|
||||||
meta: {
|
meta: {
|
||||||
title: '网点配货统计'
|
title: '网点配货统计'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/order/subBranch',
|
path: '/order/subBranch',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/order/subBranch.vue'),
|
import('@/views/order/subBranch.vue'),
|
||||||
name: 'subBranch',
|
name: 'subBranch',
|
||||||
meta: {
|
meta: {
|
||||||
title: '支行配货统计'
|
title: '支行配货统计'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/order/allDistributionCount',
|
path: '/order/allDistributionCount',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/order/allDistributionCount.vue'),
|
import('@/views/order/allDistributionCount.vue'),
|
||||||
name: 'allDistributionCount',
|
name: 'allDistributionCount',
|
||||||
meta: {
|
meta: {
|
||||||
title: '总配货统计'
|
title: '总配货统计'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/orderreserve',
|
path: '/orderreserve',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/orderreserve/index',
|
redirect: '/orderreserve/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/orderreserve/index',
|
path: '/orderreserve/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderreserve/index.vue'),
|
import('@/views/orderreserve/index.vue'),
|
||||||
name: 'OrderreserveIndex',
|
name: 'OrderreserveIndex',
|
||||||
meta: {
|
meta: {
|
||||||
title: '预约单统计'
|
title: '预约单统计'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/orderreserve/distributionCount',
|
path: '/orderreserve/distributionCount',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderreserve/distributionCount.vue'),
|
import('@/views/orderreserve/distributionCount.vue'),
|
||||||
name: 'OrderreserveDistributionCount',
|
name: 'OrderreserveDistributionCount',
|
||||||
meta: {
|
meta: {
|
||||||
title: '网点配货统计'
|
title: '网点配货统计'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/orderreserve/subBranch',
|
path: '/orderreserve/subBranch',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderreserve/subBranch.vue'),
|
import('@/views/orderreserve/subBranch.vue'),
|
||||||
name: 'OrderreserveSubBranch',
|
name: 'OrderreserveSubBranch',
|
||||||
meta: {
|
meta: {
|
||||||
title: '支行配货统计'
|
title: '支行配货统计'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/orderreserve/allDistributionCount',
|
path: '/orderreserve/allDistributionCount',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderreserve/allDistributionCount.vue'),
|
import('@/views/orderreserve/allDistributionCount.vue'),
|
||||||
name: 'OrderreserveAllDistributionCount',
|
name: 'OrderreserveAllDistributionCount',
|
||||||
meta: {
|
meta: {
|
||||||
title: '总配货统计'
|
title: '总配货统计'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
path: '/statisticalReport',
|
path: '/statisticalReport',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/statisticalReport/index',
|
redirect: '/statisticalReport/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/statisticalReport/index',
|
path: '/statisticalReport/index',
|
||||||
component: () => import('@/views/statisticalReport/index.vue'),
|
component: () => import('@/views/statisticalReport/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '提货卡汇总',
|
title: '提货卡汇总',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statisticalReport/collectionSummary',
|
path: '/statisticalReport/collectionSummary',
|
||||||
component: () => import('@/views/statisticalReport/collectionSummary.vue'),
|
component: () => import('@/views/statisticalReport/collectionSummary.vue'),
|
||||||
name: 'collectionSummary',
|
name: 'collectionSummary',
|
||||||
meta: {
|
meta: {
|
||||||
title: '提货汇总',
|
title: '提货汇总',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statisticalReport/deliveryDetails',
|
path: '/statisticalReport/deliveryDetails',
|
||||||
component: () => import('@/views/statisticalReport/deliveryDetails.vue'),
|
component: () => import('@/views/statisticalReport/deliveryDetails.vue'),
|
||||||
name: 'deliveryDetails',
|
name: 'deliveryDetails',
|
||||||
meta: {
|
meta: {
|
||||||
title: '客户提货明细',
|
title: '客户提货明细',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/print',
|
path: '/print',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/print/index',
|
redirect: '/print/index',
|
||||||
children: [{
|
children: [{
|
||||||
path: '/print/index',
|
path: '/print/index',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/print/index.vue'),
|
import('@/views/print/index.vue'),
|
||||||
name: 'index',
|
name: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '打印电子卡'
|
title: '打印电子卡'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
path: '/print/enterpriseCrad',
|
path: '/print/enterpriseCrad',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/print/enterpriseCrad.vue'),
|
import('@/views/print/enterpriseCrad.vue'),
|
||||||
name: 'enterpriseCrad',
|
name: 'enterpriseCrad',
|
||||||
meta: {
|
meta: {
|
||||||
title: '打印企业卡'
|
title: '打印企业卡'
|
||||||
}
|
}
|
||||||
}, ]
|
}, ]
|
||||||
},
|
}, {
|
||||||
{
|
path: '/appletNotice',
|
||||||
path: '/appletNotice',
|
component: Layout,
|
||||||
component: Layout,
|
redirect: '/appletNotice/index',
|
||||||
redirect: '/appletNotice/index',
|
children: [{
|
||||||
children: [{
|
path: '/appletNotice/index',
|
||||||
path: '/appletNotice/index',
|
component: () =>
|
||||||
component: () =>
|
import('@/views/appletNotice/index.vue'),
|
||||||
import('@/views/appletNotice/index.vue'),
|
name: 'index',
|
||||||
name: 'index',
|
meta: {
|
||||||
meta: {
|
title: '小程序通告'
|
||||||
title: '小程序通告'
|
}
|
||||||
}
|
}, ]
|
||||||
}, ]
|
}, {
|
||||||
},
|
path: '/appletBanner',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/appletBanner/index',
|
||||||
|
children: [{
|
||||||
|
path: '/appletBanner/index',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/appletBanner/index.vue'),
|
||||||
|
name: 'AppletBannerIndex',
|
||||||
|
meta: {
|
||||||
|
title: '小程序轮播图'
|
||||||
|
}
|
||||||
|
}, ]
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
...codemenu,
|
...codemenu,
|
||||||
{
|
{
|
||||||
path: '/404',
|
path: '/404',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/404'),
|
import('@/views/404'),
|
||||||
hidden: true
|
hidden: true
|
||||||
}
|
}
|
||||||
// 404 page must be placed at the end !!!
|
// 404 page must be placed at the end !!!
|
||||||
// { path: '*', redirect: '/404', hidden: true }
|
// { path: '*', redirect: '/404', hidden: true }
|
||||||
]
|
]
|
||||||
|
|
||||||
const createRouter = () => new Router({
|
const createRouter = () => new Router({
|
||||||
// mode: 'history', // require service support
|
// mode: 'history', // require service support
|
||||||
scrollBehavior: () => ({
|
scrollBehavior: () => ({
|
||||||
y: 0
|
y: 0
|
||||||
}),
|
}),
|
||||||
routes: constantRoutes
|
routes: constantRoutes
|
||||||
})
|
})
|
||||||
|
|
||||||
const router = createRouter()
|
const router = createRouter()
|
||||||
|
|
||||||
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
|
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
|
||||||
export function resetRouter() {
|
export function resetRouter() {
|
||||||
const newRouter = createRouter()
|
const newRouter = createRouter()
|
||||||
router.matcher = newRouter.matcher // reset router
|
router.matcher = newRouter.matcher // reset router
|
||||||
}
|
}
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
|||||||
253
src/views/appletBanner/appletBannerAdd.vue
Normal file
253
src/views/appletBanner/appletBannerAdd.vue
Normal file
@@ -0,0 +1,253 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div class="tab-header webtop">
|
||||||
|
<!-- 标题 -->
|
||||||
|
<div>轮播图信息</div>
|
||||||
|
<!-- start 添加修改按钮 -->
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button>
|
||||||
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
<!-- end 添加修改按钮 -->
|
||||||
|
<!-- end 详情按钮 -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="listconadd">
|
||||||
|
|
||||||
|
<el-card class="box-card">
|
||||||
|
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">标题:</span>
|
||||||
|
<el-input v-model="formobj.title" placeholder="" class="item_input" clearable />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="item" style="margin-bottom: 100px;margin-top: 100px;">
|
||||||
|
<span class="item_text">轮播图图片:</span>
|
||||||
|
<upload
|
||||||
|
ref="uploadImg2"
|
||||||
|
v-model="imgList"
|
||||||
|
style="margin-top: 20px;"
|
||||||
|
class="item_input"
|
||||||
|
:limit="1"
|
||||||
|
bucket="map"
|
||||||
|
:class="{ hide: hideUploadBtn }"
|
||||||
|
:upload-data="{ type: '0001' }"
|
||||||
|
@change="backData"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">发布人:</span>
|
||||||
|
<el-input v-model="formobj.publisher" placeholder="" class="item_input" clearable />
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">发布日期:</span>
|
||||||
|
<el-date-picker v-model="formobj.releaseTime" type="date" class="item_input" value-format="yyyy-MM-dd" placeholder="选择日期" />
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">时效开始日期:</span>
|
||||||
|
<el-date-picker v-model="formobj.startDate" type="date" class="item_input" value-format="yyyy-MM-dd" placeholder="选择日期" />
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">时效结束日期:</span>
|
||||||
|
<el-date-picker v-model="formobj.endDate" type="date" class="item_input" value-format="yyyy-MM-dd" placeholder="选择日期" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div class="item2">
|
||||||
|
<span class="item_text">内容:</span>
|
||||||
|
<el-input v-model="formobj.content" type="textarea" :rows="6" placeholder="商品简介" class="item_input"
|
||||||
|
clearable />
|
||||||
|
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div class="item2">
|
||||||
|
<span class="item_text">轮播图内容:</span>
|
||||||
|
<editor class="item_input" :height="300" :min-height="100" :value="formobj.content" @input="editinput" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import req from '@/api/lpk/banner.js'
|
||||||
|
import Editor from '@/components/Editor'
|
||||||
|
import upload from '@/components/uploadFile/upload_yanchejianchaTuBiao.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
upload,
|
||||||
|
Editor
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
imgList: [],
|
||||||
|
hideUploadBtn: false,
|
||||||
|
submitdisabled: false,
|
||||||
|
formobj: {
|
||||||
|
sid: '',
|
||||||
|
title: '',
|
||||||
|
publisher: '',
|
||||||
|
releaseTime: '',
|
||||||
|
startDate: '',
|
||||||
|
endDate: '',
|
||||||
|
content: '',
|
||||||
|
bannerUrl: '',
|
||||||
|
bannerPath: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
editinput(text) {
|
||||||
|
this.formobj.content = text
|
||||||
|
},
|
||||||
|
saveOrUpdate() {
|
||||||
|
console.log('>>>>>>>>>saveOrUpdate', this.formobj)
|
||||||
|
req.saveNotice(this.formobj)
|
||||||
|
.then(resp => {
|
||||||
|
if (resp.success) {
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
type: 'success',
|
||||||
|
message: resp.msg
|
||||||
|
})
|
||||||
|
this.handleReturn('true')
|
||||||
|
} else {
|
||||||
|
// 根据resp.code进行异常情况处理
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
|
},
|
||||||
|
handleReturn(isreload) {
|
||||||
|
if (isreload === 'true') this.$emit('reloadlist')
|
||||||
|
this.formobj = {
|
||||||
|
sid: '',
|
||||||
|
title: '',
|
||||||
|
publisher: '',
|
||||||
|
releaseTime: '',
|
||||||
|
startDate: '',
|
||||||
|
endDate: '',
|
||||||
|
content: '',
|
||||||
|
bannerUrl: '',
|
||||||
|
bannerPath: ''
|
||||||
|
}
|
||||||
|
this.$emit('doback')
|
||||||
|
},
|
||||||
|
showAdd() {},
|
||||||
|
showEdit(row) {
|
||||||
|
req.noticeInit(row.sid)
|
||||||
|
.then(resp => {
|
||||||
|
if (resp.success) {
|
||||||
|
this.formobj = resp.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(e => {
|
||||||
|
this.formobj = row
|
||||||
|
})
|
||||||
|
},
|
||||||
|
backData(value) {
|
||||||
|
console.log('backData》》》》', value)
|
||||||
|
console.log('imgList', this.imgList)
|
||||||
|
|
||||||
|
if (this.imgList.length > 0) {
|
||||||
|
this.formobj.bannerUrl = this.imgList[0].url
|
||||||
|
} else {
|
||||||
|
this.formobj.bannerUrl = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
this.hideUploadBtn = this.imgList.length !== 0
|
||||||
|
console.log('this.hideUploadBtn', this.hideUploadBtn)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
// 隐藏上传组件
|
||||||
|
|
||||||
|
.box-card {
|
||||||
|
margin-left: 60px;
|
||||||
|
margin-right: 60px;
|
||||||
|
min-width: 70%;
|
||||||
|
margin-top: 20px;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
.item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 15px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
|
||||||
|
.item_text {
|
||||||
|
flex: 0.8;
|
||||||
|
font-size: 18px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_input {
|
||||||
|
flex: 4;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_left_input {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_left_text {
|
||||||
|
height: 30px;
|
||||||
|
margin-left: 20px;
|
||||||
|
line-height: 30px;
|
||||||
|
color: #018AD2;
|
||||||
|
padding: 0px 15px;
|
||||||
|
border: 1.5px solid #018AD2;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_right {
|
||||||
|
flex: 1;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
|
.item_right_list_text {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_right_list_delect {
|
||||||
|
color: #5E94FF;
|
||||||
|
margin-left: 20px;
|
||||||
|
font-size: 16px;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.item2 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 15px;
|
||||||
|
|
||||||
|
.item_text {
|
||||||
|
flex: 0.8;
|
||||||
|
font-size: 18px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_input {
|
||||||
|
flex: 4;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
258
src/views/appletBanner/index.vue
Normal file
258
src/views/appletBanner/index.vue
Normal file
@@ -0,0 +1,258 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<div v-show="viewState == 1">
|
||||||
|
<button-bar ref="btnbar" view-title="轮播图列表" :btndisabled="btndisabled" @btnhandle="btnHandle" />
|
||||||
|
<div class="main-content">
|
||||||
|
<div class="searchcon">
|
||||||
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">
|
||||||
|
{{ searchxianshitit }}
|
||||||
|
</el-button>
|
||||||
|
<div v-show="isSearchShow" class="search">
|
||||||
|
<el-form :inline="true" class="tab-header">
|
||||||
|
<el-form-item label="轮播图标题">
|
||||||
|
<el-input v-model="queryParams.params.name" placeholder="" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div class="btn" style="text-align: center;">
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button>
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Start 项目列表头部 -->
|
||||||
|
<div class="listtop">
|
||||||
|
<div class="tit">轮播图列表</div>
|
||||||
|
</div>
|
||||||
|
<!-- End 项目列表头部 -->
|
||||||
|
<!-- Start 项目列表 -->
|
||||||
|
<div class="">
|
||||||
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%">
|
||||||
|
<!-- <el-table-column fixed width="50" type="selection" align="center" /> -->
|
||||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
|
||||||
|
<el-table-column label="操作" align="center" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="primary" size="mini" @click="toRelevancy(scope.row)">编辑</el-button>
|
||||||
|
<!-- <el-button type="primary" size="mini" @click="toRelevancyInfo(scope.row)">删除</el-button> -->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="是否可见" align="center" width="140">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-switch
|
||||||
|
v-model="scope.row.isShow"
|
||||||
|
active-text="是"
|
||||||
|
inactive-text="否"
|
||||||
|
active-value="1"
|
||||||
|
inactive-value="2"
|
||||||
|
@change="enableChange2(scope.row.sid,scope.row.isShow)"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="title" label="标题" align="center" />
|
||||||
|
<el-table-column prop="publisher" label="发布人" align="center" />
|
||||||
|
<el-table-column prop="releaseTime" label="发布日期" align="center" />
|
||||||
|
<el-table-column prop="startDate" label="开始日期" align="center" />
|
||||||
|
<el-table-column prop="endDate" label="结束日期" align="center" />
|
||||||
|
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<!-- End 项目列表 -->
|
||||||
|
<div class="pages">
|
||||||
|
<div class="tit" />
|
||||||
|
<!-- 翻页 -->
|
||||||
|
<pagination
|
||||||
|
v-show="dataList.length > 0"
|
||||||
|
:total="queryParams.total"
|
||||||
|
:page.sync="queryParams.current"
|
||||||
|
:limit.sync="queryParams.size"
|
||||||
|
class="pagination"
|
||||||
|
@pagination="loadList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End 查询和其列表部分 -->
|
||||||
|
<!-- 新增修改部分组件 -->
|
||||||
|
<divAdd v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import req from '@/api/lpk/banner.js'
|
||||||
|
import ButtonBar from '@/components/ButtonBar'
|
||||||
|
import Pagination from '@/components/pagination'
|
||||||
|
import divAdd from './appletBannerAdd.vue'
|
||||||
|
export default {
|
||||||
|
name: 'AppletBannerIndex',
|
||||||
|
components: {
|
||||||
|
ButtonBar,
|
||||||
|
Pagination,
|
||||||
|
divAdd
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
btndisabled: false,
|
||||||
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看
|
||||||
|
isSearchShow: false,
|
||||||
|
searchxianshitit: '显示查询条件',
|
||||||
|
tableLoading: false,
|
||||||
|
dataList: [],
|
||||||
|
btnList: [{
|
||||||
|
type: 'primary',
|
||||||
|
size: 'small',
|
||||||
|
icon: 'plus',
|
||||||
|
btnKey: 'toAdd',
|
||||||
|
btnLabel: '新增'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'info',
|
||||||
|
size: 'small',
|
||||||
|
icon: 'cross',
|
||||||
|
btnKey: 'doClose',
|
||||||
|
btnLabel: '关闭'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
queryParams: {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
total: 0,
|
||||||
|
params: {
|
||||||
|
name: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sids: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.loadList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 搜索条件效果
|
||||||
|
clicksearchShow() {
|
||||||
|
this.isSearchShow = !this.isSearchShow
|
||||||
|
if (this.isSearchShow) {
|
||||||
|
this.searchxianshitit = '隐藏查询条件'
|
||||||
|
} else {
|
||||||
|
this.searchxianshitit = '显示查询条件'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
btnHandle(btnKey) {
|
||||||
|
switch (btnKey) {
|
||||||
|
case 'toAdd':
|
||||||
|
this.toAdd()
|
||||||
|
break
|
||||||
|
case 'doClose':
|
||||||
|
this.doClose()
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
},
|
||||||
|
loadList() {
|
||||||
|
this.tableLoading = true
|
||||||
|
req.listPage(this.queryParams).then((resp) => {
|
||||||
|
this.tableLoading = false
|
||||||
|
if (resp.success) {
|
||||||
|
const data = resp.data
|
||||||
|
this.queryParams.total = data.total
|
||||||
|
this.dataList = data.records
|
||||||
|
} else {
|
||||||
|
// 根据resp.code进行异常情况处理
|
||||||
|
this.dataList = []
|
||||||
|
this.queryParams.total = 0
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.tableLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 序号
|
||||||
|
indexMethod(index) {
|
||||||
|
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
|
||||||
|
var pageindex = index + 1 + pagestart
|
||||||
|
return pageindex
|
||||||
|
},
|
||||||
|
dosearch() {
|
||||||
|
this.queryParams.current = 1
|
||||||
|
this.loadList()
|
||||||
|
},
|
||||||
|
resetQuery() {
|
||||||
|
this.queryParams = {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
total: 0,
|
||||||
|
params: {
|
||||||
|
name: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.loadList()
|
||||||
|
},
|
||||||
|
toAdd() {
|
||||||
|
this.viewState = 2
|
||||||
|
this.$refs['divadd'].showAdd()
|
||||||
|
},
|
||||||
|
|
||||||
|
doClose() {
|
||||||
|
this.$store.dispatch('tagsView/delView', this.$route)
|
||||||
|
this.$router.go(-1)
|
||||||
|
},
|
||||||
|
toRelevancy(row) {
|
||||||
|
this.viewState = 3
|
||||||
|
this.$refs['divadd'].showEdit(row)
|
||||||
|
},
|
||||||
|
toRelevancyInfo(row) {
|
||||||
|
const tip = '请确认是否删除所选商品?'
|
||||||
|
this.$confirm(tip, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
req.deleteGoods(row.sid).then((resp) => {
|
||||||
|
loading.close()
|
||||||
|
if (resp.success) {
|
||||||
|
this.$message({
|
||||||
|
type: 'success',
|
||||||
|
message: resp.msg,
|
||||||
|
showClose: true
|
||||||
|
})
|
||||||
|
this.loadList()
|
||||||
|
} else {
|
||||||
|
// 根据resp.code进行异常情况处理
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
|
resetState() {
|
||||||
|
this.viewState = 1
|
||||||
|
},
|
||||||
|
enableChange2(sid, state) {
|
||||||
|
console.log('sid', sid)
|
||||||
|
console.log('state', state)
|
||||||
|
req.updateAppletUseTo(sid, state).then((resp) => {
|
||||||
|
if (resp.success) {
|
||||||
|
this.$message({
|
||||||
|
type: 'success',
|
||||||
|
message: '状态已更新',
|
||||||
|
showClose: true
|
||||||
|
})
|
||||||
|
} else { // 根据resp.code进行异常情况处理
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
@@ -60,6 +60,7 @@
|
|||||||
<el-table-column prop="userPhone" label="联系电话" align="center" />
|
<el-table-column prop="userPhone" label="联系电话" align="center" />
|
||||||
<el-table-column prop="goodsName" label="商品名称" align="center" />
|
<el-table-column prop="goodsName" label="商品名称" align="center" />
|
||||||
<el-table-column prop="goodsNumber" label="商品数量" align="center" />
|
<el-table-column prop="goodsNumber" label="商品数量" align="center" />
|
||||||
|
<el-table-column prop="customerBank" label="客户所属支行" align="center" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- End 项目列表 -->
|
<!-- End 项目列表 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user