From efb896c33bd1b229fc24112277c4489a617dcd70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com>
Date: Thu, 30 Oct 2025 15:22:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=A7=9F=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/school/salary/commissionPlans.js | 7 ++--
src/components/sc/course/addCourse.vue | 6 ++--
.../school/salary/commission_plans/index.vue | 32 +++++++++++--------
3 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/src/api/school/salary/commissionPlans.js b/src/api/school/salary/commissionPlans.js
index 313a684..9b69b93 100644
--- a/src/api/school/salary/commissionPlans.js
+++ b/src/api/school/salary/commissionPlans.js
@@ -16,10 +16,9 @@ export function saveOrEdit(data) {
})
}
-export function remove(data) {
+export function remove(row) {
return request({
- url: '/commissionPlans/remove',
- method: 'get',
- params: data
+ url: '/commissionPlans/remove?id='+row.id,
+ method: 'post',
})
}
diff --git a/src/components/sc/course/addCourse.vue b/src/components/sc/course/addCourse.vue
index 8693ffb..aef766a 100644
--- a/src/components/sc/course/addCourse.vue
+++ b/src/components/sc/course/addCourse.vue
@@ -51,14 +51,14 @@
{{ item.label }}
-
+
{{ item.label }}
diff --git a/src/views/school/salary/commission_plans/index.vue b/src/views/school/salary/commission_plans/index.vue
index 85733d1..4c6844e 100644
--- a/src/views/school/salary/commission_plans/index.vue
+++ b/src/views/school/salary/commission_plans/index.vue
@@ -28,7 +28,7 @@
-
+
@@ -61,7 +61,7 @@
-
+
@@ -71,7 +71,7 @@
-
+
@@ -91,7 +91,7 @@
-
+
@@ -102,11 +102,11 @@
-
+
@@ -146,7 +146,6 @@ export default {
isActive:1,
},
// 表单参数
- dateFormat:'yyyy/MM/dd',
form: {
planName:'',
tier1Threshold:null,
@@ -181,6 +180,14 @@ export default {
this.loading = false
})
},
+ activeFormat(row,column,cellValue){
+ for (const item of this.options) {
+ if (item.value===cellValue){
+ return item.label
+ }
+ }
+ return cellValue
+ },
// 取消按钮
cancel() {
this.open = false
@@ -200,7 +207,7 @@ export default {
renewalRate:null,
referralRate:null,
isActive:1,
- effectiveDate:new Date().getDate(),
+ effectiveDate:new Date(),
}
this.resetForm('form')
},
@@ -245,19 +252,18 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.roomId || this.ids
this.$confirm('是否确认删除?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
- return remove({id:id})
+ return remove(row)
}).then((response) => {
- if (response.respCode === 200) {
+ if (response.code === 200) {
this.getList()
this.msgSuccess('删除成功')
} else {
- this.msgError(response.respMsg)
+ this.msgError(response.msg)
}
}).catch(function() {})
}