Commit 428eaa4a authored by 黄奎's avatar 黄奎

页面修改

parent 7e982163
......@@ -119,8 +119,8 @@
<div class="info_item">
<div class="item_label">创建人</div>
<div class="item_value">
<q-select filled v-model="customObj.CreateBy" disable @filter="filterEmployee" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.CreateBy" disable @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
</div>
</div>
<div class="info_item">
......@@ -243,6 +243,7 @@
message: '数据保存成功!',
position: 'top'
})
this.$emit('success');
}
})
},
......@@ -256,7 +257,7 @@
})
},
//筛选员工
filterEmployee(val, update, abort){
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
......
......@@ -5,8 +5,7 @@
<div class="custom_Top">
<div class="custom_HLeft">
<div class="nameplate_avatar">
<img v-if="baseObj.StuIcon" style="width:100%;height:100%;"
:src="baseObj.StuIcon" alt />
<img v-if="baseObj.StuIcon" style="width:100%;height:100%;" :src="baseObj.StuIcon" alt />
<div class="student_Name" v-else>
<span v-if="baseObj.StuName">{{baseObj.StuName.substring(0,1)}}</span>
</div>
......@@ -20,9 +19,10 @@
<q-btn color="primary" size="sm" label="转交" @click="isShowTrans=true">
<q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans">
<q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options />
<q-btn label="保存" style="float:right;margin-top:15px" color="accent q-mb-lg" size="sm" @click="saveTransForm" />
<q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
<q-btn label="保存" style="float:right;margin-top:15px" color="accent q-mb-lg" size="sm"
@click="saveTransForm" />
</q-banner>
</q-popup-proxy>
</q-btn>
......@@ -30,7 +30,7 @@
</div>
<div class="custom_Bottom">
<div class="detail-info">
<student-left :save-obj="saveObj"></student-left>
<student-left :save-obj="saveObj" @success="refreshStudentPage"></student-left>
</div>
<div class="detail-travel">
<div class="detail_first">
......@@ -40,7 +40,7 @@
<q-tab name="3" label="订单" />
<q-tab name="4" label="合同" />
</q-tabs>
<div class="operate_Content" style="flex:1;" >
<div class="operate_Content" style="flex:1;">
<div class="detail_Main">
<div class="tripTypeContent" style="flex-shrink:0" v-if="ckedTab==2">
<div v-for="(qItem,qIndex) in visitList" :key="qIndex"
......@@ -49,24 +49,24 @@
</div>
<!-- 记录 -->
<template v-if="ckedTab==1">
<student-record :save-obj="baseObj"></student-record>
<student-record :save-obj="baseObj" @success="refreshStudentPage"></student-record>
</template>
<!-- 操作 -->
<template v-if="ckedTab==2">
<div class="operate_Content" style="margin-top:20px;">
<student-visit :save-obj="baseObj" :StuId="baseObj.StuId" v-if="secondType==1"></student-visit>
<student-yuefang :save-obj="baseObj" v-if="secondType==2"></student-yuefang>
<student-genjin :save-obj="baseObj" v-if="secondType==3"></student-genjin>
<student-shiting :save-obj="baseObj" v-if="secondType==4"></student-shiting>
<student-visit :save-obj="baseObj" :StuId="baseObj.StuId" v-if="secondType==1" @success="refreshStudentPage"></student-visit>
<student-yuefang :save-obj="baseObj" v-if="secondType==2" @success="refreshStudentPage"></student-yuefang>
<student-genjin :save-obj="baseObj" v-if="secondType==3" @success="refreshStudentPage"></student-genjin>
<student-shiting :save-obj="baseObj" v-if="secondType==4" @success="refreshStudentPage"></student-shiting>
</div>
</template>
<!-- 订单 -->
<template v-if="ckedTab==3">
<student-order :save-obj="baseObj"></student-order>
<student-order :save-obj="baseObj" @success="refreshStudentPage"></student-order>
</template>
<!-- 合同 -->
<template v-if="ckedTab==4">
<student-hetong :save-obj="baseObj"></student-hetong>
<student-hetong :save-obj="baseObj" @success="refreshStudentPage"></student-hetong>
</template>
</div>
</div>
......@@ -120,37 +120,36 @@
return {
persistent: true,
ckedTab: '1',
secondType:1,
visitList:[{
Name:'到访',
Id:1
},{
Name:'约访',
Id:2
},{
Name:'跟进',
Id:3
},{
Name:'试听',
Id:4
secondType: 1,
visitList: [{
Name: '到访',
Id: 1
}, {
Name: '约访',
Id: 2
}, {
Name: '跟进',
Id: 3
}, {
Name: '试听',
Id: 4
}],
msg: {
},
baseObj:{},
transMsg:{
StuId:1,
CreateBy:''
baseObj: {},
transMsg: {
StuId: 1,
CreateBy: ''
},
//员工列表
employeeList: [],
myEmployeeList:[],
isShowTrans:false
myEmployeeList: [],
isShowTrans: false
}
},
mounted() {
console.log(this.saveObj,'saveObj');
this.baseObj = this.saveObj;
this.getEmployeeList();
},
......@@ -158,8 +157,12 @@
closeCutomer() {
this.$emit('close')
},
//刷新列表
refreshStudentPage() {
this.$emit('success');
},
//点击第二排
getckedType(obj){
getckedType(obj) {
this.secondType = obj.Id;
},
//获取员工列表
......@@ -172,7 +175,7 @@
})
},
//筛选员工
filterEmployee(val, update, abort){
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
......@@ -180,7 +183,7 @@
});
},
//保存转交
saveTransForm(){
saveTransForm() {
this.transMsg.StuId = this.baseObj.StuId;
ForwardStudent(this.transMsg).then(res => {
if (res.Code == 1) {
......@@ -192,12 +195,11 @@
position: 'top'
})
}
this.isShowTrans=false;
this.isShowTrans = false;
})
}
},
}
</script>
<style>
.custom_RModel {
......@@ -382,73 +384,86 @@
height: 100%;
}
.student_Name{
width:100%;
height:100%;
.student_Name {
width: 100%;
height: 100%;
background: #004d40;
color:#fff;
color: #fff;
text-align: center;
line-height: 60px;
font-size:20px;
font-size: 20px;
}
.TimeLineDiv {
height:620px;
height: 620px;
flex: 1;
height: 100%;
padding-right: 20px;
}
.Time_TopList{
.Time_TopList {
display: flex;
justify-content: space-between;
}
.visit_Cont{
font-size:14px;
.visit_Cont {
font-size: 14px;
}
.visit_delete{
font-size:14px;
.visit_delete {
font-size: 14px;
cursor: pointer;
width:30px;
width: 30px;
}
.operate_Content{
.operate_Content {
overflow: auto;
padding-right:20px;
padding-right: 20px;
}
.operate_Content::-webkit-scrollbar{
.operate_Content::-webkit-scrollbar {
width: 6px;
height: 8px;
}
.operate_Content::-webkit-scrollbar-thumb {
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.operate_Content::-webkit-scrollbar-thumb {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #EDEDED;
}
.Log_Content{
.Log_Content {
padding: 10px;
border-radius: 5px;
background-color: #f4f4f6;
color: #818194;
line-height: 2;
margin-top:10px;
margin-top: 10px;
}
.stu_ComFeed{
color:#3470ff;
.stu_ComFeed {
color: #3470ff;
cursor: pointer;
margin-left:20px;
margin-left: 20px;
}
.StuCom_Remark{
.StuCom_Remark {
display: flex;
}
.StuCom_Inner{
width:100%;
.StuCom_Inner {
width: 100%;
}
.StuCom_Left{
.StuCom_Left {
flex-shrink: 0;
width:71px;
width: 71px;
text-align: right;
}
</style>
\ No newline at end of file
......@@ -35,9 +35,9 @@
</template>
</q-table>
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage">
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</student-form>
<studentRight-form v-if="isShowStuRight" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage">
<studentRight-form v-if="isShowStuRight" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentRight-form>
</div>
</template>
......@@ -227,7 +227,7 @@
obj.Status = obj.Status == 1 ? 0 : 1;
});
},
refreshPage() {
refreshStuList() {
this.$emit('success');
},
EditStudent(obj) {
......
......@@ -116,7 +116,7 @@
})
},
refreshPage() {
console.log("11111");
this.getStudent()
},
},
......
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