盛安新版本问题优化-2项目和服务包增加推荐

This commit is contained in:
曹磊 2024-10-28 10:46:04 +08:00
parent 115f7630d6
commit 9bf3683d58
2 changed files with 68 additions and 0 deletions

View File

@ -219,6 +219,19 @@
</el-switch>
</template>
</el-table-column>
<el-table-column prop="isTj" label="推荐">
<template slot-scope="scope">
<el-switch
v-model="scope.row.isTj"
@change="changeTj(scope.row.id, scope.row.isTj)"
:active-value="openValue"
:inactive-value="closeValue"
active-color="#13ce66"
inactive-color="#ff4949"
>
</el-switch>
</template>
</el-table-column>
<el-table-column prop="status" label="状态">
<template slot-scope="scope">
<el-switch
@ -1521,6 +1534,27 @@ export default {
});
},
//
changeTj(id, isTj) {
this.$http({
url: this.$http.adornUrl(`massage/package/updateTj`),
method: "post",
params: this.$http.adornParams({
// data: this.$http.adornData({
id: id,
isTj: isTj,
}),
}).then(({data}) => {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
this.handleSelect();
},
});
});
},
//
changeStatus(id, status) {
this.$http({

View File

@ -175,6 +175,20 @@
</el-table-column>
<!-- <el-table-column prop="content" label="详情">
</el-table-column> -->
<el-table-column prop="isTj" label="推荐">
<template slot-scope="scope">
<el-switch
v-model="scope.row.isTj"
@change="changeTj(scope.row.massageTypeId, scope.row.isTj)"
:disabled="!isAuth('locality:update')"
:active-value="openValue2"
:inactive-value="closeValue2"
active-color="#13ce66"
inactive-color="#ff4949"
>
</el-switch>
</template>
</el-table-column>
<el-table-column prop="status" label="状态">
<template slot-scope="scope">
<el-switch
@ -3594,6 +3608,26 @@ export default {
}
this.dialogFormVisible9 = true;
},
//
changeTj(massageTypeId, isTj) {
this.$http({
url: this.$http.adornUrl(`artificer/updateMassageType`),
method: "post",
data: this.$http.adornData({
massageTypeId: massageTypeId,
isTj: isTj,
}),
}).then(({ data }) => {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
this.classSelect();
},
});
});
},
//
change(massageTypeId, status) {
this.$http({