From a341c44c4dae92fde95a61abf4a1e276ac41dba0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 8 Jan 2023 12:12:31 +0800 Subject: [PATCH] =?UTF-8?q?mp=EF=BC=9A=E5=AE=9E=E7=8E=B0=20tag=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=9A=84=E5=89=8D=E7=AB=AF=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/api/mp/tag.js | 52 +++++ .../src/api/wechatMp/wxAccountFansTag.js | 54 ----- yudao-ui-admin/src/api/wechatMp/wxFansTag.js | 54 ----- yudao-ui-admin/src/views/mp/account/index.vue | 8 +- yudao-ui-admin/src/views/mp/tag/index.vue | 213 ++++++++---------- 5 files changed, 148 insertions(+), 233 deletions(-) create mode 100644 yudao-ui-admin/src/api/mp/tag.js delete mode 100644 yudao-ui-admin/src/api/wechatMp/wxAccountFansTag.js delete mode 100644 yudao-ui-admin/src/api/wechatMp/wxFansTag.js diff --git a/yudao-ui-admin/src/api/mp/tag.js b/yudao-ui-admin/src/api/mp/tag.js new file mode 100644 index 000000000..b0f3b4f0f --- /dev/null +++ b/yudao-ui-admin/src/api/mp/tag.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 创建公众号标签 +export function createTag(data) { + return request({ + url: '/mp/tag/create', + method: 'post', + data: data + }) +} + +// 更新公众号标签 +export function updateTag(data) { + return request({ + url: '/mp/tag/update', + method: 'put', + data: data + }) +} + +// 删除公众号标签 +export function deleteTag(id) { + return request({ + url: '/mp/tag/delete?id=' + id, + method: 'delete' + }) +} + +// 获得公众号标签 +export function getTag(id) { + return request({ + url: '/mp/tag/get?id=' + id, + method: 'get' + }) +} + +// 获得公众号标签分页 +export function getTagPage(query) { + return request({ + url: '/mp/tag/page', + method: 'get', + params: query + }) +} + +// 同步公众号标签 +export function syncTag(accountId) { + return request({ + url: '/mp/tag/sync?accountId=' + accountId, + method: 'post' + }) +} diff --git a/yudao-ui-admin/src/api/wechatMp/wxAccountFansTag.js b/yudao-ui-admin/src/api/wechatMp/wxAccountFansTag.js deleted file mode 100644 index dff041ee9..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxAccountFansTag.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建粉丝标签关联 -export function createWxAccountFansTag(data) { - return request({ - url: '/wechatMp/wx-account-fans-tag/create', - method: 'post', - data: data - }) -} - -// 更新粉丝标签关联 -export function updateWxAccountFansTag(data) { - return request({ - url: '/wechatMp/wx-account-fans-tag/update', - method: 'put', - data: data - }) -} - -// 删除粉丝标签关联 -export function deleteWxAccountFansTag(id) { - return request({ - url: '/wechatMp/wx-account-fans-tag/delete?id=' + id, - method: 'delete' - }) -} - -// 获得粉丝标签关联 -export function getWxAccountFansTag(id) { - return request({ - url: '/wechatMp/wx-account-fans-tag/get?id=' + id, - method: 'get' - }) -} - -// 获得粉丝标签关联分页 -export function getWxAccountFansTagPage(query) { - return request({ - url: '/wechatMp/wx-account-fans-tag/page', - method: 'get', - params: query - }) -} - -// 导出粉丝标签关联 Excel -export function exportWxAccountFansTagExcel(query) { - return request({ - url: '/wechatMp/wx-account-fans-tag/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxFansTag.js b/yudao-ui-admin/src/api/wechatMp/wxFansTag.js deleted file mode 100644 index 50b9f8788..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxFansTag.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建粉丝标签 -export function createWxFansTag(data) { - return request({ - url: '/wechatMp/fans-tag/create', - method: 'post', - data: data - }) -} - -// 更新粉丝标签 -export function updateWxFansTag(data) { - return request({ - url: '/wechatMp/fans-tag/update', - method: 'put', - data: data - }) -} - -// 删除粉丝标签 -export function deleteWxFansTag(id) { - return request({ - url: '/wechatMp/fans-tag/delete?id=' + id, - method: 'delete' - }) -} - -// 获得粉丝标签 -export function getWxFansTag(id) { - return request({ - url: '/wechatMp/fans-tag/get?id=' + id, - method: 'get' - }) -} - -// 获得粉丝标签分页 -export function getWxFansTagList(query) { - return request({ - url: '/wechatMp/fans-tag/list', - method: 'get', - params: query - }) -} - -// 导出粉丝标签 Excel -export function exportWxFansTagExcel(query) { - return request({ - url: '/wechatMp/fans-tag/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/views/mp/account/index.vue b/yudao-ui-admin/src/views/mp/account/index.vue index 87f116212..74f7c2c15 100644 --- a/yudao-ui-admin/src/views/mp/account/index.vue +++ b/yudao-ui-admin/src/views/mp/account/index.vue @@ -137,8 +137,6 @@ export default { return { // 遮罩层 loading: true, - // 导出遮罩层 - exportLoading: false, // 显示搜索条件 showSearch: true, // 总条数 @@ -167,8 +165,6 @@ export default { appSecret: [{required: true, message: '公众号密钥不能为空', trigger: 'blur'}], token: [{required: true, message: '公众号 token 不能为空', trigger: 'blur'}], }, - // 禁用属性 - disabled: false, } }, created() { @@ -190,7 +186,6 @@ export default { /** 取消按钮 */ cancel() { this.open = false - this.disabled = false this.reset() }, /** 表单重置 */ @@ -232,7 +227,6 @@ export default { this.form = response.data this.open = true this.title = '修改公众号账号' - this.disabled = true }) }, /** 提交按钮 */ @@ -283,7 +277,7 @@ export default { /** 清空二维码 API 配额的按钮操作 */ handleCleanQuota(row) { const id = row.id - this.$modal.confirm('是否清空生成公众号账号编号为"' + row.name + '"的 API 配额?').then(function () { + this.$modal.confirm('是否确认清空生成公众号账号编号为"' + row.name + '"的 API 配额?').then(function () { return clearAccountQuota(id) }).then(() => { this.$modal.msgSuccess('清空 API 配额成功') diff --git a/yudao-ui-admin/src/views/mp/tag/index.vue b/yudao-ui-admin/src/views/mp/tag/index.vue index b2c2fc5af..7c9ccdd10 100644 --- a/yudao-ui-admin/src/views/mp/tag/index.vue +++ b/yudao-ui-admin/src/views/mp/tag/index.vue @@ -3,10 +3,14 @@ + + + + + - 搜索 重置 @@ -17,54 +21,41 @@ 新增 + v-hasPermi="['mp:tag:create']">新增 - 导出 + 同步 -
-
-
公众号名称
- -
- -
- -
-
{{ account.name }}
-
-
-
- - - - - - - - - - - -
-
+ + + + + + + + + + + + + + @@ -72,12 +63,6 @@ - - - - - -
- -