Commit 06a68a23 authored by 黄媛媛's avatar 黄媛媛

uodate

parent 71922da9
......@@ -12,4 +12,31 @@ export const pub={
home:'トップページ',
hotelList:'ホテル一覧',
hotelorder:'ホテル予約',
searchmore:'上位検索',
search:'検索',
add:'新規',
hotelname:'ホテル名',
country:'国家',
nolimit:'すべて',
hotelState:'ホテル状態',
normal:'正常',
delete:'削除',
hotelNum:'ホテル番号',
area:'地域',
star:'ホテル星',
UpdateByName:'修正者',
UpdateTime:'修正時間',
update:'修正',
roomList:'型の一覧',
yulan:'プレビュー',
hotel:'ホテル',
roomtype:'部屋タイプ',
fangxing:'房型タイプ',
state:'状态',
cancel:'キャンセル',
rzStartTime:'入居開始日時',
rzEndTime:'入居終了日時',
order:'注文番号',
hotelInfo:'ホテル情報',
}
\ No newline at end of file
......@@ -12,4 +12,30 @@ export const pub={
home:'首页',
hotelList:'酒店列表',
hotelorder:'酒店订单',
searchmore:'高级搜索',
search:'查询',
add:'新增',
hotelname:'酒店名',
country:'国家',
nolimit:'不限',
hotelState:'酒店状态',
normal:'正常',
delete:'删除',
hotelNum:'酒店编号',
area:'地区',
star:'酒店星级',
UpdateByName:'更新人',
UpdateTime:'更新时间',
update:'修改',
roomList:'房型列表',
yulan:'预览',
hotel:'酒店',
roomtype:'房间类型',
fangxing:'房型',
state:'状态',
cancel:'取消',
rzStartTime:'开始入住日期',
rzEndTime:'入住结束日期',
order:'订单号',
hotelInfo:'酒店信息',
}
\ No newline at end of file
......@@ -6,14 +6,14 @@
<img src="../assets/img/b1.png" alt="">
<div>
<p class="f22"></p>
<p style="margin-top:10px">ホテル一覧</p>
<p style="margin-top:10px">{{$t('pub.hotelList')}}</p>
</div>
</li>
<li class="liItem" title="酒店订单" @click="goUrl('HotelOrder')">
<img src="../assets/img/b2.png" alt="">
<div>
<p class="f22"></p>
<p style="margin-top:10px">ホテル予約</p>
<p style="margin-top:10px">{{$t('pub.hotelorder')}}</p>
</div>
</li>
</ul>
......
......@@ -139,26 +139,26 @@
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="160px">
<div class="clearfix">
<div class="resource-baseinfo" style="width:500px;margin:30px 0 0 30px;float:left">
<el-form-item label="ホテル名" prop="SHotelName" title="酒店名称">
<el-form-item :label="$t('pub.hotelname')" prop="SHotelName" title="酒店名称">
<el-input type="text" v-model="addMsg.SHotelName" maxlength="100" class="w300"></el-input>
</el-form-item>
<el-form-item label="国家">
<el-select size="small" v-model="addMsg.SCountryId" class="w300" placeholder="国家"
<el-form-item :label="$t('pub.country')">
<el-select size="small" v-model="addMsg.SCountryId" class="w300" :placeholder="$t('pub.country')"
@change="getProvinceList(addMsg.SCountryId,1,1)" filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
<el-form-item label="都道府县">
<el-select size="small" v-model="addMsg.SProvinceId" class="w300" placeholder="都道府县"
@change="getProvinceList(addMsg.SProvinceId,2,1)" filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
<el-form-item label="市" style="display:none;">
<el-select size="small" v-model="addMsg.SCityId" class="w300" placeholder="市" filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
......@@ -177,8 +177,8 @@
</el-input>
</el-form-item>
<el-form-item label="評価" title="酒店星级">
<el-select class="w300" placeholder="决断" v-model="addMsg.SHotelStar">
<el-option label="决断" :value='SelectDefaultValue'></el-option>
<el-select class="w300" :placeholder="$t('pub.nolimit')" v-model="addMsg.SHotelStar">
<el-option :label="$t('pub.nolimit')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in starslevel" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
......
<template>
<div class="assetsList">
<div class="routerTitle">
<span class="pageTitle">ホテル一覧</span>
<span class="pageTitle">{{$t('pub.hotelList')}}</span>
<span @click="morequery = !morequery" style="display:inline-flex;align-items:center;cursor: pointer;"
class="f12 cd6">
<span style="margin-right:5px">上位検索</span>
<span style="margin-right:5px">{{$t('pub.searchmore')}}</span>
<img v-show="!morequery" style="width:12px;height:12px;" src="../../assets/img/more.png" alt="" />
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="" />
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">検索</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">{{$t('pub.search')}}</span>
<span @click="addHotel()" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="" />
新規</span>
{{$t('pub.add')}}</span>
</div>
<div class="padContent">
<ul v-show="morequery" class="queryul">
<li>
<el-input class="w200" size="small" v-model="msg.SHotelName" placeholder="ホテル名"></el-input>
<el-input class="w200" size="small" v-model="msg.SHotelName" :placeholder="$t('pub.hotelname')"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.SCountryId" placeholder="国家" @change="getProvinceList(msg.SCountryId,1)"
<el-select size="small" v-model="msg.SCountryId" :placeholder="$t('pub.country')" @change="getProvinceList(msg.SCountryId,1)"
filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</li>
<li>
<el-select size="small" v-model="msg.SProvinceId" placeholder="省" @change="getProvinceList(msg.SProvinceId,2)"
filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</li>
<li style="display:none;">
<el-select size="small" v-model="msg.SCityId" placeholder="市" filterable>
<el-option label="すべて" :value='0'></el-option>
<el-option :label="$t('pub.nolimit')" :value='0'></el-option>
<el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</li>
<li>
<el-select size="small" v-model="msg.Status" placeholder="ホテル状態">
<el-option label="すべて" :value='-1'></el-option>
<el-option label="正常" :value='0'></el-option>
<el-option label="削除" :value='1'></el-option>
<el-select size="small" v-model="msg.Status" :placeholder="$t('pub.hotelState')">
<el-option :label="$t('pub.nolimit')" :value='-1'></el-option>
<el-option :label="$t('pub.normal')" :value='0'></el-option>
<el-option :label="$t('pub.delete')" :value='1'></el-option>
</el-select>
</li>
</ul>
<vxe-table stripe style="margin-top:15px" :loading="loading" :data="dataList">
<vxe-table-column field="SID" title="ホテル番号" width="90" align="center"></vxe-table-column>
<vxe-table-column field="Name" title="ホテル名" width="290" align="left">
<vxe-table-column field="SID" :title="$t('pub.hotelNum')" width="90" align="center"></vxe-table-column>
<vxe-table-column field="Name" :title="$t('pub.hotelname')" width="290" align="left">
<template v-slot="{ row }">
<span>{{ row.SHotelName }}</span>
</template>
</vxe-table-column>
<vxe-table-column field="Name" title="地域" width="120" align="center">
<vxe-table-column field="Name" :title="$t('pub.area')" width="120" align="center">
<template v-slot="{ row }">
<span>{{row.SCountryName}}-{{row.SProvinceName}}
<!---{{row.SCityName}}-->
</span>
</template>
</vxe-table-column>
<vxe-table-column field="SHotelStar" title="ホテル星" width="100" align="center"></vxe-table-column>
<vxe-table-column field="UpdateByName" title="修正者" width="120" align="center"></vxe-table-column>
<vxe-table-column field="Name" title="修正時間" align="center">
<vxe-table-column field="SHotelStar" :title="$t('pub.star')" width="100" align="center"></vxe-table-column>
<vxe-table-column field="UpdateByName" :title="$t('pub.UpdateByName')" width="120" align="center"></vxe-table-column>
<vxe-table-column field="Name" :title="$t('pub.UpdateTime')" align="center">
<template v-slot="{row}">
<span>{{getDate(row.UpdateTime)}}</span>
</template>
</vxe-table-column>
<vxe-table-column field="StatusStr" title="ホテル状態" align="center" ></vxe-table-column>
<vxe-table-column field="StatusStr" :title="$t('pub.hotelState')" align="center" ></vxe-table-column>
<vxe-table-column field="address" title="操作" align="center" width="150">
<template v-slot="{ row }">
<el-tooltip class="item" effect="dark" content="修正" placement="top">
<el-tooltip class="item" effect="dark" :content="$t('pub.update')" placement="top">
<el-button type="success" @click="Edit(row)" icon="iconfont iconxiugaiziliao" circle style="padding:5px;">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="房型列表" placement="top">
<el-tooltip class="item" effect="dark" :content="$t('pub.roomList')" placement="top">
<el-button type="primary" @click="goUrl(row)" icon="iconfont iconicon-" circle style="padding:5px;">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="プレビュー" placement="top" title="预览">
<el-tooltip class="item" effect="dark" :content="$t('pub.yulan')" placement="top" title="预览">
<el-button type="danger" @click="goPreviewUrl(row)" icon="iconfont iconyulan" circle
style="padding:5px;"></el-button>
</el-tooltip>
......
......@@ -53,60 +53,60 @@
<template>
<div class="HotelOrder">
<div class="routerTitle">
<span class="pageTitle" title="酒店订单">ホテル注文</span>
<span class="pageTitle" title="酒店订单">{{$t('pub.hotelorder')}}</span>
<span @click="morequery = !morequery" style="display:inline-flex;align-items:center;cursor: pointer;"
class="f12 cd6">
<span style="margin-right:5px">上位検索</span>
<span style="margin-right:5px">{{$t('pub.searchmore')}}</span>
<img v-show="!morequery" style="width:12px;height:12px;" src="../../assets/img/more.png" alt="" />
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="" />
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">検索</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">{{$t('pub.search')}}</span>
</div>
<div class="padContent">
<ul v-show="morequery" class="queryul">
<li>
<el-select size="small" v-model="msg.HotelId" placeholder="ホテル" clearable filterable
<el-select size="small" v-model="msg.HotelId" :placeholder="$t('pub.hotel')" clearable filterable
@change="getRoomIdList(msg.HotelId)">
<el-option label="决断" :value="0"></el-option>
<el-option :label="$t('pub.nolimit')" :value="0"></el-option>
<el-option v-for="item in HotelList" :key="item.SID" :label="item.SHotelName" :value="item.SID">
</el-option>
</el-select>
</li>
<li v-if="isShowRoom">
<el-select size="small" v-model="msg.RoomId" placeholder="部屋タイプ" clearable filterable>
<el-option label="决断" :value="0"></el-option>
<el-select size="small" v-model="msg.RoomId" :placeholder="$t('pub.roomtype')" clearable filterable>
<el-option :label="$t('pub.nolimit')" :value="0"></el-option>
<el-option v-for="item in roomIdList" :key="item.Id" :label="item.RoomTypeName" :value="item.Id">
</el-option>
</el-select>
</li>
<li>
<el-select size="small" v-model="msg.RoomType" placeholder="房型タイプ" clearable filterable>
<el-select size="small" v-model="msg.RoomType" :placeholder="$t('pub.fangxing')" clearable filterable>
<el-option v-for="item in RoomTypeList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<el-select clearable size="small" v-model="msg.OrderStatus" placeholder="状态">
<el-option label="决断" :value="0"></el-option>
<el-option label="正常" :value="1"></el-option>
<el-option label="キャンセル" :value="2"></el-option>
<el-select clearable size="small" v-model="msg.OrderStatus" :placeholder="$t('pub.state')">
<el-option :label="$t('pub.nolimit')" :value="0"></el-option>
<el-option :label="$t('pub.normal')" :value="1"></el-option>
<el-option :label="$t('pub.cancel')" :value="2"></el-option>
</el-select>
</li>
<li>
<el-date-picker size="mini" v-model="msg.StartTime" :picker-options="beforeCheck" type="date"
value-format="yyyy-MM-dd" placeholder="入居開始日時">
value-format="yyyy-MM-dd" :placeholder="$t('pub.rzStartTime')">
</el-date-picker>
</li>
<li>
<el-date-picker size="mini" v-model="msg.EndTime" :picker-options="afterCheck" type="date"
value-format="yyyy-MM-dd" placeholder="入居終了日時">
value-format="yyyy-MM-dd" :placeholder="$t('pub.rzEndTime')">
</el-date-picker>
</li>
</ul>
<table class="commonOrderTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0">
<tr>
<th title="订单号" style="width:75px" class="tdCenter">注文番号</th>
<th title="酒店信息" style="width:140px" class="tdCenter">ホテル情報</th>
<th title="订单号" style="width:75px" class="tdCenter">{{$t('pub.order')}}</th>
<th title="酒店信息" style="width:140px" class="tdCenter">{{$t('pub.hotelInfo')}}</th>
<th title="订房数量" style="width:60px" class="tdCenter">注文数</th>
<th title="总金额" style="width:60px" class="tdCenter">総額</th>
<th title="入住信息" style="width:130px" class="tdCenter">入居情報</th>
......
......@@ -4,11 +4,11 @@
<span class="pageTitle">お部屋タイプ</span>
<span @click="morequery = !morequery" style="display:inline-flex;align-items:center;cursor: pointer;"
class="f12 cd6">
<span style="margin-right:5px">上位検索</span>
<span style="margin-right:5px">{{$t('pub.searchmore')}}</span>
<img v-show="!morequery" style="width:12px;height:12px;" src="../../assets/img/more.png" alt="" />
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="" />
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">検索</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">{{$t('pub.search')}}</span>
<span @click="addHotel()" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="" />
新規</span>
......@@ -35,7 +35,7 @@
</li>
<li>
<el-select clearable size="small" v-model="msg.RoomStatus" placeholder="状態" title="状態">
<el-option label="决断" :value="0"></el-option>
<el-option :label="$t('pub.nolimit')" :value="0"></el-option>
<el-option label="やむを得ず" :value="1"></el-option>
<el-option label="下機" :value="2"></el-option>
</el-select>
......@@ -46,7 +46,7 @@
<th title="房型" style="width:100px;" class="tdCenter">房型</th>
<th title="类型" style="width:100px;" class="tdCenter">タイプ</th>
<th title="今日卖价" style="width:80px;" class="tdCenter">今日の料金</th>
<th title="状态" style="width:80px;" class="tdCenter">状态</th>
<th title="状态" style="width:80px;" class="tdCenter">{{$t('pub.state')}}</th>
<th title="图片" style="width:80px;" class="tdCenter">写真</th>
<th title="创建人/创建时间" style="width:80px;" class="tdCenter">操作者/時間</th>
<th title="操作" style="width:150px;" class="tdCenter">操作</th>
......
......@@ -21,7 +21,7 @@
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="ChangeLan('Japanese')">日语 <i v-if="language=='Japanese'" class="iconfont icongou"></i></el-dropdown-item>
<el-dropdown-item @click.native="ChangeLan('zh-CN')">中文 <i v-if="language=='zh-CN'" class="iconfont icongouu"></i></el-dropdown-item>
<el-dropdown-item @click.native="ChangeLan('zh-CN')">中文 <i v-if="language=='zh-CN'" class="iconfont icongou"></i></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
......@@ -42,7 +42,7 @@
<el-menu-item index="0" route="/home" title="首页">
<div @click="goHome" class="menuDiv">
<i class="iconfont icon-shouye"></i>
<span slot="title">{{$t('pub.hello')}}</span>
<span slot="title">{{$t('pub.home')}}</span>
</div>
</el-menu-item>
<el-menu-item index="1" title="酒店列表">
......@@ -78,6 +78,14 @@
}
},
created() {
let language = localStorage.language
if (!language) {
this.language = 'zh-CN';
this.$i18n.locale = 'zh-CN';
} else {
this.language = language
this.$i18n.locale = language;
}
this.menuheight = document.body.clientHeight - 220;
if (!this.getLocalStorage()) {
this.$router.push({
......
......@@ -96,14 +96,7 @@
}
},
created() {
let language = localStorage.language
if (!language) {
this.language = 'zh-CN';
this.$i18n.locale = 'zh-CN';
} else {
this.language = language
this.$i18n.locale = language;
}
this.minHeight = document.body.clientHeight;
if (!this.getLocalStorage()) {
this.$router.push({
......
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