Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
bb9cbb09
Commit
bb9cbb09
authored
Apr 01, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5d30b0ff
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
188 additions
and
90 deletions
+188
-90
UeEditor.vue
src/components/editor/UeEditor.vue
+2
-3
question-form.vue
src/components/question/question-form.vue
+2
-2
orderlist.vue
src/components/sale/orderlist.vue
+4
-1
studentList.vue
src/pages/sale/studentList.vue
+180
-84
No files found.
src/components/editor/UeEditor.vue
View file @
bb9cbb09
...
@@ -102,7 +102,6 @@
...
@@ -102,7 +102,6 @@
},
},
//选择文件弹窗
//选择文件弹窗
attachmentSelected
(
fileArray
)
{
attachmentSelected
(
fileArray
)
{
if
(
fileArray
&&
fileArray
.
length
)
{
if
(
fileArray
&&
fileArray
.
length
)
{
let
html
=
''
;
let
html
=
''
;
//图片
//图片
...
@@ -144,8 +143,8 @@
...
@@ -144,8 +143,8 @@
}
}
if
(
this
.
uploadType
==
3
)
if
(
this
.
uploadType
==
3
)
{
{
for
(
let
i
in
e
)
{
for
(
let
i
in
fileArray
)
{
var
type
=
e
[
i
].
fileName
.
split
(
'.'
)[
1
];
var
type
=
fileArray
[
i
].
fileName
.
split
(
'.'
)[
1
];
var
imgUrl
=
""
;
var
imgUrl
=
""
;
var
dataName
=
""
;
var
dataName
=
""
;
if
(
type
==
'xlsx'
||
type
==
'xls'
)
{
if
(
type
==
'xlsx'
||
type
==
'xls'
)
{
...
...
src/components/question/question-form.vue
View file @
bb9cbb09
...
@@ -284,8 +284,8 @@
...
@@ -284,8 +284,8 @@
default
:
null
default
:
null
},
},
CourseId
:
{
CourseId
:
{
type
:
String
,
//课程编号
type
:
Number
,
//课程编号
default
:
"0"
,
default
:
0
,
},
},
BankId
:
{
BankId
:
{
type
:
String
,
//题库编号
type
:
String
,
//题库编号
...
...
src/components/sale/orderlist.vue
View file @
bb9cbb09
...
@@ -811,10 +811,13 @@
...
@@ -811,10 +811,13 @@
},
},
//跳转到学生名单
//跳转到学生名单
gostudent
(
item
)
{
gostudent
(
item
)
{
var
tempStr
=
'/sale/studentList
?OrderId='
+
item
.
OrderId
+
'&ClassId='
+
item
.
ClassId
;
var
tempStr
=
'/sale/studentList
'
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
tempStr
,
path
:
tempStr
,
query
:
{
query
:
{
OrderId
:
item
.
OrderId
,
ClassId
:
item
.
ClassId
,
SourceId
:
item
.
SourceId
,
isShow
:
this
.
AuthorityObj
.
isShowGuestBtn
isShow
:
this
.
AuthorityObj
.
isShowGuestBtn
}
}
});
});
...
...
src/pages/sale/studentList.vue
View file @
bb9cbb09
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
:visible-columns=
"visibleColumns"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
@
click=
"goreturn"
style=
"cursor:pointer"
>
返回
</div>
<div
class=
"col-2 q-table__title"
@
click=
"goreturn"
style=
"cursor:pointer"
>
返回
</div>
<q-space
/>
<q-space
/>
...
@@ -35,46 +35,66 @@
...
@@ -35,46 +35,66 @@
<div
class=
"text-h6"
>
{{addMsg.Id==0?'新增学员':'修改学员'}}
</div>
<div
class=
"text-h6"
>
{{addMsg.Id==0?'新增学员':'修改学员'}}
</div>
</q-card-section>
</q-card-section>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
基础信息
</div>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
基础信息
</div>
<q-card-section
class=
"q-pt-none"
>
<q-card-section
class=
"q-pt-none"
v-if=
"msg.ClassId>0"
>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
label=
"姓名"
v-model=
"addMsg.GuestName"
label=
"姓名"
:rules=
"[val => !!val || '姓名']"
/>
:rules=
"[val => !!val || '姓名']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.Profession"
label=
"职业"
v-model=
"addMsg.Profession"
label=
"职业"
:rules=
"[val => !!val || '职业']"
/>
:rules=
"[val => !!val || '职业']"
/>
<div
class=
"col-6 q-pb-lg"
>
<div
class=
"col-6 q-pb-lg"
>
<q-radio
v-model=
"addMsg.Sex"
val=
"1"
label=
"男"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"1"
label=
"男"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"2"
label=
"女"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"2"
label=
"女"
/>
</div>
</div>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.Age"
label=
"年龄"
v-model=
"addMsg.Age"
label=
"年龄"
:rules=
"[val => !!val || '年龄']"
/>
:rules=
"[val => !!val || '年龄']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.Mobile"
label=
"电话"
v-model=
"addMsg.Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
type=
"number"
/>
:rules=
"[val => !!val || '电话']"
type=
"number"
/>
<q-select
class=
"col-6 q-pb-lg"
option-value=
"Name"
standout=
"bg-primary text-white"
<q-select
class=
"col-6 q-pb-lg"
option-value=
"Name"
standout=
"bg-primary text-white"
option-label=
"Name"
option-label=
"Name"
v-model=
"addMsg.Basics"
:options=
"GBList"
emit-value
map-options
label=
"语音基础"
v-model=
"addMsg.Basics"
:options=
"GBList"
emit-value
map-options
label=
"语言基础"
use-input
use-input
new-value-mode=
"add-unique"
hint=
"自己输入语音
基础的话,输入之后按回车!"
/>
new-value-mode=
"add-unique"
hint=
"自己输入语言
基础的话,输入之后按回车!"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Id"
standout=
"bg-primary text-white"
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Id"
standout=
"bg-primary text-white"
option-label=
"Name"
v-model=
"addMsg.Education"
:options=
"GEList"
emit-value
map-options
label=
"最高学历"
/>
option-label=
"Name"
v-model=
"addMsg.Education"
:options=
"GEList"
emit-value
map-options
label=
"最高学历"
/>
<q-select
class=
"col-6 q-pb-lg"
option-value=
"Id"
standout=
"bg-primary text-white"
<q-select
class=
"col-6 q-pb-lg"
option-value=
"Id"
standout=
"bg-primary text-white"
option-label=
"Name"
option-label=
"Name"
v-model=
"addMsg.LearningGoals"
:options=
"GLList"
emit-value
map-options
v-model=
"addMsg.LearningGoals"
:options=
"GLList"
emit-value
map-options
label=
"学习目的"
/>
label=
"学习目的"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
standout=
"bg-primary text-white"
option-value=
"Id"
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"addMsg.GuestSource"
:options=
"OFList"
emit-value
map-options
label=
"客人来源"
/>
option-label=
"Name"
v-model=
"addMsg.GuestSource"
:options=
"OFList"
emit-value
map-options
label=
"客人来源"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.ContactAddress"
label=
"现居住地址"
/>
v-model=
"addMsg.ContactAddress"
label=
"现居住地址"
/>
</div>
</div>
</q-card-section>
</q-card-section>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
附加信息
</div>
<q-card-section
class=
"q-pt-none"
v-if=
"msg.SourceId>0"
>
<div
class=
"row wrap"
style=
"margin:0 20px;"
>
<div
class=
"row wrap"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
label=
"姓名"
v-model=
"addMsg.IDCard"
label=
"身份证"
/>
:rules=
"[val => !!val || '姓名']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
<div
class=
"col-6 q-pb-lg"
>
v-model=
"addMsg.Domicile"
label=
"身份证居住地"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"1"
label=
"男"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"2"
label=
"女"
/>
</div>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.Age"
label=
"年龄"
:rules=
"[val => !!val || '年龄']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
type=
"number"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Name"
standout=
"bg-primary text-white"
option-label=
"Name"
v-model=
"addMsg.Basics"
:options=
"GBList"
emit-value
map-options
label=
"日语水平"
use-input
new-value-mode=
"add-unique"
hint=
"自己输入日语水平的话,输入之后按回车!"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.GraduatedSchool"
label=
"毕业院校"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GraduatedMajor"
label=
"毕业专业"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.VolunteerMajor"
label=
"志愿专业"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.Price"
label=
"价格"
/>
</div>
</q-card-section>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"msg.ClassId>0"
>
附加信息
</div>
<div
class=
"row wrap"
style=
"margin:0 20px;"
v-if=
"msg.ClassId>0"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.IDCard"
label=
"身份证"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.Domicile"
label=
"身份证居住地"
/>
</div>
<div
class=
"row wrap"
style=
"margin:0 20px;"
v-if=
"msg.ClassId>0"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.Contact"
label=
"重要联系人"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.ContactMobile"
label=
"重要联系电话"
/>
</div>
</div>
<div
class=
"row wrap"
style=
"margin:0 20px;"
>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"msg.SourceId>0"
>
备注信息
</div>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
<div
class=
"row wrap"
style=
"margin:0 20px;"
v-if=
"msg.SourceId>0"
>
v-model=
"addMsg.Contact"
label=
"重要联系人"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"addMsg.StudyRemark"
type=
"textarea"
class=
"col-12"
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
label=
"备注"
maxlength=
"300"
/>
v-model=
"addMsg.ContactMobile"
label=
"重要联系电话"
/>
</div>
</div>
<q-separator
/>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
...
@@ -93,7 +113,7 @@
...
@@ -93,7 +113,7 @@
getGuestBasicsEnumList
,
//日语基础枚举
getGuestBasicsEnumList
,
//日语基础枚举
getGuestEducationEnumList
,
//学历枚举
getGuestEducationEnumList
,
//学历枚举
getGuestLearningGoalsEnumList
,
//获取学习目的 枚举
getGuestLearningGoalsEnumList
,
//获取学习目的 枚举
getOrderSourceEnumList
,
//来
自
getOrderSourceEnumList
,
//来
源枚举
setOrderGuestInfo
,
//保存
setOrderGuestInfo
,
//保存
delOrderGuestInfo
,
//删除
delOrderGuestInfo
,
//删除
}
from
'../../api/sale/sale'
}
from
'../../api/sale/sale'
...
@@ -104,21 +124,19 @@
...
@@ -104,21 +124,19 @@
columns
:
[{
columns
:
[{
name
:
'GuestName'
,
name
:
'GuestName'
,
label
:
'名称'
,
label
:
'名称'
,
required
:
true
,
field
:
'GuestName'
,
field
:
'GuestName'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'Profession'
,
name
:
'Profession'
,
field
:
'Profession'
,
field
:
'Profession'
,
required
:
true
,
label
:
'职业'
,
label
:
'职业'
,
align
:
'left'
,
align
:
'left'
,
},
},
{
{
name
:
'Sex'
,
name
:
'Sex'
,
label
:
'性别'
,
label
:
'性别'
,
align
:
'left'
align
:
'left'
},
},
{
{
...
@@ -163,10 +181,33 @@
...
@@ -163,10 +181,33 @@
field
:
'ContactMobile'
,
field
:
'ContactMobile'
,
align
:
'left'
align
:
'left'
},
},
{
name
:
'GraduatedSchool'
,
label
:
'毕业院校'
,
field
:
'GraduatedSchool'
,
align
:
'left'
},
{
name
:
'GraduatedMajor'
,
label
:
'毕业专业'
,
field
:
'GraduatedMajor'
,
align
:
'left'
},
{
name
:
'VolunteerMajor'
,
label
:
'志愿专业'
,
field
:
'VolunteerMajor'
,
align
:
'left'
},
{
name
:
'Price'
,
label
:
'价格'
,
field
:
'Price'
,
align
:
'left'
},
{
{
name
:
'optioned'
,
name
:
'optioned'
,
label
:
'操作'
,
label
:
'操作'
,
}
}
],
],
data
:
[],
data
:
[],
...
@@ -175,8 +216,9 @@
...
@@ -175,8 +216,9 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
12
,
pageSize
:
12
,
rowsPerPage
:
12
,
rowsPerPage
:
12
,
OrderId
:
0
,
OrderId
:
0
,
//订单编号
ClassId
:
0
,
ClassId
:
0
,
//班级编号
SourceId
:
0
,
//留学就业编号
GuestName
:
''
,
GuestName
:
''
,
GuestState
:
0
,
GuestState
:
0
,
},
},
...
@@ -197,59 +239,89 @@
...
@@ -197,59 +239,89 @@
LearningGoals
:
""
,
// 学习目的
LearningGoals
:
""
,
// 学习目的
Contact
:
''
,
//紧急联系人
Contact
:
''
,
//紧急联系人
ContactMobile
:
''
,
//紧急联系电话
ContactMobile
:
''
,
//紧急联系电话
IDCard
:
''
,
//身份证
IDCard
:
''
,
//身份证
Domicile
:
''
,
//身份证居住地
Domicile
:
''
,
//身份证居住地
ContactAddress
:
''
//联系地址
ContactAddress
:
''
,
//联系地址
},
SourceId
:
0
,
//留学就业编号
GBList
:
[],
GraduatedSchool
:
""
,
//毕业院校
GEList
:
[],
GraduatedMajor
:
""
,
//毕业专业
GLList
:
[],
VolunteerMajor
:
""
,
//志愿专业
OFList
:
[],
Price
:
0
,
//价格
isShowBtn
:
true
//默认显示新增名单
StudyRemark
:
""
,
//留学就业备注
},
GBList
:
[],
//日语基础列表
GEList
:
[],
//学历列表
GLList
:
[],
//学习目的列表
OFList
:
[],
//客人来源列表
isShowBtn
:
true
,
//默认显示新增名单
//表格可见列
visibleColumns
:
[
],
//可见列
}
}
},
},
moun
ted
()
{
crea
ted
()
{
if
(
this
.
$route
.
query
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
OrderId
)
{
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
this
.
addMsg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
this
.
addMsg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
this
.
msg
.
ClassId
=
this
.
$route
.
query
.
ClassId
}
if
(
this
.
$route
.
query
.
isShow
==
1
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ClassId
)
{
this
.
msg
.
ClassId
=
this
.
$route
.
query
.
ClassId
;
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
SourceId
)
{
this
.
msg
.
SourceId
=
this
.
$route
.
query
.
SourceId
;
this
.
addMsg
.
SourceId
=
this
.
$route
.
query
.
SourceId
;
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
isShow
==
1
)
{
this
.
isShowBtn
=
true
;
this
.
isShowBtn
=
true
;
}
else
{
}
else
{
this
.
isShowBtn
=
false
this
.
isShowBtn
=
false
;
}
if
(
this
.
msg
.
ClassId
>
0
)
{
this
.
visibleColumns
=
[
'GuestName'
,
'Profession'
,
'Sex'
,
'Age'
,
'Mobile'
,
'Basics'
,
'GuestSourceName'
,
'LearningGoalsName'
,
'Contact'
,
'ContactMobile'
];
}
}
if
(
this
.
msg
.
SourceId
>
0
)
{
this
.
visibleColumns
=
[
'GuestName'
,
'Sex'
,
'Age'
,
'Mobile'
,
'Basics'
,
'GraduatedSchool'
,
'GraduatedMajor'
,
'VolunteerMajor'
,
'Price'
];
}
}
this
.
getRolelist
();
this
.
visibleColumns
.
push
(
'optioned'
);
this
.
getGuestBasics
()
//日语基础枚举
this
.
getGuestBasics
()
this
.
getGuestEducation
()
//学历枚举
this
.
getGuestEducation
()
this
.
getGuestLearning
()
//获取学习目的 枚举
this
.
getGuestLearning
()
this
.
getOrderForm
()
this
.
getGuestSource
()
},
mounted
()
{
this
.
getGuestPage
();
},
},
methods
:
{
methods
:
{
//日语基础枚举
getGuestBasics
()
{
getGuestBasics
()
{
getGuestBasicsEnumList
({}).
then
(
res
=>
{
getGuestBasicsEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
GBList
=
res
.
Data
this
.
GBList
=
res
.
Data
}
}
})
.
catch
(()
=>
{})
})
;
},
},
//学历枚举
getGuestEducation
()
{
getGuestEducation
()
{
getGuestEducationEnumList
({}).
then
(
res
=>
{
getGuestEducationEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
GEList
=
res
.
Data
;
this
.
GEList
=
res
.
Data
;
}
}
})
.
catch
(()
=>
{})
})
;
},
},
//获取学习目的枚举
getGuestLearning
()
{
getGuestLearning
()
{
getGuestLearningGoalsEnumList
({}).
then
(
res
=>
{
getGuestLearningGoalsEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
GLList
=
res
.
Data
;
this
.
GLList
=
res
.
Data
;
this
.
addMsg
.
LearningGoals
=
this
.
GLList
[
0
].
Id
this
.
addMsg
.
LearningGoals
=
this
.
GLList
[
0
].
Id
}
}
})
.
catch
(()
=>
{})
})
;
},
},
getOrderForm
()
{
//获取客人来源枚举
getGuestSource
()
{
getOrderSourceEnumList
({}).
then
(
res
=>
{
getOrderSourceEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
OFList
=
res
.
Data
this
.
OFList
=
res
.
Data
...
@@ -260,14 +332,15 @@
...
@@ -260,14 +332,15 @@
//重新查询
//重新查询
resetSearch
()
{
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
get
Rolelist
();
this
.
get
GuestPage
();
},
},
//翻页
//翻页
changePage
(
val
)
{
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
get
Rolelist
()
this
.
get
GuestPage
()
},
},
getRolelist
()
{
//获取学员名单
getGuestPage
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
getOrderGuestPageList
(
this
.
msg
).
then
(
res
=>
{
getOrderGuestPageList
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -277,13 +350,24 @@
...
@@ -277,13 +350,24 @@
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
//返回
goreturn
()
{
goreturn
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
//关闭弹窗
closeSaveForm
()
{
closeSaveForm
()
{
this
.
persistent
=
false
this
.
persistent
=
false
},
},
//新增修改学员信息
save_t
()
{
save_t
()
{
if
(
this
.
addMsg
.
GuestName
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请输入客人姓名`
})
return
;
}
if
(
this
.
addMsg
.
Basics
==
''
)
{
if
(
this
.
addMsg
.
Basics
==
''
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
...
@@ -292,6 +376,7 @@
...
@@ -292,6 +376,7 @@
})
})
return
;
return
;
}
}
if
(
this
.
msg
.
ClassId
>
0
)
{
if
(
this
.
addMsg
.
Education
==
''
)
{
if
(
this
.
addMsg
.
Education
==
''
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
...
@@ -300,6 +385,7 @@
...
@@ -300,6 +385,7 @@
})
})
return
;
return
;
}
}
}
this
.
saveLoading
=
true
this
.
saveLoading
=
true
setOrderGuestInfo
(
this
.
addMsg
).
then
(
res
=>
{
setOrderGuestInfo
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
...
@@ -319,7 +405,8 @@
...
@@ -319,7 +405,8 @@
this
.
saveLoading
=
false
this
.
saveLoading
=
false
})
})
},
},
initialize
()
{
//初始化数据
//初始化数据
initialize
()
{
this
.
addMsg
=
{
this
.
addMsg
=
{
Id
:
0
,
Id
:
0
,
OrderId
:
this
.
$route
.
query
.
OrderId
,
OrderId
:
this
.
$route
.
query
.
OrderId
,
...
@@ -334,15 +421,23 @@
...
@@ -334,15 +421,23 @@
LearningGoals
:
this
.
GLList
[
0
].
Id
,
// 学习目的
LearningGoals
:
this
.
GLList
[
0
].
Id
,
// 学习目的
Contact
:
''
,
//紧急联系人
Contact
:
''
,
//紧急联系人
ContactMobile
:
''
,
//紧急联系电话
ContactMobile
:
''
,
//紧急联系电话
IDCard
:
''
,
//身份证
IDCard
:
''
,
//身份证
Domicile
:
''
,
//身份证居住地
Domicile
:
''
,
//身份证居住地
ContactAddress
:
''
//联系地址
ContactAddress
:
''
,
//联系地址
SourceId
:
this
.
$route
.
query
.
SourceId
,
GraduatedSchool
:
""
,
//毕业院校
GraduatedMajor
:
""
,
//毕业专业
VolunteerMajor
:
""
,
//志愿专业
Price
:
0
,
//价格
StudyRemark
:
""
,
//留学就业备注
}
}
},
},
//新增学员弹窗
addxue
()
{
addxue
()
{
this
.
persistent
=
true
;
this
.
persistent
=
true
;
this
.
initialize
()
this
.
initialize
()
;
},
},
//修改学员信息
EditRole
(
item
)
{
EditRole
(
item
)
{
this
.
addMsg
.
Id
=
item
.
Id
this
.
addMsg
.
Id
=
item
.
Id
this
.
addMsg
.
GuestName
=
item
.
GuestName
this
.
addMsg
.
GuestName
=
item
.
GuestName
...
@@ -359,8 +454,16 @@
...
@@ -359,8 +454,16 @@
this
.
addMsg
.
IDCard
=
item
.
IDCard
;
this
.
addMsg
.
IDCard
=
item
.
IDCard
;
this
.
addMsg
.
Domicile
=
item
.
Domicile
;
this
.
addMsg
.
Domicile
=
item
.
Domicile
;
this
.
addMsg
.
ContactAddress
=
item
.
ContactAddress
;
this
.
addMsg
.
ContactAddress
=
item
.
ContactAddress
;
this
.
persistent
=
true
this
.
addMsg
.
SourceId
=
this
.
$route
.
query
.
SourceId
;
this
.
addMsg
.
GraduatedSchool
=
item
.
GraduatedSchool
;
this
.
addMsg
.
GraduatedMajor
=
item
.
GraduatedMajor
;
this
.
addMsg
.
VolunteerMajor
=
item
.
VolunteerMajor
;
this
.
addMsg
.
Price
=
item
.
Price
;
this
.
addMsg
.
StudyRemark
=
item
.
StudyRemark
;
this
.
persistent
=
true
;
},
},
//删除学员
deleteUser
(
item
)
{
deleteUser
(
item
)
{
let
that
=
this
let
that
=
this
this
.
$q
.
dialog
({
this
.
$q
.
dialog
({
...
@@ -382,18 +485,11 @@
...
@@ -382,18 +485,11 @@
message
:
'操作成功'
,
message
:
'操作成功'
,
position
:
'top'
position
:
'top'
})
})
that
.
get
Rolelist
()
that
.
get
GuestPage
();
}
}
})
})
}).
onCancel
(()
=>
{
}).
onCancel
(()
=>
{});
});
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment