Commit c462bd68 authored by 黄奎's avatar 黄奎

页面修改

parent 833cf737
......@@ -31,7 +31,7 @@
ref="VisitorStatus" v-model="objOption.VisitorStatus" :options="statusList"
:rules="[val => !!val || '请选择状态']" emit-value map-options label="状态" />
<q-input filled stack-label :dense="false" v-model="objOption.Evaluate" ref="Evaluate" class="col-6 q-pb-lg"
label="兴趣课程" :rules="[val => !!val || '请输入兴趣课程']" />
label="意向评估" :rules="[val => !!val || '请输入意向评估']" />
</div>
<div class="row wrap">
<q-input filled stack-label type="textarea" maxlength="500" :dense="false" v-model="objOption.Remark"
......
......@@ -38,9 +38,12 @@
</template>
<template v-slot:body-cell-Id="props">
<q-td :props="props">
<q-btn flat size="xs" @click="editVisitor(props.row)" icon="edit" color="accent" style="font-weight:400" label="编辑" />
<q-btn flat size="xs" @click="getDetail(props.row)" icon="iconfont icon-View" color="accent" style="font-weight:400" label="详情" />
<q-btn flat size="xs" @click="getAppointment()" icon="iconfont icon-ziyuan1" color="accent" style="font-weight:400;" label="申请约课" />
<q-btn flat size="xs" @click="editVisitor(props.row)" icon="edit" color="accent" style="font-weight:400"
label="编辑" />
<q-btn flat size="xs" @click="getDetail(props.row)" icon="iconfont icon-View" color="accent"
style="font-weight:400" label="详情" />
<q-btn flat size="xs" @click="getAppointment(props.row)" icon="iconfont icon-ziyuan1" color="accent"
style="font-weight:400;" label="申请约课" />
</q-td>
</template>
......@@ -50,13 +53,10 @@
</template>
</q-table>
</div>
<schedulFanke v-if="isShowDetail" @close="closeDetail" :save-obj="sendObj"></schedulFanke>
<visitor-form v-if="isShowVisitor" :save-obj="visitObjOption" @close="closeVisitorForm"
@success="refreshPage">
<visitor-form v-if="isShowVisitor" :save-obj="visitObjOption" @close="closeVisitorForm" @success="refreshPage">
</visitor-form>
<appoint-form v-if="isShowFangke" @close="closeAppoint">
</appoint-form>
<schedulFanke v-if="isShowDetail" @close="closeDetail" :save-obj="sendObj"></schedulFanke>
<appoint-form v-if="isShowFangke" :save-obj="visitObjOption" @close="closeAppoint" @success="refreshPage"></appoint-form>
</div>
</template>
......@@ -165,13 +165,11 @@
label: '操作',
}
],
sendObj:{},
isShowDetail:false,
isShowVisitor:false,
visitObjOption:null,
isShowFangke:false, //是否显示填写预约
sendObj: {},
isShowDetail: false,
isShowVisitor: false,
visitObjOption: null,
isShowFangke: false, //是否显示填写预约
}
},
mounted() {
......@@ -182,9 +180,7 @@
},
methods: {
//新增访客
editVisitor(obj){
console.log(obj);
editVisitor(obj) {
if (obj) {
this.visitObjOption = obj;
} else {
......@@ -211,24 +207,24 @@
this.getVisitoryPage();
},
//过滤备注显示
getRemarks(remark){
if(remark.length>10){
return remark.substring(0,10)+'...';
}else{
getRemarks(remark) {
if (remark.length > 10) {
return remark.substring(0, 10) + '...';
} else {
return remark;
}
},
//获取详情
getDetail(obj){
getDetail(obj) {
this.sendObj = obj;
this.isShowDetail=true;
this.isShowDetail = true;
},
//关闭
closeDetail(){
this.isShowDetail=false;
closeDetail() {
this.isShowDetail = false;
},
//关闭访客弹窗
closeVisitorForm(){
closeVisitorForm() {
this.isShowVisitor = false;
this.isShowDetail = false;
},
......@@ -239,11 +235,12 @@
this.getList();
},
//打开约课
getAppointment(){
getAppointment(item) {
this.visitObjOption=item;
this.isShowFangke = true;
},
closeAppoint(){
this.isShowFangke=false;
closeAppoint() {
this.isShowFangke = false;
}
}
}
......
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