添加校验

This commit is contained in:
yangjun 2024-06-15 21:35:56 +08:00
parent 6b33fcafd1
commit 8bbfa93395
2 changed files with 82 additions and 55 deletions

View File

@ -1187,6 +1187,7 @@ export default {
labels: "",// labels: "",//
city: "",// city: "",//
createTime: "",// createTime: "",//
fwxmtype:"",// 104
page: 1, page: 1,
limit: 10, limit: 10,
dialogFormVisibleSales: false, dialogFormVisibleSales: false,
@ -1808,7 +1809,9 @@ export default {
}, },
showDetailView(row){ showDetailView(row){
console.log(`🚀 ~ showDetailView ~ row:`, row)
this.mainId = row.id; this.mainId = row.id;
this.fwxmtype = row.type;
this.handleSelectDetail(); this.handleSelectDetail();
this.dialogFormVisibleDetail = true; this.dialogFormVisibleDetail = true;
}, },
@ -2049,26 +2052,38 @@ export default {
}, },
handleAddMassage(){ handleAddMassage(){
this.title = "";
this.status = 1; var list = this.detailTableData.list;
this.sales = "0"; var fwxmtype = this.fwxmtype;
this.price = ""; if(fwxmtype==104){
this.oldPrice = ""; this.title = "";
this.massageTypeId = ""; this.status = 1;
this.massageImg = ""; this.sales = "0";
this.isSex = 0; this.price = "";
this.duration = ""; this.oldPrice = "";
this.applyPeople = ""; this.massageTypeId = "";
this.contentImg = []; this.massageImg = "";
this.content = ""; this.isSex = 0;
this.city = ""; this.duration = "";
this.labelsArr = []; this.applyPeople = "";
this.storeAddre = "请选择城市"; this.contentImg = [];
this.type = ""; this.content = "";
this.jianjie = ""; this.city = "";
this.serviceCount = 1; this.labelsArr = [];
this.intervalDays = 0; this.storeAddre = "请选择城市";
this.dialogFormVisibleAddMassage = true; this.type = "";
this.jianjie = "";
this.serviceCount = 1;
this.intervalDays = 0;
this.dialogFormVisibleAddMassage = true;
}else{
this.$notify({
title: "提示",
duration: 1800,
message: "只有【服务套餐】可以配置多条服务项目!",
type: "warning",
});
}
}, },
// //
@ -2238,10 +2253,22 @@ export default {
}, },
showMassageView(){ showMassageView(){
this.serviceCount = 1;
this.intervalDays = 0; var list = this.detailTableData.list;
this.handleSelectMassage(); var fwxmtype = this.fwxmtype;
this.dialogFormVisibleMassageList = true; if(fwxmtype==104){
this.serviceCount = 1;
this.intervalDays = 0;
this.handleSelectMassage();
this.dialogFormVisibleMassageList = true;
}else{
this.$notify({
title: "提示",
duration: 1800,
message: "只有【服务套餐】可以配置多条服务项目!",
type: "warning",
});
}
}, },
handleSelectMassage(){ handleSelectMassage(){

View File

@ -528,41 +528,41 @@ export default {
this.userId = window.localStorage.getItem('userId'); this.userId = window.localStorage.getItem('userId');
this.ringOrderId = window.localStorage.getItem('ringOrderId'); this.ringOrderId = window.localStorage.getItem('ringOrderId');
this.chatNumJl = setInterval(() => { // this.chatNumJl = setInterval(() => {
this.dataSelect() // this.dataSelect()
}, 6000) // }, 6000)
this.chatNumQy = setInterval(() => { // this.chatNumQy = setInterval(() => {
this.dataSelectPy() // this.dataSelectPy()
}, 6000) // }, 6000)
this.chatNumJjqz = setInterval(() => { // this.chatNumJjqz = setInterval(() => {
this.dataSelectJjqz() // this.dataSelectJjqz()
}, 6000) // }, 6000)
// this.chatNumYh = setInterval(() => {
this.chatNumYh = setInterval(() => { // this.dataSelectYh()
this.dataSelectYh() // }, 6000)
}, 6000)
// //
if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) { // if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) {
this.chatNumJg = setInterval(() => { // this.chatNumJg = setInterval(() => {
this.dataSelectJg() // this.dataSelectJg()
}, 6000) // }, 6000)
this.chatNumCs = setInterval(() => { // this.chatNumCs = setInterval(() => {
this.dataSelectCs() // this.dataSelectCs()
}, 6000) // }, 6000)
this.chatNumXdd = setInterval(() => { // this.chatNumXdd = setInterval(() => {
this.dataSelectXdd() // this.dataSelectXdd()
}, 3000) // }, 3000)
} // }
}, },
beforeDestroy() { beforeDestroy() {
// clearInterval(this.chatNum) // clearInterval(this.chatNum)
clearInterval(this.chatNumJl);
clearInterval(this.chatNumQy); // clearInterval(this.chatNumJl);
clearInterval(this.chatNumJjqz); // clearInterval(this.chatNumQy);
clearInterval(this.chatNumYh); // clearInterval(this.chatNumJjqz);
clearInterval(this.chatNumJg); // clearInterval(this.chatNumYh);
clearInterval(this.chatNumCs); // clearInterval(this.chatNumJg);
clearInterval(this.chatNumXdd); // clearInterval(this.chatNumCs);
// clearInterval(this.chatNumXdd);
} }
} }
</script> </script>