Commit 5fed5dcc authored by 黄奎's avatar 黄奎

页面修改

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