瀏覽代碼

eta lable

bding 1 年之前
父節點
當前提交
817968eb15

+ 68 - 16
src/lang/modules/ETATables/En.js

@@ -62,23 +62,27 @@ export default {
     please_enter_deadline: "Please enter the deadline",
     deadline_cannot_be_empty: "The deadline cannot be empty",
     number_cannot_be_empty: "The number of periods cannot be empty",
-    label_move_way: 'Moving Mode',
-    label_n_val: 'N equals to',
-    label_calendar: 'Calendar',
+    label_move_way: "Moving Mode",
+    label_n_val: "N equals to",
+    label_calendar: "Calendar",
     please_select_frequency: "Please select the frequency",
-    label_val_type: 'Data retrieval',
-    select_data_type: 'Please select data value type',
-    select_criteria_btn: 'Selection Criteria',
-    insert_value_btn: 'Insert value',
-    there_data_no_msg: 'There is no data for that date.',
-    there_data_no_msg: 'Insert method',
-    there_data_no_msg: 'Please select the import method',
-    days_label: 'days',
-    update_frequency_label: 'Update frequency',
-    lastest_date_label: 'Lastest date',
-    example_show_text: 'Example: 5, represents the date 5 days from today; -5, represents the date 5 days ago from today.',
-    selected_indicators_label: 'indicators',
-    no_indicators_available_table: 'No indicators available.',
+    label_val_type: "Data retrieval",
+    select_data_type: "Please select data value type",
+    select_criteria_btn: "Selection Criteria",
+    insert_value_btn: "Insert value",
+    there_data_no_msg: "There is no data for that date.",
+    there_data_no_msg: "Insert method",
+    there_data_no_msg: "Please select the import method",
+    days_label: "days",
+    update_frequency_label: "Update frequency",
+    lastest_date_label: "Lastest date",
+    example_show_text: "Example: 5, represents the date 5 days from today; -5, represents the date 5 days ago from today.",
+    selected_indicators_label: "indicators",
+    no_indicators_available_table: "No indicators available.",
+    cannot_be_empty_table: "Table Categories cannot be empty",
+    table_data_update_msg: "The table data has been updated",
+    formula_lable: "Formula",
+    parent_directory_lable: "Parent directory",
   },
 
   /* 自定义分析  */
@@ -105,4 +109,52 @@ export default {
     date_sequence_cannot_msg: "The date sequence cannot be empty",
     numerical_sequence_cannot_msg: "The numerical sequence cannot be empty",
   },
+
+  ETableChildren: {
+    date_calculation_btn: "Date calculation",
+    select_date_pld: "Select Date",
+    add_more_dates: "Add more dates",
+    formula_lable: "Formula",
+    formula_enter_pld: "Please enter a formula",
+    example_a_b: "Example formula: A-B returns the difference in days between date a and date B as a number",
+    indicators_cap_reached: "The number of added indicators has reached the upper limit",
+    input_formula_valid: "Calculation Formula can not be blank",
+    date_change_label: "Date transformation ",
+    date_displacement_label: "Date displacement",
+    specified_frequency_tag: "Specified frequency",
+    added_frequency_offset_msg: "Specified frequency has been added.",
+    added_date_offset_msg: "Added date offset",
+    impord_date_title: "Import Date",
+    indicator_date_radio: "Date of indicator",
+    frequency_lable: "Frequency",
+    lagging_period_label: "Lagging period",
+    system_date_rai: "System Date",
+    term_ipt: "Term",
+    formula_explanation_btn: "Formula Explanation",
+    tips_text: `Formula Explanation:<br>1. Index Date: Takes the latest date of the selected index, which updates along with the latest date.<br>2. System Date: Takes the system date, which updates along with the system date.<br>3. Date Offset Examples:<br>Original date 2023/10/12, date offset function set to 5 days 0 months 0 years, the converted date will be 2023/10/17.<br>Original date 2023/10/12, date offset function set to 30 days 0 months 0 years, the converted date will be 2023/11/11.<br>Original date 2023/10/30, date offset function set to 0 days 1 month 0 years, the converted date will be 2023/11/30.<br>Original date 2023/10/31, date offset function set to 0 days 1 month 0 years, the converted date will be 2023/12/1.<br>4. Date Offset and specified frequency can be overlaid, for example:<br>Original date 2023/10/12, first date offset by 1 month (2023/11/12), then frequency set to the last day of the month, the converted date will be 2023/11/30.<br>Original date 2023/10/12, first frequency set to the last day of the month (2023/10/31), then date offset by 1 month, the converted date will be 2023/12/1.`,
+    latest_date_indicator: "Latest Date of Indicator",
+    advance_the_term: "Advance of the term",
+    table_date_rai: "Table date",
+    select_metric_first_msg: "Please select a metric first.",
+    number_label: "Number",
+    percentile_label: "Percentile",
+    number_reduce_title: "Reduce the number of decimal places",
+    number_increase_title: "Increase the number of decimal places",
+    enter_n_value: "Please enter N value",
+    select_calendar_pld: "Please select a calendar",
+    frequentness_lable: "frequentness",
+    final_value_lable: "Final value",
+    average_value_lable: "Average value",
+    alpha_value_lable: "Alpha value",
+    calculate_result: "Calculate the result",
+    no_corresponding_data: "No corresponding data",
+    calculation_btn: "calculation",
+    only_select_msg: "Only monthly indicators can be selected",
+    no_quarterly_msg: "Unable to select quarterly indicators",
+    no_day_msg: "Cannot select daily indicators",
+    no_year_msg: "Unable to select annual indicators",
+    no_year_msg: "Unable to select annual indicators",
+    ahead_lable: "ahead",
+    lagging_lable: "lagging",
+  },
 };

+ 80 - 18
src/lang/modules/ETATables/Zh.js

