Commit a1993a9e authored by 黄奎's avatar 黄奎

英语翻译文件

parents d21a80e7 f16b50d8
......@@ -21,7 +21,9 @@ export default defineComponent({
const menList = useMenus.getMenus().filter(x=>{
return x.id == 16
})
data.menus = !inject(DirtionmaryHelper.DOMAIN_NAME)?menList:useMenus.getMenus()
// data.menus = !inject(DirtionmaryHelper.DOMAIN_NAME)?menList:useMenus.getMenus()
if(inject(DirtionmaryHelper.DOMAIN_NAME)=='sell.oytour') data.menus = menList
else data.menus = useMenus.getMenus()
return {...toRefs(data)}
}
......
<template>
<div class="rounded-borders bg-white row items-center q-pa-md">
<q-field :class="$q.platform.is.desktop ? '' : 'q-mb-md'" stack-label :label="$t('daterange')" standout class="q-ml-lg col-2" style="min-width: 190px" dense>
<q-field :class="$q.platform.is.desktop ? '' : 'q-mb-md'" stack-label :label="$t('daterange')" standout class="q-ml-lg col-2" style="min-width: 190px" dense clearable v-model="dateRangeFormat" @clear="getFormat">
<div class="self-center full-width no-outline" tabindex="0">{{ dateRangeFormat }}</div>
<q-popup-proxy :offset="[0, 10]" ref="qDateProxy">
<q-date v-model="dateRange" :options="optionsFn" range mask="YYYY/MM/DD" landscape
......@@ -30,6 +30,12 @@ export default defineComponent({
search.SelectStartDate = dateRange.from
search.SelectEndDate = dateRange.to
const methods = {
getFormat() {
if(!dateRangeFormat.value) {
search.SelectStartDate = ''
search.SelectEndDate = ''
}
},
setQueryHandler(){
realSearch.SelectStartDate=search.SelectStartDate
realSearch.SelectEndDate=search.SelectEndDate
......@@ -50,7 +56,7 @@ export default defineComponent({
search,
dateRange,
dateRangeFormat
}
}
})
......
......@@ -456,7 +456,7 @@ export function getLangs() {
langName:"中文简体"
}
const enUs:SitLang={
langLocale:"enUs",
langLocale:"enUS",
langName:"English"
}
const koHG:SitLang={
......@@ -475,7 +475,7 @@ export function getLangs() {
if(!getDomainName()){
langs.push(zhSw)
}else{
langs.push(zhTw,koHG,jaRB)
langs.push(zhTw,koHG,enUs,jaRB)
}
return langs
......
......@@ -67,10 +67,10 @@ export function compareArray(arrA: any[], arrB: any[]) {
export function getDomainName() {
let domainNameUrl = window.location.hostname;
if(domainNameUrl=='localhost'){
return true
return 'pic.oytour'
}else if(domainNameUrl=='pic.oytour.com'){
return true
return 'pic.oytour'
}else if(domainNameUrl=='sell.oytour.com'){
return false
return 'sell.oytour'
}
}
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