Sfoglia il codice sorgente

国际化代码适配

qymljy 1 mese fa
parent
commit
6e03cea24a

+ 3 - 3
src/HDrpManagement/workReport/modules/createReport/index.vue

@@ -10,7 +10,7 @@
           :command="{ name: item.reportname, id: item.sys_workreportmodelid }"
           v-for="(item, index) in modelList"
           :key="index"
-          >{{ item.reportname }}</el-dropdown-item
+          >{{ $t(item.reportname) }}</el-dropdown-item
         >
       </el-dropdown-menu>
     </el-dropdown>
@@ -28,7 +28,7 @@
           <!-- <div :style="{'display':item.editable ? 'block' : 'none','margin-bottom':'40px'}"> -->
           <div :style="{ 'margin-bottom': '40px' }">
             <p class="normal-title" style="margin-bottom: 20px">
-              {{ item.title }}
+              {{ $t(item.title) }}
             </p>
             <p
               ref="content"
@@ -37,7 +37,7 @@
               :style="!item.editable ? 'background:#FAFAFA' : ''"
             >
               <template v-for="item2 in item.content">
-                {{ item2.content }}<br />
+                {{ $t(item2.content) }}<br />
               </template>
             </p>
           </div>

+ 2 - 2
src/HDrpManagement/workReport/modules/reportContent/index.vue

@@ -11,7 +11,7 @@
       >
         <div style="padding: 20px 20px">
           <div class="detail-header">
-            <span>{{ detail.createby }}-{{ detail.reportname }}</span>
+            <span>{{ detail.createby }}-{{ $t(detail.reportname) }}</span>
             <span>{{ detail.createdate }}</span>
             <customBtn
               class="inline-16"
