添加是否企业预约项目

This commit is contained in:
yangjun 2024-07-09 14:46:15 +08:00
parent 5413a5062f
commit 8064c56287
1 changed files with 36 additions and 0 deletions

View File

@ -189,6 +189,19 @@
</el-switch>
</template>
</el-table-column>
<el-table-column prop="qyType" label="是否企业预约项目">
<template slot-scope="scope">
<el-switch
v-model="scope.row.qyType"
@change="changeQy(scope.row.massageTypeId, scope.row.qyType)"
:active-value="openValue3"
:inactive-value="closeValue3"
active-color="#13ce66"
inactive-color="#ff4949"
>
</el-switch>
</template>
</el-table-column>
<!-- <el-table-column prop="createTime" label="创建时间">
</el-table-column> -->
<el-table-column label="操作" prop="id" width="260" fixed="right">
@ -1901,6 +1914,8 @@ export default {
closeValue1: 1,
openValue2: 1,
closeValue2: 2,
openValue3: 1,
closeValue3: 0,
title: "",
type: "",
name: "",
@ -3511,6 +3526,27 @@ export default {
});
});
},
//
changeQy(massageTypeId, qyType) {
this.$http({
url: this.$http.adornUrl(`artificer/updateMassageType`),
method: "post",
data: this.$http.adornData({
massageTypeId: massageTypeId,
qyType: qyType,
}),
}).then(({ data }) => {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
this.classSelect();
},
});
});
},
//
refuseto1() {
if (this.classType == "") {