国际化

This commit is contained in:
2025-09-12 13:13:29 +08:00
parent caef2ecc53
commit 2ebaeac1e9
18 changed files with 533 additions and 331 deletions

View File

@@ -1,16 +1,12 @@
<template>
<view class="zd_container">
<view class="zd_container" :class="{'en_class': applicationLocale === 'en'}">
<!-- 作业管理 -->
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">关键字</span>
</view>
<view class="zd-col-17">
<search-box v-model="val1"/>
</view>
<view>
<view class="filter_label">{{$t('label.Keyword')}}</view>
<search-box v-model="val1"/>
</view>
</view>
<view class="zd_wrapper grid-wraper">
@@ -18,15 +14,11 @@
<table>
<thead>
<tr>
<th>载具号</th>
<th>起点</th>
<th>终点</th>
<th>状态</th>
<th>作业号</th>
<!-- <th>作业类型</th>
<th>设备号</th>
<th>当前步骤</th>
<th>异常信息</th> -->
<th>{{$t('label.CarrierCode')}}</th>
<th>{{$t('th.Startpoint')}}</th>
<th>{{$t('th.Endpoint')}}</th>
<th>{{$t('th.Status')}}</th>
<th>{{$t('th.Jobnumber')}}</th>
</tr>
</thead>
<tbody>
@@ -43,10 +35,10 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-5 button-default" @tap="toEmpty">清空</button>
<button class="zd-col-5 button-primary" @tap="_schTaskQueryTask">查询</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_schTaskAgainTask">重新下发</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_forceConfirm">强制完成</button>
<button class="zd-col-5 button-default" @tap="toEmpty">{{$t('button.clear')}}</button>
<button class="zd-col-5 button-primary" @tap="_schTaskQueryTask">{{$t('button.search')}}</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_schTaskAgainTask">{{$t('button.Reissue')}}</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_forceConfirm">{{$t('button.Forcecompletion')}}</button>
</view>
</view>
</template>
@@ -63,15 +55,17 @@
data() {
return {
title: '',
val1: '',
val1: '',
dataList: [],
pkId: '',
pkObj: {},
disabled: false
disabled: false,
applicationLocale: ''
};
},
onLoad (options) {
this.title = options.title
this.applicationLocale = uni.getLocale()
},
methods: {
toEmpty () {