Commit c462bd68 authored by 黄奎's avatar 黄奎

页面修改

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