Commit 7ab09f4e authored by 黄奎's avatar 黄奎

学员根据页面修改

parent 4a46c71d
...@@ -47,9 +47,8 @@ module.exports = function(ctx) { ...@@ -47,9 +47,8 @@ module.exports = function(ctx) {
vueRouterMode: 'history', // available values: 'hash', 'history' vueRouterMode: 'history', // available values: 'hash', 'history'
env: ctx.dev ? { env: ctx.dev ? {
API: 'http://localhost:5001/api', //API:'http://localhost:5001/api',
// API: 'http://192.168.10.128:8300/api', API: 'http://192.168.10.68:8300/api',
// API: 'https://eduapi.oytour.com/api',
API_ZC: 'http://192.168.10.238:8087/api', API_ZC: 'http://192.168.10.238:8087/api',
API_SK: 'ws://websocket.oytour.com/ws', API_SK: 'ws://websocket.oytour.com/ws',
API_SIG: 'http://localhost:5001/messagecenter' API_SIG: 'http://localhost:5001/messagecenter'
......
...@@ -68,16 +68,16 @@ ...@@ -68,16 +68,16 @@
cellpadding="0" v-loading="loading"> cellpadding="0" v-loading="loading">
<tr> <tr>
<th width="100" style="z-index: 999;">学生</th> <th width="100" style="z-index: 999;">学生</th>
<th width="100" >报名日期</th> <th width="100">报名日期</th>
<th width="70" >职业</th> <th width="70">职业</th>
<th width="80" >目的</th> <th width="80">目的</th>
<th width="100" >班主任</th> <th width="100">班主任</th>
<th width="200" >课程名称</th> <th width="200">课程名称</th>
<th width="80" >金额</th> <th width="80">金额</th>
<th>基本情况</th> <th>基本情况</th>
<th width="200" >续费课程</th> <th width="200">续费课程</th>
<th width="80" >续费级别</th> <th width="80">续费级别</th>
<th width="80" >续费金额</th> <th width="80">续费金额</th>
<th width="90">负责人</th> <th width="90">负责人</th>
</tr> </tr>
<template v-if='dataObj&&dataObj.RList && dataObj.RList.length>0'> <template v-if='dataObj&&dataObj.RList && dataObj.RList.length>0'>
...@@ -91,14 +91,30 @@ ...@@ -91,14 +91,30 @@
{{ item.CreateTime }} {{ item.CreateTime }}
</td> </td>
<td> <td>
<div class="text-blue cursor-pointer" @click="getStuBaseInfo(item)"> <template v-if="item.StuProfession&&item.StuProfession!=''">
{{item.StuProfession}} <span class="text-blue cursor-pointer" style="cursor:pointer" @click="getStuBaseInfo(item,1)">
</div> {{item.StuProfession}}
<q-tooltip :offset="[10, 10]">
点击修改
</q-tooltip>
</span>
</template>
<template v-else>
<a class="text-blue cursor-pointer" style="cursor:pointer" @click="getStuBaseInfo(item,1)">添加</a>
</template>
</td> </td>
<td> <td>
<div class="text-blue cursor-pointer" @click="getStuBaseInfo(item)"> <template v-if="item.StuPurposeName&&item.StuPurposeName!=''">
{{ item.StuPurposeName }} <span class="text-blue cursor-pointer" style="cursor:pointer" @click="getStuBaseInfo(item,2)">
</div> {{item.StuPurposeName}}
<q-tooltip :offset="[10, 10]">
点击修改
</q-tooltip>
</span>
</template>
<template v-else>
<a class="text-blue cursor-pointer" style="cursor:pointer" @click="getStuBaseInfo(item,2)">添加</a>
</template>
</td> </td>
<td> <td>
<span v-html="getTeacherManager(item)"></span> <span v-html="getTeacherManager(item)"></span>
...@@ -127,6 +143,7 @@ ...@@ -127,6 +143,7 @@
<a style="color:blue;cursor:pointer;" v-if="item.FollowList.length>2" <a style="color:blue;cursor:pointer;" v-if="item.FollowList.length>2"
@click="item.IsShowFollowAll=!item.IsShowFollowAll">{{!item.IsShowFollowAll?"展开":"收起"}}</a> @click="item.IsShowFollowAll=!item.IsShowFollowAll">{{!item.IsShowFollowAll?"展开":"收起"}}</a>
</template> </template>
<a class="text-blue cursor-pointer" style="cursor:pointer" @click="getStuBaseInfo(item,3)">&nbsp;添加</a>
</td> </td>
<td> <td>
<div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;" <div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;"
...@@ -167,52 +184,53 @@ ...@@ -167,52 +184,53 @@
</studentFUForm> </studentFUForm>
<q-dialog v-model="isShowStuBaseInfo"> <q-dialog v-model="isShowStuBaseInfo">
<q-card style="width: 450px;"> <q-card style="width:450px;">
<q-card-section class="row items-center q-pb-none"> <q-card-section class="row items-center q-pb-none">
<div class="text-h6">【{{customObj.StuName}}】</div> <div class="text-h6">【{{customObj.StuName}}】</div>
<q-space /> <q-space />
<q-btn icon="close" flat round dense v-close-popup /> <q-btn icon="close" flat round dense v-close-popup />
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-section> <q-card-section>
<div style="width:100%;margin-bottom:15px;"> <div style="width:100%;margin-bottom:15px;" v-if="customObj.EditType==1">
<div style="width:12%;display:inline-block;">职业:</div><div style="width:87%;display:inline-block;"><q-input filled v-model="customObj.StuProfession" dense ></q-input></div> <div style="width:13%;display:inline-block;">职业:</div>
<div style="width:86%;display:inline-block;">
<q-input filled v-model="customObj.StuProfession" dense></q-input>
</div> </div>
</div>
<div style="width:100%;margin-bottom:15px;"> <div style="width:100%;margin-bottom:15px;" v-if="customObj.EditType==2">
<div style="width:12%;display:inline-block;">目的: </div><div style="width:87%;display:inline-block;"><q-select filled v-model="customObj.StuPurpose" dense :options="goalsList" option-label="Name" <div style="width:13%;display:inline-block;">目的: </div>
option-value="Id" emit-value map-options /></div> <div style="width:86%;display:inline-block;">
<q-select filled v-model="customObj.StuPurpose" dense :options="goalsList" option-label="Name"
option-value="Id" emit-value map-options />
</div> </div>
</div>
<div style="width:100%;margin-bottom:15px;"> <div style="width:100%;margin-bottom:15px;" v-if="customObj.EditType==3">
<div style="width:12%;display:inline-block;vertical-align:top;">跟进:</div> <div style="width:13%;display:inline-block;vertical-align:top;">基本<br/>情况:</div>
<div style="width:87%;display:inline-block;"> <UeEditor <div style="width:86%;display:inline-block;">
v-model="customObj.Remark" <UeEditor v-model="customObj.Remark" class="q-pb-sm" :config="config"></UeEditor>
class="q-pb-sm"
:config="config"
></UeEditor></div>
</div> </div>
</q-card-section> </div>
<q-separator /> </q-card-section>
<q-card-actions align="right" class="bg-white"> <q-separator />
<q-btn class="q-mr-md" label="取消" @click="clearMsg()" /> <q-card-actions align="right" class="bg-white">
<q-btn color="accent" class="q-mr-md" label="确定" @click="saveStu()" <q-btn class="q-mr-md" label="取消" @click="clearMsg()" />
:loading="stuloading" /> <q-btn color="accent" class="q-mr-md" label="确定" @click="saveStu()" :loading="stuloading" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
</div> </div>
</template> </template>
<script> <script>
import studentRightForm from "./studentRight-form"; import studentRightForm from "./studentRight-form";
import studentFUForm from "./studentFu-form"; import studentFUForm from "./studentFu-form";
import { import {
getGuestLearningGoalsEnumList, getGuestLearningGoalsEnumList,
} from "../../../api/sale/sale"; } from "../../../api/sale/sale";
import { import {
saveStudentBaseInfo, //保存学员信息 saveStudentBaseInfo, //保存学员信息
} from "../../../api/school/index"; } from "../../../api/school/index";
import UeEditor from "../../editor/UeEditor"; import UeEditor from "../../editor/UeEditor";
export default { export default {
props: { props: {
//数据 //数据
...@@ -248,27 +266,28 @@ ...@@ -248,27 +266,28 @@
return { return {
isShowStuFU: false, isShowStuFU: false,
isShowStuRight: false, isShowStuRight: false,
isShowStuBaseInfo:false, isShowStuBaseInfo: false,
stuloading:false, stuloading: false,
//学习目的列表 //学习目的列表
goalsList: [], goalsList: [],
config: { config: {
initialFrameWidth: null, initialFrameWidth: null,
initialFrameHeight: 90 initialFrameHeight: 90
}, },
stuOption: {}, stuOption: {},
BelongType: 0, BelongType: 0,
ShowAuthObj: { ShowAuthObj: {
//是否显示同行、状态等信息 //是否显示同行、状态等信息
isShowSaleInfo: true, isShowSaleInfo: true,
}, },
//客户对象 //客户对象
customObj: { customObj: {
StuId: 0, StuId: 0,
StuProfession: "", //职业 StuProfession: "", //职业
StuPurpose: "", //学习目的 StuPurpose: "", //学习目的
Remark:"", Remark: "",
StuName:"", StuName: "",
EditType: 0, //1-修改职业,2-修改目的,3-添加跟进
}, },
}; };
}, },
...@@ -279,8 +298,8 @@ ...@@ -279,8 +298,8 @@
this.queryGoalsList(); this.queryGoalsList();
}, },
methods: { methods: {
//获取学习目的列表 //获取学习目的列表
queryGoalsList() { queryGoalsList() {
getGuestLearningGoalsEnumList({}).then(res => { getGuestLearningGoalsEnumList({}).then(res => {
this.goalsList = res.Data; this.goalsList = res.Data;
}); });
...@@ -308,30 +327,55 @@ ...@@ -308,30 +327,55 @@
} }
this.isShowStuRight = true; this.isShowStuRight = true;
}, },
//清除 //清除
clearMsg() { clearMsg() {
this.customObj.Remark = ""; this.customObj.Remark = "";
this.customObj.StuId = 0; this.customObj.StuId = 0;
this.customObj.StuName = ""; this.customObj.StuName = "";
this.customObj.Remark = ""; this.customObj.Remark = "";
this.customObj.StuProfession = ""; this.customObj.StuProfession = "";
this.customObj.StuPurpose = ""; this.customObj.StuPurpose = "";
this.stuloading = false; this.customObj.EditType = 0;
this.isShowStuBaseInfo = false; this.stuloading = false;
}, this.isShowStuBaseInfo = false;
//保存学员信息 },
saveStu() { //保存学员信息
if (this.customObj.Remark == "") { saveStu() {
this.$q.notify({ if (this.customObj.EditType == 1) {
type: "negative", if (this.customObj.StuProfession == '') {
position: "top", this.$q.notify({
timeout: 2000, type: "negative",
message: "请输入内容!" position: "top",
}); timeout: 2000,
return; message: "请填写职业"
} });
this.stuloading=true; return;
saveStudentBaseInfo(this.customObj).then(res => { }
}
if (this.customObj.EditType == 2) {
if (this.customObj.StuPurpose == '') {
this.$q.notify({
type: "negative",
position: "top",
timeout: 2000,
message: "请选择学习目的"
});
return;
}
}
if (this.customObj.EditType == 3) {
if (this.customObj.Remark == "") {
this.$q.notify({
type: "negative",
position: "top",
timeout: 2000,
message: "请输入内容!"
});
return;
}
}
this.stuloading = true;
saveStudentBaseInfo(this.customObj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
icon: "iconfont icon-chenggong", icon: "iconfont icon-chenggong",
...@@ -343,21 +387,22 @@ ...@@ -343,21 +387,22 @@
this.$emit("update"); this.$emit("update");
this.$emit("success"); this.$emit("success");
this.$emit("getrecord"); this.$emit("getrecord");
this.stuloading=false; this.stuloading = false;
this.isShowStuBaseInfo=false; this.isShowStuBaseInfo = false;
this.clearMsg(); this.clearMsg();
} }
}); });
}, },
//点击学生姓名弹出 //点击学生姓名弹出
getStuBaseInfo(obj) { getStuBaseInfo(obj, showType) {
if (obj) { if (obj) {
this.customObj.StuId = obj.StuId; this.customObj.StuId = obj.StuId;
this.customObj.StuName = obj.StuName; this.customObj.StuName = obj.StuName;
this.customObj.StuProfession = obj.StuProfession; this.customObj.StuProfession = obj.StuProfession;
this.customObj.StuPurpose = obj.StuPurpose; this.customObj.StuPurpose = obj.StuPurpose;
this.customObj.EditType = showType;
} }
this.stuloading=false; this.stuloading = false;
this.isShowStuBaseInfo = true; this.isShowStuBaseInfo = true;
}, },
//关闭弹窗 //关闭弹窗
......
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