@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-29 11:14:13 | * @Date: 2021-11-29 11:14:13 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2022-09-17 14:58:10 | |||||
* @LastEditTime: 2022-09-19 16:16:05 | |||||
* @FilePath: \TelpoUserManageAdmin\README.md | * @FilePath: \TelpoUserManageAdmin\README.md | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -94,4 +94,12 @@ feat | |||||
- 添加群发 | - 添加群发 | ||||
- 增加 接口对接 | - 增加 接口对接 | ||||
- 群发列表 | - 群发列表 | ||||
- 增加 接口对接 | |||||
- 增加 接口对接 | |||||
## v1.0.5 | |||||
`2022.9.19` | |||||
fix | |||||
- 添加群发 | |||||
- 群发列表 | |||||
- 修改 接口数据结构 |
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* @Date: 2022-09-15 16:40:39 | * @Date: 2022-09-15 16:40:39 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2022-09-17 16:34:33 | |||||
* @LastEditTime: 2022-09-19 16:50:23 | |||||
* @FilePath: \TelpoUserManageAdmin\src\api\wechat-fans.js | * @FilePath: \TelpoUserManageAdmin\src\api\wechat-fans.js | ||||
* @description: | * @description: | ||||
*/ | */ | ||||
@@ -50,18 +50,17 @@ function addGroupSender(params) { | |||||
} | } | ||||
function getGroupSenderDetails(data) { | |||||
function getGroupSenderDetails(subject_id, data) { | |||||
return requestWxFans({ | return requestWxFans({ | ||||
url: '/GroupSender/detail', | |||||
url: `/GroupSender/${subject_id}/details`, | |||||
method: 'get', | method: 'get', | ||||
params: data, | params: data, | ||||
}); | }); | ||||
} | } | ||||
function deleteGroupSender(data) { | |||||
function deleteGroupSender(id) { | |||||
return requestWxFans({ | return requestWxFans({ | ||||
url: '/GroupSender', | |||||
url: `/GroupSender/${id}`, | |||||
method: 'delete', | method: 'delete', | ||||
params: data, | |||||
}); | }); | ||||
} | } |
@@ -203,7 +203,8 @@ export const constantRoutes = [{ | |||||
meta: { | meta: { | ||||
title: '公众号粉丝', | title: '公众号粉丝', | ||||
icon: 'el-icon-user-solid' | icon: 'el-icon-user-solid' | ||||
} | |||||
}, | |||||
hidden: true | |||||
}, | }, | ||||
{ | { | ||||
@@ -213,7 +214,8 @@ export const constantRoutes = [{ | |||||
meta: { | meta: { | ||||
title: '添加文章', | title: '添加文章', | ||||
icon: 'el-icon-edit' | icon: 'el-icon-edit' | ||||
} | |||||
}, | |||||
hidden: true | |||||
}, | }, | ||||
{ | { | ||||
@@ -253,7 +255,8 @@ export const constantRoutes = [{ | |||||
meta: { | meta: { | ||||
title: '退订列表', | title: '退订列表', | ||||
icon: 'el-icon-notebook-2' | icon: 'el-icon-notebook-2' | ||||
} | |||||
}, | |||||
hidden: true | |||||
}, | }, | ||||
] | ] | ||||
@@ -1,8 +1,8 @@ | |||||
/* | /* | ||||
* @Date: 2021-11-30 15:09:25 | * @Date: 2021-11-30 15:09:25 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2022-09-17 14:58:22 | |||||
* @LastEditTime: 2022-09-19 16:18:49 | |||||
* @FilePath: \TelpoUserManageAdmin\src\utils\model.js | * @FilePath: \TelpoUserManageAdmin\src\utils\model.js | ||||
* @description: 版本号 | * @description: 版本号 | ||||
*/ | */ | ||||
export const VersionModel = '1.0.4'; | |||||
export const VersionModel = '1.0.5'; |
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2022-08-08 10:09:47 | * @Date: 2022-08-08 10:09:47 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2022-09-17 16:32:26 | |||||
* @LastEditTime: 2022-09-19 16:59:03 | |||||
* @FilePath: \TelpoUserManageAdmin\src\views\message-manage\main\add-mass\index.vue | * @FilePath: \TelpoUserManageAdmin\src\views\message-manage\main\add-mass\index.vue | ||||
* @description: 添加群发 | * @description: 添加群发 | ||||
--> | --> | ||||
@@ -176,7 +176,7 @@ export default { | |||||
APIWechatFans.SelfGroups(reqBody) | APIWechatFans.SelfGroups(reqBody) | ||||
.then(res => { | .then(res => { | ||||
let data = res.data; | let data = res.data; | ||||
this.groupList = data.map(item => { | |||||
this.groupList = data.rows.map(item => { | |||||
return { | return { | ||||
label: item.name, | label: item.name, | ||||
value: item.id | value: item.id | ||||
@@ -195,7 +195,7 @@ export default { | |||||
.then(res => { | .then(res => { | ||||
let data = res.data; | let data = res.data; | ||||
console.log("文章data", data); | console.log("文章data", data); | ||||
this.articleList = data.map(item => { | |||||
this.articleList = data.rows.map(item => { | |||||
return { | return { | ||||
label: item.title, | label: item.title, | ||||
value: item.id | value: item.id | ||||
@@ -214,10 +214,11 @@ export default { | |||||
subject: this.form.subject, | subject: this.form.subject, | ||||
template_id: '1', | template_id: '1', | ||||
self_group_id: this.form.selfGroupId, | self_group_id: this.form.selfGroupId, | ||||
article_id: this.form.articleId, | |||||
article_id: this.form.articleId || 0, | |||||
first: this.form.first, | first: this.form.first, | ||||
remark: this.form.remark, | remark: this.form.remark, | ||||
keyword: keywordStr | |||||
keyword: keywordStr, | |||||
url: this.form.articleContent | |||||
}; | }; | ||||
this.$refs['form'].validate((valid) => { | this.$refs['form'].validate((valid) => { | ||||
if(valid) { | if(valid) { | ||||
@@ -240,10 +241,11 @@ export default { | |||||
subject: this.form.subject, | subject: this.form.subject, | ||||
template_id: '1', | template_id: '1', | ||||
self_group_id: this.form.selfGroupId, | self_group_id: this.form.selfGroupId, | ||||
article_id: this.form.articleId, | |||||
article_id: this.form.articleId || 0, | |||||
first: this.form.first, | first: this.form.first, | ||||
remark: this.form.remark, | remark: this.form.remark, | ||||
keyword: keywordStr | |||||
keyword: keywordStr, | |||||
url: this.form.articleContent | |||||
}; | }; | ||||
this.$refs['form'].validate((valid) => { | this.$refs['form'].validate((valid) => { | ||||
if(valid) { | if(valid) { | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2022-08-08 10:09:50 | * @Date: 2022-08-08 10:09:50 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2022-09-17 16:37:46 | |||||
* @LastEditTime: 2022-09-19 16:50:55 | |||||
* @FilePath: \TelpoUserManageAdmin\src\views\message-manage\main\mass-list\index.vue | * @FilePath: \TelpoUserManageAdmin\src\views\message-manage\main\mass-list\index.vue | ||||
* @description: 群发列表 | * @description: 群发列表 | ||||
--> | --> | ||||
@@ -86,13 +86,13 @@ export default { | |||||
title: "操作", | title: "操作", | ||||
fixed: "right", | fixed: "right", | ||||
actions: [ | actions: [ | ||||
{ | |||||
/* { | |||||
fnName: "update", | fnName: "update", | ||||
title: "修改", | title: "修改", | ||||
type: "primary", | type: "primary", | ||||
icon: "el-icon-edit", | icon: "el-icon-edit", | ||||
size: "small" | size: "small" | ||||
}, | |||||
}, */ | |||||
{ | { | ||||
fnName: "delete", | fnName: "delete", | ||||
title: "删除", | title: "删除", | ||||
@@ -111,9 +111,9 @@ export default { | |||||
] | ] | ||||
} | } | ||||
], | ], | ||||
total: 10, | |||||
total: 0, | |||||
isDetailsShow: false, | isDetailsShow: false, | ||||
detailsTotal: 10, | |||||
detailsTotal: 0, | |||||
detailsParams: { | detailsParams: { | ||||
page: 1, | page: 1, | ||||
limit: 10 | limit: 10 | ||||
@@ -142,8 +142,8 @@ export default { | |||||
APIWechatFans.getGroupSender(reqBody) | APIWechatFans.getGroupSender(reqBody) | ||||
.then(res => { | .then(res => { | ||||
console.log("res::", res); | console.log("res::", res); | ||||
this.dataList = res.data; | |||||
this.dataList = res.data.rows; | |||||
this.total = res.data.totals; | |||||
}) | }) | ||||
}, | }, | ||||
// 搜索 | // 搜索 | ||||
@@ -165,12 +165,9 @@ export default { | |||||
cancelButtonText: "取消", | cancelButtonText: "取消", | ||||
type: "warning" | type: "warning" | ||||
}).then(() => { | }).then(() => { | ||||
let reqBody = { | |||||
id: value.id | |||||
} | |||||
APIWechatFans.deleteGroupSender(reqBody) | |||||
APIWechatFans.deleteGroupSender(value.id) | |||||
.then(res => { | .then(res => { | ||||
if(res.code === 0) { | |||||
if(res.code === 20000) { | |||||
this.$message({ | this.$message({ | ||||
type: "success", | type: "success", | ||||
message: "删除成功" | message: "删除成功" | ||||
@@ -194,18 +191,18 @@ export default { | |||||
// 获取单个群发明细 | // 获取单个群发明细 | ||||
getGroupSenderDetails(id) { | getGroupSenderDetails(id) { | ||||
let reqBody = { | let reqBody = { | ||||
subject_id: id, | |||||
page_index: 1, | page_index: 1, | ||||
page_size: 10, | page_size: 10, | ||||
}; | }; | ||||
APIWechatFans.getGroupSenderDetails(reqBody) | |||||
APIWechatFans.getGroupSenderDetails(id,reqBody) | |||||
.then(res => { | .then(res => { | ||||
console.log("res", res); | console.log("res", res); | ||||
if(res.data !== null) { | if(res.data !== null) { | ||||
this.detailsDataList = res.data.map(item => { | |||||
this.detailsDataList = res.data.rows.map(item => { | |||||
item.status = item.status === 1 ? '发送成功' : '发送失败'; | item.status = item.status === 1 ? '发送成功' : '发送失败'; | ||||
return item | return item | ||||
}); | }); | ||||
this.detailsTotal = res.data.totals; | |||||
} else { | } else { | ||||
this.errorMessage = res.message; | this.errorMessage = res.message; | ||||
} | } | ||||