Commit 5e122e6a authored by 黄奎's avatar 黄奎

页面修改

parent aff9835b
......@@ -20,7 +20,7 @@
<q-btn v-if="userInfo.IsTenCccUser == 1" @click="callUserHandler" class="q-mr-md" round unelevated
color="primary" dense icon="phone" title="拨打电话"></q-btn>
<q-btn unelevated color="positive" v-if="
!baseObj.IsHaveCurseManager && userInfo.Id == baseObj.CreateBy
!IsHaveCurseManager && userInfo.Id == baseObj.CreateBy
" size="sm" :loading="pushing" class="q-mr-md" @click="assistBatchHandler">推送课程顾问</q-btn>
<q-btn v-if="getJudgeTrans()" color="primary" unelevated size="sm" label="转交" @click="isShowTrans = true">
<q-popup-proxy :offset="[10, 10]">
......@@ -93,8 +93,8 @@
</student-Assit>
</template>
<template v-if="ckedTab == 6">
                  <classRecord :save-obj="baseObj" @success="refreshStudentPage"></classRecord>
                </template>
<classRecord :save-obj="baseObj" @success="refreshStudentPage" />
</template>
</div>
</div>
</div>
......@@ -213,7 +213,8 @@
stateId: 0,
stuData: {},
userInfo: {},
isconsult: false //学生咨询弹窗
isconsult: false, //学生咨询弹窗
IsHaveCurseManager:false,//是否存在课程顾问
};
},
created() {
......@@ -223,13 +224,14 @@
},
mounted() {
this.baseObj = this.saveObj;
this.baseObj.IsHaveCurseManager = false;
this.IsHaveCurseManager = false;
if (this.baseObj.AssistList && this.baseObj.AssistList.length > 0) {
this.baseObj.AssistList.forEach(x => {
if (x.AssistType == 2) {
this.baseObj.IsHaveCurseManager = true;
var obj = this.baseObj.AssistList.find((item) => {
return item.AssistType === 2;
})
if (obj) {
this.IsHaveCurseManager = true;
}
});
}
this.getEmployeeList();
if (this.checkType && this.checkType > 0) {
......@@ -327,23 +329,26 @@
StuId: this.saveObj.StuId
}).then(res => {
if (res.Code == 1) {
this.stuData = res.Data;
this.stateId = res.Data.StuStage;
var tempData = res.Data;
if (tempData) {
res.Data.BelongType = this.baseObj.BelongType;
this.baseObj = res.Data;
this.stuData = tempData;
this.stateId = tempData.StuStage;
this.baseObj = tempData;
}
}
});
},
//批量推送课程顾问
assistBatchHandler() {
if (this.pushing || this.baseObj.IsHaveCurseManager) return;
if (this.pushing || this.IsHaveCurseManager) return;
this.pushing = true;
let parameter = {
stuIds: this.baseObj.StuId
};
SetStudentAssistBatch(parameter).then(r => {
this.$emit("success");
this.baseObj.IsHaveCurseManager = true;
this.IsHaveCurseManager = true;
this.pushing = 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