添加是否企业预约项目
This commit is contained in:
parent
5413a5062f
commit
8064c56287
|
@ -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 == "") {
|
||||
|
|
Loading…
Reference in New Issue