From b97b59ea04714e51accfa0697db35d3b4be07cb3 Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Wed, 3 Sep 2025 13:04:06 +0800 Subject: [PATCH] =?UTF-8?q?suk=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pms/sku/index.vue | 17 ++++--------- src/views/system/tenant/index.vue | 10 ++++++-- src/views/ums/feedback/index.vue | 40 +++++++++++++------------------ 3 files changed, 30 insertions(+), 37 deletions(-) diff --git a/src/views/pms/sku/index.vue b/src/views/pms/sku/index.vue index d94a82d..318223c 100644 --- a/src/views/pms/sku/index.vue +++ b/src/views/pms/sku/index.vue @@ -3,7 +3,6 @@ - - 搜索 重置 @@ -61,7 +57,7 @@ - + @@ -136,8 +132,8 @@ export default { open: false, // 查询参数 queryParams: { - pageNum: 1, - pageSize: 10, + current: 1, + size: 10, productId: null, outSkuId: null, price: null, @@ -197,10 +193,7 @@ export default { /** 查询sku信息列表 */ getList() { this.loading = true; - const { pageNum, pageSize } = this.queryParams; - const query = { ...this.queryParams, pageNum: undefined, pageSize: undefined }; - const pageReq = { page: pageNum - 1, size: pageSize }; - listPmsSku(query, pageReq).then((response) => { + listPmsSku(this.queryParams).then((response) => { const { records, total } = response.data || {}; this.pmsSkuList = records; this.total = total; @@ -230,7 +223,7 @@ export default { }, /** 搜索按钮操作 */ handleQuery() { - this.queryParams.pageNum = 1; + // this.queryParams.pageNum = 1; this.getList(); }, /** 重置按钮操作 */ diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index fb369aa..c28ec95 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -233,7 +233,13 @@ - + @@ -368,7 +374,7 @@ - + diff --git a/src/views/ums/feedback/index.vue b/src/views/ums/feedback/index.vue index f7045c0..f7816b1 100644 --- a/src/views/ums/feedback/index.vue +++ b/src/views/ums/feedback/index.vue @@ -56,8 +56,8 @@ - 已处理 - 点击处理 + 已处理 + {{ scope.row.handleTime ? parseTime(scope.row.handleTime) : '' }} @@ -69,7 +69,7 @@ - 处理 + 处理 修改备注 @@ -94,7 +94,7 @@ 取 消 - 确 定 + 确 定 @@ -151,10 +151,7 @@ export default { showRefuteDialog: false, handObj: {}, param: { - id: '', - resultType: '', - remark: '', - status: 1 + remark: null } }; }, @@ -169,15 +166,14 @@ export default { } }, methods: { - handleAdd(row) { - this.param = { - id: row.id, - resultType: '', - remark: '', - status: 1 - }; - this.handObj = row; - this.showRefuteDialog = true; + updateHandleStatus(row) { + updateMark({ id: this.remarkModal.id, remark: this.remarkModal.remark }).then((res) => { + if (res > 0) { + this.$modal.msgSuccess('修改成功'); + } else { + this.$modal.msgError('修改失败'); + } + }); }, showUpdateMark(record) { this.remarkModal = { @@ -242,17 +238,15 @@ export default { handleStatusChange(row) { // 使用nextTick确保是用户主动操作触发的变更 this.$nextTick(() => { - this.changeStatus(row); + this.showRefuteDialog = true; + // this.changeStatus(row); + this.param = { ...this.param, id: row.id, handleStatus: row.handleStatus }; }); }, // 更改账户状态 changeStatus(row) { - const data = { - id: row.id, - handleStatus: row.handleStatus - }; - changeHandleStatus(data).then((response) => { + changeHandleStatus(this.param).then((response) => { if (response) { this.$modal.msgSuccess('操作成功'); this.getList();