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
52b1530a
Commit
52b1530a
authored
May 07, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
838463e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
addDutyItem.vue
src/components/duty/addDutyItem.vue
+8
-15
dutyItemManagement.vue
src/components/duty/dutyItemManagement.vue
+5
-1
No files found.
src/components/duty/addDutyItem.vue
View file @
52b1530a
...
...
@@ -12,19 +12,19 @@
</div>
<div
class=
"col-6"
>
<q-select
stack-label
color=
"primary"
filled
clearable
label=
"选择事项类型"
option-value=
"Id"
option-label=
"Name"
:options=
"itemTypeOptions"
v-model=
"msg.ItemType"
ref=
"ItemType"
:rules=
"[val => !!val || '请选择事项类型']"
/>
:options=
"itemTypeOptions"
v-model=
"msg.ItemType"
ref=
"ItemType"
emit-value
map-options
:rules=
"[val => !!val || '请选择事项类型']"
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-select
stack-label
v-model=
"FrequencyArr"
multiple
:options=
"frequencyOptions"
color=
"primary"
filled
clearable
label=
"选择班次"
option-label=
"Name"
option-value=
"Id"
ref=
"Shifts"
@
input=
"getSchoolListByFrequencyIds"
:rules=
"[val => !!val || '请选择班次']"
class=
"col-6 q-pr-lg q-pb-lg"
/>
@
input=
"getSchoolListByFrequencyIds"
emit-value
map-options
:rules=
"[val => !!val || '请选择班次']"
class=
"col-6 q-pr-lg q-pb-lg"
/>
</div>
<div
class=
"col-6"
>
<q-select
stack-label
v-model=
"schoolArr"
multiple
:options=
"schoolOptions"
color=
"primary"
filled
clearable
label=
"选择校区"
option-label=
"SName"
option-value=
"SId"
ref=
"ItemSchools"
@
input=
"getDutyFrequencyBySchoolIds"
:rules=
"[val => !!val || '请选择校区']"
/>
@
input=
"getDutyFrequencyBySchoolIds"
emit-value
map-options
:rules=
"[val => !!val || '请选择校区']"
/>
</div>
</div>
</q-card-section>
...
...
@@ -97,10 +97,10 @@
this
.
msg
.
ItemType
=
tempData
.
ItemType
;
this
.
msg
.
Shifts
=
tempData
.
Shifts
;
if
(
tempData
.
ShiftList
&&
tempData
.
ShiftList
.
length
>
0
)
{
this
.
FrequencyArr
=
tempData
.
ShiftList
;
this
.
FrequencyArr
=
tempData
.
ShiftList
.
map
(
i
=>
i
*
1
)
;
}
if
(
tempData
.
SchoolList
&&
tempData
.
SchoolList
.
length
>
0
)
{
this
.
schoolArr
=
tempData
.
SchoolList
;
this
.
schoolArr
=
tempData
.
SchoolList
.
map
(
i
=>
i
*
1
)
;
}
}
}
...
...
@@ -109,14 +109,6 @@
this
.
clearMsg
();
}
},
//获取班次列表
getDutyFrequencyList
()
{
getDutyFrequencyList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
frequencyOptions
=
res
.
Data
;
}
})
},
//获取值班事项类型枚举
queryItemTypeEnumList
()
{
getItemTypeEnumList
({}).
then
(
res
=>
{
...
...
@@ -160,16 +152,17 @@
},
//根据班次获取学校信息
getSchoolListByFrequencyIds
()
{
let
Shifts
=
this
.
FrequencyArr
.
map
(
item
=>
item
.
Id
).
toString
();
let
Shifts
=
this
.
FrequencyArr
.
toString
();
getSchoolListByFrequencyIds
({
Shifts
:
Shifts
}).
then
((
res
)
=>
{
this
.
schoolOptions
=
res
.
Data
;
this
.
schoolArr
=
[];
})
},
//根据学校id获取对应的班次
getDutyFrequencyBySchoolIds
()
{
let
SchoolIds
=
this
.
schoolArr
.
map
(
item
=>
item
.
SId
).
toString
();
let
SchoolIds
=
this
.
schoolArr
.
toString
();
getDutyFrequencyBySchoolIds
({
SchoolIds
:
SchoolIds
}).
then
((
res
)
=>
{
...
...
src/components/duty/dutyItemManagement.vue
View file @
52b1530a
...
...
@@ -52,7 +52,7 @@
</
template
>
</q-table>
</div>
<AddDutyItem
v-if=
"isShowAdd"
@
close=
"
resetSearch
"
:save-obj=
"itemObj"
@
success=
"resetSearch"
>
<AddDutyItem
v-if=
"isShowAdd"
@
close=
"
closeAddDuty
"
:save-obj=
"itemObj"
@
success=
"resetSearch"
>
</AddDutyItem>
</div>
</template>
...
...
@@ -180,6 +180,10 @@
this
.
isShowAdd
=
true
;
this
.
itemObj
=
obj
;
},
//关闭
closeAddDuty
(){
this
.
isShowAdd
=
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