From b0738fff882058e26d5fd2067aefdfd523cb1145 Mon Sep 17 00:00:00 2001
From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com>
Date: Wed, 10 Apr 2024 18:08:10 +0800
Subject: [PATCH 1/3] 1
---
src/api/api.config.js | 2 ++
src/api/store.js | 22 ++++++++++++++++++++++
src/views/store/auth.vue | 35 +++++++++++++++++++++++++++++++----
src/views/store/template.vue | 10 ----------
4 files changed, 55 insertions(+), 14 deletions(-)
diff --git a/src/api/api.config.js b/src/api/api.config.js
index 72c09d7..c5308cb 100644
--- a/src/api/api.config.js
+++ b/src/api/api.config.js
@@ -30,6 +30,8 @@ export default {
qrcode: 'wxserve/qrcode',
commit: 'wxserve/commit',
getVersion: 'wxserve/getVersion',
+ auditBeforeCheck: 'wxserve/auditBeforeCheck',
+ audit: 'wxserve/audit',
// 商家功能模块管理
module: {
diff --git a/src/api/store.js b/src/api/store.js
index 5b4057d..9795b86 100644
--- a/src/api/store.js
+++ b/src/api/store.js
@@ -45,6 +45,28 @@ export function addTotemplate(params) {
params,
})
}
+/**
+ * 获取列表
+ * @param {*} params
+ */
+export function auditBeforeCheck(params) {
+ return axios({
+ url: api.store.auditBeforeCheck,
+ method: 'get',
+ params,
+ })
+}
+/**
+ * 获取列表
+ * @param {*} params
+ */
+export function audit(params) {
+ return axios({
+ url: api.store.audit,
+ method: 'get',
+ params,
+ })
+}
/**
* 获取列表
* @param {*} params
diff --git a/src/views/store/auth.vue b/src/views/store/auth.vue
index b6a76d9..e91c5ea 100644
--- a/src/views/store/auth.vue
+++ b/src/views/store/auth.vue
@@ -42,7 +42,8 @@
发布体验版
- 刷新版本信息
+ 发布正式版
+ 刷新版本
版本:{{ item.exp_info.exp_version }}
时间:{{ item.exp_info.exp_time }}
@@ -41,7 +54,7 @@ - 发布体验版 + 发布体验版 发布正式版 刷新版本 @@ -194,8 +207,27 @@ export default { handleQrcode() { this.$refs.qrcode.show() }, - handleCommit(item) { - this.$refs.commit.show(item) + handleCommit(appid) { + this.$refs.commit.show(appid) + }, + handleBatchTest() { + let appids = this.selectedRowKeys.join(',') + if (appids === '') { + this.$message.error('请选择需要提交的APPID') + return false + } + this.$refs.commit.show(appids) + }, + handleBatch() { + let appids = this.selectedRowKeys.join(',') + if (appids === '') { + this.$message.error('请选择需要提交的APPID') + return false + } + Api.audit({ appid: appids }).then((result) => { + this.$message.success(result.message, 1.5) + this.fetchData() + }) }, handleSearch() { this.queryParam.page = 1 diff --git a/src/views/store/modules/Commit.vue b/src/views/store/modules/Commit.vue index 7b22c67..a7e9e4f 100644 --- a/src/views/store/modules/Commit.vue +++ b/src/views/store/modules/Commit.vue @@ -51,8 +51,8 @@ export default { /** * 显示对话框 */ - show(item) { - this.form.appid = item.appid + show(appid) { + this.form.appid = appid this.visible = true this.getTemplatelist() }, From 73c89cfd7106e9770777316da518db7042bcf02a Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Thu, 11 Apr 2024 13:30:17 +0800 Subject: [PATCH 3/3] 1 --- src/views/store/auth.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/store/auth.vue b/src/views/store/auth.vue index 4246e68..3406c24 100644 --- a/src/views/store/auth.vue +++ b/src/views/store/auth.vue @@ -224,10 +224,12 @@ export default { this.$message.error('请选择需要提交的APPID') return false } - Api.audit({ appid: appids }).then((result) => { - this.$message.success(result.message, 1.5) - this.fetchData() - }) + Api.audit({ appid: appids }) + .then((result) => { + this.$message.success(result.message, 1.5) + this.fetchData() + }) + .finally(() => this.fetchData()) }, handleSearch() { this.queryParam.page = 1 @@ -285,7 +287,7 @@ export default { this.$message.success(result.message, 1.5) this.fetchData() }) - .finally(() => modal.destroy()) + .finally(this.fetchData()) }, }) },