Commit 9a158669 authored by 黄奎's avatar 黄奎

页面修改

parent 05f3c852
......@@ -157,7 +157,7 @@
</div>
</div>
</div>
<template v-if="BelongType != 3">
<template v-if="IsShowStuSourceIdName(customObj)">
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
......@@ -321,13 +321,6 @@
:disable="noEdit" option-value="Id" emit-value map-options />
</div>
</div>
<!-- <div class="info_item">
<div class="item_label">创建人</div>
<div class="item_value">
<q-select filled v-model="customObj.CreateBy" dense disable @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
</div>
</div> -->
<div class="info_item" v-if="!noEdit">
<q-btn color="accent" class="q-mr-md" label="保存" @click="saveStu()" />
</div>
......@@ -444,10 +437,12 @@
},
NeedData: [],
noEdit: false,
isHaveOrder: false
isHaveOrder: false,
userInfo: {}, //当前登录人员
};
},
created() {
this.userInfo = this.getLocalStorage();
this.getStuStageList();
this.getBasicList();
this.queryGuestEducationEnumList();
......@@ -467,9 +462,6 @@
this.noEdit = true;
}
}
if (this.BelongType == 3) {
// this.noEdit = true;
}
},
watch: {
stuData() {
......@@ -477,6 +469,23 @@
}
},
methods: {
//是否显示关联来源人信息
IsShowStuSourceIdName(item) {
var isHaveAuth = false;
if (this.userInfo && this.userInfo.ActionMenuList && this.userInfo.ActionMenuList.length >
0) {
this.userInfo.ActionMenuList.forEach((x) => {
if (x.FunctionCode == "Look_StuSourceId") {
isHaveAuth = true;
}
});
}
if (item.CreateBy == this.userInfo.Id || isHaveAuth) {
return true;
} else {
return false;
}
},
uploadFile(files) {
UploadSelfFile("studentIcon", files, res => {
if (res.Code == 1) {
......@@ -746,8 +755,8 @@
this.customObj.QQ = tempDate.QQ;
this.customObj.WeChatNo = tempDate.WeChatNo;
this.customObj.StuNeeds = tempDate.StuNeeds;
this.customObj.StuTel=tempDate.StuTel;
this.customObj.StuTel = tempDate.StuTel;
if (this.customObj.StuId > 0) {
this.isHaveOrder = true;
}
......
......@@ -376,7 +376,6 @@ export default {
},
// 选择课程
selectCourse(val) {
console.log("tag2", val);
if (val.length > 0) {
this.saveObj = val[0];
this.saveObj.Unit_Price = this.saveObj.SellPrice;
......
......@@ -81,7 +81,6 @@ export default {
show(val) {
if (val) {
this.msg.StartDate = this.saveObj.date;
console.log(99, this.saveObj);
this.getData();
}
}
......@@ -128,14 +127,12 @@ export default {
e.SubList.map((_e,_i)=>{
if(_e.GuestList&&_e.GuestList.length>0){
let ids=_e.GuestList.map(x=>x.AppointmentId).toString()
console.log(130,ids.indexOf(this.saveObj.ids))
if(ids.indexOf(this.saveObj.ids)>-1){
this.dataList[i].SubList.splice(_i,1)
}
}
})
}
})
}
});
......
......@@ -468,7 +468,6 @@ export default {
const totalTime = this.courseCheckList.reduce((pre, cur) => {
return (pre += cur.Minutes);
}, 0);
console.log(452, this.courseCheckList, totalTime);
if (this.checkChapter.StudyMinutes !== totalTime) {
this.$q.notify({
message: "课时不匹配,请重新上课时段",
......
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