Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
5fed5dcc
Commit
5fed5dcc
authored
Jul 16, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ec5185cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
678 additions
and
586 deletions
+678
-586
leaderScheduleManager.vue
src/components/LeaderManagement/leaderScheduleManager.vue
+678
-586
No files found.
src/components/LeaderManagement/leaderScheduleManager.vue
View file @
5fed5dcc
<
style
>
.guidScheduleMg
.el-input--prefix
.el-input__inner
{
.guidScheduleMg
.el-input--prefix
.el-input__inner
{
padding-left
:
30px
;
}
.guidScheduleMg
.query-box
ul
.el-input
{
}
.guidScheduleMg
.query-box
ul
.el-input
{
width
:
150px
;
}
.guidScheduleMg
.guidScheduleMg_list
{
}
.guidScheduleMg
.guidScheduleMg_list
{
padding
:
20px
0
;
}
.guidScheduleMg
.guidScheduleMg_list
>
li
{
}
.guidScheduleMg
.guidScheduleMg_list
>
li
{
float
:
left
;
height
:
180px
;
width
:
300px
;
...
...
@@ -18,23 +21,27 @@
background
:
rgba
(
255
,
255
,
255
,
1
);
-webkit-box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
}
.guidScheduleMg
.guidScheduleMg_list
>
li
>
div
{
}
.guidScheduleMg
.guidScheduleMg_list
>
li
>
div
{
height
:
180px
;
position
:
relative
;
border-radius
:
4px
;
overflow
:
hidden
;
}
.guidScheduleMg
.guidScheduleMg_list
>
li
.hl_img
{
}
.guidScheduleMg
.guidScheduleMg_list
>
li
.hl_img
{
width
:
100%
;
height
:
100%
;
filter
:
blur
(
10px
);
position
:
absolute
;
}
.guidScheduleMg
.hl_top
{
}
.guidScheduleMg
.hl_top
{
color
:
#ffffff
;
}
.guidScheduleMg
.hl_tit
{
}
.guidScheduleMg
.hl_tit
{
width
:
230px
;
font-size
:
14px
;
position
:
absolute
;
...
...
@@ -45,8 +52,9 @@
white-space
:
nowrap
;
text-decoration
:
underline
;
cursor
:
pointer
;
}
.guidScheduleMg
.hl_radius
{
}
.guidScheduleMg
.hl_radius
{
width
:
80px
;
height
:
80px
;
background-color
:
#ffffff
;
...
...
@@ -61,8 +69,9 @@
color
:
#e95252
;
text-align
:
center
;
font-size
:
16px
;
}
.guidScheduleMg
.hl_row
{
}
.guidScheduleMg
.hl_row
{
width
:
80%
;
height
:
30px
;
background
:
rgba
(
23
,
21
,
26
,
0.2
);
...
...
@@ -74,27 +83,34 @@
align-items
:
center
;
justify-content
:
space-between
;
padding
:
0
10%
;
}
.guidScheduleMg
.hl_row
>
li
{
}
.guidScheduleMg
.hl_row
>
li
{
list-style
:
disc
;
}
.guidScheduleMg
.guidScheduleMg_info
{
}
.guidScheduleMg
.guidScheduleMg_info
{
padding
:
0
65px
;
}
.guidScheduleMg
.guidScheduleMg_info
.hl_info
{
}
.guidScheduleMg
.guidScheduleMg_info
.hl_info
{
color
:
#333333
;
}
.guidScheduleMg
.guidScheduleMg_info
.hl_info
span
{
}
.guidScheduleMg
.guidScheduleMg_info
.hl_info
span
{
color
:
#666666
;
}
.guidScheduleMg
.hl_flight
{
}
.guidScheduleMg
.hl_flight
{
padding-top
:
20px
;
}
.guidScheduleMg
.hl_flight
li
{
}
.guidScheduleMg
.hl_flight
li
{
display
:
flex
;
align-items
:
center
;
}
.guidScheduleMg
._go
{
}
.guidScheduleMg
._go
{
display
:
inline-block
;
height
:
20px
;
width
:
20px
;
...
...
@@ -105,66 +121,79 @@
line-height
:
20px
;
border-radius
:
4px
;
margin-right
:
10px
;
}
.guidScheduleMg
._textB14
{
}
.guidScheduleMg
._textB14
{
color
:
#333333
;
font-size
:
14px
;
}
.guidScheduleMg
._timeCity
{
}
.guidScheduleMg
._timeCity
{
margin
:
15px
49px
;
}
.guidScheduleMg
._time
{
}
.guidScheduleMg
._time
{
color
:
#666666
;
font-size
:
18px
;
font-weight
:
700
;
}
.guidScheduleMg
._city
{
}
.guidScheduleMg
._city
{
color
:
#ff7862
;
font-size
:
14px
;
text-align
:
center
;
}
.guidScheduleMg
._line
{
}
.guidScheduleMg
._line
{
display
:
flex
;
align-items
:
center
;
}
.guidScheduleMg
._line
span
{
}
.guidScheduleMg
._line
span
{
display
:
inline-block
;
width
:
50px
;
height
:
2px
;
background-color
:
#ff7862
;
}
.guidScheduleMg
._line
span
._lr
{
}
.guidScheduleMg
._line
span
._lr
{
width
:
8px
;
height
:
8px
;
border-radius
:
50%
;
border
:
solid
2px
#ff7862
;
background-color
:
white
;
}
.guidScheduleMg
._flight_num
,
._flight_name
{
}
.guidScheduleMg
._flight_num
,
._flight_name
{
color
:
#999999
;
font-size
:
14px
;
font-weight
:
700
;
margin-left
:
15px
;
}
.guidScheduleMg
._flight_name
{
}
.guidScheduleMg
._flight_name
{
font-weight
:
lighter
;
}
.guidScheduleMg
._margintop30
{
}
.guidScheduleMg
._margintop30
{
margin-top
:
30px
;
}
.guidScheduleMg
._details
{
}
.guidScheduleMg
._details
{
margin-left
:
20px
;
padding-top
:
20px
;
}
.guidScheduleMg
._details
>
li
{
}
.guidScheduleMg
._details
>
li
{
border-left
:
1px
solid
#e9e9e9
;
position
:
relative
;
padding-bottom
:
15px
;
padding-left
:
40px
;
padding-top
:
15px
;
}
.guidScheduleMg
._d_radius
{
}
.guidScheduleMg
._d_radius
{
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
...
...
@@ -178,65 +207,80 @@
font-size
:
18px
;
color
:
white
;
font-weight
:
700
;
}
.guidScheduleMg
._Itinerary
{
}
.guidScheduleMg
._Itinerary
{
color
:
#333333
;
font-size
:
18px
;
display
:
flex
;
align-items
:
center
;
}
.guidScheduleMg
._Itinerary
.iconfont
{
}
.guidScheduleMg
._Itinerary
.iconfont
{
color
:
#666666
;
}
.guidScheduleMg
._d_city
,
._d_time
{
}
.guidScheduleMg
._d_city
,
._d_time
{
display
:
inline-block
;
padding
:
0
20px
;
}
.guidScheduleMg
._d_time
{
}
.guidScheduleMg
._d_time
{
padding
:
0
10px
0
0
;
}
.guidScheduleMg
._d_info
{
}
.guidScheduleMg
._d_info
{
color
:
#666666
;
font-size
:
14px
;
line-height
:
22px
;
padding-top
:
16px
;
}
.guidScheduleMg
._food_hotel
{
}
.guidScheduleMg
._food_hotel
{
padding-top
:
25px
;
}
.guidScheduleMg
._food_hotel
._food
,
._hotel
{
}
.guidScheduleMg
._food_hotel
._food
,
._hotel
{
float
:
left
;
width
:
50%
;
}
.guidScheduleMg
._food_hotel
.iconfont
::before
{
}
.guidScheduleMg
._food_hotel
.iconfont
::before
{
font-size
:
18px
;
color
:
#07a767
;
}
.guidScheduleMg
._food_hotel
._hotel
.iconfont
::before
{
}
.guidScheduleMg
._food_hotel
._hotel
.iconfont
::before
{
color
:
#2595ee
;
}
.guidScheduleMg
._fh_tit
{
}
.guidScheduleMg
._fh_tit
{
font-size
:
16px
;
}
.guidScheduleMg
._fist
{
}
.guidScheduleMg
._fist
{
padding-bottom
:
10px
;
}
.guidScheduleMg
._meidonfxi
{
}
.guidScheduleMg
._meidonfxi
{
text-align
:
center
;
padding
:
25px
0
;
}
.guidScheduleMg
._meidonfxi
.iconfont
{
}
.guidScheduleMg
._meidonfxi
.iconfont
{
display
:
block
;
font-size
:
50px
;
color
:
#d6d6d6
;
}
.guidScheduleMg
._meidonfxi
p
{
}
.guidScheduleMg
._meidonfxi
p
{
color
:
#999999
;
font-size
:
14px
;
}
.guidScheduleMg
.el-dialog__header
.el-dialog__title
{
}
.guidScheduleMg
.el-dialog__header
.el-dialog__title
{
display
:
-webkit-box
;
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
...
...
@@ -244,44 +288,85 @@
text-overflow
:
ellipsis
;
max-width
:
80%
;
margin
:
0
auto
;
}
.guidScheduleMg
.TypeOne
{
}
.guidScheduleMg
.TypeOne
{
color
:
#47bf8c
;
}
.guidScheduleMg
.TypeTwo
{
}
.guidScheduleMg
.TypeTwo
{
color
:
#e95252
;
}
.guidScheduleMg
.typeThree
{
}
.guidScheduleMg
.typeThree
{
color
:
#666666
;
}
.guidScheduleMg
.leaderName
{
}
.guidScheduleMg
.leaderName
{
position
:
relative
;
top
:
-10px
;
left
:
5px
;
}
.guidScheduleMg
.headerImg
{
}
.guidScheduleMg
.headerImg
{
width
:
34px
;
height
:
34px
;
border-radius
:
50%
;
display
:
inline-block
;
}
.guidScheduleMg
.headerImg
img
{
}
.guidScheduleMg
.headerImg
img
{
width
:
100%
;
height
:
100%
;
border-radius
:
50%
;
}
.guidScheduleMg
.grayLi
img
{
height
:
100%
;
border-radius
:
50%
;
}
.guidScheduleMg
.grayLi
img
{
-webkit-filter
:
grayscale
(
1
)
blur
(
10px
)
!important
;
}
.guidScheduleMg
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
font-family
:
'PingFangSc-Fine'
;
left
:
0
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
width
:
100%
;}
.guidScheduleMg
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.guidScheduleMg
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
.guidScheduleMg
._edHeight
{
height
:
400px
;}
.guidScheduleMg
.edHeight
{
display
:
block
!important
;
height
:
170px
;}
.guidScheduleMg
.edHeight
form
{
padding-top
:
20px
;}
.guidScheduleMg
._vMG_edit
.el-date-editor.el-input
,
.guidScheduleMg
._vMG_edit
.el-date-editor.el-input__inner
{
}
.guidScheduleMg
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
font-family
:
'PingFangSc-Fine'
;
left
:
0
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
width
:
100%
;
}
.guidScheduleMg
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.guidScheduleMg
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
.guidScheduleMg
._edHeight
{
height
:
400px
;
}
.guidScheduleMg
.edHeight
{
display
:
block
!important
;
height
:
170px
;
}
.guidScheduleMg
.edHeight
form
{
padding-top
:
20px
;
}
.guidScheduleMg
._vMG_edit
.el-date-editor.el-input
,
.guidScheduleMg
._vMG_edit
.el-date-editor.el-input__inner
{
width
:
100%
!important
;
}
}
</
style
>
<
template
>
<div
class=
"flexOne guidScheduleMg"
>
...
...
@@ -291,10 +376,8 @@
<span>
<em>
领队/导游
</em>
<el-select
v-model=
"msg.LeaderId"
filterable
:placeholder=
"$t('admin.admin_phBirthPlace')"
class=
"w210"
>
<el-option
v-for=
'item in leaderList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
>
</el-option>
<el-option
v-for=
'item in leaderList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</span>
...
...
@@ -303,7 +386,7 @@
<span>
<em>
档期类型
</em>
<el-select
v-model=
"msg.ScheduleType"
filterable
:placeholder=
"$t('admin.admin_phBirthPlace')"
class=
"w210"
>
<el-option
:label=
"$t('system.ph_buxian')"
value=
'0'
></el-option>
<el-option
:label=
"$t('system.ph_buxian')"
:
value=
'0'
></el-option>
<el-option
label=
"休假"
value=
'1'
></el-option>
<el-option
label=
"领队"
value=
'2'
></el-option>
<el-option
label=
"领队兼导游"
value=
'3'
></el-option>
...
...
@@ -314,24 +397,23 @@
<li>
<span>
<em>
时间
</em>
<el-date-picker
v-model=
"msg.YearMonth"
value-format=
"yyyy-MM"
type=
"month"
placeholder=
"选择月"
>
<el-date-picker
v-model=
"msg.YearMonth"
value-format=
"yyyy-MM"
type=
"month"
placeholder=
"选择月"
>
</el-date-picker>
</span>
</li>
<li>
<input
type=
"button"
class=
"normalBtn"
value=
"新增档期"
@
click=
"addMsg.LeaderId = msg.LeaderId, addShow = true,text='新增',resetForm('addMsg')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增档期"
@
click=
"addMsg.LeaderId = msg.LeaderId, addShow = true,text='新增',resetForm('addMsg')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
</li>
</ul>
</div>
<div
:class=
"addShow==true?'_edHeight':''"
v-loading=
"loading"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"singeRowTable"
style=
"border: 1px solid rgb(230, 230, 230);background: #ccc;width: 100%"
>
<div
:class=
"addShow==true?'_edHeight':''"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"singeRowTable"
v-loading=
"loading"
style=
"border: 1px solid rgb(230, 230, 230);background: #ccc;width: 100%"
>
<tr>
<th>
领队
姓名
</th>
<th>
领队/导游
姓名
</th>
<th>
开始日期
</th>
<th>
结束日期
</th>
<th>
档期类型
</th>
...
...
@@ -341,17 +423,15 @@
<th>
操作
</th>
</tr>
<tr
v-for=
"(item, index) in dataList"
>
<td>
{{
item
.
LeaderName
}}
</td>
<td>
{{
item
.
LeaderName
}}
/
{{
item
.
GuideName
}}
</td>
<td>
{{
item
.
StartDate
}}
</td>
<td>
{{
item
.
EndDate
}}
</td>
<td>
<span
v-if=
"item.ScheduleType===0"
>
无安排
</span>
<span
v-if=
"item.ScheduleType===1"
>
休假
</span>
<span
v-if=
"item.ScheduleType===2"
>
领队
</span>
<span
v-if=
"item.ScheduleType===3"
>
领队兼导游
</span>
<span
v-if=
"item.ScheduleType===4"
>
导游
</span>
<span
v-if=
"item.TypeId===0"
>
系统参团
</span>
<span
v-if=
"item.TypeId===1"
>
休假
</span>
</td>
<td><span
style=
"text-decoration: underline;cursor: pointer;color: #3980C8;"
@
click=
"goUrl('productQuery',item.TCID)"
>
{{
item
.
TCID
}}
</span></td>
<td><span
style=
"text-decoration: underline;cursor: pointer;color: #3980C8;"
@
click=
"goUrl('productQuery',item.TCID)"
>
{{
item
.
TCID
}}
</span></td>
<td>
{{
item
.
Remarks
}}
</td>
<td>
{{
item
.
OperationName
}}
</td>
<td>
...
...
@@ -359,7 +439,8 @@
<el-button
type=
"primary"
class=
"iconfont icon-bianji-smal"
circle
@
click=
"editLeader(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
class=
"iconfont icon-img_delete_small"
circle
@
click=
"removeLeader(item)"
></el-button>
<el-button
type=
"danger"
class=
"iconfont icon-img_delete_small"
circle
@
click=
"removeLeader(item)"
>
</el-button>
</el-tooltip>
</td>
</tr>
...
...
@@ -371,8 +452,10 @@
<p
class=
"_tit"
>
{{
text
}}
档期资料
</p>
</el-col>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"loading ? '' : submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"resetForm('addMsg'),addShow=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"loading ? '' : submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"resetForm('addMsg'),addShow=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</el-col>
</el-row>
<el-form
class=
" clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
...
...
@@ -380,31 +463,21 @@
<el-col
:span=
"4"
>
<el-form-item
label=
"名称:"
prop=
"LeaderId"
>
<el-select
v-model=
"addMsg.LeaderId"
filterable
:placeholder=
"$t('admin.admin_phBirthPlace')"
>
<el-option
v-for=
'item in leaderList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
>
</el-option>
<el-option
v-for=
'item in leaderList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"开始时间:"
prop=
"sDate"
>
<el-date-picker
v-model=
"addMsg.StartDate"
type=
"date"
placeholder=
"请选择"
value-format=
"yyyy-MM-dd"
>
<el-date-picker
v-model=
"addMsg.StartDate"
type=
"date"
placeholder=
"请选择"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"结束时间:"
prop=
"eDate"
>
<el-date-picker
v-model=
"addMsg.EndDate"
type=
"date"
placeholder=
"请选择"
value-format=
"yyyy-MM-dd"
>
<el-date-picker
v-model=
"addMsg.EndDate"
type=
"date"
placeholder=
"请选择"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -419,35 +492,36 @@
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
>
</el-pagination>
<el-dialog
custom-class=
'ComTeamPlan_info_box'
:title=
"tripTitle"
:visible
.
sync=
"outerVisible"
center
>
<el-dialog
custom-class=
'ComTeamPlan_info_box'
:title=
"tripTitle"
:visible
.
sync=
"outerVisible"
center
>
<commonTeamInfo
ref=
"comTeam"
></commonTeamInfo>
</el-dialog>
</div>
</
template
>
<
script
>
import
commonTeamInfo
from
"../commonPage/commonTeamInfo.vue"
;
export
default
{
import
commonTeamInfo
from
"../commonPage/commonTeamInfo.vue"
;
export
default
{
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
LeaderId
:
"0"
,
ScheduleType
:
"0"
,
LeaderId
:
0
,
ScheduleType
:
0
,
YearMonth
:
""
,
TCID
:
0
,
TCID
:
0
,
},
addMsg
:
{
LeaderId
:
''
,
LeaderId
:
0
,
StartDate
:
''
,
EndDate
:
''
,
Remarks
:
''
,
},
LeaderName
:
""
,
EmPhoto
:
""
,
EmPhoto
:
""
,
TripList
:
""
,
dataList
:
""
,
total
:
0
,
...
...
@@ -457,25 +531,33 @@ export default {
outerVisible
:
false
,
addShow
:
false
,
tripTitle
:
""
,
leaderList
:[],
text
:
''
,
rules
:
{
//表单必填验证
LeaderId
:
[
{
required
:
true
,
message
:
'请填写领队名称'
,
trigger
:
'blur'
}
],
StartDate
:
[
{
type
:
'date'
,
required
:
true
,
message
:
'请选择开始时间'
,
trigger
:
'change'
}
],
EndDate
:
[
{
type
:
'date'
,
required
:
true
,
message
:
'请选择结束时间'
,
trigger
:
'change'
}
],
leaderList
:
[],
text
:
''
,
rules
:
{
//表单必填验证
LeaderId
:
[{
required
:
true
,
message
:
'请填写领队名称'
,
trigger
:
'blur'
}],
StartDate
:
[{
type
:
'date'
,
required
:
true
,
message
:
'请选择开始时间'
,
trigger
:
'change'
}],
EndDate
:
[{
type
:
'date'
,
required
:
true
,
message
:
'请选择结束时间'
,
trigger
:
'change'
}],
},
};
},
created
()
{
created
()
{
let
date
=
new
Date
();
let
year
=
date
.
getFullYear
();
let
month
=
date
.
getMonth
()
<
10
?
(
'0'
+
(
date
.
getMonth
()
+
1
))
:
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
<
10
?
(
'0'
+
(
date
.
getMonth
()
+
1
))
:
date
.
getMonth
()
+
1
;
this
.
msg
.
YearMonth
=
year
+
'-'
+
month
;
},
components
:
{
...
...
@@ -483,17 +565,26 @@ export default {
},
methods
:
{
goUrl
:
function
(
path
,
id
)
{
// 页面跳转
this
.
$router
.
push
({
path
:
path
,
query
:{
TCIDList
:
id
,
blank
:
'y'
,
isShow
:
false
}})
this
.
$router
.
push
({
path
:
path
,
query
:
{
TCIDList
:
id
,
blank
:
'y'
,
isShow
:
false
}
})
},
removeLeader
:
function
(
obj
)
{
// 删除安排
if
(
obj
.
ScheduleType
===
1
)
{
this
.
$confirm
(
'是否删除“'
+
obj
.
LeaderName
+
'”的休假安排?'
,
'提示'
,
{
this
.
$confirm
(
'是否删除“'
+
obj
.
LeaderName
+
'”的休假安排?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'LeaderSchedule_post_RemoveHoliday'
,
{
Id
:
obj
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
apipost
(
'LeaderSchedule_post_RemoveHoliday'
,
{
Id
:
obj
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
...
...
@@ -512,14 +603,14 @@ export default {
},
editLeader
:
function
(
obj
)
{
// 修改
if
(
obj
.
ScheduleType
===
1
)
{
this
.
text
=
'修改'
;
this
.
text
=
'修改'
;
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
obj
));
this
.
addShow
=
true
;
this
.
addShow
=
true
;
}
else
{
this
.
$message
.
error
(
'系统参团安排,请联系合作专线人员,凭团号,在报名清单处协助处理!'
)
}
},
submitForm
:
function
(
addMsg
)
{
//提交创建、修改表单
submitForm
:
function
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -530,10 +621,10 @@ export default {
}
});
},
resetForm
:
function
(
formName
)
{
//弹出框取消 初始化谈框内表单
resetForm
:
function
(
formName
)
{
//弹出框取消 初始化谈框内表单
this
.
$refs
[
formName
].
resetFields
();
this
.
addMsg
=
{
LeaderId
:
this
.
msg
.
LeaderId
,
LeaderId
:
0
,
StartDate
:
''
,
EndDate
:
''
,
Remarks
:
''
,
...
...
@@ -541,8 +632,8 @@ export default {
},
addDC
:
function
()
{
// 保存数据
this
.
loading
=
true
;
this
.
apipost
(
'LeaderSchedule_post_SetHolidaySchedule'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
apipost
(
'LeaderSchedule_post_SetHolidaySchedule'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
this
.
addShow
=
false
;
...
...
@@ -553,54 +644,55 @@ export default {
},
null
)
},
getLeaderList
:
function
()
{
// 获取领队下拉列表
this
.
apipost
(
'leader_post_GetList'
,
{
Type
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
apipost
(
'leader_post_GetList'
,
{
Type
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
leaderList
=
res
.
data
.
data
;
this
.
msg
.
LeaderId
=
this
.
addMsg
.
LeaderId
=
this
.
leaderList
[
0
].
ID
;
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
null
)
},
getList
:
function
()
{
// 获取数据列表
getList
:
function
()
{
// 获取数据列表
this
.
loading
=
true
;
//获取列表数据
this
.
apipost
(
"LeaderSchedule_post_GetLeaderGuideSchedulePageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LeaderName
=
res
.
data
.
data
.
pageData
.
LeaderName
;
this
.
EmPhoto
=
res
.
data
.
data
.
pageData
.
EmPhoto
;
this
.
EmPhoto
=
res
.
data
.
data
.
pageData
.
EmPhoto
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
noData
=
!
this
.
total
>
0
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
this
.
loading
=
false
;
},
err
=>
{}
);
},
resetPageIndex
:
function
()
{
resetPageIndex
:
function
()
{
//查询初始化页码
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
handleCurrentChange
:
function
(
val
)
{
handleCurrentChange
:
function
(
val
)
{
//翻页功能按钮
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
TCID
)
{
this
.
msg
.
TCID
=
this
.
$route
.
query
.
TCID
;
if
(
this
.
$route
.
query
.
TCID
)
{
this
.
msg
.
TCID
=
this
.
$route
.
query
.
TCID
;
}
this
.
getLeaderList
();
}
};
};
</
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