@@ -101,7 +101,7 @@ export default {
           let title = document.createElement("p");
           title.style = "margin-bottom:20px";
           title.className = "normal-title";
-          title.innerText = item.title;
+          title.innerText = this.$t(item.title);
           box.appendChild(title);
           let content = document.createElement("div");
           if (item.content[0]) {

+ 3 - 3
src/HManagement/marketing2/agent/area/list.vue

@@ -13,7 +13,7 @@
       :expand-on-click-node="false"
       @node-click="handleClick">
       <span class="custom-tree-node" slot-scope="{ node, data }">
-        <span>{{ node.label }}</span>
+        <span>{{ $t(node.label) }}</span>
         <span>
           <slot name="operation" :data="data"></slot>
         </span>
@@ -61,7 +61,7 @@ export default {
           parentid:node['parentid'],
           children: []
         }
-          
+
         if (node.subarea && node.subarea.length > 0) {
           // 如果存在子节点
           for (var index = 0; index < node.subarea.length; index++) {
@@ -120,4 +120,4 @@ export default {
   font-size: 14px;
   background: #FAFAFA;
 }
-</style>
+</style>

+ 3 - 3
src/SDrpManagement/ProductGroup/index.vue

@@ -2,7 +2,7 @@
   <div class="group container normal-panel ">
     <div style="display:flex;align-items:center;margin-bottom:16px">
       <el-input
-          placeholder="请输入搜索内容"
+          :placeholder="$t(`请输入搜索内容`)"
           suffix-icon="el-icon-search"
           v-model="params.content.where.condition"
           style="width:200px"
@@ -18,7 +18,7 @@
             clearable
             @clear="selectRow({enterprisename:'',sys_enterpriseid:''})"
             v-model="enterprisename"
-            placeholder="请选择经销商/客户"
+            :placeholder="$t(`请选择经销商/客户`)"
             @focus="$refs.people.visible=true"
             size="small"
             style="width:300px"
@@ -39,7 +39,7 @@
           <div class="bottom">
             <div class="title">{{item.groupname}}</div>
 <!--            <p class="descript">{{item.groupnum}}</p>-->
-            <p class="descript"><span v-for="(cls,index) in item.itemclass" :key="cls.index">{{index === item.itemclass.length -1 ?cls.itemclassfullname:cls.itemclassfullname + ','}}</span></p>
+            <p class="descript"><span v-for="(cls,index) in item.itemclass" :key="cls.index">{{index === item.itemclass.length -1 ?$t(cls.itemclassfullname):$t(cls.itemclassfullname) + ','}}</span></p>
             <p class="price descript">{{$t(`价格`)}}:<span style="color:red;font-size:16px"><small>¥</small>{{item.minprice}}</span>&nbsp;~&nbsp;<span style="color:red;font-size:16px"><small>¥</small>{{item.maxprice}}</span></p>
           </div>
         </div>

+ 3 - 3
src/SDrpManagement/ProductGroup/modules/GroupDetail/groupDetail.vue

@@ -48,10 +48,10 @@
             >{{ $t(item.tradefield) }}
             </el-tag>
           </div>
-          <div class="inline-16">{{ siteid == 'HY'?selectProduct.model+selectProduct.itemname:selectProduct.itemname }}</div>
+          <div class="inline-16">{{ siteid == 'HY'?$t(selectProduct.model)+$t(selectProduct.itemname):$t(selectProduct.itemname) }}</div>
         </div>
         <p style="color: #888; margin-bottom: 10px">
-          {{ $t("编码") }}:&emsp;{{ selectProduct.itemno }}
+          {{ $t("编码") }}:&emsp;{{ $t(selectProduct.itemno) }}
         </p>
         <p class="normal-margin">
           {{ $t("价格") }}:&emsp;<span class="product-price"
@@ -85,7 +85,7 @@
         </div>
         <div>
           <p class="normal-margin">
-            {{ $t("标准") }}:&emsp;{{ $t(siteid == 'HY' || siteid == 'YOSTEST1'?selectProduct.standardsmx?selectProduct.standardsmx:'--':selectProduct.standards?selectProduct.standards:'--') }}
+            {{ $t("标准") }}:&emsp;{{ $t(siteid == 'HY' || siteid == 'YOSTEST1'?selectProduct.standardsmx?$t(selectProduct.standardsmx):'--':selectProduct.standards?$t(selectProduct.standards):'--') }}
           </p>
         </div>
         <div v-if="selectProduct.itemextend">

+ 1 - 1
src/SDrpManagement/ProductGroup/modules/Select2.vue

@@ -84,7 +84,7 @@
           :key="item.itemclassnum"
           @click="clickClass(item)"
         >
-          {{ item.itemclassname }}
+          {{ $t(item.itemclassname) }}
         </li>
       </ul>
       <classTree

+ 2 - 2
src/SDrpManagement/ProductGroup/modules/itemextend.vue

@@ -1,7 +1,7 @@
 <template>
   <div style="width: 290px;float: left">
-    <span class="search__label">{{title}}:</span>
-    <span class="tab-color">{{data}}</span>
+    <span class="search__label">{{$t(title)}}:</span>
+    <span class="tab-color">{{$t(data)}}</span>
   </div>
 </template>
 

+ 1 - 1
src/SDrpManagement/Products/modules/Select.vue

@@ -86,7 +86,7 @@
           :key="item.itemclassnum"
           @click="clickClass(item)"
         >
-          {{ item.itemclassname }}
+          {{ $t(item.itemclassname) }}
         </li>
       </ul>
       <classTree

+ 1 - 1
src/SManagement/orderclue_detail/components/followDetail.vue

@@ -13,7 +13,7 @@
             <div class="dateLine">
               <div class="div"></div>
               <span class="span margin-5">{{item.createdate}}</span>
-              <el-tag  v-if="item.resource" size="mini" style="color: #3874f6;margin-left: 10px">{{item.resource}}</el-tag>
+              <el-tag  v-if="item.resource" size="mini" style="color: #3874f6;margin-left: 10px">{{$t(item.resource)}}</el-tag>
             </div>
             <div style="display: flex;align-items: center">
               <div class="inline-16">

+ 1 - 1
src/components/normal-basic-layout-new/details/modules/followTable/index.vue

@@ -19,7 +19,7 @@
         <template slot-scope="scope">
           <div>
             {{scope.row.createby}}
-            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{scope.row.resource}}</el-tag>
+            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{$t(scope.row.resource)}}</el-tag>
           </div>
         </template>
       </el-table-column>

+ 1 - 1
src/components/normal-basic-layout/details/modules/followTable/index.vue

@@ -19,7 +19,7 @@
         <template slot-scope="scope">
           <div>
             {{scope.row.createby}}
-            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{scope.row.resource}}</el-tag>
+            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{$t(scope.row.resource)}}</el-tag>
           </div>
         </template>
       </el-table-column>