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 {
width: 150px; .guidScheduleMg .query-box ul .el-input {
} width: 150px;
.guidScheduleMg .guidScheduleMg_list { }
padding: 20px 0;
} .guidScheduleMg .guidScheduleMg_list {
.guidScheduleMg .guidScheduleMg_list > li { padding: 20px 0;
float: left; }
height: 180px;
width: 300px; .guidScheduleMg .guidScheduleMg_list>li {
margin: 0 15px; float: left;
margin-bottom: 20px; height: 180px;
overflow: hidden; width: 300px;
background: rgba(255, 255, 255, 1); margin: 0 15px;
-webkit-box-shadow: 0px 0px 20px rgba(191, 191, 191, 1); margin-bottom: 20px;
box-shadow: 0px 0px 20px rgba(191, 191, 191, 1); overflow: hidden;
} background: rgba(255, 255, 255, 1);
.guidScheduleMg .guidScheduleMg_list > li > div { -webkit-box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
height: 180px; box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
position: relative; }
border-radius: 4px;
overflow: hidden; .guidScheduleMg .guidScheduleMg_list>li>div {
} height: 180px;
.guidScheduleMg .guidScheduleMg_list > li .hl_img { position: relative;
width: 100%; border-radius: 4px;
height: 100%; overflow: hidden;
filter: blur(10px); }
position: absolute;
} .guidScheduleMg .guidScheduleMg_list>li .hl_img {
.guidScheduleMg .hl_top { width: 100%;
color: #ffffff; height: 100%;
} filter: blur(10px);
.guidScheduleMg .hl_tit { position: absolute;
width: 230px; }
font-size: 14px;
position: absolute; .guidScheduleMg .hl_top {
left: 10px; color: #ffffff;
top: 10px; }
overflow: hidden;
text-overflow: ellipsis; .guidScheduleMg .hl_tit {
white-space: nowrap; width: 230px;
text-decoration: underline; font-size: 14px;
cursor: pointer; position: absolute;
} left: 10px;
.guidScheduleMg .hl_radius { top: 10px;
width: 80px; overflow: hidden;
height: 80px; text-overflow: ellipsis;
background-color: #ffffff; white-space: nowrap;
border: solid 4px rgba(193, 193, 193, 0.46); text-decoration: underline;
line-height: 75px; cursor: pointer;
font-size: 16px; }
border-radius: 50%;
position: absolute; .guidScheduleMg .hl_radius {
left: 50%; width: 80px;
top: 50%; height: 80px;
transform: translate(-50%, -50%); background-color: #ffffff;
color: #e95252; border: solid 4px rgba(193, 193, 193, 0.46);
text-align: center; line-height: 75px;
font-size: 16px; font-size: 16px;
} border-radius: 50%;
.guidScheduleMg .hl_row { position: absolute;
width: 80%; left: 50%;
height: 30px; top: 50%;
background: rgba(23, 21, 26, 0.2); transform: translate(-50%, -50%);
position: absolute; color: #e95252;
bottom: 0; text-align: center;
left: 0; font-size: 16px;
display: flex; }
font-size: 12px;
align-items: center; .guidScheduleMg .hl_row {
justify-content: space-between; width: 80%;
padding: 0 10%; height: 30px;
} background: rgba(23, 21, 26, 0.2);
.guidScheduleMg .hl_row > li { position: absolute;
list-style: disc; bottom: 0;
} left: 0;
.guidScheduleMg .guidScheduleMg_info { display: flex;
padding: 0 65px; font-size: 12px;
} align-items: center;
.guidScheduleMg .guidScheduleMg_info .hl_info { justify-content: space-between;
color: #333333; padding: 0 10%;
} }
.guidScheduleMg .guidScheduleMg_info .hl_info span {
color: #666666; .guidScheduleMg .hl_row>li {
} list-style: disc;
.guidScheduleMg .hl_flight { }
padding-top: 20px;
} .guidScheduleMg .guidScheduleMg_info {
.guidScheduleMg .hl_flight li { padding: 0 65px;
display: flex; }
align-items: center;
} .guidScheduleMg .guidScheduleMg_info .hl_info {
.guidScheduleMg ._go { color: #333333;
display: inline-block; }
height: 20px;
width: 20px; .guidScheduleMg .guidScheduleMg_info .hl_info span {
background-color: #ff7862; color: #666666;
color: white; }
font-size: 14px;
text-align: center; .guidScheduleMg .hl_flight {
line-height: 20px; padding-top: 20px;
border-radius: 4px; }
margin-right: 10px;
} .guidScheduleMg .hl_flight li {
.guidScheduleMg ._textB14 { display: flex;
color: #333333; align-items: center;
font-size: 14px; }
}
.guidScheduleMg ._timeCity { .guidScheduleMg ._go {
margin: 15px 49px; display: inline-block;
} height: 20px;
.guidScheduleMg ._time { width: 20px;
color: #666666; background-color: #ff7862;
font-size: 18px; color: white;
font-weight: 700; font-size: 14px;
} text-align: center;
.guidScheduleMg ._city { line-height: 20px;
color: #ff7862; border-radius: 4px;
font-size: 14px; margin-right: 10px;
text-align: center; }
}
.guidScheduleMg ._line { .guidScheduleMg ._textB14 {
display: flex; color: #333333;
align-items: center; font-size: 14px;
} }
.guidScheduleMg ._line span {
display: inline-block; .guidScheduleMg ._timeCity {
width: 50px; margin: 15px 49px;
height: 2px; }
background-color: #ff7862;
} .guidScheduleMg ._time {
.guidScheduleMg ._line span._lr { color: #666666;
width: 8px; font-size: 18px;
height: 8px; font-weight: 700;
border-radius: 50%; }
border: solid 2px #ff7862;
background-color: white; .guidScheduleMg ._city {
} color: #ff7862;
.guidScheduleMg ._flight_num, font-size: 14px;
._flight_name { text-align: center;
color: #999999; }
font-size: 14px;
font-weight: 700; .guidScheduleMg ._line {
margin-left: 15px; display: flex;
} align-items: center;
.guidScheduleMg ._flight_name { }
font-weight: lighter;
} .guidScheduleMg ._line span {
.guidScheduleMg ._margintop30 { display: inline-block;
margin-top: 30px; width: 50px;
} height: 2px;
.guidScheduleMg ._details { background-color: #ff7862;
margin-left: 20px; }
padding-top: 20px;
} .guidScheduleMg ._line span._lr {
.guidScheduleMg ._details > li { width: 8px;
border-left: 1px solid #e9e9e9; height: 8px;
position: relative; border-radius: 50%;
padding-bottom: 15px; border: solid 2px #ff7862;
padding-left: 40px; background-color: white;
padding-top: 15px; }
}
.guidScheduleMg ._d_radius { .guidScheduleMg ._flight_num,
width: 40px; ._flight_name {
height: 40px; color: #999999;
border-radius: 50%; font-size: 14px;
display: inline-block; font-weight: 700;
position: absolute; margin-left: 15px;
left: -20px; }
top: 0px;
background-color: #e95252; .guidScheduleMg ._flight_name {
text-align: center; font-weight: lighter;
line-height: 40px; }
font-size: 18px;
color: white; .guidScheduleMg ._margintop30 {
font-weight: 700; margin-top: 30px;
} }
.guidScheduleMg ._Itinerary {
color: #333333; .guidScheduleMg ._details {
font-size: 18px; margin-left: 20px;
display: flex; padding-top: 20px;
align-items: center; }
}
.guidScheduleMg ._Itinerary .iconfont { .guidScheduleMg ._details>li {
color: #666666; border-left: 1px solid #e9e9e9;
} position: relative;
.guidScheduleMg ._d_city, padding-bottom: 15px;
._d_time { padding-left: 40px;
display: inline-block; padding-top: 15px;
padding: 0 20px; }
}
.guidScheduleMg ._d_time { .guidScheduleMg ._d_radius {
padding: 0 10px 0 0; width: 40px;
} height: 40px;
.guidScheduleMg ._d_info { border-radius: 50%;
color: #666666; display: inline-block;
font-size: 14px; position: absolute;
line-height: 22px; left: -20px;
padding-top: 16px; top: 0px;
} background-color: #e95252;
.guidScheduleMg ._food_hotel { text-align: center;
padding-top: 25px; line-height: 40px;
} font-size: 18px;
.guidScheduleMg ._food_hotel ._food, color: white;
._hotel { font-weight: 700;
float: left; }
width: 50%;
} .guidScheduleMg ._Itinerary {
.guidScheduleMg ._food_hotel .iconfont::before { color: #333333;
font-size: 18px; font-size: 18px;
color: #07a767; display: flex;
} align-items: center;
.guidScheduleMg ._food_hotel ._hotel .iconfont::before { }
color: #2595ee;
} .guidScheduleMg ._Itinerary .iconfont {
.guidScheduleMg ._fh_tit { color: #666666;
font-size: 16px; }
}
.guidScheduleMg ._fist { .guidScheduleMg ._d_city,
padding-bottom: 10px; ._d_time {
} display: inline-block;
.guidScheduleMg ._meidonfxi { padding: 0 20px;
text-align: center; }
padding: 25px 0;
} .guidScheduleMg ._d_time {
.guidScheduleMg ._meidonfxi .iconfont { padding: 0 10px 0 0;
display: block; }
font-size: 50px;
color: #d6d6d6; .guidScheduleMg ._d_info {
} color: #666666;
.guidScheduleMg ._meidonfxi p { font-size: 14px;
color: #999999; line-height: 22px;
font-size: 14px; padding-top: 16px;
} }
.guidScheduleMg .el-dialog__header .el-dialog__title {
display: -webkit-box; .guidScheduleMg ._food_hotel {
-webkit-line-clamp: 1; padding-top: 25px;
-webkit-box-orient: vertical; }
overflow: hidden;
text-overflow: ellipsis; .guidScheduleMg ._food_hotel ._food,
max-width: 80%; ._hotel {
margin: 0 auto; float: left;
} width: 50%;
.guidScheduleMg .TypeOne { }
color: #47bf8c;
} .guidScheduleMg ._food_hotel .iconfont::before {
.guidScheduleMg .TypeTwo { font-size: 18px;
color: #e95252; color: #07a767;
} }
.guidScheduleMg .typeThree {
color: #666666; .guidScheduleMg ._food_hotel ._hotel .iconfont::before {
} color: #2595ee;
.guidScheduleMg .leaderName { }
position: relative;
top: -10px; .guidScheduleMg ._fh_tit {
left: 5px; font-size: 16px;
} }
.guidScheduleMg .headerImg {
width: 34px; .guidScheduleMg ._fist {
height: 34px; padding-bottom: 10px;
border-radius: 50%; }
display: inline-block;
} .guidScheduleMg ._meidonfxi {
.guidScheduleMg .headerImg img { text-align: center;
width: 100%; padding: 25px 0;
height:100%; }
border-radius:50%;
} .guidScheduleMg ._meidonfxi .iconfont {
.guidScheduleMg .grayLi img { display: block;
-webkit-filter: grayscale(1) blur(10px) !important; font-size: 50px;
} color: #d6d6d6;
.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 ._meidonfxi p {
.guidScheduleMg ._edHeight{height:400px;} color: #999999;
.guidScheduleMg .edHeight{display: block !important;height: 170px;} font-size: 14px;
.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; .guidScheduleMg .el-dialog__header .el-dialog__title {
} display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80%;
margin: 0 auto;
}
.guidScheduleMg .TypeOne {
color: #47bf8c;
}
.guidScheduleMg .TypeTwo {
color: #e95252;
}
.guidScheduleMg .typeThree {
color: #666666;
}
.guidScheduleMg .leaderName {
position: relative;
top: -10px;
left: 5px;
}
.guidScheduleMg .headerImg {
width: 34px;
height: 34px;
border-radius: 50%;
display: inline-block;
}
.guidScheduleMg .headerImg img {
width: 100%;
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 {
width: 100% !important;
}
</style> </style>
<template> <template>
<div class="flexOne guidScheduleMg"> <div class="flexOne guidScheduleMg">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<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" </el-option>
:value="item.ID"> </el-select>
</el-option> </span>
</el-select> </li>
</span> <li>
</li> <span>
<li> <em>档期类型</em>
<span> <el-select v-model="msg.ScheduleType" filterable :placeholder="$t('admin.admin_phBirthPlace')" class="w210">
<em>档期类型</em> <el-option :label="$t('system.ph_buxian')" :value='0'></el-option>
<el-select v-model="msg.ScheduleType" filterable :placeholder="$t('admin.admin_phBirthPlace')" class="w210"> <el-option label="休假" value='1'></el-option>
<el-option :label="$t('system.ph_buxian')" value='0'></el-option> <el-option label="领队" value='2'></el-option>
<el-option label="休假" value='1'></el-option> <el-option label="领队兼导游" value='3'></el-option>
<el-option label="领队" value='2'></el-option> <el-option label="导游" value='4'></el-option>
<el-option label="领队兼导游" value='3'></el-option> </el-select>
<el-option label="导游" value='4'></el-option> </span>
</el-select> </li>
</span> <li>
</li> <span>
<li> <em>时间</em>
<span> <el-date-picker v-model="msg.YearMonth" value-format="yyyy-MM" type="month" placeholder="选择月">
<em>时间</em> </el-date-picker>
<el-date-picker </span>
v-model="msg.YearMonth" </li>
value-format="yyyy-MM" <li>
type="month" <input type="button" class="normalBtn" value="新增档期"
placeholder="选择月"> @click="addMsg.LeaderId = msg.LeaderId, addShow = true,text='新增',resetForm('addMsg')" />
</el-date-picker> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
</span> @click="resetPageIndex(),getList()" />
</li> </li>
<li> </ul>
<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%">
<tr>
<th>领队姓名</th>
<th>开始日期</th>
<th>结束日期</th>
<th>档期类型</th>
<th>团队编号</th>
<th>备注</th>
<th>操作人</th>
<th>操作</th>
</tr>
<tr v-for="(item, index) in dataList">
<td>{{item.LeaderName}}</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>
</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>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<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-tooltip>
</td>
</tr>
</table>
</div>
<div class="_vMG_edit" :class="addShow==true?'edHeight':''">
<el-row>
<el-col :span="20">
<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>
</el-col>
</el-row>
<el-form class=" clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px">
<el-row>
<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>
</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>
</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>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注:" prop="eDate">
<el-input type="textarea" v-model="addMsg.Remarks"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<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>
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center >
<commonTeamInfo ref="comTeam"></commonTeamInfo>
</el-dialog>
</div> </div>
<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>
<th>备注</th>
<th>操作人</th>
<th>操作</th>
</tr>
<tr v-for="(item, index) in dataList">
<td>{{item.LeaderName}}/{{item.GuideName}} </td>
<td>{{item.StartDate}}</td>
<td>{{item.EndDate}}</td>
<td>
<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>{{item.Remarks}}</td>
<td>{{item.OperationName}}</td>
<td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<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-tooltip>
</td>
</tr>
</table>
</div>
<div class="_vMG_edit" :class="addShow==true?'edHeight':''">
<el-row>
<el-col :span="20">
<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>
</el-col>
</el-row>
<el-form class=" clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px">
<el-row>
<el-col :span="4">
<el-form-item label="名称:" prop="LeaderId">
<el-select v-model="addMsg.LeaderId" filterable :placeholder="$t('admin.admin_phBirthPlace')">
<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>
</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>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注:" prop="eDate">
<el-input type="textarea" v-model="addMsg.Remarks"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<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>
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center>
<commonTeamInfo ref="comTeam"></commonTeamInfo>
</el-dialog>
</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,
currentPage: 1, currentPage: 1,
loading: false, loading: false,
noData: false, noData: false,
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: [{
created(){ type: 'date',
let date = new Date(); required: true,
let year = date.getFullYear(); message: '请选择结束时间',
let month = date.getMonth() < 10 ? ('0' + ( date.getMonth()+1)) : date.getMonth() + 1; trigger: 'change'
this.msg.YearMonth = year + '-' + month; }],
}, },
components: { };
commonTeamInfo: commonTeamInfo
},
methods: {
goUrl: function (path, id) { // 页面跳转
this.$router.push({path:path,query:{TCIDList:id,blank:'y',isShow:false}})
}, },
removeLeader: function (obj) { // 删除安排 created() {
if (obj.ScheduleType === 1) { let date = new Date();
this.$confirm('是否删除“'+obj.LeaderName+'”的休假安排?', '提示', { let year = date.getFullYear();
confirmButtonText: '确定', let month = date.getMonth() < 10 ? ('0' + (date.getMonth() + 1)) : date.getMonth() + 1;
cancelButtonText: '取消', this.msg.YearMonth = year + '-' + month;
type: 'warning'
}).then(() => {
this.apipost('LeaderSchedule_post_RemoveHoliday', {Id:obj.Id}, res=>{
if (res.data.resultCode===1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.$message.error(res.data.message);
}
}, null)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
} else {
this.$message.error('系统参团安排,请联系合作专线人员,凭团号,在报名清单处协助处理!')
}
}, },
editLeader: function (obj) { // 修改 components: {
if (obj.ScheduleType === 1) { commonTeamInfo: commonTeamInfo
this.text='修改';
this.addMsg = JSON.parse(JSON.stringify(obj));
this.addShow=true;
} else {
this.$message.error('系统参团安排,请联系合作专线人员,凭团号,在报名清单处协助处理!')
}
}, },
submitForm: function (addMsg) {//提交创建、修改表单 methods: {
let that = this; goUrl: function (path, id) { // 页面跳转
that.$refs[addMsg].validate((valid) => { this.$router.push({
if (valid) { path: path,
that.addDC() query: {
TCIDList: id,
blank: 'y',
isShow: false
}
})
},
removeLeader: function (obj) { // 删除安排
if (obj.ScheduleType === 1) {
this.$confirm('是否删除“' + obj.LeaderName + '”的休假安排?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost('LeaderSchedule_post_RemoveHoliday', {
Id: obj.Id
}, res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.$message.error(res.data.message);
}
}, null)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
} else { } else {
console.log('error submit!!'); this.$message.error('系统参团安排,请联系合作专线人员,凭团号,在报名清单处协助处理!')
return false;
} }
}); },
}, editLeader: function (obj) { // 修改
resetForm: function (formName) {//弹出框取消 初始化谈框内表单 if (obj.ScheduleType === 1) {
this.$refs[formName].resetFields(); this.text = '修改';
this.addMsg = { this.addMsg = JSON.parse(JSON.stringify(obj));
LeaderId: this.msg.LeaderId, this.addShow = true;
StartDate: '',
EndDate: '',
Remarks: '',
}
},
addDC: function () { // 保存数据
this.loading = true;
this.apipost('LeaderSchedule_post_SetHolidaySchedule', this.addMsg, res=>{
if (res.data.resultCode===1) {
this.$message.success(res.data.message);
this.getList();
this.addShow = false;
} else { } else {
this.$message.error(res.data.message); this.$message.error('系统参团安排,请联系合作专线人员,凭团号,在报名清单处协助处理!')
} }
this.loading = false; },
}, null) submitForm: function (addMsg) { //提交创建、修改表单
}, let that = this;
getLeaderList: function () { // 获取领队下拉列表 that.$refs[addMsg].validate((valid) => {
this.apipost('leader_post_GetList', {Type: 0}, res=>{ if (valid) {
if (res.data.resultCode===1) { that.addDC()
this.leaderList = res.data.data; } else {
this.msg.LeaderId = this.addMsg.LeaderId = this.leaderList[0].ID; console.log('error submit!!');
this.getList(); return false;
} else { }
this.$message.error(res.data.message); });
},
resetForm: function (formName) { //弹出框取消 初始化谈框内表单
this.$refs[formName].resetFields();
this.addMsg = {
LeaderId: 0,
StartDate: '',
EndDate: '',
Remarks: '',
} }
}, null) },
}, addDC: function () { // 保存数据
getList: function() { // 获取数据列表 this.loading = true;
this.loading = true; this.apipost('LeaderSchedule_post_SetHolidaySchedule', this.addMsg, res => {
//获取列表数据 if (res.data.resultCode === 1) {
this.apipost( this.$message.success(res.data.message);
"LeaderSchedule_post_GetLeaderGuideSchedulePageList", this.getList();
this.msg, this.addShow = false;
res => {
if (res.data.resultCode == 1) {
this.LeaderName = res.data.data.pageData.LeaderName;
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 { } else {
this.Error(res.data.message); this.$message.error(res.data.message);
} }
this.loading = false; this.loading = false;
}, }, null)
err => {} },
); getLeaderList: function () { // 获取领队下拉列表
}, this.apipost('leader_post_GetList', {
resetPageIndex: function() { Type: 0
//查询初始化页码 }, res => {
this.msg.pageIndex = 1; if (res.data.resultCode === 1) {
this.currentPage = 1; this.leaderList = res.data.data;
this.getList();
} else {
this.$message.error(res.data.message);
}
}, null)
},
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.total = res.data.data.count;
this.dataList = res.data.data.pageData;
this.noData = !this.total > 0;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
resetPageIndex: function () {
//查询初始化页码
this.msg.pageIndex = 1;
this.currentPage = 1;
},
handleCurrentChange: function (val) {
//翻页功能按钮
this.msg.pageIndex = val;
this.getList();
}
}, },
handleCurrentChange: function(val) { mounted() {
//翻页功能按钮 if (this.$route.query.TCID) {
this.msg.pageIndex = val; this.msg.TCID = this.$route.query.TCID;
this.getList(); }
} this.getLeaderList();
},
mounted() {
if(this.$route.query.TCID)
{
this.msg.TCID=this.$route.query.TCID;
} }
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