Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
155fb9e9
Commit
155fb9e9
authored
Jan 06, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4f285b65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
addLecturer.vue
src/components/education/addLecturer.vue
+34
-1
No files found.
src/components/education/addLecturer.vue
View file @
155fb9e9
...
...
@@ -19,6 +19,12 @@
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"关联用户"
size=
"small"
>
<el-select
size=
"small"
v-model=
"addMsg.UserId"
filterable
remote
reserve-keyword
placeholder=
"关联用户"
:remote-method=
"remoteMethod"
:loading=
"loadingPeople"
>
<el-option
v-for=
"item in peopleData"
:key=
"item.Id"
:label=
"`$
{item.AliasName}`" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"Telephone"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.Telephone"
placeholder=
"请输入电话"
type=
"number"
/>
</el-form-item>
...
...
@@ -100,6 +106,7 @@
TeacherLogo
:
''
,
Name
:
''
,
Telephone
:
""
,
UserId
:
''
,
Introduction
:
''
,
Major
:
''
,
WorkYears
:
''
,
...
...
@@ -108,6 +115,7 @@
Nationality
:
''
,
//老师国籍
ForeignersUrl
:
''
,
//国家图片
},
loadingPeople
:
false
,
dynamicTags
:
[],
inputVisible
:
false
,
inputValue
:
''
,
...
...
@@ -154,6 +162,7 @@
loading
:
false
,
changeState
:
false
,
imgType
:
0
,
peopleData
:[],
};
},
created
()
{
...
...
@@ -197,7 +206,11 @@
let
content
=
this
.
$refs
.
ue
.
getUEContent
();
this
.
addMsg
.
Introduction
=
content
;
this
.
apipost
(
"/api/Education/AddOrUpdateTeacher"
,
this
.
addMsg
,
res
=>
{
let
msg
=
this
.
addMsg
if
(
msg
.
UserId
==
''
){
msg
.
UserId
=
0
}
this
.
apipost
(
"/api/Education/AddOrUpdateTeacher"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CommonJump
(
'lecturermanage'
);
this
.
Success
(
res
.
data
.
message
);
...
...
@@ -245,6 +258,26 @@
this
.
dynamicTags
=
this
.
addMsg
.
LableNameList
}
if
(
this
.
addMsg
.
UserId
==
0
){
this
.
addMsg
.
UserId
=
''
}
else
if
(
this
.
addMsg
.
UserId
>
0
){
this
.
peopleData
=
[
{
Id
:
this
.
addMsg
.
UserId
,
AliasName
:
this
.
addMsg
.
UserName
}
]
}
})
},
remoteMethod
(
val
){
console
.
log
(
val
)
this
.
loadingPeople
=
true
;
this
.
apipost
(
"/api/User/GetListByPhoneOrAliasName"
,{
'AliasName'
:
val
,
SmallShopId
:
0
},
res
=>
{
this
.
loadingPeople
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
peopleData
=
res
.
data
.
data
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
...
...
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