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

页面修改

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