Commit 1f52388c authored by 黄奎's avatar 黄奎

样式调整

parent c3ae3960
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<div class="stuGenJin"> <div class="stuGenJin">
<div class="row wrap"> <div class="row wrap">
<q-btn label="新增" color="accent q-mb-lg" size="sm" <q-btn label="新增" color="accent q-mb-lg" size="sm"
v-if="!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1" @click="isShowAdd = true" /> @click="isShowAdd = true" />
<span v-else class="text-grey-4">学员已推送课程顾问,只能进行查看</span>
<q-btn label="取消" style="margin-left:20px;" v-if="isShowAdd" flat color="grey-10 q-mb-lg" size="sm" <q-btn label="取消" style="margin-left:20px;" v-if="isShowAdd" flat color="grey-10 q-mb-lg" size="sm"
@click="isShowAdd = false" /> @click="isShowAdd = false" />
</div> </div>
...@@ -28,7 +27,8 @@ ...@@ -28,7 +27,8 @@
<q-select filled v-model="flowMsg.PurposeType" dense :options="PurposeTypeList" option-label="ConfigName" <q-select filled v-model="flowMsg.PurposeType" dense :options="PurposeTypeList" option-label="ConfigName"
option-value="Id" emit-value map-options label="意向度" class="col-6 q-pb-lg q-pr-lg" /> option-value="Id" emit-value map-options label="意向度" class="col-6 q-pb-lg q-pr-lg" />
<q-select filled v-model="flowMsg.ConsultCourseIdList" dense :options="CourseList" option-label="CourseName" <q-select filled v-model="flowMsg.ConsultCourseIdList" dense :options="CourseList" option-label="CourseName"
option-value="CourseId" emit-value map-options label="咨询课程" class="col-6 q-pb-lg" multiple /> option-value="CourseId" emit-value map-options label="咨询课程" class="col-6 q-pb-lg" multiple use-input
@filter="filterCourse" />
<q-input filled stack-label maxlength="50" dense v-model="flowMsg.ConsultKeyWords" class="col-6 q-pb-lg q-pr-lg" <q-input filled stack-label maxlength="50" dense v-model="flowMsg.ConsultKeyWords" class="col-6 q-pb-lg q-pr-lg"
label="关键词" /> label="关键词" />
<q-field filled class="col-6 q-pb-lg" dense> <q-field filled class="col-6 q-pb-lg" dense>
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
userInfo: {}, userInfo: {},
PurposeTypeList: [], //意向度下拉列表 PurposeTypeList: [], //意向度下拉列表
CourseList: [], //课程下拉列表 CourseList: [], //课程下拉列表
AllCourseList: [], //所有课程列表
}; };
}, },
created() { created() {
...@@ -181,13 +182,26 @@ ...@@ -181,13 +182,26 @@
this.getCourseList(); this.getCourseList();
}, },
methods: { methods: {
//筛选课程
filterCourse(val, update) {
update(() => {
if (val === '') {
this.CourseList = JSON.parse(JSON.stringify(this.AllCourseList))
} else {
const needle = val.toLowerCase()
this.CourseList = this.AllCourseList.filter(v => v.CourseName.toLowerCase().indexOf(needle) > -1)
}
})
},
//获取课程列表 //获取课程列表
getCourseList() { getCourseList() {
queryCourseDropdownList({ queryCourseDropdownList({
IsQPrice: 0 IsQPrice: 0,
SaleState: 1,
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.CourseList = res.Data; this.CourseList = res.Data;
this.AllCourseList=res.Data;
} }
}) })
}, },
......
<style></style> <style></style>
<template> <template>
<div> <div>
<studyabroad :saveObj="saveObj" @close="closeReserveForm" @success="closeReserveForm" <studyabroad :saveObj="saveObj" @close="closeReserveForm" @success="closeReserveForm"></studyabroad>
v-if="!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1"></studyabroad>
<div style="display:flex;flex:1;flex-direction: column;overflow:hidden;"> <div style="display:flex;flex:1;flex-direction: column;overflow:hidden;">
<div class="TimeLineDiv"> <div class="TimeLineDiv">
<q-timeline color="primary"> <q-timeline color="primary">
...@@ -10,11 +9,8 @@ ...@@ -10,11 +9,8 @@
<template v-slot:title> <template v-slot:title>
<div class="visit_Cont"> <div class="visit_Cont">
<div class="Log_Content"> <div class="Log_Content">
<div v-html="tItem.Remark">
<div >
留学需求:{{ tItem.Remark }}
</div> </div>
</div> </div>
<div @click="DeleteVisitorReserve(tItem.Id)" style="margin-top:10px;" <div @click="DeleteVisitorReserve(tItem.Id)" style="margin-top:10px;"
class="visit_delete text-negative"> class="visit_delete text-negative">
...@@ -40,17 +36,10 @@ ...@@ -40,17 +36,10 @@
</template> </template>
<script> <script>
import { import {
SetVisitorReserve,
queryVisitorReservePage, queryVisitorReservePage,
RemoveVisitorReserve RemoveVisitorReserve
} from "../../../api/scheduling/schedu"; } from "../../../api/scheduling/schedu";
import studyabroad from "./studyabroad";
import {
getTeacherDropDownList,
queryClassRoomList,
GetTrialLessonList
} from "../../../api/school/index";
import studyabroad from "./studyabroad";
export default { export default {
meta: { meta: {
title: "" title: ""
...@@ -71,7 +60,7 @@ ...@@ -71,7 +60,7 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
Visitor_Id: 0, Visitor_Id: 0,
IsReserve:2, IsReserve: 2,
}, },
dataList: [], dataList: [],
page_Count: 0, page_Count: 0,
...@@ -89,32 +78,32 @@ ...@@ -89,32 +78,32 @@
}, },
methods: { methods: {
//获得年月日时分秒 //获得年月日时分秒
//传入日期//例:2020-10-27T14:36:23 //传入日期//例:2020-10-27T14:36:23
timeFormatSeconds(time,type) { timeFormatSeconds(time, type) {
let timeStr=""; let timeStr = "";
var d = time ? new Date(time) : new Date(); var d = time ? new Date(time) : new Date();
var year = d.getFullYear(); var year = d.getFullYear();
var month = d.getMonth() + 1; var month = d.getMonth() + 1;
var day = d.getDate(); var day = d.getDate();
if (month < 10) month = '0' + month; if (month < 10) month = '0' + month;
if (day < 10) day = '0' + day; if (day < 10) day = '0' + day;
if(type==2){ if (type == 2) {
var hours = d.getHours(); var hours = d.getHours();
var min = d.getMinutes(); var min = d.getMinutes();
var seconds = d.getSeconds(); var seconds = d.getSeconds();
if (hours < 0) hours = '0' + hours; if (hours < 0) hours = '0' + hours;
if (min < 10) min = '0' + min; if (min < 10) min = '0' + min;
if (seconds < 10) seconds = '0' + seconds; if (seconds < 10) seconds = '0' + seconds;
timeStr+= ' ' + hours + ':' + min + ':' + seconds; timeStr += ' ' + hours + ':' + min + ':' + seconds;
} }
timeStr=year + '-' + month + '-' + day +timeStr; timeStr = year + '-' + month + '-' + day + timeStr;
return timeStr; return timeStr;
// return (year + '-' + month + '-' + day + ' ' + hours + ':' + min + ':' + seconds);
},
// return (year + '-' + month + '-' + day + ' ' + hours + ':' + min + ':' + seconds);
},
//获取试听列表 //获取试听列表
getList() { getList() {
queryVisitorReservePage(this.qMsg).then(res => { queryVisitorReservePage(this.qMsg).then(res => {
......
...@@ -12,42 +12,24 @@ ...@@ -12,42 +12,24 @@
<q-btn label="新增留学需求" color="accent q-mb-lg" size="sm" @click="isShowReserve = true" /> <q-btn label="新增留学需求" color="accent q-mb-lg" size="sm" @click="isShowReserve = true" />
</div> </div>
<template v-if="isShowReserve"> <template v-if="isShowReserve">
<div class="row studentDate">
<UeEditor v-model="addMsg.Remark" class="q-pb-sm" :config="config"></UeEditor>
<div class="row studentDate" > </div>
<q-input
style="width:257px;"
v-model="addMsg.Remark"
placeholder="留学需求"
filled
type="textarea"
/>
</div>
<div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;"> <div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;">
<q-btn label="关闭" flat color="accent q-mb-lg" size="md" style="margin-right:10px;" @click="closeClassForm" /> <q-btn label="关闭" flat color="accent q-mb-lg" size="md" style="margin-right:10px;" @click="closeClassForm" />
<q-btn label="保存" color="accent q-mb-lg" size="md" @click="saveAppointForm()" /> <q-btn label="保存" color="accent q-mb-lg" size="md" @click="saveAppointForm()" />
</div> </div>
</template> </template>
</div> </div>
</template> </template>
<script> <script>
import UeEditor from "../../editor/UeEditor";
import { import {
SetStudyAbroad SetStudyAbroad
} from "../../../api/scheduling/schedu"; } from "../../../api/scheduling/schedu";
import {
getTeacherDropDownList,
queryClassRoomList,
GetTrialLessonList
} from "../../../api/school/index";
// import auditionForm from "../../schedul/audition-form";
export default { export default {
components: { components: {
// auditionForm, UeEditor
}, },
props: { props: {
saveObj: { saveObj: {
...@@ -57,6 +39,10 @@ ...@@ -57,6 +39,10 @@
}, },
data() { data() {
return { return {
config: {
initialFrameWidth: null,
initialFrameHeight: 90
},
isShowReserve: false, isShowReserve: false,
addMsg: { addMsg: {
Id: 0, //编号 Id: 0, //编号
...@@ -71,17 +57,17 @@ ...@@ -71,17 +57,17 @@
TrialLessonId: "", TrialLessonId: "",
ReserveType: 0, ReserveType: 0,
ClassPlanId: 0, ClassPlanId: 0,
Demand:"", Demand: "",
}, },
isShowTeacher: false, //是否显示试听课弹窗 isShowTeacher: false, //是否显示试听课弹窗
showObj:{ showObj: {
className:"", className: "",
courseName:"", courseName: "",
} }
}; };
}, },
created() { created() {
}, },
mounted() { mounted() {
if (this.saveObj) { if (this.saveObj) {
...@@ -95,7 +81,6 @@ ...@@ -95,7 +81,6 @@
this.isShowReserve = false; this.isShowReserve = false;
this.$emit("success"); this.$emit("success");
}, },
//清除 //清除
clearMsg() { clearMsg() {
this.addMsg.Id = 0; this.addMsg.Id = 0;
...@@ -109,7 +94,7 @@ ...@@ -109,7 +94,7 @@
this.addMsg.TrialLessonId = ""; this.addMsg.TrialLessonId = "";
this.addMsg.ReserveType = 0; this.addMsg.ReserveType = 0;
this.addMsg.ClassPlanId = 0; this.addMsg.ClassPlanId = 0;
this.addMsg.Demand=""; this.addMsg.Demand = "";
}, },
//保存 //保存
saveAppointForm() { saveAppointForm() {
...@@ -123,26 +108,26 @@ ...@@ -123,26 +108,26 @@
return; return;
} }
SetStudyAbroad(this.addMsg).then(res => { SetStudyAbroad(this.addMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
icon: "iconfont icon-chenggong", icon: "iconfont icon-chenggong",
color: "accent", color: "accent",
timeout: 2000, timeout: 2000,
message: res.Message, message: res.Message,
position: "top" position: "top"
}); });
this.$emit("success"); this.$emit("success");
} else { } else {
this.$q.notify({ this.$q.notify({
type: "negative", type: "negative",
position: "top", position: "top",
timeout: 2000, timeout: 2000,
message: res.Message message: res.Message
}); });
} }
this.clearMsg(); this.clearMsg();
this.isShowReserve = false; this.isShowReserve = false;
}); });
}, },
closeAuditForm() { closeAuditForm() {
this.isShowTeacher = false; this.isShowTeacher = false;
...@@ -160,7 +145,6 @@ ...@@ -160,7 +145,6 @@
this.addMsg.EndTime = obj.EndTime; this.addMsg.EndTime = obj.EndTime;
this.addMsg.ClassContent = obj.ClassContent; this.addMsg.ClassContent = obj.ClassContent;
this.addMsg.TrialLessonId = obj.TrialLessonId; this.addMsg.TrialLessonId = obj.TrialLessonId;
this.isShowReserve = true; this.isShowReserve = true;
} }
} }
......
...@@ -367,11 +367,6 @@ ...@@ -367,11 +367,6 @@
align: "left", align: "left",
field: row => row.StuName field: row => row.StuName
}, },
{
name: "CurseManager",
label: "课程顾问",
align: "left"
},
{ {
name: "TeacherManager", name: "TeacherManager",
label: "协助老师", label: "协助老师",
......
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