完善项目
@@ -8,8 +8,7 @@ VUE_APP_BASE_API = '/api'
|
|||||||
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
||||||
|
|
||||||
|
|
||||||
VUE_APP_URL = "http://192.168.0.105:7211"
|
VUE_APP_URL = "http://192.168.0.105:8114"
|
||||||
VUE_APP_REPORT_URL = "http://192.168.2.106:7202"
|
VUE_APP_REPORT_URL = "http://192.168.1.105:7202"
|
||||||
##VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
|
||||||
##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk"
|
##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk"
|
||||||
##VUE_APP_URL = "http://8.130.39.13:8112"
|
##VUE_APP_URL = "http://8.130.39.13:8112"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"core-js": "^3.8.3",
|
"core-js": "^3.8.3",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.4.3",
|
||||||
"ejs": "^2.7.4",
|
"ejs": "^2.7.4",
|
||||||
|
"element-china-area-data": "^6.1.0",
|
||||||
"element-ui": "^2.15.14",
|
"element-ui": "^2.15.14",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ export default {
|
|||||||
// 品牌列表
|
// 品牌列表
|
||||||
listAllBrand: function(params) {
|
listAllBrand: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/mall/listAllBrand',
|
url: '/mall/adminapi/mall/listAllBrand',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 品牌列表
|
// 品牌列表
|
||||||
listAllCategory: function(params) {
|
listAllCategory: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/mall/listAllCategory',
|
url: '/mall/adminapi/mall/listAllCategory',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/appletnotice/pageList',
|
url: '/mall/appletnotice/pageList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveNotice: function(data) {
|
saveNotice: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/appletnotice/saveOrUpdate',
|
url: '/mall/appletnotice/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
noticeInit: function(data) {
|
noticeInit: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/appletnotice/noticeInit/'+data,
|
url: '/mall/appletnotice/noticeInit/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
// 修改是否可见
|
// 修改是否可见
|
||||||
updateAppletUseTo: function(sid, isEnable) {
|
updateAppletUseTo: function(sid, isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/appletnotice/isDisplayed/'+sid+"/"+isEnable
|
url: '/mall/appletnotice/isDisplayed/' + sid + "/" + isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/enterprisecertification/listPage',
|
url: '/mall/enterprisecertification/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
// 审核
|
// 审核
|
||||||
toExamine: function(params) {
|
toExamine: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/enterprisecertification/toExamine',
|
url: '/mall/enterprisecertification/toExamine',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
export function fetchList(params) {
|
export function fetchList(params) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/list',
|
url: '/mall/pms/PmsBrand/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function createBrand(data) {
|
export function createBrand(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/create',
|
url: '/mall/pms/PmsBrand/create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function updateShowStatus(data) {
|
export function updateShowStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/update/showStatus',
|
url: '/mall/pms/PmsBrand/update/showStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -23,7 +23,7 @@ export function updateShowStatus(data) {
|
|||||||
|
|
||||||
export function updateFactoryStatus(data) {
|
export function updateFactoryStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/update/factoryStatus',
|
url: '/mall/pms/PmsBrand/update/factoryStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -31,23 +31,22 @@ export function updateFactoryStatus(data) {
|
|||||||
|
|
||||||
export function deleteBrand(id) {
|
export function deleteBrand(id) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/delete/'+id,
|
url: '/mall/pms/PmsBrand/delete/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBrand(id) {
|
export function getBrand(id) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/'+id,
|
url: '/mall/pms/PmsBrand/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateBrand(id, data) {
|
export function updateBrand(id, data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsBrand/update/'+id,
|
url: '/mall/pms/PmsBrand/update/' + id,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 获取商品列表
|
// 获取商品列表
|
||||||
goodsListPage: function(data) {
|
goodsListPage: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/goodsListPage',
|
url: '/mall/lpkgoods/goodsListPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 新增、保存商品
|
// 新增、保存商品
|
||||||
saveGoods: function(data) {
|
saveGoods: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/saveGoods',
|
url: '/mall/lpkgoods/saveGoods',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
// 初始化商品
|
// 初始化商品
|
||||||
goodsInit: function(data) {
|
goodsInit: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/goodsInit/'+data,
|
url: '/mall/lpkgoods/goodsInit/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
// 删除商品
|
// 删除商品
|
||||||
deleteGoods: function(data) {
|
deleteGoods: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/deleteGoods/'+data,
|
url: '/mall/lpkgoods/deleteGoods/' + data,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -39,15 +39,14 @@ export default {
|
|||||||
// 修改商品是否属于小程序状态
|
// 修改商品是否属于小程序状态
|
||||||
updateAppletUseTo: function(sid, isEnable) {
|
updateAppletUseTo: function(sid, isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/appletUseTo/'+sid+"/"+isEnable
|
url: '/mall/lpkgoods/appletUseTo/' + sid + "/" + isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 修改上架/下架状态
|
// 修改上架/下架状态
|
||||||
updateIsEnable: function(sid, isEnable) {
|
updateIsEnable: function(sid, isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkgoods/appletGrounding/'+sid+"/"+isEnable
|
url: '/mall/lpkgoods/appletGrounding/' + sid + "/" + isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/invoicerecords/listPage',
|
url: '/mall/invoicerecords/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 获取订单详情
|
// 获取订单详情
|
||||||
getOrderDetails: function(params) {
|
getOrderDetails: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/empsreservoorder/OrderDetailsNew/'+params,
|
url: '/mall/empsreservoorder/OrderDetailsNew/' + params,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
// 审核发票
|
// 审核发票
|
||||||
toExamine: function(params) {
|
toExamine: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/invoicerecords/toExamine',
|
url: '/mall/invoicerecords/toExamine',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/banner/pageList',
|
url: '/mall/adminapi/banner/pageList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveNotice: function(data) {
|
saveNotice: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/banner/saveOrUpdate',
|
url: '/mall/adminapi/banner/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
noticeInit: function(data) {
|
noticeInit: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/banner/noticeInit/' + data,
|
url: '/mall/adminapi/banner/noticeInit/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
// 修改是否可见
|
// 修改是否可见
|
||||||
updateAppletUseTo: function(sid, isEnable) {
|
updateAppletUseTo: function(sid, isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/banner/isDisplayed/' + sid + "/" + isEnable
|
url: '/mall/adminapi/banner/isDisplayed/' + sid + "/" + isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ export default {
|
|||||||
// 获取客户级预约单列表
|
// 获取客户级预约单列表
|
||||||
pageOfCustomer: function(data) {
|
pageOfCustomer: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfCustomer',
|
url: '/mall/adminapi/reserve/pageOfCustomer',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfCustomer: function(params) {
|
expExcelOfCustomer: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfCustomer',
|
url: '/mall/adminapi/reserve/expExcelOfCustomer',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -27,14 +27,14 @@ export default {
|
|||||||
// 获取各提货点配货列表
|
// 获取各提货点配货列表
|
||||||
pageOfStore: function(data) {
|
pageOfStore: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfStore',
|
url: '/mall/adminapi/reserve/pageOfStore',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfStore: function(params) {
|
expExcelOfStore: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfStore',
|
url: '/mall/adminapi/reserve/expExcelOfStore',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -49,14 +49,14 @@ export default {
|
|||||||
// 获取各支行配货列表
|
// 获取各支行配货列表
|
||||||
pageOfBank: function(data) {
|
pageOfBank: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfBank',
|
url: '/mall/adminapi/reserve/pageOfBank',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfBank: function(params) {
|
expExcelOfBank: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfBank',
|
url: '/mall/adminapi/reserve/expExcelOfBank',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -71,14 +71,14 @@ export default {
|
|||||||
// 获取总配货列表
|
// 获取总配货列表
|
||||||
pageOfAll: function(data) {
|
pageOfAll: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfAll',
|
url: '/mall/adminapi/reserve/pageOfAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfAll: function(params) {
|
expExcelOfAll: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfAll',
|
url: '/mall/adminapi/reserve/expExcelOfAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ export default {
|
|||||||
// 获取客户级预约单列表
|
// 获取客户级预约单列表
|
||||||
pageOfCustomer: function(data) {
|
pageOfCustomer: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfCustomer',
|
url: '/mall/adminapi/reserve/pageOfCustomer',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfCustomer: function(params) {
|
expExcelOfCustomer: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfCustomer',
|
url: '/mall/adminapi/reserve/expExcelOfCustomer',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -27,14 +27,14 @@ export default {
|
|||||||
// 获取各提货点配货列表
|
// 获取各提货点配货列表
|
||||||
pageOfStore: function(data) {
|
pageOfStore: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfStore',
|
url: '/mall/adminapi/reserve/pageOfStore',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfStore: function(params) {
|
expExcelOfStore: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfStore',
|
url: '/mall/adminapi/reserve/expExcelOfStore',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -49,14 +49,14 @@ export default {
|
|||||||
// 获取各支行配货列表
|
// 获取各支行配货列表
|
||||||
pageOfBank: function(data) {
|
pageOfBank: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfBank',
|
url: '/mall/adminapi/reserve/pageOfBank',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfBank: function(params) {
|
expExcelOfBank: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfBank',
|
url: '/mall/adminapi/reserve/expExcelOfBank',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
@@ -71,14 +71,14 @@ export default {
|
|||||||
// 获取总配货列表
|
// 获取总配货列表
|
||||||
pageOfAll: function(data) {
|
pageOfAll: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/pageOfAll',
|
url: '/mall/adminapi/reserve/pageOfAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
expExcelOfAll: function(params) {
|
expExcelOfAll: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adminapi/reserve/expExcelOfAll',
|
url: '/mall/adminapi/reserve/expExcelOfAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
// headers: {
|
// headers: {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 获取支行选择列表
|
// 获取支行选择列表
|
||||||
bankSelect: function(data) {
|
bankSelect: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkbank/listAll',
|
url: '/mall/lpkbank/listAll',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -13,7 +13,7 @@ export default {
|
|||||||
// 获取提货点列表
|
// 获取提货点列表
|
||||||
storeListPage: function(data) {
|
storeListPage: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkstore/storeListPage',
|
url: '/mall/lpkstore/storeListPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
// 新增、保存提货点
|
// 新增、保存提货点
|
||||||
saveStore: function(data) {
|
saveStore: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkstore/saveStore',
|
url: '/mall/lpkstore/saveStore',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
// 初始化提货点
|
// 初始化提货点
|
||||||
storeInit: function(data) {
|
storeInit: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkstore/storeInit/'+data,
|
url: '/mall/lpkstore/storeInit/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -39,17 +39,16 @@ export default {
|
|||||||
// 删除提货点
|
// 删除提货点
|
||||||
deleteStore: function(data) {
|
deleteStore: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkstore/deleteStore/'+data,
|
url: '/mall/lpkstore/deleteStore/' + data,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 修改状态
|
// 修改状态
|
||||||
updateIsEnable: function(sid, isEnable) {
|
updateIsEnable: function(sid, isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/lpkstore/updateIsEnable/'+sid+"/"+isEnable
|
url: '/mall/lpkstore/updateIsEnable/' + sid + "/" + isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
export function fetchList(params) {
|
export function fetchList(params) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductAttributeCategory/list',
|
url: '/mall/pms/PmsProductAttributeCategory/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
@@ -9,7 +9,7 @@ export function fetchList(params) {
|
|||||||
|
|
||||||
export function createProductAttrCate(data) {
|
export function createProductAttrCate(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductAttributeCategory/create',
|
url: '/mall/pms/PmsProductAttributeCategory/create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -17,21 +17,21 @@ export function createProductAttrCate(data) {
|
|||||||
|
|
||||||
export function deleteProductAttrCate(id) {
|
export function deleteProductAttrCate(id) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductAttributeCategory/delete/'+id,
|
url: '/mall/pms/PmsProductAttributeCategory/delete/' + id,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateProductAttrCate(id, data) {
|
export function updateProductAttrCate(id, data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductAttributeCategory/update/'+id,
|
url: '/mall/pms/PmsProductAttributeCategory/update/' + id,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function fetchListWithAttr() {
|
export function fetchListWithAttr() {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductAttributeCategory/list/withAttr',
|
url: '/mall/pms/PmsProductAttributeCategory/list/withAttr',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -2,28 +2,28 @@ import request from '@/utils/request'
|
|||||||
|
|
||||||
export function fetchListAll(params) {
|
export function fetchListAll(params) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/list',
|
url: '/mall/pms/PmsProductCategory/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function fetchList(parentId, params) {
|
export function fetchList(parentId, params) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/list/'+parentId,
|
url: '/mall/pms/PmsProductCategory/list/' + parentId,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function deleteProductCate(id) {
|
export function deleteProductCate(id) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/delete/'+id,
|
url: '/mall/pms/PmsProductCategory/delete/' + id,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createProductCate(data) {
|
export function createProductCate(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/create',
|
url: '/mall/pms/PmsProductCategory/create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -31,7 +31,7 @@ export function createProductCate(data) {
|
|||||||
|
|
||||||
export function updateProductCate(id, data) {
|
export function updateProductCate(id, data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/update/'+id,
|
url: '/mall/pms/PmsProductCategory/update/' + id,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -39,14 +39,14 @@ export function updateProductCate(id,data) {
|
|||||||
|
|
||||||
export function getProductCate(id) {
|
export function getProductCate(id) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/'+id,
|
url: '/mall/pms/PmsProductCategory/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateShowStatus(data) {
|
export function updateShowStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/update/showStatus',
|
url: '/mall/pms/PmsProductCategory/update/showStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -54,7 +54,7 @@ export function updateShowStatus(data) {
|
|||||||
|
|
||||||
export function updateIndexStatus(data) {
|
export function updateIndexStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/update/indexStatus',
|
url: '/mall/pms/PmsProductCategory/update/indexStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -62,7 +62,7 @@ export function updateIndexStatus(data) {
|
|||||||
|
|
||||||
export function updateNavStatus(data) {
|
export function updateNavStatus(data) {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/update/navStatus',
|
url: '/mall/pms/PmsProductCategory/update/navStatus',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -70,7 +70,7 @@ export function updateNavStatus(data) {
|
|||||||
|
|
||||||
export function fetchListWithChildren() {
|
export function fetchListWithChildren() {
|
||||||
return request({
|
return request({
|
||||||
url:'/pms/PmsProductCategory/list/withChildren',
|
url: '/mall/pms/PmsProductCategory/list/withChildren',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -5,43 +5,79 @@ import qs from 'qs'
|
|||||||
// 登录
|
// 登录
|
||||||
export function doLogin(data) {
|
export function doLogin(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sysuser/doLogin',
|
url: '/mall/apiadmin/sysuser/login',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
headers: { 'Content-Type': 'application/json' }
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取登录人员信息
|
|
||||||
export function getUserById(sid) {
|
// 注册发送验证码
|
||||||
|
export function registerSendMessageCode(code) {
|
||||||
return request({
|
return request({
|
||||||
url: '/cyf/sys/getUserById/' + sid
|
url: '/mall/apiadmin/sysuser/sendMessageCode/?mobile=' + code,
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
// 登录
|
|
||||||
export function login(data) {
|
|
||||||
return request({
|
|
||||||
url: '/portal/v1/sysuser/login',
|
|
||||||
method: 'post',
|
|
||||||
data: data,
|
|
||||||
headers: { 'Content-Type': 'application/json' }
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 用户注册
|
// 用户注册
|
||||||
export function registUser(data) {
|
export function registUser(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/save',
|
url: '/mall/apiadmin/sysuser/register',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data: data,
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded;' }
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 绑定企业/组织
|
||||||
|
export function bindOrganization(data) {
|
||||||
|
return request({
|
||||||
|
url: '/mall/apiadmin/sysuser/bindOrganization',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 选择企业/组织sid
|
||||||
|
export function selOrganization(data) {
|
||||||
|
return request({
|
||||||
|
url: '/mall/apiadmin/sysuser/selOrganization',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 获取登录人员信息
|
||||||
|
export function getUserById(sid) {
|
||||||
|
return request({
|
||||||
|
url: '/mall/cyf/sys/getUserById/' + sid
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 获取手机验证码
|
// 获取手机验证码
|
||||||
export function getVerificationCode(data) {
|
export function getVerificationCode(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/getVerificationCode',
|
url: '/mall/system/user/getVerificationCode',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
@@ -50,7 +86,7 @@ export function getVerificationCode(data) {
|
|||||||
// 获取登录验证码
|
// 获取登录验证码
|
||||||
export function imgCode() {
|
export function imgCode() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/api/defaultBlendCode?temm=' + new Date().getTime(),
|
url: '/mall/system/api/defaultBlendCode?temm=' + new Date().getTime(),
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -58,14 +94,14 @@ export function imgCode() {
|
|||||||
// 获取用信息
|
// 获取用信息
|
||||||
export function getInfo(token) {
|
export function getInfo(token) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/loginDetails',
|
url: '/mall/system/user/loginDetails',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function logout(data) { // 退出
|
export function logout(data) { // 退出
|
||||||
return request({
|
return request({
|
||||||
url: '/portal/v1/sysuser/signOut',
|
url: '/mall/portal/v1/sysuser/signOut',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: qs.stringify(data)
|
data: qs.stringify(data)
|
||||||
})
|
})
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 2.3 MiB |
BIN
src/assets/images/company_icon.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/experience.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/images/formal.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/assets/images/overdue.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/loginImg/login_left.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
src/assets/loginImg/yxt-logo.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
@@ -1,15 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png" style="width: 45px;height: 45px;margin-right: 10px;"/>惠享管理平台</p>
|
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png"
|
||||||
|
style="width: 45px;height: 45px;margin-right: 10px;" />预订商城管理平台</p>
|
||||||
<!-- <h3 class="breadcrumb-container">银行供应链贷后监管平台</h3> -->
|
<!-- <h3 class="breadcrumb-container">银行供应链贷后监管平台</h3> -->
|
||||||
<div class="right-menu">
|
<div class="right-menu">
|
||||||
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->
|
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->
|
||||||
<!-- <p>欢迎您,{{name}}</p>
|
<p>欢迎您:{{pNameAndDepartmentNameAndPostName}}- {{name}}</p>
|
||||||
<p class="dy" @click="logout()"><img src="@/assets/images/dy.png"></p> -->
|
<!-- <img src="@/assets/images/info.png"> -->
|
||||||
|
<!-- <img src="@/assets/images/dy.png" @click="logout"> -->
|
||||||
|
<span class="backToHome" @click="logout"><i class="el-icon-back"></i>退出登录</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-footer class="footer" height="40px">Copyright © {{ year }} 惠享管理平台 All Rights Reserved</el-footer>
|
<el-footer class="footer" height="40px">Copyright © {{ year }} 预订商城管理平台 All Rights Reserved</el-footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -17,12 +20,20 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
Orgname: '',
|
||||||
|
departmentName: '',
|
||||||
name: '',
|
name: '',
|
||||||
|
defaultRoleName: '',
|
||||||
year: '',
|
year: '',
|
||||||
|
pNameAndDepartmentNameAndPostName: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.name = window.sessionStorage.getItem('userName')
|
this.Orgname = window.sessionStorage.getItem('orgName')
|
||||||
|
this.departmentName = window.sessionStorage.getItem('departmentName')
|
||||||
|
this.name = window.sessionStorage.getItem('name')
|
||||||
|
this.defaultRoleName = window.sessionStorage.getItem('defaultRoleName')
|
||||||
|
this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('pNameAndDepartmentNameAndPostName')
|
||||||
var nowDate = new Date()
|
var nowDate = new Date()
|
||||||
this.year = nowDate.getFullYear()
|
this.year = nowDate.getFullYear()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
<div :class="{ 'has-logo': showLogo }">
|
<div :class="{ 'has-logo': showLogo }">
|
||||||
<logo v-if="showLogo" :collapse="isCollapse" />
|
<logo v-if="showLogo" :collapse="isCollapse" />
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper">
|
<el-scrollbar wrap-class="scrollbar-wrapper">
|
||||||
<el-menu
|
<el-menu :default-active="$route.path" :background-color="variables.menuBg" :text-color="variables.menuText"
|
||||||
:default-active="$route.path"
|
:unique-opened="false" :active-text-color="variables.menuActiveText" :collapse-transition="false"
|
||||||
:background-color="variables.menuBg"
|
mode="vertical">
|
||||||
:text-color="variables.menuText"
|
|
||||||
:unique-opened="false"
|
|
||||||
:active-text-color="variables.menuActiveText"
|
|
||||||
:collapse-transition="false"
|
|
||||||
mode="vertical"
|
|
||||||
>
|
|
||||||
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
|
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
@@ -44,16 +38,18 @@
|
|||||||
sourceSid: '',
|
sourceSid: '',
|
||||||
userSid: ''
|
userSid: ''
|
||||||
},
|
},
|
||||||
routes: [{
|
routes: [
|
||||||
alwaysShow: true,
|
// {
|
||||||
component: 'userInfo',
|
// alwaysShow: true,
|
||||||
meta: {
|
// component: 'userInfo',
|
||||||
icon: 'el-icon-menu',
|
// meta: {
|
||||||
title: '用户信息'
|
// icon: 'el-icon-menu',
|
||||||
},
|
// title: '用户信息'
|
||||||
name: '/userInfo/index',
|
// },
|
||||||
path: '/userInfo/index'
|
// name: '/userInfo/index',
|
||||||
}, {
|
// path: '/userInfo/index'
|
||||||
|
// },
|
||||||
|
{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'pms',
|
component: 'pms',
|
||||||
meta: {
|
meta: {
|
||||||
@@ -113,131 +109,131 @@
|
|||||||
// }
|
// }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'marketingCard',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-menu',
|
|
||||||
title: '营销卡设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard',
|
|
||||||
path: '/marketingCard',
|
|
||||||
children: [{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'index',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-help',
|
|
||||||
title: '小程序礼包设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard/applet',
|
|
||||||
path: '/marketingCard/applet'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'index',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-help',
|
|
||||||
title: '新人推荐礼包设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard/newUserGift',
|
|
||||||
path: '/marketingCard/newUserGift'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'index',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-help',
|
|
||||||
title: '礼包设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard/index',
|
|
||||||
path: '/marketingCard/index'
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'pickupCardSet',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-help',
|
|
||||||
title: '个人卡设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard/pickupCardSet',
|
|
||||||
path: '/marketingCard/pickupCardSet'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'corporateCardSet',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-help',
|
|
||||||
title: '企业卡设置'
|
|
||||||
},
|
|
||||||
name: '/marketingCard/corporateCardSet',
|
|
||||||
path: '/marketingCard/corporateCardSet'
|
|
||||||
}
|
|
||||||
// {
|
// {
|
||||||
// alwaysShow: true,
|
// alwaysShow: true,
|
||||||
// component: "grantRecords",
|
// component: 'marketingCard',
|
||||||
// meta: {
|
// meta: {
|
||||||
// icon: "el-icon-help",
|
// icon: 'el-icon-menu',
|
||||||
// title: "发放记录",
|
// title: '营销卡设置'
|
||||||
// },
|
// },
|
||||||
// name: "/marketingCard/grantRecords",
|
// name: '/marketingCard',
|
||||||
// path: "/marketingCard/grantRecords",
|
// path: '/marketingCard',
|
||||||
|
// children: [{
|
||||||
|
// alwaysShow: true,
|
||||||
|
// component: 'index',
|
||||||
|
// meta: {
|
||||||
|
// icon: 'el-icon-help',
|
||||||
|
// title: '小程序礼包设置'
|
||||||
|
// },
|
||||||
|
// name: '/marketingCard/applet',
|
||||||
|
// path: '/marketingCard/applet'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// alwaysShow: true,
|
// alwaysShow: true,
|
||||||
// component: "carList",
|
// component: 'index',
|
||||||
// meta: {
|
// meta: {
|
||||||
// icon: "el-icon-help",
|
// icon: 'el-icon-help',
|
||||||
// title: "提货卡列表",
|
// title: '新人推荐礼包设置'
|
||||||
// },
|
// },
|
||||||
// name: "/marketingCard/carList",
|
// name: '/marketingCard/newUserGift',
|
||||||
// path: "/marketingCard/carList",
|
// path: '/marketingCard/newUserGift'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// alwaysShow: true,
|
||||||
|
// component: 'index',
|
||||||
|
// meta: {
|
||||||
|
// icon: 'el-icon-help',
|
||||||
|
// title: '礼包设置'
|
||||||
|
// },
|
||||||
|
// name: '/marketingCard/index',
|
||||||
|
// path: '/marketingCard/index'
|
||||||
// },
|
// },
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
alwaysShow: true,
|
|
||||||
component: 'carManage',
|
|
||||||
meta: {
|
|
||||||
icon: 'el-icon-menu',
|
|
||||||
title: '营销卡管理'
|
|
||||||
},
|
|
||||||
name: '/cardManage',
|
|
||||||
path: '/cardManage',
|
|
||||||
children: [
|
|
||||||
|
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'person',
|
// component: 'pickupCardSet',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-help',
|
// icon: 'el-icon-help',
|
||||||
title: '个人卡统计'
|
// title: '个人卡设置'
|
||||||
},
|
// },
|
||||||
name: '/cardManage/person',
|
// name: '/marketingCard/pickupCardSet',
|
||||||
path: '/cardManage/person'
|
// path: '/marketingCard/pickupCardSet'
|
||||||
},
|
// },
|
||||||
|
// {
|
||||||
|
// alwaysShow: true,
|
||||||
|
// component: 'corporateCardSet',
|
||||||
|
// meta: {
|
||||||
|
// icon: 'el-icon-help',
|
||||||
|
// title: '企业卡设置'
|
||||||
|
// },
|
||||||
|
// name: '/marketingCard/corporateCardSet',
|
||||||
|
// path: '/marketingCard/corporateCardSet'
|
||||||
|
// }
|
||||||
|
// // {
|
||||||
|
// // alwaysShow: true,
|
||||||
|
// // component: "grantRecords",
|
||||||
|
// // meta: {
|
||||||
|
// // icon: "el-icon-help",
|
||||||
|
// // title: "发放记录",
|
||||||
|
// // },
|
||||||
|
// // name: "/marketingCard/grantRecords",
|
||||||
|
// // path: "/marketingCard/grantRecords",
|
||||||
|
// // },
|
||||||
|
// // {
|
||||||
|
// // alwaysShow: true,
|
||||||
|
// // component: "carList",
|
||||||
|
// // meta: {
|
||||||
|
// // icon: "el-icon-help",
|
||||||
|
// // title: "提货卡列表",
|
||||||
|
// // },
|
||||||
|
// // name: "/marketingCard/carList",
|
||||||
|
// // path: "/marketingCard/carList",
|
||||||
|
// // },
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// alwaysShow: true,
|
||||||
|
// component: 'carManage',
|
||||||
|
// meta: {
|
||||||
|
// icon: 'el-icon-menu',
|
||||||
|
// title: '营销卡管理'
|
||||||
|
// },
|
||||||
|
// name: '/cardManage',
|
||||||
|
// path: '/cardManage',
|
||||||
|
// children: [
|
||||||
|
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'enterprise',
|
// component: 'person',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-help',
|
// icon: 'el-icon-help',
|
||||||
title: '企业卡统计'
|
// title: '个人卡统计'
|
||||||
},
|
// },
|
||||||
name: '/cardManage/enterprise',
|
// name: '/cardManage/person',
|
||||||
path: '/cardManage/enterprise'
|
// path: '/cardManage/person'
|
||||||
}, {
|
// },
|
||||||
alwaysShow: true,
|
|
||||||
component: 'giftCard',
|
// {
|
||||||
meta: {
|
// alwaysShow: true,
|
||||||
icon: 'el-icon-help',
|
// component: 'enterprise',
|
||||||
title: '福利卡统计'
|
// meta: {
|
||||||
},
|
// icon: 'el-icon-help',
|
||||||
name: '/cardManage/giftCard',
|
// title: '企业卡统计'
|
||||||
path: '/cardManage/giftCard'
|
// },
|
||||||
}
|
// name: '/cardManage/enterprise',
|
||||||
]
|
// path: '/cardManage/enterprise'
|
||||||
},
|
// }, {
|
||||||
|
// alwaysShow: true,
|
||||||
|
// component: 'giftCard',
|
||||||
|
// meta: {
|
||||||
|
// icon: 'el-icon-help',
|
||||||
|
// title: '福利卡统计'
|
||||||
|
// },
|
||||||
|
// name: '/cardManage/giftCard',
|
||||||
|
// path: '/cardManage/giftCard'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'pickupPoint',
|
component: 'pickupPoint',
|
||||||
@@ -248,26 +244,26 @@
|
|||||||
name: '/pickupPoint/index',
|
name: '/pickupPoint/index',
|
||||||
path: '/pickupPoint/index'
|
path: '/pickupPoint/index'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'coupon',
|
// component: 'coupon',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-menu',
|
// icon: 'el-icon-menu',
|
||||||
title: '优惠券管理'
|
// title: '优惠券管理'
|
||||||
},
|
// },
|
||||||
name: '/coupon/index',
|
// name: '/coupon/index',
|
||||||
path: '/coupon/index'
|
// path: '/coupon/index'
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'network',
|
// component: 'network',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-menu',
|
// icon: 'el-icon-menu',
|
||||||
title: '支行管理'
|
// title: '支行管理'
|
||||||
},
|
// },
|
||||||
name: '/network/index',
|
// name: '/network/index',
|
||||||
path: '/network/index'
|
// path: '/network/index'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'commodity',
|
component: 'commodity',
|
||||||
@@ -396,38 +392,38 @@
|
|||||||
// path: "/order/index"
|
// path: "/order/index"
|
||||||
// },
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'print',
|
// component: 'print',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-menu',
|
// icon: 'el-icon-menu',
|
||||||
title: '电子卡管理'
|
// title: '电子卡管理'
|
||||||
},
|
// },
|
||||||
name: '/print',
|
// name: '/print',
|
||||||
path: '/print',
|
// path: '/print',
|
||||||
children: [{
|
// children: [{
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'index',
|
// component: 'index',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-help',
|
// icon: 'el-icon-help',
|
||||||
title: '打印电子卡'
|
// title: '打印电子卡'
|
||||||
},
|
// },
|
||||||
name: '/print/index',
|
// name: '/print/index',
|
||||||
path: '/print/index'
|
// path: '/print/index'
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
component: 'print',
|
// component: 'print',
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'el-icon-menu',
|
// icon: 'el-icon-menu',
|
||||||
title: '打印企业卡'
|
// title: '打印企业卡'
|
||||||
},
|
// },
|
||||||
name: '/print/enterpriseCrad',
|
// name: '/print/enterpriseCrad',
|
||||||
path: '/print/enterpriseCrad'
|
// path: '/print/enterpriseCrad'
|
||||||
}
|
// }
|
||||||
|
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'applet',
|
component: 'applet',
|
||||||
@@ -455,7 +451,8 @@
|
|||||||
},
|
},
|
||||||
name: '/appletBanner/index',
|
name: '/appletBanner/index',
|
||||||
path: '/appletBanner/index'
|
path: '/appletBanner/index'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'appletBanner',
|
component: 'appletBanner',
|
||||||
meta: {
|
meta: {
|
||||||
@@ -580,4 +577,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: '惠享',
|
title: '预订商城',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
|||||||
34
src/utils/functions.js.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
// 封装Cookie
|
||||||
|
// 封装三个函数
|
||||||
|
// setCookie() -- 创建 Cookie
|
||||||
|
// getCookie() -- 获取 Cookie
|
||||||
|
// removeCookie() -- 删除 Cookie
|
||||||
|
export function setCookie(name, value, iDay) { //分别代表cookie名称、cookie值、存储时间
|
||||||
|
//首先将cookie的格式拼出来
|
||||||
|
//document.cookie="name=value;expires=date";
|
||||||
|
//然后name就换为name,vlaue就换为value,至于date就要算出这个日期对象
|
||||||
|
var oDate = new Date();
|
||||||
|
oDate.setDate(oDate.getDate() + iDay);
|
||||||
|
document.cookie = name + "=" + value + "; expires=" + oDate;
|
||||||
|
}
|
||||||
|
//a=12; b=5; c=8; d=99
|
||||||
|
export function getCookie(name) {
|
||||||
|
//1、先给cookie做一下字符串分割,
|
||||||
|
var arr = document.cookie.split("; "); //分割后变为数组,a=12 b=5 c=8 d=99
|
||||||
|
//2、循环数组
|
||||||
|
for (var i = 0; i < arr.length; i++) {
|
||||||
|
var arr2 = arr[i].split("="); //根据“=”再次分割
|
||||||
|
//arr2[0]——》存储的名称 abcd
|
||||||
|
//arr2[1]——》存储的值 12 5 8 99
|
||||||
|
if (arr2[0] == name) { //代表找到我想要的东西了
|
||||||
|
return arr2[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//另一种可能,用户第一次来网站,还没有cookie,所以肯定什么也找不到。所以在循环一次后就直接return 一个字符串,告诉用户什么也没找到。
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removeCookie(name) {
|
||||||
|
//name名称,再随便来个值1,后面的才是重点-1,时间过期了,所以就成为了负值
|
||||||
|
setCookie(name, 1, -1);
|
||||||
|
}
|
||||||
@@ -1,55 +1,189 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<div class="logoTitle" style="margin-left: 50px;margin-top: 50px;">
|
<div class="logoTitle" style="margin-left: 50px;margin-top: 50px;">
|
||||||
<!-- <img src="../../assets/loginImg/shgf.png"
|
<img src="../../assets/loginImg/yxt-logo.png" style="width: 250px;height:50px; margin-right: 10px;" />
|
||||||
style="width: 50px;height: 50px; margin-right: 10px;" /><span>惠享</span>
|
|
||||||
<p class="title" style="margin-top: 5px;">惠享管理平台</p> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="content">
|
|
||||||
<el-form ref="loginForm" :model="loginForm" class="login-form">
|
|
||||||
<h3 class="title1">用户登录</h3>
|
|
||||||
<el-form-item>
|
|
||||||
<el-input v-model="loginForm.userName" autocomplete="off" placeholder="请输入账号" prefix-icon="el-icon-user">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-input v-model="loginForm.password" autocomplete="off" placeholder="请输入密码" prefix-icon="el-icon-lock"
|
|
||||||
show-password>
|
|
||||||
</el-input>
|
|
||||||
<!-- <span class="nopsw register" @click="forgetPwd = true">忘记密码 ?</span> -->
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item v-show="showMsg" style="margin-bottom:0;">
|
|
||||||
<span class="text-danger">提示:用户名或密码错误,请重试!</span>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item>
|
<img src="../../assets/loginImg/login_left.png" style="width:50%;height:100%; " />
|
||||||
<el-button type="primary" class="login-btn" v-loading="loading" @click="login">登 录</el-button>
|
|
||||||
<!-- <el-popover placement="top" width="400" trigger="click" v-model="loginCode" @show="codeShow">
|
<div class="main-right" v-show="register==0">
|
||||||
<imgCodeRole @login="login" ref="imgCodeRole"></imgCodeRole>
|
|
||||||
<el-button slot="reference" type="primary" class="login-btn" v-loading="loading">登 录</el-button>
|
<span class="main-right-title">欢迎登录商享通-预订商城</span>
|
||||||
</el-popover> -->
|
|
||||||
<!--<router-link :to="{name: 'registUser'}" target="_blank" tag="a" class="register fl">个人注册</router-link>
|
|
||||||
<router-link :to="{name: 'registOrg'}" target="_blank" tag="a" class="register fr">单位注册</router-link>-->
|
<div class="main-right-table">
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
<div style="cursor:pointer;"
|
||||||
|
:class="tableIndex == 1 ? 'main-right-table-text1' : 'main-right-table-text3'"
|
||||||
|
@click="tableClick(1)">
|
||||||
|
密码登录</div>
|
||||||
|
<div style="cursor:pointer;"
|
||||||
|
:class="tableIndex == 2 ? 'main-right-table-text2' : 'main-right-table-text4'"
|
||||||
|
@click="tableClick(2)">
|
||||||
|
验证码登录</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-right-table-password" v-show="tableIndex==1">
|
||||||
|
|
||||||
|
<el-input class="input" placeholder="请输入手机号/邮箱" clearable v-model="loginForm.userName" />
|
||||||
|
<el-input class="input" placeholder="请输入密码" type="password" show-password
|
||||||
|
v-model="loginForm.password" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-right-table-code" v-show="tableIndex==2">
|
||||||
|
<el-input class="input" placeholder="请输入手机号/邮箱" clearable v-model="loginForm.userName" />
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center;width: 100%;">
|
||||||
|
<el-input class="input" style="flex: 1; margin-right: 10px;" maxlength="6" placeholder="请输入验证码"
|
||||||
|
v-model="loginForm.verifyCode" />
|
||||||
|
<span :class="sendCodeType ? 'sendCode1' : 'sendCode2'" style="cursor:pointer;"
|
||||||
|
@click="sendCode">{{sendCodeText}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<el-button type="primary" size="small"
|
||||||
|
style="width: 65%;margin-top: 30px; font-size: 25px;line-height: 40px;"
|
||||||
|
@click="login">登录</el-button>
|
||||||
|
|
||||||
|
<div class="main-right-bom">
|
||||||
|
|
||||||
|
<el-checkbox class="main-right-bom-left" v-model="checkbox">7天内免登录</el-checkbox>
|
||||||
|
|
||||||
|
<div class="main-right-bom-right">
|
||||||
|
|
||||||
|
<span @click="forgetClick" style="cursor:pointer;">忘记密码</span>
|
||||||
|
<div style="margin-left: 8px;margin-right: 8px;width: 1px; height: 18px;background: #999;">
|
||||||
|
</div>
|
||||||
|
<span @click="registerClick" style="cursor:pointer;">去注册</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="main-right" v-show="register==1">
|
||||||
|
|
||||||
|
<div v-show="registerStep==1" class="registerStep1">
|
||||||
|
<span class="main-right-title2">欢迎注册商享通-预订商城</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span style="width: 100%; margin-top: 15px;">手机号码</span>
|
||||||
|
|
||||||
|
<el-input class="input" style="flex: 1; margin-right: 10px;margin-top: 5px;" maxlength="11"
|
||||||
|
placeholder="请输入手机号码" v-model="registerInfo.mobile" />
|
||||||
|
|
||||||
|
<span style="width: 100%;margin-top: 15px;">密码</span>
|
||||||
|
|
||||||
|
<el-input class="input" style="flex: 1; margin-right: 10px;margin-top: 5px;"
|
||||||
|
placeholder="8至16位大小写字母和数字的组合" v-model="registerInfo.password" show-password />
|
||||||
|
|
||||||
|
<span style="width: 100%;margin-top: 15px;">验证码</span>
|
||||||
|
<div
|
||||||
|
style="display: flex;flex-direction: row;align-items: center;width: 100%; margin-top: 5px;margin-left: -10px;">
|
||||||
|
<el-input class="input" style="flex: 1; margin-right: 10px;" maxlength="6" placeholder="请输入验证码"
|
||||||
|
v-model="registerInfo.code" />
|
||||||
|
<span :class="sendCodeType2 ? 'sendCode1' : 'sendCode2'" @click="sendCode2"
|
||||||
|
style="cursor:pointer;">{{sendCodeText2}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center;width: 100%; margin-top: 5px;"
|
||||||
|
@click="goLogin">
|
||||||
|
<span>已有账号?</span>
|
||||||
|
<span style="color: #5084D2;cursor:pointer;">登录</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<el-button type="primary" size="small"
|
||||||
|
style="width: 100%;margin-top: 30px; font-size: 25px;line-height: 40px;"
|
||||||
|
@click="registerStep1()">注册</el-button>
|
||||||
|
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center;width: 100%; margin-top: 10px;">
|
||||||
|
<el-checkbox style="margin-right: 5px;" v-model="check"></el-checkbox>
|
||||||
|
<span style="font-size: 12px;">我已阅读并同意</span>
|
||||||
|
<span style="font-size: 12px;cursor:pointer;">《宇信通服务协议》</span>
|
||||||
|
<span style="font-size: 12px;">与</span>
|
||||||
|
<span style="font-size: 12px;cursor:pointer;">《隐私协议》</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-dialog title="忘记密码" :visible.sync="forgetPwd">
|
<div v-show="registerStep==2" class="registerStep2">
|
||||||
<el-form :model="nopassword">
|
|
||||||
<el-form-item label="手机号">
|
<span class="main-right-title">请选择公司进入商享通-预订商城</span>
|
||||||
<el-input v-model="nopassword.userPhone" autocomplete="off"></el-input>
|
|
||||||
</el-form-item>
|
<div style="height: 300px;width: 100%; margin-top: 15px;overflow: auto;
|
||||||
<el-form-item label="用户名">
|
display: flex;flex-direction: column;">
|
||||||
<el-input v-model="nopassword.userName" autocomplete="off"></el-input>
|
|
||||||
</el-form-item>
|
<div v-for="(item,index) in companyList" :key="index" @click="itemClick(item)"
|
||||||
</el-form>
|
style="display: flex;flex-direction: column;width: 100%;">
|
||||||
<div slot="footer" class="dialog-footer">
|
<div style="display: flex;flex-direction: row;align-items: center;
|
||||||
<el-button @click="forgetPwd = false">取 消</el-button>
|
background: #EDF1F7; border-radius: 8px;width: 100%;margin-bottom: 20px;
|
||||||
<el-button type="primary" @click="reGetPwd()">确 定</el-button>
|
height: 50px;cursor:pointer;">
|
||||||
|
<img src="../../assets/images/company_icon.png" style="width: 25px; height: 25px;
|
||||||
|
margin-left: 10px;margin-right: 10px;" />
|
||||||
|
<span style="flex: 1;margin-right: 10px;">{{item.orgName}}</span>
|
||||||
|
<img v-show="item.type=='3'" src="../../assets/images/overdue.png"
|
||||||
|
style=" height: 100%;" />
|
||||||
|
<img v-show="item.type=='2'" src="../../assets/images/experience.png"
|
||||||
|
style=" height: 100%;" />
|
||||||
|
<img v-show="item.type=='1'" src="../../assets/images/formal.png"
|
||||||
|
style=" height: 100%;" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<el-button type="primary" size="small"
|
||||||
|
style="width: 100%;margin-top: 30px; font-size: 25px;line-height: 40px;"
|
||||||
|
@click="registerStep2()">新建企业信息</el-button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-show="registerStep==3" class="registerStep3">
|
||||||
|
|
||||||
|
<span class="main-right-title2">欢迎注册商享通-预订商城</span>
|
||||||
|
|
||||||
|
<span style="width: 100%; font-size: 16px;color: #000; margin-top: 40px;">请填写您的企业信息</span>
|
||||||
|
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center; margin-top: 15px;width: 100%; ">
|
||||||
|
<span>企业名称:</span>
|
||||||
|
<el-input class="input" style="flex: 1; " placeholder="请输入公司名称"
|
||||||
|
v-model="registerInfo.companyName" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;width: 100%; ">
|
||||||
|
<span>联系人员:</span>
|
||||||
|
<el-input class="input" style="flex: 1;" placeholder="请输入联系人" v-model="registerInfo.contacts" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;width: 100%; ">
|
||||||
|
<span>所在区域:</span>
|
||||||
|
<!-- <el-input class="input" style="flex: 1; margin-right: 10px;" placeholder="请输入公司名称"
|
||||||
|
v-model="registerInfo.company" /> -->
|
||||||
|
|
||||||
|
<el-cascader v-model="selectedOptions" :options="options" filterable clearable class="input"
|
||||||
|
style="flex: 1;" @change="handleChange" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<el-button type="primary" size="small"
|
||||||
|
style="width: 100%;margin-top: 30px; font-size: 25px;line-height: 40px;"
|
||||||
|
@click="registerStep3()">创建并进入</el-button>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -57,28 +191,56 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
doLogin,
|
doLogin,
|
||||||
|
registerSendMessageCode,
|
||||||
|
bindOrganization,
|
||||||
|
selOrganization,
|
||||||
getUserById,
|
getUserById,
|
||||||
imgCode
|
registUser
|
||||||
} from '@/api/user.js'
|
} from '@/api/user.js'
|
||||||
import user from '@/api/User/login.js'
|
// 导入省市区数据组件
|
||||||
import {
|
import {
|
||||||
setToken,
|
regionData,
|
||||||
getToken,
|
codeToText,
|
||||||
setSession
|
TextToCode
|
||||||
} from '@/utils/auth'
|
} from 'element-china-area-data'
|
||||||
import imgCodeRole from '@/components/imgCodeRole/index.vue'
|
import {
|
||||||
import qs from 'qs'
|
setCookie,
|
||||||
|
getCookie,
|
||||||
|
removeCookie,
|
||||||
|
} from '@/utils/functions.js.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
imgCodeRole
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
checkbox: false,
|
||||||
|
register: 0,
|
||||||
|
registerStep: 1,
|
||||||
|
tableIndex: 1,
|
||||||
|
|
||||||
|
sendCodeText: "发送验证码",
|
||||||
|
sendCodeType: false,
|
||||||
|
totalTime: 10, //一般是60
|
||||||
|
timer: '', //定时器
|
||||||
|
|
||||||
|
sendCodeText2: "发送验证码",
|
||||||
|
sendCodeType2: false,
|
||||||
|
totalTime2: 10, //一般是60
|
||||||
|
timer2: '', //定时器
|
||||||
|
|
||||||
|
check: false,
|
||||||
|
registerInfo: {
|
||||||
|
mobile: '',
|
||||||
|
userSid: "",
|
||||||
|
password: "",
|
||||||
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa46', // 商享通-预订商城 资源sid
|
||||||
|
},
|
||||||
loginForm: {
|
loginForm: {
|
||||||
|
// userName: '18033761989',
|
||||||
|
// password: 'Yxt123',
|
||||||
userName: '',
|
userName: '',
|
||||||
password: '',
|
password: '',
|
||||||
|
verifyCode: "",
|
||||||
|
type: "1"
|
||||||
},
|
},
|
||||||
imgCode: '',
|
|
||||||
loading: false,
|
loading: false,
|
||||||
loginCode: false,
|
loginCode: false,
|
||||||
showMsg: false,
|
showMsg: false,
|
||||||
@@ -87,27 +249,334 @@
|
|||||||
userPhone: '',
|
userPhone: '',
|
||||||
userName: '',
|
userName: '',
|
||||||
},
|
},
|
||||||
|
// 将省市区数据赋给级联选择器
|
||||||
|
options: regionData,
|
||||||
|
// 存放用户选择后省市区的信息
|
||||||
|
selectedOptions: [],
|
||||||
|
companyList: [
|
||||||
|
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
if (getCookie("pas") && getCookie("name")) { //判断页面是否有对应Cookie
|
||||||
|
this.loginForm.userName = getCookie("name"); //有则写入
|
||||||
|
this.loginForm.password = getCookie("pas");
|
||||||
|
|
||||||
|
console.log(" created", this.loginForm)
|
||||||
|
|
||||||
|
this.checkbox = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.loginForm.userName = ""; //无则写空
|
||||||
|
this.loginForm.password = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 省市区级联选择器选择后更新用户前端
|
||||||
|
handleChange(value) {
|
||||||
|
console.log(" handleChange", value)
|
||||||
|
|
||||||
|
var province = ''
|
||||||
|
var city = ''
|
||||||
|
var country = ''
|
||||||
|
for (let i = 0; i < this.selectedOptions.length; i++) {
|
||||||
|
if (i === 0) {
|
||||||
|
var province = codeToText[this.selectedOptions[i]]
|
||||||
|
}
|
||||||
|
if (i === 1) {
|
||||||
|
var city = codeToText[this.selectedOptions[i]]
|
||||||
|
}
|
||||||
|
if (i === 2) {
|
||||||
|
var country = codeToText[this.selectedOptions[i]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(" handleChange", province + "/" + city + "/" + country)
|
||||||
|
|
||||||
|
this.registerInfo.region = province + "/" + city + "/" + country
|
||||||
|
|
||||||
|
},
|
||||||
|
tableClick(index) {
|
||||||
|
this.tableIndex = index
|
||||||
|
|
||||||
|
this.loginForm.type = index + ""
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
// 验证码倒计时
|
||||||
|
sendCode() {
|
||||||
|
if (this.sendCodeType) return
|
||||||
|
// this.getCode() // 获取验证码的接口
|
||||||
|
this.sendCodeType = true
|
||||||
|
this.sendCodeText = this.totalTime + 's'
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
this.totalTime--
|
||||||
|
this.sendCodeText = this.totalTime + 's'
|
||||||
|
if (this.totalTime < 0) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.sendCodeText = '发送验证码'
|
||||||
|
this.totalTime = 10
|
||||||
|
this.sendCodeType = false
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
},
|
||||||
|
// 验证码倒计时
|
||||||
|
sendCode2() {
|
||||||
|
|
||||||
|
if (this.registerInfo.mobile == '') {
|
||||||
|
this.$message({
|
||||||
|
message: '请输入手机号码',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var reg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/
|
||||||
|
|
||||||
|
console.log(" reg", reg.test(this.registerInfo.mobile))
|
||||||
|
|
||||||
|
if (!reg.test(this.registerInfo.mobile)) {
|
||||||
|
this.$message({
|
||||||
|
message: '手机号码格式错误',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.sendCodeType2) return
|
||||||
|
// this.getCode() // 获取验证码的接口
|
||||||
|
this.sendCodeType2 = true
|
||||||
|
this.sendCodeText2 = this.totalTime2 + 's'
|
||||||
|
this.timer2 = setInterval(() => {
|
||||||
|
this.totalTime2--
|
||||||
|
this.sendCodeText2 = this.totalTime2 + 's'
|
||||||
|
if (this.totalTime2 < 0) {
|
||||||
|
clearInterval(this.timer2)
|
||||||
|
this.sendCodeText2 = '发送验证码'
|
||||||
|
this.totalTime2 = 10
|
||||||
|
this.sendCodeType2 = false
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
registerSendMessageCode(this.registerInfo.mobile).then((response) => {}).catch(() => {})
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
login() {
|
login() {
|
||||||
console.log(66);
|
|
||||||
|
if (this.checkbox) { //判断多选框是否选中
|
||||||
|
setCookie("name", this.loginForm.userName, 7); //如选中则添加Cookie,添加内容为用户输入的密码和用户名
|
||||||
|
setCookie("pas", this.loginForm.password, 7);
|
||||||
|
} else {
|
||||||
|
removeCookie("name"); //如没选中,则删除掉对应的Cookie
|
||||||
|
removeCookie("pas");
|
||||||
|
}
|
||||||
|
|
||||||
|
// this.register = 1
|
||||||
|
// this.registerStep = 2
|
||||||
|
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
doLogin(this.loginForm).then((response) => {
|
doLogin(this.loginForm).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$router.push({
|
|
||||||
path: '/index'
|
loading.close()
|
||||||
})
|
this.register = 1
|
||||||
this.loading = true
|
|
||||||
// this.getUserInfo(response.data.loginId)
|
this.companyList = response.data.sysOrganizationVos
|
||||||
window.sessionStorage.setItem('tokenName', response.data.tokenName)
|
this.registerInfo.userSid = response.data.sid
|
||||||
window.sessionStorage.setItem('tokenValue', response.data.tokenValue)
|
|
||||||
|
if (this.companyList.length == 0) {
|
||||||
|
// 1. 新用户 无关联企业
|
||||||
|
this.registerStep = 3
|
||||||
|
} else {
|
||||||
|
// 2. 注册过 选择企业登录
|
||||||
|
this.registerStep = 2
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = true
|
loading.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
forgetClick() {
|
||||||
|
|
||||||
|
},
|
||||||
|
registerClick() {
|
||||||
|
this.register = 1
|
||||||
|
this.registerStep = 1
|
||||||
|
},
|
||||||
|
goLogin() {
|
||||||
|
this.register = 0
|
||||||
|
this.registerStep = 0
|
||||||
|
},
|
||||||
|
registerStep1() {
|
||||||
|
|
||||||
|
var passwordreg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,16}$/
|
||||||
|
|
||||||
|
if (!passwordreg.test(this.registerInfo.password)) {
|
||||||
|
this.$message({
|
||||||
|
message: '密码格式错误,必须为8至16位大小写字母和数字的组合',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.check) {
|
||||||
|
this.$message({
|
||||||
|
message: '请阅读并同意《宇信通服务协议》与《隐私协议》',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
|
||||||
|
registUser(this.registerInfo).then((response) => {
|
||||||
|
if (response.code == 200) {
|
||||||
|
loading.close()
|
||||||
|
|
||||||
|
this.companyList = response.data.sysOrganizationVos
|
||||||
|
this.registerInfo.userSid = response.data.sid
|
||||||
|
|
||||||
|
if (this.companyList.length == 0) {
|
||||||
|
// 1. 新用户 无关联企业
|
||||||
|
this.registerStep = 3
|
||||||
|
} else {
|
||||||
|
// 2. 注册过 选择企业登录
|
||||||
|
this.registerStep = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(() => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
registerStep2() {
|
||||||
|
|
||||||
|
this.registerStep = 3
|
||||||
|
|
||||||
|
},
|
||||||
|
registerStep3() {
|
||||||
|
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
bindOrganization(this.registerInfo).then((response) => {
|
||||||
|
|
||||||
|
if (response.code == 200) {
|
||||||
|
|
||||||
|
this.$router.push({
|
||||||
|
path: '/index'
|
||||||
|
})
|
||||||
|
|
||||||
|
loading.close()
|
||||||
|
|
||||||
|
window.sessionStorage.setItem('token', response.data.token)
|
||||||
|
window.sessionStorage.setItem('staffSid', response.data.staffSid)
|
||||||
|
window.sessionStorage.setItem('userSid', response.data.sid)
|
||||||
|
window.sessionStorage.setItem('name', response.data.name)
|
||||||
|
window.sessionStorage.setItem('userName', response.data.userName)
|
||||||
|
window.sessionStorage.setItem('mobile', response.data.mobile)
|
||||||
|
window.sessionStorage.setItem('orgName', response.data.orgName)
|
||||||
|
window.sessionStorage.setItem('orgSid', response.data.orgSid)
|
||||||
|
window.sessionStorage.setItem('defaultDeptName', response.data.defaultDeptName)
|
||||||
|
window.sessionStorage.setItem('defaultDeptSid', response.data.defaultDeptSid)
|
||||||
|
window.sessionStorage.setItem('defaultRoleName', response.data.defaultRoleName)
|
||||||
|
window.sessionStorage.setItem('defaultRoleSid', response.data.defaultRoleSid)
|
||||||
|
window.sessionStorage.setItem('orgSidPath', response.data.orgSidPath)
|
||||||
|
window.sessionStorage.setItem('defaultOrgPath', response.data.defaultOrgPath)
|
||||||
|
window.sessionStorage.setItem('defaultOrgPathName', response.data.defaultOrgPathName)
|
||||||
|
window.sessionStorage.setItem('pNameAndDepartmentNameAndPostName', response.data
|
||||||
|
.pNameAndDepartmentNameAndPostName)
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(() => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
itemClick(item) {
|
||||||
|
console.log(" itemClick", item)
|
||||||
|
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
|
||||||
|
var params = {
|
||||||
|
userSid: this.registerInfo.userSid,
|
||||||
|
orgSid: item.orgSid,
|
||||||
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa46', // 预订商城 资源sid
|
||||||
|
}
|
||||||
|
|
||||||
|
selOrganization(params).then((response) => {
|
||||||
|
|
||||||
|
if (response.code == 200) {
|
||||||
|
|
||||||
|
this.$router.push({
|
||||||
|
path: '/index'
|
||||||
|
})
|
||||||
|
|
||||||
|
loading.close()
|
||||||
|
|
||||||
|
window.sessionStorage.setItem('token', response.data.token)
|
||||||
|
window.sessionStorage.setItem('staffSid', response.data.staffSid)
|
||||||
|
window.sessionStorage.setItem('userSid', response.data.sid)
|
||||||
|
window.sessionStorage.setItem('name', response.data.name)
|
||||||
|
window.sessionStorage.setItem('userName', response.data.userName)
|
||||||
|
window.sessionStorage.setItem('mobile', response.data.mobile)
|
||||||
|
window.sessionStorage.setItem('orgName', response.data.orgName)
|
||||||
|
window.sessionStorage.setItem('orgSid', response.data.orgSid)
|
||||||
|
window.sessionStorage.setItem('defaultDeptName', response.data.defaultDeptName)
|
||||||
|
window.sessionStorage.setItem('defaultDeptSid', response.data.defaultDeptSid)
|
||||||
|
window.sessionStorage.setItem('defaultRoleName', response.data.defaultRoleName)
|
||||||
|
window.sessionStorage.setItem('defaultRoleSid', response.data.defaultRoleSid)
|
||||||
|
window.sessionStorage.setItem('orgSidPath', response.data.orgSidPath)
|
||||||
|
window.sessionStorage.setItem('defaultOrgPath', response.data.defaultOrgPath)
|
||||||
|
window.sessionStorage.setItem('defaultOrgPathName', response.data.defaultOrgPathName)
|
||||||
|
window.sessionStorage.setItem('pNameAndDepartmentNameAndPostName', response.data
|
||||||
|
.pNameAndDepartmentNameAndPostName)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}).catch(() => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
getUserInfo(id) {
|
getUserInfo(id) {
|
||||||
getUserById(id).then((response) => {
|
getUserById(id).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
@@ -119,8 +588,7 @@
|
|||||||
window.sessionStorage.setItem('userName', user.userName)
|
window.sessionStorage.setItem('userName', user.userName)
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch(() => {
|
}).catch(() => {})
|
||||||
})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
codeShow() {
|
codeShow() {
|
||||||
@@ -140,140 +608,254 @@
|
|||||||
|
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
// .el-input__inner {
|
||||||
|
// border: none;
|
||||||
|
// color: #000;
|
||||||
|
// font-size: 16px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
input:-webkit-autofill {
|
||||||
|
-webkit-box-shadow: 0 0 0px 1000px white inset;
|
||||||
|
-webkit-text-fill-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
background-image: url(../../assets/home/bj.jpg);
|
background-image: url(../../assets/home/bj.png);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.logoTitle {
|
.logoTitle {
|
||||||
margin: 30px;
|
margin: 30px;
|
||||||
|
|
||||||
img {
|
|
||||||
width: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
font-size: 40px;
|
|
||||||
color: #191919;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 25px;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #191919;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width: 30%;
|
width: 60%;
|
||||||
/*height: 640px;*/
|
height: 500px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0px 13px 12px 0px rgba(0, 0, 0, 0.15);
|
box-shadow: 0px 13px 12px 0px rgba(0, 0, 0, 0.15);
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
border-radius: 20px;
|
border-radius: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 15%;
|
right: 20%;
|
||||||
top:35%;
|
top: 25%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
.content {
|
.main-right {
|
||||||
position: relative;
|
display: flex;
|
||||||
/*.title-h3{
|
flex-direction: column;
|
||||||
width: 100%;
|
align-items: center;
|
||||||
|
width: 50%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.main-right-title {
|
||||||
|
margin-top: 40px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-right-title2 {
|
||||||
|
margin-top: 40px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #467CCF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-right-table {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 30px;
|
||||||
|
width: 70%;
|
||||||
|
|
||||||
|
.main-right-table-text1 {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 22px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #FFFFFF;
|
color: #3E77CD;
|
||||||
font-size: 30px;
|
|
||||||
margin: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: -65px;
|
|
||||||
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form {
|
.main-right-table-text1:after {
|
||||||
padding: 30px 50px;
|
content: '';
|
||||||
|
display: block;
|
||||||
|
width: 60px;
|
||||||
|
border-bottom: 2px solid #3E77CD;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.title1 {
|
|
||||||
margin: 0px auto 30px auto;
|
.main-right-table-text3 {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 22px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 20px;
|
color: #333;
|
||||||
color: #191919;
|
border-bottom: none;
|
||||||
font-size: 23px;
|
padding-bottom: 8px;
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input {
|
.main-right-table-text2 {
|
||||||
border: none;
|
flex: 1;
|
||||||
background-color: transparent;
|
font-size: 22px;
|
||||||
|
text-align: center;
|
||||||
|
color: #3E77CD;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code {
|
.main-right-table-text2:after {
|
||||||
position: absolute;
|
content: '';
|
||||||
top: 3px;
|
display: block;
|
||||||
right: 5px;
|
width: 80px;
|
||||||
width: 35%;
|
border-bottom: 2px solid #3E77CD;
|
||||||
height: 35px;
|
margin: 0 auto;
|
||||||
cursor: pointer;
|
padding-bottom: 8px;
|
||||||
z-index: 9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nopsw {
|
.main-right-table-text4 {
|
||||||
position: absolute;
|
flex: 1;
|
||||||
bottom: -30px;
|
font-size: 22px;
|
||||||
right: 5px;
|
text-align: center;
|
||||||
color: #018ad2;
|
color: #333;
|
||||||
font-size: 15px;
|
border-bottom: none;
|
||||||
line-height: 30px;
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.register {
|
.main-right-table-password {
|
||||||
color: #EE640C;
|
display: flex;
|
||||||
}
|
width: 65%;
|
||||||
|
margin-top: 10px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.register:hover,
|
.input {
|
||||||
.nopsw:hover {
|
margin-top: 10px;
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-eye {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-danger {
|
|
||||||
color: #f56c6c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-btn {
|
|
||||||
margin: 10px 0 10px 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #EE640C;
|
height: 50px;
|
||||||
border: 0;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn:hover {
|
.main-right-table-code {
|
||||||
background-color: #EE640C;
|
|
||||||
border: 0;
|
display: flex;
|
||||||
|
width: 65%;
|
||||||
|
margin-top: 10px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.input {
|
||||||
|
margin-top: 10px;
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input--prefix .el-input__inner {
|
.sendCode1 {
|
||||||
border: 1px solid #EE640C;
|
font-size: 16px;
|
||||||
background: transparent;
|
color: #c9c9c9;
|
||||||
color: #333 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-form-item {
|
.sendCode2 {
|
||||||
margin-bottom: 40px;
|
font-size: 16px;
|
||||||
|
color: #3E77CD;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-loading-mask {
|
}
|
||||||
background-color: rgba(255, 255, 255, 0.6);
|
|
||||||
|
.main-right-bom {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
display: flex;
|
||||||
|
width: 65%;
|
||||||
|
margin-top: 10px;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.main-right-bom-left {
|
||||||
|
color: #000;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-right-bom-right {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #666;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.registerStep1 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 65%;
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-right-title2 {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #467CCF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sendCode1 {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #c9c9c9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sendCode2 {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #3E77CD;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.registerStep2 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 70%;
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-right-title {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.registerStep3 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 70%;
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -23,25 +23,25 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属支行">
|
<!-- <el-form-item label="所属支行">
|
||||||
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable
|
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable
|
||||||
placeholder="请选择" style="width:100%" @change="bankSelect">
|
placeholder="请选择" style="width:100%" @change="bankSelect">
|
||||||
<el-option v-for="item in bankList" :key="item.name" :label="item.name"
|
<el-option v-for="item in bankList" :key="item.name" :label="item.name"
|
||||||
:value="item.sid">
|
:value="item.sid">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
|
||||||
<el-form-item label="提货门店">
|
<!-- <el-form-item label="提货门店">
|
||||||
<el-select v-model="page.params.store" filterable class="item_input" clearable
|
<el-select v-model="page.params.store" filterable class="item_input" clearable
|
||||||
placeholder="请选择" style="width:100%" @change="giftPackSelect">
|
placeholder="请选择" style="width:100%" @change="giftPackSelect">
|
||||||
<el-option v-for="item in giftPackList" :key="item.text" :label="item.text"
|
<el-option v-for="item in giftPackList" :key="item.text" :label="item.text"
|
||||||
:value="item.text">
|
:value="item.text">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
<el-form-item label="卡券类型">
|
<el-form-item label="卡券类型">
|
||||||
<el-select v-model="page.params.cardType" filterable class="item_input" clearable
|
<el-select v-model="page.params.cardType" filterable class="item_input" clearable
|
||||||
placeholder="请选择" style="width:100%" @change="cardTypeSelect">
|
placeholder="请选择" style="width:100%" @change="cardTypeSelect">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
:value="item.sid">
|
:value="item.sid">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -156,8 +156,7 @@
|
|||||||
},
|
},
|
||||||
giftPackList: [],
|
giftPackList: [],
|
||||||
bankList: [],
|
bankList: [],
|
||||||
cardTypeList:[
|
cardTypeList: [{
|
||||||
{
|
|
||||||
text: "全部",
|
text: "全部",
|
||||||
sid: ""
|
sid: ""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,20 +10,24 @@
|
|||||||
<div v-show="isSearchShow" class="search">
|
<div v-show="isSearchShow" class="search">
|
||||||
<el-form :inline="true" class="tab-header">
|
<el-form :inline="true" class="tab-header">
|
||||||
<el-form-item label="预约开始日期">
|
<el-form-item label="预约开始日期">
|
||||||
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约结束日期">
|
<el-form-item label="预约结束日期">
|
||||||
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="菜窖分类">
|
<!-- <el-form-item label="菜窖分类">
|
||||||
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
||||||
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="btn" style="text-align: center;">
|
<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-search"
|
||||||
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
@click="dosearch">查询</el-button>
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-refresh"
|
||||||
|
@click="resetQuery">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -53,7 +57,8 @@
|
|||||||
<div class="pages">
|
<div class="pages">
|
||||||
<div class="tit" />
|
<div class="tit" />
|
||||||
<!-- 翻页 -->
|
<!-- 翻页 -->
|
||||||
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current" :limit.sync="page.size" class="pagination" @pagination="loadList" />
|
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current"
|
||||||
|
:limit.sync="page.size" class="pagination" @pagination="loadList" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -117,7 +122,8 @@
|
|||||||
this.$refs['btnbar'].setButtonList(this.btnList)
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initBrand()
|
// this.initBrand()
|
||||||
|
this.loadList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initBrand() {
|
initBrand() {
|
||||||
|
|||||||
@@ -10,12 +10,14 @@
|
|||||||
<div v-show="isSearchShow" class="search">
|
<div v-show="isSearchShow" class="search">
|
||||||
<el-form :inline="true" class="tab-header">
|
<el-form :inline="true" class="tab-header">
|
||||||
<el-form-item label="预约开始日期">
|
<el-form-item label="预约开始日期">
|
||||||
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约结束日期">
|
<el-form-item label="预约结束日期">
|
||||||
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属支行">
|
<!-- <el-form-item label="所属支行">
|
||||||
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%" @change="bankSelect">
|
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%" @change="bankSelect">
|
||||||
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -29,11 +31,13 @@
|
|||||||
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
||||||
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="btn" style="text-align: center;">
|
<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-search"
|
||||||
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
@click="dosearch">查询</el-button>
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-refresh"
|
||||||
|
@click="resetQuery">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,7 +83,8 @@
|
|||||||
<div class="pages">
|
<div class="pages">
|
||||||
<div class="tit" />
|
<div class="tit" />
|
||||||
<!-- 翻页 -->
|
<!-- 翻页 -->
|
||||||
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current" :limit.sync="page.size" class="pagination" @pagination="loadList" />
|
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current"
|
||||||
|
:limit.sync="page.size" class="pagination" @pagination="loadList" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -147,9 +152,10 @@
|
|||||||
this.$refs['btnbar'].setButtonList(this.btnList)
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initBank()
|
// this.initBank()
|
||||||
this.initStore()
|
// this.initStore()
|
||||||
this.initBrand()
|
// this.initBrand()
|
||||||
|
this.loadList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initBank() {
|
initBank() {
|
||||||
|
|||||||
@@ -10,12 +10,14 @@
|
|||||||
<div v-show="isSearchShow" class="search">
|
<div v-show="isSearchShow" class="search">
|
||||||
<el-form :inline="true" class="tab-header">
|
<el-form :inline="true" class="tab-header">
|
||||||
<el-form-item label="预约开始日期">
|
<el-form-item label="预约开始日期">
|
||||||
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约结束日期">
|
<el-form-item label="预约结束日期">
|
||||||
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属支行">
|
<!-- <el-form-item label="所属支行">
|
||||||
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%" @change="bankSelect">
|
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%" @change="bankSelect">
|
||||||
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -29,11 +31,13 @@
|
|||||||
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
||||||
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="btn" style="text-align: center;">
|
<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-search"
|
||||||
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
@click="dosearch">查询</el-button>
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-refresh"
|
||||||
|
@click="resetQuery">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,7 +71,8 @@
|
|||||||
<div class="pages">
|
<div class="pages">
|
||||||
<div class="tit" />
|
<div class="tit" />
|
||||||
<!-- 翻页 -->
|
<!-- 翻页 -->
|
||||||
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current" :limit.sync="page.size" class="pagination" @pagination="loadList" />
|
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current"
|
||||||
|
:limit.sync="page.size" class="pagination" @pagination="loadList" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -135,11 +140,11 @@
|
|||||||
this.$refs['btnbar'].setButtonList(this.btnList)
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initBank()
|
// this.initBank()
|
||||||
this.initStore()
|
// this.initStore()
|
||||||
this.initBrand()
|
// this.initBrand()
|
||||||
// this.getAllStore()
|
// this.getAllStore()
|
||||||
// this.loadList()
|
this.loadList()
|
||||||
// this.getBankList()
|
// this.getBankList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -10,12 +10,14 @@
|
|||||||
<div v-show="isSearchShow" class="search">
|
<div v-show="isSearchShow" class="search">
|
||||||
<el-form :inline="true" class="tab-header">
|
<el-form :inline="true" class="tab-header">
|
||||||
<el-form-item label="预约开始日期">
|
<el-form-item label="预约开始日期">
|
||||||
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.startDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约结束日期">
|
<el-form-item label="预约结束日期">
|
||||||
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
<el-date-picker v-model="page.params.endDate" type="date" placeholder="选择日期"
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属支行">
|
<!-- <el-form-item label="所属支行">
|
||||||
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
<el-select v-model="page.params.bankSid" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
||||||
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
<el-option v-for="item in bankList" :key="item.sid" :label="item.name" :value="item.sid" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -24,11 +26,13 @@
|
|||||||
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
<el-select v-model="page.params.cardType" filterable class="item_input" clearable placeholder="请选择" style="width:100%">
|
||||||
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in brandList" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="btn" style="text-align: center;">
|
<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-search"
|
||||||
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
@click="dosearch">查询</el-button>
|
||||||
|
<el-button type="primary" size="small" icon="el-icon-refresh"
|
||||||
|
@click="resetQuery">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,7 +66,8 @@
|
|||||||
<div class="pages">
|
<div class="pages">
|
||||||
<div class="tit" />
|
<div class="tit" />
|
||||||
<!-- 翻页 -->
|
<!-- 翻页 -->
|
||||||
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current" :limit.sync="page.size" class="pagination" @pagination="loadList" />
|
<pagination v-show="dataList.length > 0" :total="page.total" :page.sync="page.current"
|
||||||
|
:limit.sync="page.size" class="pagination" @pagination="loadList" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,8 +133,9 @@
|
|||||||
this.$refs['btnbar'].setButtonList(this.btnList)
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initBank()
|
// this.initBank()
|
||||||
this.initBrand()
|
// this.initBrand()
|
||||||
|
this.loadList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initBank() {
|
initBank() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ function resolve(dir) {
|
|||||||
return path.join(__dirname, dir)
|
return path.join(__dirname, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = defaultSettings.title || '惠享' // page title
|
const name = defaultSettings.title || '预订商城' // page title
|
||||||
|
|
||||||
// 如果端口设置为80,
|
// 如果端口设置为80,
|
||||||
// 使用管理员权限执行命令行。
|
// 使用管理员权限执行命令行。
|
||||||
@@ -24,8 +24,8 @@ module.exports = {
|
|||||||
*在大多数情况下,请使用“/”!!!
|
*在大多数情况下,请使用“/”!!!
|
||||||
*详细信息:https://cli.vuejs.org/config/#publicpath
|
*详细信息:https://cli.vuejs.org/config/#publicpath
|
||||||
*/
|
*/
|
||||||
publicPath: process.env.NODE_ENV === 'production' ? '/lpk/' : '/',
|
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
||||||
outputDir: 'yythmall-ui',
|
outputDir: 'ordermall-ui',
|
||||||
assetsDir: 'static',
|
assetsDir: 'static',
|
||||||
lintOnSave: process.env.NODE_ENV === 'development',
|
lintOnSave: process.env.NODE_ENV === 'development',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
|||||||