Commit d97052e7 by xinla

员工活码详情修改

1 parent 8fb87a19
...@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code' ...@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code'
export function getList(params) { export function getList(params) {
return request({ return request({
url: service + '/list', url: service + '/list',
params, params
}) })
} }
...@@ -28,7 +28,7 @@ export function getList(params) { ...@@ -28,7 +28,7 @@ export function getList(params) {
*/ */
export function getDetail(id) { export function getDetail(id) {
return request({ return request({
url: service + '/' + id, url: service + '/' + id
}) })
} }
...@@ -59,7 +59,7 @@ export function update(data) { ...@@ -59,7 +59,7 @@ export function update(data) {
return request({ return request({
url: service + '/update', url: service + '/update',
method: 'put', method: 'put',
data, data
}) })
} }
...@@ -87,7 +87,7 @@ export function add(data) { ...@@ -87,7 +87,7 @@ export function add(data) {
return request({ return request({
url: service + '/add', url: service + '/add',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -99,7 +99,7 @@ export function batchAdd(data) { ...@@ -99,7 +99,7 @@ export function batchAdd(data) {
return request({ return request({
url: service + '/batchAdd', url: service + '/batchAdd',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -110,7 +110,7 @@ export function batchAdd(data) { ...@@ -110,7 +110,7 @@ export function batchAdd(data) {
export function remove(id) { export function remove(id) {
return request({ return request({
url: service + '/delete/' + id, url: service + '/delete/' + id,
method: 'delete', method: 'delete'
}) })
} }
...@@ -125,7 +125,7 @@ export function remove(id) { ...@@ -125,7 +125,7 @@ export function remove(id) {
export function getQrcode(params) { export function getQrcode(params) {
return request({ return request({
url: service + '/getQrcode', url: service + '/getQrcode',
params, params
}) })
} }
...@@ -137,7 +137,7 @@ export function downloadBatch(ids) { ...@@ -137,7 +137,7 @@ export function downloadBatch(ids) {
return request({ return request({
url: service + '/downloadBatch', url: service + '/downloadBatch',
params: { params: {
ids, ids
}, },
responseType: 'blob' responseType: 'blob'
}) })
...@@ -147,7 +147,7 @@ export function download(id) { ...@@ -147,7 +147,7 @@ export function download(id) {
return request({ return request({
url: service + '/download', url: service + '/download',
params: { params: {
id, id
}, },
responseType: 'blob' responseType: 'blob'
}) })
...@@ -156,11 +156,11 @@ export function download(id) { ...@@ -156,11 +156,11 @@ export function download(id) {
/** /**
* 成员添加客户统计 * 成员添加客户统计
* @param {*} params * @param {*} params
* userId=成员id&addWay=添加类型,二维码:1&beginTime=开始时间&endTime=结束时间 * codeId=活码id&beginTime=开始时间&endTime=结束时间
*/ */
export function getUserAddCustomerStat(params) { export function getUserAddCustomerStat(params) {
return request({ return request({
url: service + '/getUserAddCustomerStat', url: service + '/getUserAddCustomerStat',
params, params
}) })
} }
...@@ -20,8 +20,8 @@ export default { ...@@ -20,8 +20,8 @@ export default {
form: {}, form: {},
// 查询参数 // 查询参数
query: { query: {
userId: undefined, codeId: undefined,
addWay: undefined, // addWay: undefined,
beginTime: undefined, beginTime: undefined,
endTime: undefined endTime: undefined
}, },
...@@ -30,9 +30,12 @@ export default { ...@@ -30,9 +30,12 @@ export default {
} }
}, },
created() { created() {
let id = this.$route.query.id let id = (this.query.codeId = this.$route.query.id)
id && this.getDetail(id) if (id) {
// this.getList() this.getDetail(id)
this.setTime(7)
this.getList()
}
}, },
mounted() { mounted() {
this.clipboard = new ClipboardJS('.copy-btn') this.clipboard = new ClipboardJS('.copy-btn')
...@@ -57,11 +60,8 @@ export default { ...@@ -57,11 +60,8 @@ export default {
getDetail(id).then(({ data }) => { getDetail(id).then(({ data }) => {
this.form = data this.form = data
this.loading = false this.loading = false
this.query.userId = data.weEmpleCodeUseScops[0].businessId // this.query.userId = data.weEmpleCodeUseScops[0].businessId
this.query.addWay = 1 // this.query.addWay = 1
this.setTime(7)
this.getList()
}) })
}, },
/** */ /** */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!