ソースを参照

翻译再补充

cxmo 10 ヶ月 前
コミット
8eee208352

+ 2 - 2
src/views/chartRelevance_manage/crossVarietyAnalysis/components/edbTableSection.vue

@@ -180,10 +180,10 @@ export default {
       arr.forEach((item) => (str += `${item.DataTime}\t${item.Value}\n`));
       this.$copyText(str).then(
         (res) => {
-          this.$message.success('已成功复制!');
+          this.$message.success(/* '已成功复制!' */this.$t('MsgPrompt.copy_success_msg'));
         },
         (err) => {
-          this.$message.error('复制失败!');
+          this.$message.error(/* '复制失败!' */this.$t('MsgPrompt.copy_fail_msg'));
         }
       );
     },

+ 1 - 1
src/views/dataEntry_manage/databaseList.vue

@@ -1974,7 +1974,7 @@ export default {
 		          this.$message.success(this.$t('MsgPrompt.copy_success_msg'));
 		        },
 		        err => {
-		         this.$message.error("复制失败!");
+		         this.$message.error(/* "复制失败!" */this.$t('MsgPrompt.copy_fail_msg'));
 		        } )
 		 	}
 		},

+ 1 - 1
src/views/predictEdb_manage/predictEdb.vue

@@ -1290,7 +1290,7 @@ export default {
 						this.$message.success(this.$t('MsgPrompt.copy_success_msg'))
           },
           (err) => {
-            this.$message.error('复制失败!');
+            this.$message.error(/* '复制失败!' */this.$t('MsgPrompt.copy_fail_msg'));
           }
         );
 			})

+ 28 - 28
src/views/supply_manage/components/createTargetDia.vue

@@ -31,12 +31,12 @@
 						:props="levelProps"
 						style="width: 80%"
 						clearable
-						placeholder="请选择所属目录"/>
+						:placeholder="$t('CustomAnalysisPage.select_appropriate_category')"/>
 					</el-form-item>
 					<el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency">
 						<el-select 
 						v-model="formData.frequency" 
-						placeholder="请选择频率" 
+						:placeholder="$t('EtaBasePage.select_frequency')" 
 						style="width:80%"
             			disabled
 						clearable>
@@ -54,20 +54,20 @@
 						filterable
 						allow-create
 						style="width: 80%"
-						placeholder="请输入单位">
+						:placeholder="$t('Edb.Detail.e_unit')">
 							<el-option
 								v-for="item in unitArr"
-								:key="item"
-								:label="item"
-								:value="item">
+								:key="item.label"
+								:label="item.label"
+								:value="item.value">
 							</el-option>
 						</el-select>
 					</el-form-item>
 				</el-form>
 			</div>
 			<div class="dia-bot">
-				<el-button type="primary" style="margin-right:20px" @click="addTarget">保存</el-button>
-				<el-button type="primary" plain @click="cancelHandle">取消</el-button>
+				<el-button type="primary" style="margin-right:20px" @click="addTarget">{{$t('Dialog.confirm_save_btn')}}</el-button>
+				<el-button type="primary" plain @click="cancelHandle">{{$t('Dialog.cancel_btn')}}</el-button>
 			</div>
 		</el-dialog>
 	</div>
@@ -75,7 +75,7 @@
 
 <script>
 import { dataBaseInterface } from '@/api/api.js';
-import { unitArr,frequencySelectList } from '@/utils/defaultOptions';
+import { unitSelectList,frequencySelectList } from '@/utils/defaultOptions';
 import * as supplyApi from '@/api/modules/supplyApi.js';
 export default {
 	name:'',
@@ -101,29 +101,10 @@ export default {
 			}
 		}
 	},
-	computed:{
-		formRules(){
-			return {
-				edb_name:[
-					{ required: true, message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' },
-				],
-				menu:[
-					{ required: true, message: /* '所属目录不能为空' */this.$t('Edb.Valids.menu_msg'), trigger: 'blur' },
-				],
-				frequency:[
-					{ required: true, message: /* '频率不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'blur' },
-				],
-				unit:[
-					{ required: true, message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'blur' },
-				],
-			}
-		}
-	},
 	data () {
 		return {
 			formData: {},
 			options:  [],
-			unitArr,
 			levelProps: {
 				label: 'ClassifyName',
 				value: 'ClassifyId',
@@ -136,6 +117,25 @@ export default {
 	computed:{
 		frequencyArr(){
 			return frequencySelectList()
+		},
+		unitArr(){
+			return unitSelectList()
+		},
+		formRules(){
+			return {
+				edb_name:[
+					{ required: true, message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' },
+				],
+				menu:[
+					{ required: true, message: /* '所属目录不能为空' */this.$t('Edb.Valids.menu_msg'), trigger: 'blur' },
+				],
+				frequency:[
+					{ required: true, message: /* '频率不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'blur' },
+				],
+				unit:[
+					{ required: true, message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'blur' },
+				],
+			}
 		}
 	},
 	methods: {

+ 2 - 2
src/views/supply_manage/components/targetTable.vue

@@ -134,10 +134,10 @@ export default {
       arr.forEach((item) => (str += `${item.DataTime}\t${item.Value}\n`));
       this.$copyText(str).then(
         (res) => {
-          this.$message.success('已成功复制!');
+          this.$message.success(/* '已成功复制!' */this.$t('MsgPrompt.copy_success_msg'));
         },
         (err) => {
-          this.$message.error('复制失败!');
+          this.$message.error(/* '复制失败!' */this.$t('MsgPrompt.copy_fail_msg'));
         }
       );
     },