@@ -62,25 +62,27 @@ export default {
     please_enter_deadline: "请输入截止日期",
     deadline_cannot_be_empty: "截止日期不能为空",
     number_cannot_be_empty: "期数不能为空",
-    label_move_way: '移动方式',
-    label_n_val: 'N等于',
-    label_calendar: '日历',
+    label_move_way: "移动方式",
+    label_n_val: "N等于",
+    label_calendar: "日历",
     please_select_frequency: "请选择频度",
-    label_val_type: '数据取值',
-    select_data_type: '请选择数据取值类型',
-    select_criteria_btn: '选择指标',
-    insert_value_btn: '插入值',
-    there_data_no_msg: '该日期无数据',
-    there_data_no_msg: '导入方式',
-    there_data_no_msg: '请选择导入方式',
-    days_label: '天数',
-    update_frequency_label: '更新频度',
-    lastest_date_label: '最新日期',
-    example_show_text: '示例:5,表示当前日期+5天的日期; -5,表示当前日期-5天的日期;',
-    selected_indicators_label: '已选指标:',
-    no_indicators_available_table: '暂无指标',
-
-
+    label_val_type: "数据取值",
+    select_data_type: "请选择数据取值类型",
+    select_criteria_btn: "选择指标",
+    insert_value_btn: "插入值",
+    there_data_no_msg: "该日期无数据",
+    there_data_no_msg: "导入方式",
+    there_data_no_msg: "请选择导入方式",
+    days_label: "天数",
+    update_frequency_label: "更新频度",
+    lastest_date_label: "最新日期",
+    example_show_text: "示例:5,表示当前日期+5天的日期; -5,表示当前日期-5天的日期;",
+    selected_indicators_label: "已选指标:",
+    no_indicators_available_table: "暂无指标",
+    cannot_be_empty_table: "表格分类不能为空",
+    table_data_update_msg: "表格数据已更新",
+    formula_lable: "公式",
+    parent_directory_lable: "上级目录",
   },
 
   /* 自定义分析  */
@@ -107,4 +109,64 @@ export default {
     date_sequence_cannot_msg: "日期序列不能为空",
     numerical_sequence_cannot_msg: "数值序列不能为空",
   },
+
+  ETableChildren: {
+    date_calculation_btn: "日期计算",
+    select_date_pld: "选择日期",
+    add_more_dates: "添加更多日期",
+    formula_lable: "计算公式",
+    formula_enter_pld: "请输入公式",
+    example_a_b: "公式示例:A-B 以数字形式返回日期A和日期B的天数差",
+    indicators_cap_reached: "添加指标个数已达上限",
+    input_formula_valid: "计算公式不能为空",
+    date_change_label: "日期变换",
+    date_displacement_label: "日期位移",
+    specified_frequency_tag: "指定频率",
+    added_frequency_offset_msg: "已添加指定频率",
+    added_date_offset_msg: "已添加日期位移",
+    impord_date_title: "导入日期",
+    indicator_date_radio: "指标日期",
+    frequency_lable: "频度",
+    lagging_period_label: "期数前移",
+    system_date_rai: "系统日期",
+    term_ipt: "期",
+    formula_explanation_btn: "公式说明",
+    tips_text:`
+    公式说明:<br>
+    1、指标日期:取所选指标最新日期,跟随最新日期更新。<br>
+    2、系统日期:取系统日期,跟随系统日期更新。<br>
+    3、日期位移示例:<br>
+    原日期 2023/10/12,日期位移函数设置为5天0月0年,则转换后日期为2023/10/17。<br>
+    原日期 2023/10/12,日期位移函数设置为30天0月0年,则转换后日期为2023/11/11。<br>
+    原日期2023/10/30,日期位移函数设置为0天1月0年,则转换后日期为2023/11/30。<br>
+    原日期2023/10/31,日期位移函数设置为0天1月0年,则转换后日期为2023/12/1。<br>
+    4、日期位移与指定频率互相叠加,示例:<br>
+    原日期 2023/10/12, 先日期位移1月(2023/11/12),后频率设置本月最后一天,则转化后的日期为2023/11/30。<br>
+    原日期 2023/10/12 ,先频率设置本月最后一天(2023/10/31),后日期位移1月,则转化后的日期为2023/12/1。
+  `,
+  latest_date_indicator: "指标最新日期",
+  advance_the_term: "期数前移",
+  table_date_rai: "表格日期",
+  select_metric_first_msg: "请先选择指标",
+  number_label: "数字",
+  percentile_label: "百分位",
+  number_reduce_title: "减少小数位数",
+  number_increase_title: "增加小数位数",
+  enter_n_value: "请输入N数值",
+  select_calendar_pld: "请选择日历",
+  frequentness_lable: "频度",
+  final_value_lable: "期末值",
+  average_value_lable: "平均值",
+  alpha_value_lable: "alpha值",
+  calculate_result: "计算结果",
+  no_corresponding_data: "无对应的数据",
+  calculation_btn: "计算",
+  only_select_msg: "只能选择月度指标",
+  no_quarterly_msg: "不能选择季度指标",
+  no_day_msg: "不能选择日度指标",
+  no_year_msg: "不能选择年度指标",
+  no_year_msg: "不能选择年度指标",
+  ahead_lable: "领先",
+  lagging_lable: "滞后",
+  },
 };

+ 60 - 0
src/lang/modules/ETATables/commonLang.js

@@ -40,6 +40,10 @@ export default {
       en: "Cancel",
       zh: "取消",
     },
