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
1b295225
Commit
1b295225
authored
Dec 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f14b70f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
279 additions
and
489 deletions
+279
-489
stulist.vue
src/components/school/student/stulist.vue
+257
-0
mystu.vue
src/pages/sale/mystu.vue
+13
-245
student.vue
src/pages/school/student.vue
+9
-244
No files found.
src/components/school/student/stulist.vue
0 → 100644
View file @
1b295225
<
style
lang=
"scss"
>
.stuList
.q-table__bottom
{
min-height
:
0
;
}
</
style
>
<
template
>
<div
class=
"stuList"
>
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"我的客户"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
hide-bottom
>
<template
v-slot:body-cell-StuIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
StuName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
{{
props
.
value
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==1?'女':'男'"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
</q-td>
</
template
>
</q-table>
<student-form
v-if=
"isShowStuForm"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</student-form>
<studentRight-form
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</studentRight-form>
</div>
</template>
<
script
>
import
studentForm
from
'./student-form'
import
studentRightForm
from
'./studentRight-form'
export
default
{
props
:
{
dataList
:
{
type
:
Array
,
default
:
null
},
},
components
:
{
studentForm
,
studentRightForm
},
data
()
{
return
{
columns
:
[{
name
:
'StuIcon'
,
label
:
''
,
field
:
'StuIcon'
,
align
:
'left'
,
},
{
name
:
'StuName'
,
required
:
true
,
label
:
'昵称'
,
align
:
'left'
,
field
:
row
=>
row
.
StuName
},
{
name
:
'StuSex'
,
label
:
'性别'
,
field
:
'StuSex'
,
align
:
'left'
},
{
name
:
'StuBirthStr'
,
label
:
'出生日期'
,
field
:
'StuBirthStr'
,
align
:
'left'
},
{
name
:
'StuTel'
,
label
:
'手机号码'
,
field
:
'StuTel'
,
align
:
'left'
},
{
name
:
'CreateTypeStr'
,
label
:
'客户来源'
,
field
:
'CreateTypeStr'
,
align
:
'left'
,
},
{
name
:
'StuStageName'
,
label
:
'客户阶段'
,
field
:
'StuStageName'
,
align
:
'left'
,
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
field
:
'CreateTimeStr'
,
align
:
'left'
,
},
{
name
:
'CreateByName'
,
label
:
'负责人'
,
align
:
'left'
,
field
:
'CreateByName'
}
],
pageMsg
:
{
rowsPerPage
:
12
,
},
loading
:
false
,
isShowStuForm
:
false
,
resetLoading
:
false
,
isShowStuRight
:
false
,
stuOption
:
null
,
}
},
created
()
{
this
.
initAuth
();
},
mounted
()
{},
methods
:
{
//初始化权限
initAuth
()
{
},
//创建账号
createAccount
(
id
)
{
let
that
=
this
createStudentAccount
({
StuId
:
id
,
}).
then
(
res
=>
{
that
.
$q
.
dialog
({
title
:
"创建账号"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getStudent
();
}).
onCancel
(()
=>
{
that
.
getStudent
();
})
})
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
4
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
});
},
//删除客户资料
deleteStudentInfo
(
obj
)
{
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
this
.
$q
.
dialog
({
title
:
str
+
"学员"
,
message
:
"你正在进行"
+
str
+
"学员行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
deleteStudent
({
StuId
:
obj
.
StuId
,
Status
:
obj
.
Status
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据操作成功!'
,
position
:
'top'
})
this
.
getStudent
()
})
}).
onCancel
(()
=>
{
obj
.
Status
=
obj
.
Status
==
1
?
0
:
1
;
});
},
refreshStu
()
{
this
.
$emit
(
'success'
);
},
EditStudent
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuForm
=
true
;
},
closeStuForm
()
{
this
.
isShowStuForm
=
false
;
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuRight
=
true
;
}
}
}
</
script
>
\ No newline at end of file
src/pages/sale/mystu.vue
View file @
1b295225
...
...
@@ -8,50 +8,19 @@
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.StuTel"
label=
"电话"
maxlength=
"20"
/>
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增客户"
@
click=
"EditStudent(null)"
/>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"我的客户"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-StuIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
StuName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
{{
props
.
value
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==1?'女':'男'"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<student-form
v-if=
"isShowStuForm"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</student-form>
<studentRight-form
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</studentRight-form>
<stulist
:dataList=
"data"
@
success=
"refreshPage"
ref=
"stuList"
>
</stulist>
<div
class=
"row"
style=
"justify-content: flex-end;padding: 5px 20px"
>
<q-pagination
v-model=
"msg.pageIndex"
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
color=
"primary"
:input=
"true"
>
</q-pagination>
</div>
</div>
</div>
</
template
>
...
...
@@ -68,91 +37,21 @@
import
{
resetPassword
}
from
'../../api/users/user.js'
import
studentForm
from
'../../components/school/student/student-form'
import
studentRightForm
from
'../../components/school/student/studentRight-form'
import
stulist
from
'../../components/school/student/stulist'
export
default
{
meta
:
{
title
:
"客户管理"
},
components
:
{
stu
dentForm
,
studentRightForm
stu
list
},
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'StuIcon'
,
label
:
''
,
field
:
'StuIcon'
,
align
:
'left'
,
},
{
name
:
'StuName'
,
required
:
true
,
label
:
'昵称'
,
align
:
'left'
,
field
:
row
=>
row
.
StuName
},
{
name
:
'StuSex'
,
label
:
'性别'
,
field
:
'StuSex'
,
align
:
'left'
},
{
name
:
'StuBirthStr'
,
label
:
'出生日期'
,
field
:
'StuBirthStr'
,
align
:
'left'
},
{
name
:
'StuTel'
,
label
:
'手机号码'
,
field
:
'StuTel'
,
align
:
'left'
},
{
name
:
'CreateTypeStr'
,
label
:
'客户来源'
,
field
:
'CreateTypeStr'
,
align
:
'left'
,
},
{
name
:
'StuStageName'
,
label
:
'客户阶段'
,
field
:
'StuStageName'
,
align
:
'left'
,
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
field
:
'CreateTimeStr'
,
align
:
'left'
,
},
{
name
:
'CreateByName'
,
label
:
'负责人'
,
align
:
'left'
,
field
:
'CreateByName'
}
],
data
:
[],
loading
:
true
,
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'正常'
,
value
:
'0'
},
{
label
:
'禁用'
,
value
:
'1'
},
],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
...
...
@@ -160,15 +59,10 @@
StuName
:
""
,
StuTel
:
""
,
Status
:
"-1"
,
CreateBy
:
""
CreateBy
:
""
,
IsQueryMyStu
:
1
,
},
schoolTemp
:
""
,
pageCount
:
0
,
stuOption
:
null
,
schoolList
:
[],
isShowStuForm
:
false
,
resetLoading
:
false
,
isShowStuRight
:
false
,
employeeList
:
[],
myEmployeeList
:
[],
}
...
...
@@ -201,107 +95,8 @@
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
if
(
this
.
schoolTemp
)
{
this
.
msg
.
School_Id
=
this
.
schoolTemp
.
SId
}
else
{
this
.
msg
.
School_Id
=
0
}
this
.
getStudent
()
},
//创建账号
createAccount
(
id
)
{
let
that
=
this
createStudentAccount
({
StuId
:
id
,
}).
then
(
res
=>
{
that
.
$q
.
dialog
({
title
:
"创建账号"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getStudent
();
}).
onCancel
(()
=>
{
that
.
getStudent
();
})
})
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
4
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
});
},
deleteStudentInfo
(
obj
)
{
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
this
.
$q
.
dialog
({
title
:
str
+
"学员"
,
message
:
"你正在进行"
+
str
+
"学员行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
deleteStudent
({
StuId
:
obj
.
StuId
,
Status
:
obj
.
Status
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据操作成功!'
,
position
:
'top'
})
this
.
getStudent
()
})
}).
onCancel
(()
=>
{
obj
.
Status
=
obj
.
Status
==
1
?
0
:
1
;
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getStudent
();
...
...
@@ -322,36 +117,9 @@
})
},
refreshPage
()
{
if
(
!
this
.
stuOption
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
StuName
=
""
;
this
.
msg
.
StuTel
=
""
;
this
.
msg
.
Status
=
"-1"
;
this
.
msg
.
School_Id
=
0
;
}
this
.
getStudent
()
},
EditStudent
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuForm
=
true
;
},
closeStuForm
()
{
this
.
isShowStuForm
=
false
;
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuRight
=
true
;
}
},
}
</
script
>
...
...
src/pages/school/student.vue
View file @
1b295225
...
...
@@ -18,43 +18,13 @@
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"客户管理"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-StuIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
StuName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
{{
props
.
value
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==1?'女':'男'"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<student-form
v-if=
"isShowStuForm"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</student-form>
<studentRight-form
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</studentRight-form>
<stulist
:dataList=
"data"
@
success=
"refreshPage"
ref=
"stuList"
>
</stulist>
<div
class=
"row"
style=
"justify-content: flex-end;padding: 5px 20px"
>
<q-pagination
v-model=
"msg.pageIndex"
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
color=
"primary"
:input=
"true"
>
</q-pagination>
</div>
</div>
</div>
</
template
>
...
...
@@ -71,91 +41,20 @@
import
{
resetPassword
}
from
'../../api/users/user.js'
import
studentForm
from
'../../components/school/student/student-form'
import
studentRightForm
from
'../../components/school/student/studentRight-form'
import
stulist
from
'../../components/school/student/stulist'
export
default
{
meta
:
{
title
:
"客户管理"
},
components
:
{
studentForm
,
studentRightForm
stulist
},
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'StuIcon'
,
label
:
''
,
field
:
'StuIcon'
,
align
:
'left'
,
},
{
name
:
'StuName'
,
required
:
true
,
label
:
'昵称'
,
align
:
'left'
,
field
:
row
=>
row
.
StuName
},
{
name
:
'StuSex'
,
label
:
'性别'
,
field
:
'StuSex'
,
align
:
'left'
},
{
name
:
'StuBirthStr'
,
label
:
'出生日期'
,
field
:
'StuBirthStr'
,
align
:
'left'
},
{
name
:
'StuTel'
,
label
:
'手机号码'
,
field
:
'StuTel'
,
align
:
'left'
},
{
name
:
'CreateTypeStr'
,
label
:
'客户来源'
,
field
:
'CreateTypeStr'
,
align
:
'left'
,
},
{
name
:
'StuStageName'
,
label
:
'客户阶段'
,
field
:
'StuStageName'
,
align
:
'left'
,
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
field
:
'CreateTimeStr'
,
align
:
'left'
,
},
{
name
:
'CreateByName'
,
label
:
'负责人'
,
align
:
'left'
,
field
:
'CreateByName'
}
],
data
:
[],
loading
:
true
,
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'正常'
,
value
:
'0'
},
{
label
:
'禁用'
,
value
:
'1'
},
],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
...
...
@@ -165,20 +64,13 @@
Status
:
"-1"
,
CreateBy
:
""
},
schoolTemp
:
""
,
pageCount
:
0
,
stuOption
:
null
,
schoolList
:
[],
isShowStuForm
:
false
,
resetLoading
:
false
,
isShowStuRight
:
false
,
employeeList
:
[],
myEmployeeList
:
[],
}
},
created
()
{
this
.
getEmployeeList
();
this
.
getSchool
()
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
...
...
@@ -211,109 +103,10 @@
}
this
.
getStudent
()
},
//创建账号
createAccount
(
id
)
{
let
that
=
this
createStudentAccount
({
StuId
:
id
,
}).
then
(
res
=>
{
that
.
$q
.
dialog
({
title
:
"创建账号"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getStudent
();
}).
onCancel
(()
=>
{
that
.
getStudent
();
})
})
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
4
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
});
},
deleteStudentInfo
(
obj
)
{
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
this
.
$q
.
dialog
({
title
:
str
+
"学员"
,
message
:
"你正在进行"
+
str
+
"学员行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
deleteStudent
({
StuId
:
obj
.
StuId
,
Status
:
obj
.
Status
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据操作成功!'
,
position
:
'top'
})
this
.
getStudent
()
})
}).
onCancel
(()
=>
{
obj
.
Status
=
obj
.
Status
==
1
?
0
:
1
;
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getStudent
();
},
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
;
})
},
getStudent
()
{
this
.
loading
=
true
;
getStudentPage
(
this
.
msg
).
then
(
res
=>
{
...
...
@@ -325,36 +118,8 @@
})
},
refreshPage
()
{
if
(
!
this
.
stuOption
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
StuName
=
""
;
this
.
msg
.
StuTel
=
""
;
this
.
msg
.
Status
=
"-1"
;
this
.
msg
.
School_Id
=
0
;
}
this
.
getStudent
()
},
EditStudent
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuForm
=
true
;
},
closeStuForm
()
{
this
.
isShowStuForm
=
false
;
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuRight
=
true
;
}
},
}
</
script
>
...
...
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