Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
21833d7e
Commit
21833d7e
authored
Jun 02, 2020
by
彭祥礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
21cf3f4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/views/school-center/userManager/schoolAllocation.vue
+6
-4
No files found.
src/views/school-center/userManager/schoolAllocation.vue
View file @
21833d7e
...
...
@@ -57,7 +57,8 @@
<a-modal
:title=
"titleName"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"720px"
height=
"1600px"
>
<a-form
:form=
"Formtable"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"账号"
>
<a-select
mode=
"tags"
v-model=
"modifyForm.account"
placeholder=
"请选择账号"
@
change=
"handleChange"
>
<a-select
v-model=
"modifyForm.account"
placeholder=
"请选择账号"
@
change=
"handleChange"
>
<!-- mode="tags"-->
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"d in userList"
:value=
"d.account"
>
{{ d.name}}
</a-select-option>
</a-select>
</a-form-item>
...
...
@@ -179,7 +180,6 @@
this
.
modifyvisible
=
true
;
},
handleChange
(
value
)
{
this
.
modifyForm
.
account
=
value
console
.
log
(
`selected
${
value
}
`
);
},
//提交表单
...
...
@@ -189,9 +189,11 @@
addAllocation
({
"account"
:
this
.
modifyForm
.
account
,
"schoolId"
:
this
.
modifyForm
.
schoolId
}).
then
(
res
=>
{
if
(
res
.
state
==
"success"
)
{
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'添加成功!'
,
5
);
this
.
search
();
this
.
modifyForm
.
account
=
""
this
.
modifyForm
.
subName
=
''
this
.
modifyForm
.
schoolId
=
''
this
.
modifyvisible
=
false
;
return
null
;
this
.
search
()
;
}
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'添加失败!'
,
5
);
})
...
...
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