+    renew_btn: {
+      en: "Renew",
+      zh: "更新",
+    },
   },
   Msg: {
     is_del_table_msg: {
@@ -58,6 +62,10 @@ export default {
       en: "Added succeeded",
       zh: "移动成功!",
     },
+    please_select: {
+      en: "Please select",
+      zh: "请选择",
+    },
   },
   Date: {
     monday: {
@@ -116,6 +124,58 @@ export default {
       zh: "本年",
       en: "This year",
     },
+    day: {
+      zh: "天",
+      en: "Day",
+    },
+    month: {
+      zh: "月",
+      en: "Month",
+    },
+    year: {
+      zh: "年",
+      en: "Year",
+    },
+    week_min: {
+      zh: "周",
+      en: "week",
+    },
+    quarter_min: {
+      zh: "季",
+      en: "season",
+    },
+    day_lable: {
+      zh: "日度",
+      en: "Daliy",
+    },
+    week_lable: {
+      zh: "周度",
+      en: "Weekly",
+    },
+    dekad_lable: {
+      zh: "旬度",
+      en: "Every ten days",
+    },
+    month_lable: {
+      zh: "月度",
+      en: "Monthly",
+    },
+    quarter_lable: {
+      zh: "季度",
+      en: "Quarterly",
+    },
+    year_lable: {
+      zh: "年度",
+      en: "Yearly",
+    },
+    calendar_gre: {
+      zh: '公历',
+      en: 'Gregorian Calendar'
+    },
+    calendar_lunar: {
+      zh: '农历',
+      en: 'Lunar Calendar'
+    },
   },
 };
 

+ 13 - 10
src/views/datasheet_manage/components/CustomTable.vue

@@ -2,7 +2,7 @@
   <div class="custom-table">
     <div v-if="config.data.length">
       <div class="formula-wrapper" v-if="!disabled">
-        <span style="flex-shrink: 0;color:#C0C4CC">公式</span>
+        <span style="flex-shrink: 0;color:#C0C4CC">{{$t('OnlineExcelPage.formula_lable')}}</span>
         <el-input
           v-show="selectCell.DataType===4"
           v-model="selectCell.Value"
@@ -472,22 +472,25 @@ export default {
     },
     isCollapse() {
       return this.$store.state.isCollapse
-    }
-  },
-  data() {
-    return {
-      isSlideLeft: false,
-      formula: '',
-      config: {
+    },
+    config(){
+      return {
         type: this.sheetType,
         order: 2,// 1降序 2升序
         EdbKeys: ["EdbName", "Unit"],
         data: [], //单元格类型 1默认格 2补充格 3自定义输入 4公式求值格 5预测值
         textRowData: [],
         contextMenuOption: [
-          { label: '删除',key: 'del' },
+          { label: this.$t('ETable.Btn.delete_btn') ,key: 'del' },
         ]
-      },
+      }
+    }
+  },
+  data() {
+    return {
+      isSlideLeft: false,
+      formula: '',
+      
 
       //选中的cell
       selectCell: {},

+ 1 - 1
src/views/datasheet_manage/components/MixedTable.vue

@@ -7,7 +7,7 @@
       
       <!-- 公式显示区 -->
       <div class="formula-wrapper" v-if="!disabled">
-        <span style="flex-shrink: 0;color:#C0C4CC">公式</span>
+        <span style="flex-shrink: 0;color:#C0C4CC">{{$t('OnlineExcelPage.formula_lable')}}</span>
         <el-input
           v-if="selectCell&&selectCell.DataType===6"
           v-model="selectCell.Value"

+ 10 - 10
src/views/datasheet_manage/components/calculateDateDia.vue

@@ -2,7 +2,7 @@
 <div v-dialogDrag v-if="isShow" >
 	<div class="calculate-date-dialog el-dialog" >
 		<div class="header el-dialog__header">
-			<span>日期计算</span>
+			<span>{{$t('ETableChildren.date_calculation_btn')}}</span>
 			<i class="el-icon-close" @click="cancelHandle"/>
 		</div>
 		<div class="dialog-main">
@@ -11,7 +11,7 @@
 					<span class="li-tag">{{ list.Tag }}</span>
           <el-input
 						v-model="list.Date"
-						placeholder="选择日期"
+						:placeholder="$t('ETableChildren.select_date_pld')"
 						style="width: 240px"
 						readonly
 						@focus="selectIndex=index+1"
@@ -31,15 +31,15 @@
 					class="el-icon-circle-plus-outline"
 					style="color: #5882ef; font-size: 16px"
 				/>
-				添加更多日期
+				{{$t('ETableChildren.add_more_dates')}}
 			</div>
 			<div class="computed-min">
 				<div class="computed-section">
-					<label class="label">计算公式</label>
-					<el-input placeholder="请输入公式" v-model="formula" clearable @focus="initSelect">
+					<label class="label">{{$t('ETableChildren.formula_lable')}}</label>
+					<el-input :placeholder="$t('ETableChildren.formula_enter_pld')" v-model="formula" clearable @focus="initSelect">
 					</el-input>
 				</div>	
-        <div class="example-txt">公式示例:A-B 以数字形式返回日期A和日期B的天数差</div>
+        <div class="example-txt">{{$t('ETableChildren.example_a_b')}}</div>
 			</div>
 		</div>
 		<div class="dia-bot">
@@ -47,9 +47,9 @@
 				type="primary"
 				style="margin-right: 20px"
 				@click="saveHandle"
-				>确定</el-button
+				>{{$t('Dialog.confirm_btn')}}</el-button
 			>
-			<el-button type="primary" plain @click="cancelHandle">取消</el-button>
+			<el-button type="primary" plain @click="cancelHandle">{{$t('ETable.btn.cancel_btn')}}</el-button>
 		</div>
 	</div>
 </div>
@@ -110,7 +110,7 @@ export default {
 	methods: {
 		/* 添加额外的指标列 */
 		addTargetHandle() {
-			if(this.addList.length >= 26) return this.$message.warning('添加指标个数已达上限')
+			if(this.addList.length >= 26) return this.$message.warning(this.$t('ETableChildren.indicators_cap_reached') )
 			let tag = this.addList[this.addList.length-1].Tag;
 			let index = tag_arr.findIndex(item => item === tag);
 			const item = {
@@ -133,7 +133,7 @@ export default {
 		},
 
 		async saveHandle() {
-			if (!this.formula) return this.$message.warning('计算公式不能为空');
+			if (!this.formula) return this.$message.warning(this.$t('ETableChildren.input_formula_valid') );
 
 			let dateList = this.addList.filter(_ => _.Date&&_.Uid);
 			const res = await sheetInterface.getDateCalculate({

+ 75 - 51
src/views/datasheet_manage/components/calculateEdbDia.vue

@@ -15,8 +15,8 @@
               v-model="formData.source"
               @change="changeSource"
             >
-              <el-radio :label="1">累计值转月</el-radio>
-              <el-radio :label="2">累计值转季值</el-radio>
+              <el-radio :label="1">{{$t('Edb.CalculateBtns.to_month')}}</el-radio>
+              <el-radio :label="2">{{$t('Edb.CalculateBtns.to_quarter')}}</el-radio>
             </el-radio-group>
           </template>
 
@@ -25,8 +25,8 @@
               v-model="formData.source"
               @change="changeSource"
             >
-              <el-radio :label="13">累计值</el-radio>
-              <el-radio :label="14">年初至今累计值</el-radio>
+              <el-radio :label="13">{{$t('Edb.CalculateBtns.cumulate')}}</el-radio>
+              <el-radio :label="14">{{$t('Edb.CalculateBtns.cumulate_oneyear')}}</el-radio>
             </el-radio-group>
           </template>
 
@@ -64,7 +64,7 @@
 						:model="formData"
 						:rules="formRules"
 					>
-						<el-form-item label="移动方式" style="display: block;" v-if="info.fromEdbKey === 22" prop="moveVal">
+						<el-form-item :label="$t('OnlineExcelPage.label_move_way')" style="display: block;" v-if="info.fromEdbKey === 22" prop="moveVal">
 							<el-select
 								v-model="formData.moveType"
 								style="width: 100px"
@@ -98,28 +98,28 @@
 							>
 								<el-option
 									v-for="item in fre_options"
-									:key="item"
-									:label="item"
-									:value="item"
+									:key="item.value"
+									:label="item.label"
+									:value="item.value"
 								>
 								</el-option>
 							</el-select>
 						</el-form-item>
 
-						<el-form-item label="N等于" prop="nNum" v-if="[8,12,13,35].includes(info.fromEdbKey)">
+						<el-form-item :label="$t('OnlineExcelPage.label_n_val')" prop="nNum" v-if="[8,12,13,35].includes(info.fromEdbKey)">
 							<el-input
 								v-model="formData.nNum"
 								style="width: 200px"
-								placeholder="请输入N数值"
+								:placeholder="$t('ETableChildren.enter_n_value')"
 								type="number"
 								@change="changeParams"
 							/>
 						</el-form-item>
 
-						<el-form-item label="日历" prop="calendarType" v-if="info.fromEdbKey===35">
+						<el-form-item :label="$t('OnlineExcelPage.label_calendar')" prop="calendarType" v-if="info.fromEdbKey===35">
 							<el-select
 								v-model="formData.calendarType"
-								placeholder="请选择日历"
+								:placeholder="$t('OnlineExcelPage.select_calendar_pld')"
 								style="width: 200px"
 								@change="changeParams"
 							>
@@ -127,46 +127,46 @@
 									v-for="item in calendarOptions"
 									:key="item.key"
 									:label="item.label"
-									:value="item.label"
+									:value="item.key"
 								>
 								</el-option>
 							</el-select>
 						</el-form-item>
 
-            <el-form-item label="频度" prop="frequency" v-if="[9,13].includes(formData.source)">
+            <el-form-item :label="$t('ETableChildren.frequentness_lable')" prop="frequency" v-if="[9,13].includes(formData.source)">
 							<el-select
 								v-model="formData.frequency"
-								placeholder="请选择频度"
+								:placeholder="$t('OnlineExcelPage.please_select_frequency')"
 								style="width: 200px"
 								clearable
                 @change="changeParams"
 							>
 								<el-option
 									v-for="item in frequencyArr"
-									:key="item"
-									:label="item"
-									:value="item"
+									:key="item.value"
+									:label="item.label"
+									:value="item.value"
 								>
 								</el-option>
 							</el-select>
 						</el-form-item>
 
-						<el-form-item label="数据取值" prop="valueType" v-if="info.fromEdbKey===51">
+						<el-form-item :label="$t('OnlineExcelPage.label_val_type')" prop="valueType" v-if="info.fromEdbKey===51">
 							<el-select
 								v-model="formData.valueType"
-								placeholder="请选择数据取值类型"
+								:placeholder="$t('OnlineExcelPage.select_data_type')"
 								style="width: 200px"
                 @change="changeParams"
 							>
-								<el-option key="期末值" label="期末值" value="期末值"/>
-								<el-option key="平均值" label="平均值" value="平均值"/>
+								<el-option key="期末值" :label="$t('ETableChildren.final_value_lable')" value="期末值"/>
+								<el-option key="平均值" :label="$t('ETableChildren.average_value_lable')" value="平均值"/>
 							</el-select>
 						</el-form-item>
 
-						<el-form-item label="alpha值" prop="alphaValue" v-if="info.fromEdbKey==='alpha'">
+						<el-form-item :label="$t('ETableChildren.alpha_value_lable')" prop="alphaValue" v-if="info.fromEdbKey==='alpha'">
               <el-input 
                 v-model="formData.alphaValue" 
-                placeholder="请选择alpha值"
+                :placeholder="$t('Edb.InputHolderAll.input_alpha_val')"
                 style="width: 200px"
                 @change="changeParams"
               />
@@ -176,7 +176,7 @@
 
         <!-- 计算结果 -->
         <section class="result-section" v-if="showResult">
-          <label>计算结果:</label>
+          <label>{{$t('ETableChildren.calculate_result')}}:</label>
           <ul class="data-cont" v-if="calculateShowData.length">
               <li 
                 v-for="(item,index) in calculateShowData" 
@@ -188,13 +188,13 @@
               </li>
           </ul>
 
-          <tableNoData text="无对应的数据" size="mini" v-else/>
+          <tableNoData :text="$t('ETableChildren.no_corresponding_data')" size="mini" v-else/>
         </section>
 
         <section class="bot">
-          <el-button type="primary" @click="insertData" v-if="showResult">插入值</el-button>
-          <el-button type="primary" @click="calculateHandle" v-else>计算</el-button>
-          <el-button type="primary" plain @click="cancelHandle">取消</el-button>
+          <el-button type="primary" @click="insertData" v-if="showResult">{{$t('OnlineExcelPage.insert_value_btn')}}</el-button>
+          <el-button type="primary" @click="calculateHandle" v-else>{{$t('ETableChildren.calculation_btn')}}</el-button>
+          <el-button type="primary" plain @click="cancelHandle">{{$t('ETable.Btn.cancel_btn')}}</el-button>
 
         </section>
 
@@ -233,7 +233,44 @@ export default {
       })
       
        return filterArr
-    }
+    },
+    frequencyArr(){
+       return  [
+        {label:this.$t('ETable.Date.day_lable'), value:'日度'},
+        {label:this.$t('ETable.Date.week_lable') , value:'周度'},
+        {label:this.$t('ETable.Date.dekad_lable') , value:'旬度'},
+        {label:this.$t('ETable.Date.month_lable') , value:'月度'},
+        {label:this.$t('ETable.Date.quarter_lable'), value:'季度'},
+        {label:this.$t('ETable.Date.year_lable'), value:'年度'},
+        ]
+    },
+    moveTypeOpions(){
+     return  [
+				{
+					label: this.$t('ETableChildren.ahead_lable') ,
+					key: 1
+				},
+				{
+					label: this.$t('ETableChildren.lagging_lable') ,
+					key: 2
+				},
+		  ],
+    },
+    fre_options(){
+      return   [
+        {label:this.$t('ETable.Date.day'), value:'天'},
+        {label:this.$t('ETable.Date.week_min'), value:'周'},
+        {label:this.$t('ETable.Date.month'), value:'月'},
+        {label:this.$t('ETable.Date.quarter_min'), value:'季'},
+        {label:this.$t('ETable.Date.year'), value:'年'},
+      ]
+    },
+    calendarOptions(){
+      return  [
+				{label: this.$t('ETable.Date.calendar_gre'),key: '公历'},
+				{label: this.$t('ETable.Date.calendar_lunar'),key: '农历'},
+			]
+    },
   },
   watch: {
     isShow(nval) {
@@ -284,7 +321,7 @@ export default {
         alphaValue: 0,
       },
       formRules,
-      frequencyArr: ['日度', '周度','旬度', '月度', '季度', '年度'],
+
 
       showResult: false,
       calculateShowData: [], //计算全部数据
@@ -296,21 +333,8 @@ export default {
       searchOptions: [],
       selectEdbInfo: null,
 
-      moveTypeOpions: [
-				{
-					label: '领先',
-					key: 1
-				},
-				{
-					label: '滞后',
-					key: 2
-				},
-			],
-      fre_options: ['天','周','月','季','年'],
-      calendarOptions: [
-				{label: '公历',key: 1},
-				{label: '农历',key: 2},
-			],
+
+
     }
   },
   mounted(){
@@ -379,7 +403,7 @@ export default {
 
       // if(this.$parent.selectCell.DataType !== 1) return this.$message.warning('请在表格中选择日期')
         
-      if(!this.calculateShowData.length) return this.$message.warning('该日期无数据')
+      if(!this.calculateShowData.length) return this.$message.warning(this.$t('OnlineExcelPage.there_data_no_msg') )
       
       this.$emit('insert',this.chooseItem)
       this.cancelHandle();
@@ -413,10 +437,10 @@ export default {
 
       const { EdbInfoId,EdbInfoType,EdbName,Frequency } = res.Data;
 
-      if(this.formData.source===1&&Frequency!=='月度') return this.$message.warning('只能选择月度指标')
-      else if(this.formData.source===2&&Frequency!=='季度') return this.$message.warning('不能选择季度指标')
-      else if(this.formData.source===8&&Frequency==='日度') return this.$message.warning('不能选择日度指标')
-      else if(this.formData.source===14&&Frequency==='年度') return this.$message.warning('不能选择年度指标')
+      if(this.formData.source===1&&Frequency!=='月度') return this.$message.warning(this.$t('ETableChildren.only_select_msg') )
+      else if(this.formData.source===2&&Frequency!=='季度') return this.$message.warning(this.$t('ETableChildren.no_quarterly_msg') )
+      else if(this.formData.source===8&&Frequency==='日度') return this.$message.warning(this.$t('ETableChildren.no_day_msg') )
+      else if(this.formData.source===14&&Frequency==='年度') return this.$message.warning(this.$t('ETableChildren.no_year_msg') )
 
 
       this.search_edb = EdbName;

+ 32 - 29
src/views/datasheet_manage/components/dateMoveWaySection.vue

@@ -1,50 +1,50 @@
 <template>
   <div class="date-change-ways">
     <div class="header date-item">
-      <label class="el-form-item__label">日期变换</label>
+      <label class="el-form-item__label">{{$t('ETableChildren.date_change_label')}}</label>
                 
-      <el-select v-model="dateChangeSelect" placeholder="请选择" style="width:110px">
-        <el-option label="日期位移" :value="1"/>
-        <el-option label="指定频率" :value="2"/>
+      <el-select v-model="dateChangeSelect" :placeholder="$t('ETable.Msg.please_select')" style="width:110px">
+        <el-option :label="$t('ETableChildren.date_displacement_label')" :value="1"/>
+        <el-option :label="$t('OnlineExcelPage.specified_frequency_tag')" :value="2"/>
       </el-select>
 
-      <el-button type="text" style="margin: 0 10px;" @click="addDateChange">添加</el-button>
+      <el-button type="text" style="margin: 0 10px;" @click="addDateChange">{{$t('ETable.btn.add_btn')}}</el-button>
     </div>
     
     <ul v-if="dateChangeArr.length" class="date-change-list">
       <li v-for="(dateItem,index) in dateChangeArr" :key="dateItem.ChangeType" class="date-change-li">
 
         <div v-if="dateItem.ChangeType===1" class="date-item">
-          <el-tag type="info" style="margin-right:15px">日期位移</el-tag>
+          <el-tag type="info" style="margin-right:15px">{{$t('ETableChildren.date_displacement_label')}}</el-tag>
           <div>
             <el-input
               v-model="dateItem.Day"
               type="number"
               style="margin-right:10px;width:80px"
               @change="e => {dateItem.Day=Number(e);}"
-            />
+            />{{$t('ETable.Date.day')}}
             <el-input
               v-model="dateItem.Month"
               type="number"
               style="margin-right:10px;width:80px"
               @change="e => {dateItem.Month=Number(e);}"
-            />
+            />{{$t('ETable.Date.month')}}
             <el-input
               v-model="dateItem.Year"
               type="number"
               style="margin-right:10px;width:80px"
               @change="e => {dateItem.Year=Number(e);}"
-            />
+            />{{$t('ETable.Date.year')}}
           </div>
           <i class="el-icon-delete" @click="removeDateItem(index)"></i>
         </div>
 
         <div v-else-if="dateItem.ChangeType===2" class="date-item">
-          <el-tag type="info" style="margin-right:15px">指定频率</el-tag>
+          <el-tag type="info" style="margin-right:15px">{{$t('ETableChildren.specified_frequency_tag')}}</el-tag>
           <el-select
               style="max-width: 120px;"
               v-model="dateItem.Frequency"
-              placeholder="请选择频度"
+              :placeholder="$t('OnlineExcelPage.please_select_frequency')"
               @change="dateItem.FrequencyDay=frequencyDaysOptions[0].name;"
           >
             <el-option
@@ -58,12 +58,12 @@
           <el-select
               style="max-width: 120px;margin:0 10px"
               v-model="dateItem.FrequencyDay"
-              placeholder="请选择"
+              :placeholder="$t('ETable.Msg.please_select')"
           >
             <el-option
                 v-for="item in frequencyDaysOptions"
                 :key="item.name"
-                :label="item.name"
+                :label="item.lable"
                 :value="item.name"
             />
           </el-select>
@@ -80,13 +80,13 @@ export default {
     frequencyDaysOptions() {
       let typeMap = {
         '本周': [
-          { name: '周一' },
-          { name: '周二' },
-          { name: '周三' },
-          { name: '周四' },
-          { name: '周五' },
-          { name: '周六' },
-          { name: '周日' },
+          { name: '周一' ,lable: this.$t('ETable.Date.monday') },
+          { name: '周二' ,lable: this.$t('ETable.Date.tuesday')},
+          { name: '周三' ,lable: this.$t('ETable.Date.wednesday')},
+          { name: '周四' ,lable: this.$t('ETable.Date.thursday')},
+          { name: '周五' ,lable: this.$t('ETable.Date.friday')},
+          { name: '周六' ,lable: this.$t('ETable.Date.saturday')},
+          { name: '周日' ,lable: this.$t('ETable.Date.sunday')},
         ]
       }
       
@@ -96,6 +96,16 @@ export default {
       return typeMap[obj.Frequency] 
         ? typeMap[obj.Frequency] 
         : [{name:'第一天'},{name:'最后一天'}]
+    },
+    frequencyOptions(){
+      return  [
+        { name: this.$t('ETable.Date.this_week'), value: '本周' },
+        { name: this.$t('ETable.Date.this_ten_days'), value: '本旬' },
+        { name: this.$t('ETable.Date.this_month'), value: '本月' },
+        { name: this.$t('ETable.Date.this_season'), value: '本季' },
+        { name: this.$t('ETable.Date.this_half_year'), value: '本半年' },
+        { name: this.$t('ETable.Date.this_year'), value: '本年' },
+      ]
     }
   },
   data() {
@@ -103,21 +113,14 @@ export default {
       dateChangeSelect: 1,
       dateChangeArr: [],
 
-      frequencyOptions: [
-        { name: '本周', value: '本周' },
-        { name: '本旬', value: '本旬' },
-        { name: '本月', value: '本月' },
-        { name: '本季', value: '本季' },
-        { name: '本半年', value: '本半年' },
-        { name: '本年', value: '本年' },
-      ],
+      
     }
   },
   methods:{
     /* 提加日期变换数组 */
     addDateChange() {
       let haveObj = this.dateChangeArr.find(_ => _.ChangeType===this.dateChangeSelect);
-      if(haveObj) return this.$message.warning(this.dateChangeSelect===1?'已添加日期位移':'已添加指定频率')
+      if(haveObj) return this.$message.warning(this.dateChangeSelect===1?this.$t('ETableChildren.added_date_offset_msg') :this.$t('ETableChildren.added_frequency_offset_msg') )
       let item = {
         ChangeType: this.dateChangeSelect,
         Day: 0,

+ 15 - 22
src/views/datasheet_manage/components/insertDateDia.vue

@@ -3,7 +3,7 @@
 		:visible.sync="isShow"
 		:close-on-click-modal="false"
 		:modal-append-to-body='false'
-    title="导入日期"
+    :title="$t('ETableChildren.impord_date_title')"
 		@close="cancelHandle"
 		custom-class="dialog"
 		center
@@ -17,7 +17,7 @@
                 v-model="dateChangeSelect"
                 style="margin-right:12px"
                 :label="2"
-              >指标日期</el-radio>
+              >{{$t('ETableChildren.indicator_date_radio')}}</el-radio>
 
               <selectTarget
                 :defaultId="search_edb"
@@ -28,25 +28,25 @@
                 width="240px"
               />
               
-              <span v-show="selectEdbInfo.Frequency" style="margin: 0 10px">频度: {{ selectEdbInfo.Frequency }}</span>
+              <span v-show="selectEdbInfo.Frequency" style="margin: 0 10px">{{$t('ETableChildren.frequency_lable')}}: {{ selectEdbInfo.Frequency }}</span>
               <span v-show="selectEdbInfo.LatestDate">{{$t('OnlineExcelPage.lastest_date_lab')}}: {{ selectEdbInfo.LatestDate }}</span>
             </li>
             <li class="form-item" style="padding-left:10px">
-              <label class="el-form-item__label">期数前移</label>
+              <label class="el-form-item__label">{{$t('ETableChildren.lagging_period_label')}}</label>
               <el-input
                 v-model="formData.MoveForward"
                 type="number"
                 :min="0"
                 style="margin-right:10px;width:80px"
                 @change="e => {formData.MoveForward=Number(e)}"
-              />
+              />{{$t('ETableChildren.term_ipt')}}
             </li>
             <li class="form-item">
               <el-radio 
                 v-model="dateChangeSelect"
                 :label="1"
                 style="margin-right:12px"
-              >系统日期</el-radio>
+              >{{$t('ETableChildren.system_date_rai')}}</el-radio>
               
               <span>{{ $moment().format('YYYY-MM-DD') }}</span>
             </li>
@@ -61,12 +61,12 @@
         width="500"
         trigger="click">
         <p style="padding:20px;line-height:25px;" v-html="tips"/>
-        <el-button slot="reference" class="tip-label" type="text">公式说明</el-button>
+        <el-button slot="reference" class="tip-label" type="text">{{$t('ETableChildren.formula_explanation_btn')}}</el-button>
       </el-popover>
 
 			<div class="dia-bot">
-				<el-button type="primary" style="margin-right:20px" @click="saveInsertHandle">确定</el-button>
-				<el-button type="primary" plain @click="cancelHandle">取消</el-button>
+				<el-button type="primary" style="margin-right:20px" @click="saveInsertHandle">{{$t('Dialog.confirm_btn')}}</el-button>
+				<el-button type="primary" plain @click="cancelHandle">{{$t('ETable.btn.cancel_btn')}}</el-button>
 			</div>
 	</el-dialog>
 </template>
@@ -118,6 +118,11 @@ export default {
     }  
 
   },
+  computed:{
+    tips(){
+      return this.$t('ETableChildren.tips_text') 
+    }
+  },
   data() {
     return {
       formData: {
@@ -129,19 +134,7 @@ export default {
         MoveForward: 0,
       },
 
-      tips: `
-        公式说明:<br>
-        1、指标日期:取所选指标最新日期,跟随最新日期更新。<br>
-        2、系统日期:取系统日期,跟随系统日期更新。<br>
-        3、日期位移示例:<br>
-        原日期 2023/10/12,日期位移函数设置为5天0月0年,则转换后日期为2023/10/17。<br>
-        原日期 2023/10/12,日期位移函数设置为30天0月0年,则转换后日期为2023/11/11。<br>
-        原日期2023/10/30,日期位移函数设置为0天1月0年,则转换后日期为2023/11/30。<br>
-        原日期2023/10/31,日期位移函数设置为0天1月0年,则转换后日期为2023/12/1。<br>
-        4、日期位移与指定频率互相叠加,示例:<br>
-        原日期 2023/10/12, 先日期位移1月(2023/11/12),后频率设置本月最后一天,则转化后的日期为2023/11/30。<br>
-        原日期 2023/10/12 ,先频率设置本月最后一天(2023/10/31),后日期位移1月,则转化后的日期为2023/12/1。
-      `,
+
 
       selectEdbInfo: {},
 

+ 5 - 5
src/views/datasheet_manage/components/selectTargetValueDia.vue

@@ -30,20 +30,20 @@
       <ul class="date-select-cont">
         <li class="flex">
           <div class="flex">
-            <el-radio v-model="dateSelectForm.Type" :label="1">指标最新日期</el-radio>
+            <el-radio v-model="dateSelectForm.Type" :label="1">{{$t('ETableChildren.latest_date_indicator')}}</el-radio>
             <div>
-              <label class="el-form-item__label">期数前移</label>
+              <label class="el-form-item__label">{{$t('ETableChildren.advance_the_term')}}</label>
               <el-input
                 v-model="dateSelectForm.MoveForward"
                 type="number"
                 :min="0"
                 style="margin-right:10px;width:80px"
                 @change="e => {dateSelectForm.MoveForward=Number(e);}"
-              />
+              />{{$t('ETableChildren.term_ipt')}}
             </div>
           </div>
           <div class="flex">
-            <el-radio v-model="dateSelectForm.Type" :label="2" style="margin-left:50px">表格日期</el-radio>
+            <el-radio v-model="dateSelectForm.Type" :label="2" style="margin-left:50px">{{$t('ETableChildren.table_date_rai')}}</el-radio>
             <span v-if="dateSelectForm.relationDate&&dateSelectForm.Type===2">{{dateSelectForm.relationDate}}</span>
 
           </div>
@@ -165,7 +165,7 @@ export default {
 
     //插入值的时候再去计算结果
     async insertData() {
-      if(!this.edbInfo) return this.$message.warning('请先选择指标')
+      if(!this.edbInfo) return this.$message.warning(this.$t('ETableChildren.select_metric_first_msg') )
 
       let Date='';
       if(this.dateSelectForm.Type===2) { //选框为表格日期再去取Date

+ 1 - 1
src/views/datasheet_manage/components/sheetClassifyDia.vue

@@ -20,7 +20,7 @@
 				:model="formData"
 				:rules="formRules">
 				
-          <el-form-item label="上级目录" prop="classify_name" v-if="formData.parentClassifyId">
+          <el-form-item :label="$t('OnlineExcelPage.parent_directory_lable')" prop="classify_name" v-if="formData.parentClassifyId">
             <span>{{formData.parentName}}</span>
           </el-form-item>
           <el-form-item :label="$t('Chart.classify_name_label')" prop="classify_name">

+ 16 - 10
src/views/datasheet_manage/components/toolBarSection.vue

@@ -62,7 +62,12 @@ export default {
         pn: 0,//ponitNum
       },
 
-      toolIcons: [
+
+    };
+  },
+  computed:{
+    toolIcons(){
+      return [
         {
           icon: `<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
               <g id="increase-decimal" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -78,7 +83,7 @@ export default {
           </svg>`,
           key: "add-point",
           type: 'icon',
-          title: '增加小数位数'
+          title: this.$t('ETableChildren.number_increase_title') 
         },
         { 
           icon: `<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -95,7 +100,7 @@ export default {
           </svg>`, 
           key: "del-point", 
           type: 'icon',
-          title: '减少小数位数' 
+          title: this.$t('ETableChildren.number_reduce_title') 
         },
         { 
           icon: '',
@@ -103,13 +108,14 @@ export default {
           type:'select',
           title:'' 
         }
-      ],
-
-      numberTypeOptions: [
-        { label: "数字", key: "number" },
-        { label: "百分位", key: "percent" },
-      ],
-    };
+      ]
+    },
+    numberTypeOptions(){
+        return  [
+        { label: this.$t('ETableChildren.number_label') , key: "number" },
+        { label:this.$t('ETableChildren.percentile_label') , key: "percent" },
+        ]
+    }
   },
   methods: {
     dealToolHandles({key}) {

+ 3 - 3
src/views/datasheet_manage/customAnalysis/components/bottomSection.vue

@@ -36,10 +36,10 @@
             checkStrictly: true
           }"
           clearable
-          placeholder="请选择表格分类"
+          :placeholder="$t('OnlineExcelPage.select_table_category')"
         />
-        <el-button type="primary" style="margin-left:30px" @click="saveSheetHandle">保存</el-button>
-          <el-tooltip class="item" effect="dark" content="根据用户选择的sheet页上传文件" placement="top-start">
+        <el-button type="primary" style="margin-left:30px" @click="saveSheetHandle">{{$t('ETable.Btn.save_btn')}}</el-button>
+          <el-tooltip class="item" effect="dark" :content="$t('OnlineExcelPage.the_sheet_page_selected')" placement="top-start">
           <i class="el-icon-warning"/>
         </el-tooltip>
       </div>

+ 12 - 9
src/views/datasheet_manage/customAnalysis/list.vue

@@ -176,7 +176,7 @@
                     </li>
                 </el-tooltip>
 
-                <el-tooltip effect="dark" content="根据表格保存的最新内容,更新当前表格生成的所有指标" placement="top-start">
+                <el-tooltip effect="dark" :content="$t('CustomAnalysisPage.up_save_tooltip')" placement="top-start">
                     <li class="editsty" @click="refreshSheet" v-if="isSheetBtnShow('refresh')&&sheetDetailInfo.Button.RefreshEdbButton">
                       <img src="~@/assets/img/icons/refresh_blue_new.png"/>
                       <span>{{ isEdbReFreshLoading? $t('CustomAnalysisPage.refreshing_loading'):$t('CustomAnalysisPage.refresh_loading')}}</span>
@@ -336,6 +336,16 @@ export default {
       }));
 
       return options;
+    },
+    saveOtherFormRule(){
+      return {
+        name: [
+          { required: true, message: this.$t('OnlineExcelPage.table_name_empty_msg') , trigger: "blur" },
+        ],
+        classify: [
+          { required: true, message: this.$t('OnlineExcelPage.cannot_be_empty_table') , trigger: "blur" },
+        ],
+      }
     }
   },
   data() {
@@ -386,14 +396,7 @@ export default {
         name: '',
 				classify: ''
       },
-      saveOtherFormRule: {
-        name: [
-          { required: true, message: "表格名称不能为空", trigger: "blur" },
-        ],
-        classify: [
-          { required: true, message: "表格分类不能为空", trigger: "blur" },
-        ],
-      },
+      
 
       isShowMe: false,
 

+ 10 - 13
src/views/datasheet_manage/mixedSheetEdit.vue

@@ -41,8 +41,8 @@
         </li>
       </ul>
       <div>
-        <span v-if="updateTime" style="color:#999999 ;">最近保存时间:{{updateTime}}</span>
-        <el-button type="primary" size="medium" @click="()=>{ sheetInit=false;getDetail('refresh')}" style="margin-left:10px" icon="el-icon-refresh-right">更新</el-button>
+        <span v-if="updateTime" style="color:#999999 ;">{{$t('OnlineExcelPage.recent_save_time_info')}}{{updateTime}}</span>
+        <el-button type="primary" size="medium" @click="()=>{ sheetInit=false;getDetail('refresh')}" style="margin-left:10px" icon="el-icon-refresh-right">{{$t('ETable.Btn.renew_btn')}}</el-button>
         <el-button type="primary" size="medium" @click="saveSheetHandle" style="margin-left:10px" v-if="hasPermission">{{$t('ETable.Btn.save_btn')}}</el-button>
         <el-button type="primary" size="medium" plain @click="backHandle">{{$t('ETable.Btn.back_btn')}}</el-button>
       </div>
@@ -89,6 +89,12 @@ export default {
     },
     rules(){
       return this.$t('OnlineExcelPage.TableInstructionsText') ||''
+    },
+    sheetTypeOption(){
+      return [
+        { key: 1,label: this.$t('OnlineExcelPage.data_row_label')},
+        { key: 2,label: this.$t('OnlineExcelPage.data_column_label')},
+      ]
     }
   },
   // beforeRouteLeave(to,from,next){
@@ -101,21 +107,12 @@ export default {
     return {
       sheetId: this.$route.query.id || '',
       classifyArr: [],
-      rules: `表格说明:<br>
-        1、手动输入:单击每个单元格可直接输入文本、数字、日期(格式示例:2023-05-23)<br>
-        2、根据表格中日期选择指标值:在弹窗中搜索并选择指标,默认选择指标最新日期,可插入指标值,随着指标更新;也支持选择指标后,在表格中选择或输入一个日期,则插入该指标在选定日期的值。<br>
-        3、导入日期:导入系统或指标相关的日期,可进一步进行日期变换,跟随系统日期或指标日期更新。<br>
-        4、日期计算:对表格中日期进行计算。<br>
-        5、指标计算:选择指标进行计算,插入指标计算值。`,
       sheetForm: {
         sheetType: 1
       },
       sheetButton:'',
       sheetInit:false,
-      sheetTypeOption: [
-        { key: 1,label: '指标列+日期行' },
-        { key: 2,label: '指标行+日期列' },
-      ],
+     
 
       updateTime: '',
       isCanEdit:false,
@@ -161,7 +158,7 @@ export default {
 
       this.$refs.mixedTableRef.initData(TableData);
       
-      type==='refresh' && this.$message.success('表格数据已更新')
+      type==='refresh' && this.$message.success(this.$t('OnlineExcelPage.table_data_update_msg') )
     },
 
     /* 获取分类 */

+ 1 - 1
src/views/datasheet_manage/mixins/classifyMixin.js

@@ -190,7 +190,7 @@ export default {
       sheetInterface.classifyMove(params)
         .then((res) => {
           if (res.Ret !== 200) return;
-          this.$message.success("移动成功!");
+          this.$message.success(this.$t('ETable.Msg.move_success_msg'));
           this.getTreeData();
         });
     },

+ 15 - 12
src/views/datasheet_manage/sheetList.vue

@@ -13,15 +13,15 @@
           <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_excel)&&sourceMap[$route.path]===1" type="primary" style="margin-right:20px" @click="goAddSheetHandle"
           >{{$t('OnlineExcelPage.add_excel_btn')}}</el-button >
 
-          <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_customize_data_sheetAdd)&&sourceMap[$route.path]===2" type="primary" style="margin-right:20px" @click="goAddSheetHandle">添加时间序列表格</el-button >
+          <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_customize_data_sheetAdd)&&sourceMap[$route.path]===2" type="primary" style="margin-right:20px" @click="goAddSheetHandle">{{$t('OnlineExcelPage.add_timeline_table_btn')}}</el-button >
 
-          <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_customize_mix_sheetAdd)&&sourceMap[$route.path]===3" type="primary" @click="goAddSheetHandle">添加混合表格</el-button >
+          <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_customize_mix_sheetAdd)&&sourceMap[$route.path]===3" type="primary" @click="goAddSheetHandle">{{$t('OnlineExcelPage.add_mixed_table_btn')}}</el-button >
 
           <el-checkbox 
             v-model="isShowMe"
             style="margin-left:20px"
             @change="() => { getTreeData();getPublicList() }"
-          >只看我的</el-checkbox>
+          >{{$t('Chart.only_see_mine')}}</el-checkbox>
 
         </div>
         <div class="search-cont">
@@ -378,6 +378,16 @@ export default {
         ExcelClassifyName: _.ExcelClassifyName,
       }));
       return options;
+    },
+    saveOtherFormRule(){
+      return {
+        name: [
+          { required: true, message: this.$t('OnlineExcelPage.table_name_empty_msg') , trigger: "blur" },
+        ],
+        classify: [
+          { required: true, message: this.$t('OnlineExcelPage.cannot_be_empty_table') , trigger: "blur" },
+        ],
+      }
     }
   },
   data() {
@@ -420,14 +430,7 @@ export default {
         name: '',
 				classify: ''
       },
-      saveOtherFormRule: {
-        name: [
-          { required: true, message: "表格名称不能为空", trigger: "blur" },
-        ],
-        classify: [
-          { required: true, message: "表格分类不能为空", trigger: "blur" },
-        ],
-      },
+
       sourceMap: {
         '/sheetList': 1,
         '/sheetTimeList': 2,
@@ -591,7 +594,7 @@ export default {
     addNode(node,data) {
       let arr = []
       arr = this.getNodeParentData(node,arr).reverse();
-      this.dialog_title = "添加";
+      this.dialog_title = this.$t('ETable.Btn.add_btn') ;
       /* 编辑目录 */
       this.classifyForm = {
         classify_name: "",