Commit b6791f93 authored by 黄奎's avatar 黄奎

页面修改

parent 35b50da4
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
</template> </template>
<script> <script>
import { import {
queryVisitorPage queryVisitorPage,
queryVisitor,
updateVisitor,
setVisitor,
} from '../../api/scheduling/schedu' } from '../../api/scheduling/schedu'
import { import {
getGuestBasicsEnumList getGuestBasicsEnumList
...@@ -131,20 +134,27 @@ ...@@ -131,20 +134,27 @@
rowsPerPage: 10, rowsPerPage: 10,
PlanId: 0, PlanId: 0,
}, },
addMsg:{ addMsg: {
Id:0,//编号 Id: 0, //编号
Name:"",//姓名 Name: "", //姓名
Tel:"",//电话 Tel: "", //电话
WeChatNum:"",//微信号 WeChatNum: "", //微信号
CourseName:"",//兴趣课程 CourseName: "", //兴趣课程
StudyTime:"",//学习时间 StudyTime: "", //学习时间
LevelType:"",//当前水平 LevelType: "", //当前水平
PlanId:0,//值班编号 PlanId: 0, //值班编号
},
statusMsg: {
Id: 0, //编号
VisitorStatus: 0, //访客状态(1-正常,2-贵宾,3-黑名单)
Evaluate: "", //意向评估
Remark: "", //备注
} }
} }
}, },
created() { created() {
this.getGuestBasics() this.getGuestBasics();
console.log("saveObj", this.saveObj);
}, },
mounted() { mounted() {
this.getVisitoryPage(); this.getVisitoryPage();
...@@ -181,13 +191,57 @@ ...@@ -181,13 +191,57 @@
}) })
}, },
//新增修改访客 //新增修改访客
SetVisitor(Id) SetVisitor(Id) {
{ if (Id > 0) {
queryVisitor({
Id: Id
}).then(res => {
if (res.Code == 1) {
var tempData = res.Data;
if (tempData) {
this.addMsg.Id = tempData.Id;
this.addMsg.Name = tempData.Name;
this.addMsg.Tel = tempData.Tel;
this.addMsg.WeChatNum = tempData.WeChatNum;
this.addMsg.CourseName = tempData.CourseName;
this.addMsg.StudyTime = tempData.StudyTime;
this.addMsg.LevelType = tempData.LevelType;
this.addMsg.PlanId = tempData.PlanId;
}
}
})
} else {
this.clearAddMsg();
}
},
clearAddMsg() {
this.addMsg.Id = 0;
this.addMsg.Name = "";
this.addMsg.Tel = "";
this.addMsg.WeChatNum = "";
this.addMsg.CourseName = "";
this.addMsg.StudyTime = "";
this.addMsg.LevelType = "";
this.addMsg.PlanId = 0;
},
//保存
SaveVisitor() {
this.addMsg.PlanId = this.saveObj.Id;
setVisitor(this.addMsg).then(res => {
console.log("res", res);
})
},
//修改访客状态
setVisitorStatus() {
updateVisitor(this.statusMsg).then(res => {
console.log(res);
})
} }
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
\ No newline at end of file </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment