Bläddra i källkod

画面日本語修正

libin 2 år sedan
förälder
incheckning
81e15406ff

+ 1 - 1
public/index.html

@@ -201,7 +201,7 @@
 		    <div id="loader"></div>
 		    <div class="loader-section section-left"></div>
 		    <div class="loader-section section-right"></div>
-		    <div class="load_title">正在加载系统资源,请耐心等待</div>
+		    <div class="load_title">システムリソースをロード中です。しばらくお待ちください。</div>
         </div>
 	</div>
   </body>

+ 11 - 11
src/components/FileUpload/index.vue

@@ -15,13 +15,13 @@
       ref="upload"
     >
       <!-- 上传按钮 -->
-      <el-button size="mini" type="primary">选取文件</el-button>
+      <el-button size="mini" type="primary">ファイル選択</el-button>
       <!-- 上传提示 -->
       <div class="el-upload__tip" slot="tip" v-if="showTip">
-        请上传
-        <template v-if="fileSize"> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b> </template>
-        <template v-if="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b> </template>
-        的文件
+        アップロードしてください
+        <template v-if="fileSize"> サイズを <b style="color: #f56c6c">{{ fileSize }}MB超えない</b> </template>
+        <template v-if="fileType"> フォーマットは <b style="color: #f56c6c">{{ fileType.join("/") }}</b> </template>
+        です
       </div>
     </el-upload>
 
@@ -32,7 +32,7 @@
           <span class="el-icon-document"> {{ getFileName(file.name) }} </span>
         </el-link>
         <div class="ele-upload-list__item-content-action">
-          <el-link :underline="false" @click="handleDelete(index)" type="danger">除</el-link>
+          <el-link :underline="false" @click="handleDelete(index)" type="danger">除</el-link>
         </div>
       </li>
     </transition-group>
@@ -125,7 +125,7 @@ export default {
           return false;
         });
         if (!isTypeOk) {
-          this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`);
+          this.$modal.msgError(`ファイル形式が正しくありません。${this.fileType.join("/")}フォーマットファイルをアップロードしてください!!`);
           return false;
         }
       }
@@ -133,21 +133,21 @@ export default {
       if (this.fileSize) {
         const isLt = file.size / 1024 / 1024 < this.fileSize;
         if (!isLt) {
-          this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB!`);
+          this.$modal.msgError(`アップロードするファイルのサイズは ${this.fileSize} MBを超えることはできません!`);
           return false;
         }
       }
-      this.$modal.loading("正在上传文件,请稍候...");
+      this.$modal.loading("ファイルをアップロードしています。お待ちください...");
       this.number++;
       return true;
     },
     // 文件个数超出
     handleExceed() {
-      this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个!`);
+      this.$modal.msgError(`アップロードできるファイル数は ${this.limit} です!`);
     },
     // 上传失败
     handleUploadError(err) {
-      this.$modal.msgError("上传图片失败,请重试");
+      this.$modal.msgError("アップロードに失敗しました。もう一度お試しください");
       this.$modal.closeLoading()
     },
     // 上传成功回调

+ 5 - 5
src/components/ImageUpload/index.vue

@@ -155,26 +155,26 @@ export default {
       }
 
       if (!isImg) {
-        this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`);
+        this.$modal.msgError(`ファイル形式が正しくありません。${this.fileType.join("/")}画像フォーマットファイルをアップロードしてください!`);
         return false;
       }
       if (this.fileSize) {
         const isLt = file.size / 1024 / 1024 < this.fileSize;
         if (!isLt) {
-          this.$modal.msgError(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+          this.$modal.msgError(`アップロードするアバター画像のサイズは ${this.fileSize} MB!を超えることはできません `);
           return false;
         }
       }
-      this.$modal.loading("正在上传图片,请稍候...");
+      this.$modal.loading("写真をアップロードしています。お待ちください...");
       this.number++;
     },
     // 文件个数超出
     handleExceed() {
-      this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个!`);
+      this.$modal.msgError(`アップロードできるファイル数は${this.limit}です`);
     },
     // 上传失败
     handleUploadError() {
-      this.$modal.msgError("上传图片失败,请重试");
+      this.$modal.msgError("画像のアップロードに失敗しました。もう一度お試しください");
       this.$modal.closeLoading();
     },
     // 预览

+ 6 - 6
src/lang/ja.js

@@ -85,7 +85,7 @@ export default {
 	table: {
 		// 商品管理
 		SerialNumber: 'No',
-		commodityType: '分類',
+		commodityType: 'テーマ',
 		commodityName: 'ツアー名',
 		adultPrice: '料金',
 		childPrice: '子供料金',
@@ -286,8 +286,8 @@ export default {
 		rebackContent2:'返事評価',
 		rebackUserName:'返事人名前',
 		// 商品分类
-		commodityTypeTitel1:'ツアー分類追加',
-		commodityTypeTitel2:'ツアー分類変更',
+		commodityTypeTitel1:'ツアーテーマ追加',
+		commodityTypeTitel2:'ツアーテーマ変更',
 		// 分销
 		customerDistributionRecordTitel1:'顧客配分情報を見る',
 		customerDistributionRecordTitel2:'配分アワード設定',
@@ -318,7 +318,7 @@ export default {
 		statisTitel1:'ツアー別売上ランキング',
 		statisTitel2:'月ごとの売上ランキング',
 		statisTitel3:'出発地ごとの売上ランキング',
-		statisTitel4:'分類別売上ランキング',
+		statisTitel4:'テーマ別売上ランキング',
 		statisTitel5:'会社の総売上高',
 		salesVolume:'売上(円)',
 		// 消息
@@ -396,7 +396,7 @@ export default {
 		isPreferred:'厳選こだわりするかどうか選択してください',
 		beginDate:'開始日を選択してください',
 		endDate:'終了日を選択してください',
-		commodityType:'ツアー分類を選択してください',
+		commodityType:'ツアーテーマを選択してください',
 		commodityName:'ツアー名を入力してください',
 		departurePlace:'出発地を入力してください',
 		adultPrice:'大人料金を入力してください',
@@ -499,7 +499,7 @@ export default {
 		isDelete2:'現在のバス会社データを削除してもよろしいですか?',
 		// 消息
 		isDelete3:'現在の通知メッセージのデータを削除してもよろしいですか?',
-		isDelete4:'現在の商品分類情報のデータ項目の削除を確認しますか?',
+		isDelete4:'現在の商品テーマ情報のデータ項目の削除を確認しますか?',
 		// 系统-用户管理
 		StatusChange1:'有効',
 		StatusChange2:'無効',

+ 1 - 1
src/layout/components/InnerLink/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div :style="'height:' + height" v-loading="loading" element-loading-text="正在加载页面,请稍候!">
+  <div :style="'height:' + height" v-loading="loading" element-loading-text="ページを読み込んでいます。お待ちください。">
     <iframe
       :id="iframeId"
       style="width: 100%; height: 100%"

+ 1 - 1
src/main.js

@@ -94,7 +94,7 @@ new Vue({
   i18n,
   render: h => h(App),
   mounted(){
-	let lang =  Cookies.get('lang') || 'en'
+	let lang =  Cookies.get('lang') || 'ja_JP'
 	this.$i18n.locale = lang
 	this.$store.dispatch('app/setLanguage', lang)
   }

+ 2 - 2
src/utils/request.js

@@ -131,7 +131,7 @@ service.interceptors.response.use(res => {
 
 // 通用下载方法
 export function download(url, params, filename) {
-  downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
+  downloadLoadingInstance = Loading.service({ text: "データをダウンロード中です。しばらくお待ちください。", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
   return service.post(url, params, {
     transformRequest: [(params) => { return tansParams(params) }],
     headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
@@ -150,7 +150,7 @@ export function download(url, params, filename) {
     downloadLoadingInstance.close();
   }).catch((r) => {
     console.error(r)
-    Message.error('下载文件出现错误,请联系管理员!')
+    Message.error('ダウンロード中にエラーが発生しました。管理者に連絡してください。')
     downloadLoadingInstance.close();
   })
 }

+ 65 - 83
src/views/commodity/commodity/index.vue

@@ -292,29 +292,28 @@
     <!-- 添加或修改商品信息管理对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px" label-position="left" style="display:flex;flex-wrap:wrap;justify-content:space-around;">
-		<el-form-item :label="$t('table.commodityType')" prop="typeId" style="width:500px">
-			<el-select :disabled='!isDetail' v-model="form.typeId" :placeholder="$t('placeholder.commodityType')" >
-				<el-option
-					v-for="item,index in commodityTypeList"
-					:key="index"
-					:label="item.typeName"
-					:value="item.id">
-				</el-option>
-			</el-select>
-		</el-form-item>
-        <el-form-item :label="$t('table.commodityName')" prop="commodityName" style="width:500px">
-          <el-input :disabled='!isDetail' v-model="form.commodityName" :placeholder="$t('placeholder.commodityName')" />
+        <el-form-item :label="$t('table.commodityType')" prop="typeSelected"  label-width="160px" style="width:800px;margin-right:270px">
+          <el-checkbox-group v-model="form.typeSelected" :disabled='!isDetail'>
+            <el-checkbox
+              v-for="item,index in commodityTypeList"
+              :key="index"
+              :label="item.id">{{ item.typeName }}
+            </el-checkbox>
+          </el-checkbox-group>
         </el-form-item>
-        <el-form-item :label="$t('table.departurePlace')" prop="departurePlace" style="width:500px">
+        <el-form-item :label="$t('table.commodityName')" prop="commodityName"  label-width="160px" style="width:800px;margin-right:270px">
+          <el-input :disabled='!isDetail' v-model="form.commodityName" type="textarea" :placeholder="$t('placeholder.commodityName')" />
+        </el-form-item>
+        <el-form-item :label="$t('table.departurePlace')" prop="departurePlace"  label-width="160px" style="width:800px;margin-right:270px">
           <el-input :disabled='!isDetail' v-model="form.departurePlace" type="text" :placeholder="$t('placeholder.departurePlace')" />
         </el-form-item>
-        <el-form-item :label="$t('table.adultPrice')" prop="adultPrice" style="width:500px">
+        <el-form-item :label="$t('table.adultPrice')" prop="adultPrice"  label-width="160px" style="width:800px;margin-right:270px">
           <el-input :disabled='!isDetail' v-model="form.adultPrice" :placeholder="$t('placeholder.adultPrice')" />
         </el-form-item>
-        <el-form-item :label="$t('table.childPrice')" prop="childPrice" style="width:500px">
+        <el-form-item :label="$t('table.childPrice')" prop="childPrice"  label-width="160px" style="width:800px;margin-right:270px">
           <el-input :disabled='!isDetail' v-model="form.childPrice" :placeholder="$t('placeholder.childPrice')" />
         </el-form-item>
-        <el-form-item :label="$t('table.stock')" prop="stock" style="width:500px">
+        <el-form-item :label="$t('table.stock')" prop="stock"  label-width="160px" style="width:800px;margin-right:270px">
           <el-input :disabled='!isDetail' v-model="form.stock" :placeholder="$t('placeholder.stock')" />
         </el-form-item>
         <el-form-item :label="$t('dialog.childPriceExplain')" prop="childPriceExplain" label-width="160px" style="width:800px;margin-right:270px">
@@ -326,11 +325,11 @@
         <el-form-item :label="$t('dialog.commodityImg')" label-width="160px" style="width:800px;margin-right:270px" prop='commodityImg'>
           <image-upload v-model="form.commodityImg" :limit='5'/>
         </el-form-item>
-		<el-form-item :label="$t('dialog.isCoupon')" label-width="250px" style="width:800px;margin-right:270px">
+        <el-form-item :label="$t('dialog.isCoupon')" label-width="250px" style="width:800px;margin-right:270px">
           <el-radio-group :disabled='!isDetail' v-model="form.isCoupon">
-			<el-radio :label="'1'">{{$t('dialog.yes')}}</el-radio>
-			<el-radio :label="'0'">{{$t('dialog.no')}}</el-radio>
-		  </el-radio-group>
+            <el-radio :label="'1'">{{$t('dialog.yes')}}</el-radio>
+            <el-radio :label="'0'">{{$t('dialog.no')}}</el-radio>
+          </el-radio-group>
         </el-form-item>
 		<el-row v-if="form.isCoupon" class="mb8" :gutter="10" style="width:800px;margin-right:270px;margin-bottom:40px">
           <!-- <el-col :span="1.5">
@@ -506,24 +505,6 @@
             <div v-else v-html="form.remark" ></div>
           </el-form-item>
         </el-col> 
-        <!-- <el-form-item label="购买数量" prop="saleNum">
-          <el-input v-model="form.saleNum" placeholder="请输入购买数量" />
-        </el-form-item>
-        <el-form-item label="是否推荐:0-否 1-是" prop="isRecommend">
-          <el-input v-model="form.isRecommend" placeholder="请输入是否推荐:0-否 1-是" />
-        </el-form-item>
-        <el-form-item label="是否优选:0-否 1-是" prop="isPreferred">
-          <el-input v-model="form.isPreferred" placeholder="请输入是否优选:0-否 1-是" />
-        </el-form-item>
-        <el-form-item label="bus公司id" prop="deptId">
-          <el-input v-model="form.deptId" placeholder="请输入bus公司id" />
-        </el-form-item>
-        <el-form-item label="删除标志:0-正常 1-删除" prop="delFlag">
-          <el-input v-model="form.delFlag" placeholder="请输入删除标志:0-正常 1-删除" />
-        </el-form-item>
-        <el-form-item label="备注" prop="remark">
-          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
-        </el-form-item> -->
         
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -618,42 +599,23 @@ export default {
       title: "",
       // 是否显示弹出层
       open: false,
-	  isDetail: true,
+	    isDetail: true,
       // 查询参数
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-		typeId: null,
-		isRecommend: null,
+        typeId: null,
+        isRecommend: null,
         isPreferred: null,
 		'params[beginDate]':null,
 		'params[endDate]':null,
 
-		// periodStart: null,
-		// periodEnd: null,
-        // commodityName: null,
-        // departurePlace: null,
-        // adultPrice: null,
-        // childPrice: null,
-        // stock: null,
-        // childPriceExplain: null,
-        // faceImg: null,
-        // commodityImg: null,
-        // isCoupon: null,
-        // periodWeek: null,
-        // targetPeopleNum: null,
-        // advancePeriod: null,
-        // attention: null,
-        // specification: null,
-        // saleNum: null,
-        // status: null,
-        // deptId: null,
       },
       // 表单参数
       form: {},
       // 表单校验
       rules: {
-        typeId: [
+        typeSelected: [
           { required: true, message: this.$t('rules.typeId'), trigger: "change" }
         ],
         commodityName: [
@@ -721,6 +683,9 @@ export default {
       });
 	  listCommodityType().then(response => {
         this.commodityTypeList = response.rows;
+        for(let i=0;i<this.commodityTypeList.length;i++){
+          this.commodityTypeList[i].id = this.commodityTypeList[i].id.toString(10);
+        }
         // this.total = response.total;
         // this.loading = false;
       });
@@ -735,6 +700,7 @@ export default {
       this.form = {
         id: null,
         typeId: null,
+        typeSelected: [],
         commodityName: null,
         departurePlace: null,
         adultPrice: null,
@@ -805,10 +771,10 @@ export default {
     //   this.resetForm("queryForm");
 	  this.queryParams = {
 		pageNum: 1,
-        pageSize: 10,
+    pageSize: 10,
 		typeId: null,
 		isRecommend: null,
-        isPreferred: null,
+    isPreferred: null,
 		'params[beginDate]':null,
 		'params[endDate]':null,
 	  }
@@ -835,15 +801,26 @@ export default {
       const id = row.id || this.ids
       getCommodity(id).then(response => {
         this.form = response.data;
-		if(this.form.periodWeek.indexOf(',')>0){
-			this.form.periodWeek = this.form.periodWeek.split(",");
-		}else{
-			this.form.periodWeek = [this.form.periodWeek]
-		}
-        this.tCommodityJourneyInformationList = response.data.commodityJourneyInformationList;
-		this.tCommodityCouponList = response.data.commodityCouponList;
-        this.open = true;
-        this.title = this.$t('dialog.CommodityTitel2');
+      if(this.form.periodWeek.indexOf(',')>0){
+
+        this.form.periodWeek = this.form.periodWeek.split(",");
+      }else{
+        this.form.periodWeek = [this.form.periodWeek]
+      }
+      if(this.form.typeSelected.indexOf(',')>0){
+        this.form.typeSelected = this.form.typeSelected.split(",");
+        // let newArray = [];
+        // for (let j=0;j<stri.length; j++){
+        //   newArray.push(stri[j]);
+        // }
+        // this.form.typeSelected = newArray;
+      }else{
+        this.form.typeSelected = [this.form.typeSelected]
+      }
+      this.tCommodityJourneyInformationList = response.data.commodityJourneyInformationList;
+      this.tCommodityCouponList = response.data.commodityCouponList;
+      this.open = true;
+      this.title = this.$t('dialog.CommodityTitel2');
       });
     },
 	handleDetail(row){
@@ -852,15 +829,20 @@ export default {
       const id = row.id || this.ids
       getCommodity(id).then(response => {
         this.form = response.data;
-		if(this.form.periodWeek.indexOf(',')>0){
-			this.form.periodWeek = this.form.periodWeek.split(",");
-		}else{
-			this.form.periodWeek = [this.form.periodWeek]
-		}
-        this.tCommodityJourneyInformationList = response.data.commodityJourneyInformationList;
-		this.tCommodityCouponList = response.data.commodityCouponList;
-        this.open = true;
-        this.title = this.$t('dialog.CommodityTitel3');
+      if(this.form.periodWeek.indexOf(',')>0){
+        this.form.periodWeek = this.form.periodWeek.split(",");
+      }else{
+        this.form.periodWeek = [this.form.periodWeek]
+      }
+      if(this.form.typeSelected.indexOf(',')>0){
+        this.form.typeSelected = this.form.typeSelected.split(",");
+      }else{
+        this.form.typeSelected = [this.form.typeSelected]
+      }
+      this.tCommodityJourneyInformationList = response.data.commodityJourneyInformationList;
+		  this.tCommodityCouponList = response.data.commodityCouponList;
+      this.open = true;
+      this.title = this.$t('dialog.CommodityTitel3');
       });
 	},
 	statusUpdate(row,val){
@@ -896,9 +878,9 @@ export default {
       this.$refs["form"].validate(valid => {
         if (valid) {
           this.form.periodWeek = this.form.periodWeek.join(",");
-		  console.log(this.form.periodWeek)
+          this.form.typeSelected = this.form.typeSelected.join(",");
           this.form.commodityJourneyInformationList = this.tCommodityJourneyInformationList ;
-		  this.form.commodityCouponList = this.tCommodityCouponList;
+		      this.form.commodityCouponList = this.tCommodityCouponList;
           if (this.form.id != null) {
             updateCommodity(this.form).then(response => {
               this.$modal.msgSuccess(this.$t('message.success1'));

+ 4 - 4
src/views/dashboard/PanelGroup.vue

@@ -9,7 +9,7 @@
           <div class="card-panel-text">
             お客様数
           </div>
-          <count-to :start-val="0" :end-val="102400" :duration="2600" class="card-panel-num" />
+          <count-to :start-val="0" :end-val="1024" :duration="26" class="card-panel-num" />
         </div>
       </div>
     </el-col>
@@ -22,7 +22,7 @@
           <div class="card-panel-text">
             メッセージ
           </div>
-          <count-to :start-val="0" :end-val="81212" :duration="3000" class="card-panel-num" />
+          <count-to :start-val="0" :end-val="812" :duration="30" class="card-panel-num" />
         </div>
       </div>
     </el-col>
@@ -35,7 +35,7 @@
           <div class="card-panel-text">
             売上高
           </div>
-          <count-to :start-val="0" :end-val="9280" :duration="3200" class="card-panel-num" />万円
+          <count-to :start-val="0" :end-val="92" :duration="32" class="card-panel-num" />万円
         </div>
       </div>
     </el-col>
@@ -48,7 +48,7 @@
           <div class="card-panel-text">
             注文数
           </div>
-          <count-to :start-val="0" :end-val="13600" :duration="3600" class="card-panel-num" />
+          <count-to :start-val="0" :end-val="136" :duration="36" class="card-panel-num" />
         </div>
       </div>
     </el-col>

+ 4 - 4
src/views/error/404.vue

@@ -9,16 +9,16 @@
       </div>
       <div class="bullshit">
         <div class="bullshit__oops">
-          404错误!
+          404エラー!
         </div>
         <div class="bullshit__headline">
           {{ message }}
         </div>
         <div class="bullshit__info">
-          对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容
+          申し訳ありませんが、お探しのページは存在しません。 URL にエラーがないか確認し、ブラウザの更新ボタンを押すか、アプリ内で他のものを探してみてください
         </div>
         <router-link to="/" class="bullshit__return-home">
-          返回首页
+          トップページへ
         </router-link>
       </div>
     </div>
@@ -31,7 +31,7 @@ export default {
   name: 'Page404',
   computed: {
     message() {
-      return '找不到网页!'
+      return 'ページが見つかりません!'
     }
   }
 }

+ 1 - 1
src/views/monitor/cache/index.vue

@@ -139,7 +139,7 @@ export default {
     },
     // 打开加载层
     openLoading() {
-      this.$modal.loading("正在加载缓存监控数据,请稍候!");
+      this.$modal.loading("キャッシュ監視データをロードしています。お待ちください。");
     }
   }
 };

+ 1 - 1
src/views/monitor/server/index.vue

@@ -200,7 +200,7 @@ export default {
     },
     // 打开加载层
     openLoading() {
-      this.$modal.loading("正在加载服务监控数据,请稍候!");
+      this.$modal.loading("サービス監視データをロードしています。お待ちください。");
     }
   }
 };