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
78ae5f7d
Commit
78ae5f7d
authored
Mar 17, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ffbf80c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
school-form.vue
src/components/school/schoolarea/school-form.vue
+9
-13
No files found.
src/components/school/schoolarea/school-form.vue
View file @
78ae5f7d
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
class=
"col-6 q-pr-lg q-pb-lg"
label=
"校区名称"
:rules=
"[val => !!val || '请填写校区名称']"
/>
class=
"col-6 q-pr-lg q-pb-lg"
label=
"校区名称"
:rules=
"[val => !!val || '请填写校区名称']"
/>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.SAddress"
ref=
"SAddress"
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.SAddress"
ref=
"SAddress"
class=
"col-6 q-pb-lg"
label=
"校区地址"
:rules=
"[val => !!val || '请填写校区地址']"
/>
class=
"col-6 q-pb-lg"
label=
"校区地址"
:rules=
"[val => !!val || '请填写校区地址']"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
clearable
filled
stack-label
use-input
option-value=
"Id
"
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
clearable
filled
stack-label
use-input
input-debounce=
"0"
hint=
"Basic filtering
"
option-
label=
"EmployeeName"
v-model=
"objOption.ManagerId"
ref=
"ManagerId"
:options=
"EmployeeList
"
option-
value=
"Id"
option-label=
"EmployeeName"
v-model=
"objOption.ManagerId"
ref=
"ManagerId
"
label=
"校区联系人"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
:options=
"EmployeeList"
label=
"校区联系人"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<template
v-slot:no-option
>
<template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
<q-item-section
class=
"text-grey"
>
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
Remark
:
""
,
//校区备注
Remark
:
""
,
//校区备注
Status
:
"0"
,
//校区状态
Status
:
"0"
,
//校区状态
Dept_Id
:
0
,
//校区直属上级部门编号
Dept_Id
:
0
,
//校区直属上级部门编号
ManagerId
:
0
,
//校区负责人
ManagerId
:
""
,
//校区负责人
},
},
optionTitle
:
""
,
optionTitle
:
""
,
saveLoading
:
false
,
saveLoading
:
false
,
...
@@ -118,7 +118,9 @@
...
@@ -118,7 +118,9 @@
this
.
objOption
.
Remark
=
res
.
Data
.
Remark
;
this
.
objOption
.
Remark
=
res
.
Data
.
Remark
;
this
.
objOption
.
Status
=
res
.
Data
.
Status
;
this
.
objOption
.
Status
=
res
.
Data
.
Status
;
this
.
objOption
.
Dept_Id
=
res
.
Data
.
Dept_Id
;
this
.
objOption
.
Dept_Id
=
res
.
Data
.
Dept_Id
;
this
.
objOption
.
ManagerId
=
res
.
Data
.
ManagerId
;
if
(
res
.
Data
.
ManagerId
&&
res
.
Data
.
ManagerId
>
0
)
{
this
.
objOption
.
ManagerId
=
res
.
Data
.
ManagerId
;
}
this
.
returnString
.
push
(
this
.
objOption
.
Dept_Id
.
toString
());
this
.
returnString
.
push
(
this
.
objOption
.
Dept_Id
.
toString
());
})
})
}
else
{
}
else
{
...
@@ -131,7 +133,7 @@
...
@@ -131,7 +133,7 @@
this
.
objOption
.
Remark
=
""
;
this
.
objOption
.
Remark
=
""
;
this
.
objOption
.
Status
=
"0"
;
this
.
objOption
.
Status
=
"0"
;
this
.
objOption
.
Dept_Id
=
0
;
this
.
objOption
.
Dept_Id
=
0
;
this
.
objOption
.
ManagerId
=
0
;
this
.
objOption
.
ManagerId
=
""
;
}
}
this
.
persistent
=
true
;
this
.
persistent
=
true
;
},
},
...
@@ -155,10 +157,6 @@
...
@@ -155,10 +157,6 @@
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
var
jsonData
=
res
.
Data
;
var
jsonData
=
res
.
Data
;
if
(
jsonData
&&
jsonData
.
length
>
0
)
{
if
(
jsonData
&&
jsonData
.
length
>
0
)
{
jsonData
.
unshift
({
Id
:
0
,
EmployeeName
:
"请选择"
});
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));;
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));;
}
}
...
@@ -190,9 +188,7 @@
...
@@ -190,9 +188,7 @@
!
this
.
$refs
.
SAddress
.
hasError
&&
!
this
.
$refs
.
SAddress
.
hasError
&&
!
this
.
$refs
.
SLinkTel
.
hasError
!
this
.
$refs
.
SLinkTel
.
hasError
)
{
)
{
if
(
this
.
tempManager
&&
this
.
tempManager
.
Id
)
{
this
.
objOption
.
ManagerId
=
this
.
tempManager
.
Id
;
}
this
.
saveLoading
=
true
;
this
.
saveLoading
=
true
;
saveSchool
(
this
.
objOption
).
then
(
res
=>
{
saveSchool
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
saveLoading
=
false
...
...
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