盛安新版本问题优化-2项目和服务包增加推荐
This commit is contained in:
parent
115f7630d6
commit
9bf3683d58
|
@ -219,6 +219,19 @@
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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="状态">
|
<el-table-column prop="status" label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<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) {
|
changeStatus(id, status) {
|
||||||
this.$http({
|
this.$http({
|
||||||
|
|
|
@ -175,6 +175,20 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column prop="content" label="详情">
|
<!-- <el-table-column prop="content" label="详情">
|
||||||
</el-table-column> -->
|
</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="状态">
|
<el-table-column prop="status" label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
|
@ -3594,6 +3608,26 @@ export default {
|
||||||
}
|
}
|
||||||
this.dialogFormVisible9 = true;
|
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) {
|
change(massageTypeId, status) {
|
||||||
this.$http({
|
this.$http({
|
||||||
|
|
Loading…
Reference in New Issue