cq преди 3 години
родител
ревизия
c1a307529f

+ 11 - 5
ui/src/lang/en.js

@@ -1000,14 +1000,14 @@ export default {
   改造: 'Retrofit ',
   延期: 'Extension',
   超设计寿命变更: 'Change Beyond Design Life ',
-  '确认要"': 'Confirm to"',
-  '"任务吗?': '"task?',
+  '确认要"': 'Confirm to "',
+  '"任务吗?': '" task?',
   '确认要立即执行一次"': 'Confirm to execute once immediately "',
   执行成功: 'Successful Implementation',
   执行状态: 'Execution Status',
   执行时间: 'Execution Time',
-  '是否确认删除定时任务编号为"': 'Whether to delete the scheduled task number as ',
-  '是否确认删除调度日志编号为"': 'Whether to delete the dispatch log number as ',
+  '是否确认删除定时任务编号为"': 'Whether to delete the scheduled task number as "',
+  '是否确认删除调度日志编号为"': 'Whether to delete the dispatch log number as "',
   '是否确认清空所有调度日志数据项?': 'Whether to clear all scheduling log data entries?',
   '是否确认清空所有登录日志数据项?': 'Whether to clear all log entries?',
   '是否确认清空所有操作日志数据项?': 'Whether to clear all operation log entries?',
@@ -1257,7 +1257,7 @@ export default {
   额度出力: 'Rated Power',
   本次内部年检日期: 'Date of this internal annual inspection',
   内部检查结论: 'Internal inspection conclusion',
-  测厚部位CML:'CML',
+  测厚部位CML:'Thickness Measuring Part CML',
   '腐蚀裕度(mm)':'Corrosion allowance(mm)',
   '原始壁厚(mm)':'Original Thickness(mm)',
   '压力(MPa)':'Pressure(MPa)',
@@ -1697,4 +1697,10 @@ export default {
   检查三:'Check Three',
   审核人员:'Auditors',
   审批人员:'Approvers',
+  腐蚀类型:'Corrosion Type',
+  '是否确认导出所有测厚记录数据项?':'Whether to export all measure record data items?',
+  任务:'Task',
+  参数名称:'Parameter Name',
+  参数键名:'Parameter Key Name',
+  系统内置:'Built-in System',
 }

+ 6 - 0
ui/src/lang/zh.js

@@ -1697,4 +1697,10 @@ export default {
   检查三:'检查三',
   审核人员:'审核人员',
   审批人员:'审批人员',
+  腐蚀类型:'腐蚀类型',
+  '是否确认导出所有测厚记录数据项?':'是否确认导出所有测厚记录数据项?',
+  任务:'任务',
+  参数名称:'参数名称',
+  参数键名:'参数键名',
+  系统内置:'系统内置',
 }

+ 2 - 2
ui/src/views/monitor/job/index.vue

@@ -380,7 +380,7 @@ export default {
     // 任务状态修改
     handleStatusChange(row) {
       let text = row.status === "0" ? this.$t('启用') : this.$t('停用');
-      this.$confirm(this.$t('确认要"') + text + '""' + row.jobName + this.$t('"任务吗?'), this.$t('警告'), {
+      this.$confirm(this.$t('确认要') + text + ' "' + row.jobName + this.$t('"任务吗?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
@@ -419,7 +419,7 @@ export default {
     handleAdd() {
       this.reset();
       this.open = true;
-      this.title = this.$t('新增') + " " + this.$t('任务');
+      this.title = this.$t('新增') + this.$t('空格') + this.$t('任务');
     },
     /** 修改按钮操作 */
     handleUpdate(row) {

+ 1 - 1
ui/src/views/sems/specCc/specCc-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="deviceTable" :data="specCcList" :height="clientHeight" border>
       <el-table-column :label="$t('装置')" align="center"  fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('使用部门')" align="center" fixed="left" prop="useDept" :show-overflow-tooltip="true"/>

+ 1 - 1
ui/src/views/sems/specDt/specDt-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="reTable" :data="specDtList" :height="clientHeight" border>
       <el-table-column :label="$t('装置')" align="center"  fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('档案号')" align="center"  fixed="left" prop="docno" :show-overflow-tooltip="true"/>

+ 1 - 1
ui/src/views/sems/specDzsb/specDzsb-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="reTable" :data="specDzsbList"  :height="clientHeight" border>
       <el-table-column :label="$t('装置')" align="center"  fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('装置维修组')" align="center"  fixed="left" prop="plantMaint" :show-overflow-tooltip="true"/>

+ 1 - 1
ui/src/views/sems/specGl/specGl-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="reTable" :data="specHiGlList"  :height="clientHeight" border>
       <el-table-column :label="$t('装置')" align="center" fixed="left"  prop="plantCode" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('单元')" align="center"  fixed="left" prop="unit" :show-overflow-tooltip="true"/>

+ 2 - 2
ui/src/views/sems/specYlgd/specYlgd-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="reTable" :data="specHiYlgdList" :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"  fixed="left" />
       <el-table-column :label="$t('装置')" align="center"  fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
@@ -57,7 +57,7 @@
         </template>
       </el-table-column>
       <el-table-column :label="$t('年度检查报告编号')" align="center" prop="yearReportNo" :show-overflow-tooltip="true"/>
-      <!--      <el-table-column label="部门编号" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
+      <!--      <el-table-column :label="$t('部门编号')" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
       <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
 
       <el-table-column :label="$t('创建时间')" align="center" prop="createdate" width="100">

+ 1 - 1
ui/src/views/sems/specYlrq/bf.vue

@@ -133,7 +133,7 @@
         </template>
       </el-table-column>
       <el-table-column :label="$t('年度检查报告编号')" align="center" prop="yearReportNo" :show-overflow-tooltip="true"/>
-<!--      <el-table-column label="部门编号" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
+<!--      <el-table-column :label="$t('部门编号')" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
       <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('操作')" align="center" fixed="right" width="140" class-name="small-padding fixed-width">
               <template slot-scope="scope">

+ 1 - 1
ui/src/views/sems/specYlrq/index.vue

@@ -183,7 +183,7 @@
         </template>
       </el-table-column>
       <el-table-column :label="$t('年度检查报告编号')" align="center" prop="yearReportNo" :show-overflow-tooltip="true"/>
-<!--      <el-table-column label="部门编号" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
+<!--      <el-table-column :label="$t('部门编号')" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
       <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
 
 

+ 1 - 1
ui/src/views/sems/specYlrq/specYlrq-hisReform.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="改造记录" :visible.sync="visible" width="1200px" append-to-body>
+  <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
     <el-table v-loading="loading" ref="reTable" :data="specHiYlrqList" :height="clientHeight" border>
       <el-table-column :label="$t('装置')" align="center"  fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('单元')" align="center"  fixed="left" prop="unit" :show-overflow-tooltip="true"/>

+ 2 - 2
ui/src/views/sems/specfile/index.vue

@@ -69,8 +69,8 @@
           <span>{{ parseTime(scope.row.createrDate, '{y}-{m}-{d}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column prop="deptName"  align="center" label="所属部门"></el-table-column>
-<!--      <el-table-column label="创建人" align="center" prop="createrCode" :show-overflow-tooltip="true"/>-->
+      <el-table-column prop="deptName"  align="center" :label="$t('所属部门')"></el-table-column>
+<!--      <el-table-column :label="$t('创建人')" align="center" prop="createrCode" :show-overflow-tooltip="true"/>-->
       <el-table-column :label="$t('备注')" align="center" prop="remark" :show-overflow-tooltip="true"/>
       <el-table-column :label="$t('操作')" align="center"  width="220" class-name="small-padding fixed-width">
         <template slot-scope="scope">

+ 21 - 21
ui/src/views/sems/thickness/index.vue

@@ -32,7 +32,7 @@
       <el-form-item :label="$t('测厚部位CML')" prop="position">
         <el-input
           v-model="queryParams.position"
-          :placeholder="$t('请输入') + $t('测厚部位') + 'CML'"
+          :placeholder="$t('请输入') + $t('测厚部位CML')"
           clearable
           size="small"
           @keyup.enter.native="handleQuery"
@@ -76,7 +76,7 @@
       <el-form-item :label="$t('腐蚀裕度(mm)')" prop="corAllowance">
         <el-input
           v-model="queryParams.corAllowance"
-          :placeholder="$t('请输入') + $t('请输入腐蚀裕度(mm)')"
+          :placeholder="$t('请输入') + $t('腐蚀裕度(mm)')"
           clearable
           size="small"
           @keyup.enter.native="handleQuery"
@@ -415,7 +415,7 @@
               {{dict.dictLabel}}
             </el-checkbox>
           </el-checkbox-group>
-          <el-input :placeholder="$t('请输入') + $t('其他')+ $t('检测方法')" class="otherMethod" v-if="form.inspectionMethod == 5" v-model="form.otherContent"></el-input>
+          <el-input :placeholder="$t('请输入') + $t('其他')+ $t('空格')+ $t('检测方法')" class="otherMethod" v-if="form.inspectionMethod == 5" v-model="form.otherContent"></el-input>
         </el-form-item>
         <el-form-item :label="$t('腐蚀照片')"  prop="photo">
           <el-upload
@@ -951,61 +951,61 @@ export default {
       // 表单校验
       rules: {
         plantCode: [
-          { required: true, message: "装置名称不能为空", trigger: "blur" }
+          { required: true, message: this.$t('装置名称')+this.$t('不能为空'), trigger: "blur" }
         ],
         unitCode: [
-          { required: true, message: "单元名称不能为空", trigger: "blur" }
+          { required: true, message: this.$t('单元名称')+this.$t('不能为空'), trigger: "blur" }
         ],
         position: [
-          { required: true, message: "测厚部位CML不能为空", trigger: "blur" }
+          { required: true, message: this.$t('测厚部位CML')+this.$t('不能为空'), trigger: "blur" }
         ],
         recorder: [
-          { required: true, message: "记录人不能为空", trigger: "blur" }
+          { required: true, message: this.$t('记录人')+this.$t('不能为空'), trigger: "blur" }
         ],
         recorderDate: [
-          { required: true, message: "记录时间不能为空", trigger: "blur" }
+          { required: true, message: this.$t('记录时间')+this.$t('不能为空'), trigger: "blur" }
         ],
         equipmentName: [
-          { required: true, message: "设备/管线名称不能为空", trigger: "blur" }
+          { required: true, message: this.$t('设备/管线名称')+this.$t('不能为空'), trigger: "blur" }
         ],
         material: [
-          { required: true, message: "材质不能为空", trigger: "blur" }
+          { required: true, message: this.$t('材质')+this.$t('不能为空'), trigger: "blur" }
         ],
         corAllowance: [
-          { required: true, message: "腐蚀裕度不能为空", trigger: "blur" }
+          { required: true, message: this.$t('腐蚀裕度(mm)')+this.$t('不能为空'), trigger: "blur" }
         ],
         originalThickness: [
-          { required: true, message: "原始壁厚不能为空", trigger: "blur" }
+          { required: true, message: this.$t('原始壁厚(mm)')+this.$t('不能为空'), trigger: "blur" }
         ],
         medium: [
-          { required: true, message: "介质不能为空", trigger: "blur" }
+          { required: true, message: this.$t('介质')+this.$t('不能为空'), trigger: "blur" }
         ],
         pressure: [
-          { required: true, message: "压力不能为空", trigger: "blur" }
+          { required: true, message: this.$t('压力')+this.$t('不能为空'), trigger: "blur" }
         ],
         specification: [
-          { required: true, message: "规格不能为空", trigger: "blur" }
+          { required: true, message: this.$t('规格')+this.$t('不能为空'), trigger: "blur" }
         ],
         flowRate: [
-          { required: true, message: "流速不能为空", trigger: "blur" }
+          { required: true, message: this.$t('流速(m/s)')+this.$t('不能为空'), trigger: "blur" }
         ],
         temperature: [
-          { required: true, message: "温度不能为空", trigger: "blur" }
+          { required: true, message: this.$t('温度(℃)')+this.$t('不能为空'), trigger: "blur" }
         ],
         corrosionType: [
-          { required: true, message: "腐蚀类型不能为空", trigger: "change" }
+          { required: true, message: this.$t('腐蚀类型')+this.$t('不能为空'), trigger: "change" }
         ],
         inspectionMethod: [
-          { required: true, message: "检测方法不能为空", trigger: "blur" }
+          { required: true, message: this.$t('检测方法')+this.$t('不能为空'), trigger: "blur" }
         ],
         /*analysis: [
           { required: true, message: "原因分析不能为空", trigger: "blur" }
         ],*/
         nominalTickness: [
-          { required: true, message: "名义壁厚不能为空", trigger: "blur" }
+          { required: true, message: this.$t('名义壁厚(mm)')+this.$t('不能为空'), trigger: "blur" }
         ],
         thicknessMin: [
-          { required: true, message: "最小允许壁厚不能为空", trigger: "blur" }
+          { required: true, message: this.$t('最小允许壁厚(mm)')+this.$t('不能为空'), trigger: "blur" }
         ],
         /*stCorrosion: [
           { required: true, message: "短期腐蚀速率不能为空", trigger: "blur" }

+ 18 - 18
ui/src/views/sems/thickness/record.vue

@@ -80,10 +80,10 @@
                   <em>{{ $t('点击上传') }}</em>
               </div>
               <div class="el-upload__tip" slot="tip">
-                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
-                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+                  <el-checkbox v-model="upload.updateSupport" />{{ $t('是否更新已经存在的用户数据') }}
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
               </div>
-              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+              <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
           </el-upload>
           <div slot="footer" class="dialog-footer">
               <el-button type="primary" @click="submitFileForm">{{ $t('确定') }}</el-button>
@@ -232,7 +232,7 @@ export default {
     handleAdd() {
       this.reset();
       this.open = true;
-      this.title = "添加测厚记录";
+      this.title = this.$t('添加')+this.$t('测厚记录');
     },
     add() {
       this.measure_recordList.push({
@@ -249,13 +249,13 @@ export default {
       this.form = row;
       if (row.isAdd == true) {
         addMeasurerecord(this.form).then(response => {
-          this.msgSuccess("新增成功");
+          this.msgSuccess(this.$t('新增成功'));
           this.open = false;
           this.getList();
         });
       }else {
         updateMeasurerecord(this.form).then(response => {
-          this.msgSuccess("修改成功");
+          this.msgSuccess(this.$t('修改成功'));
           this.open = false;
           this.getList();
         });
@@ -288,7 +288,7 @@ export default {
       getMeasurerecord(id).then(response => {
         this.form = response.data;
         this.open = true;
-        this.title = "修改测厚记录";
+        this.title = this.$t('修改')+this.$t('测厚记录');
       });
     },
     /** 提交按钮 */
@@ -297,13 +297,13 @@ export default {
         if (valid) {
           if (this.form.id != null) {
             updateMeasurerecord(this.form).then(response => {
-              this.msgSuccess("修改成功");
+              this.msgSuccess(this.$t('修改成功'));
               this.open = false;
               this.getList();
             });
           } else {
             addMeasurerecord(this.form).then(response => {
-              this.msgSuccess("新增成功");
+              this.msgSuccess(this.$t('新增成功'));
               this.open = false;
               this.getList();
             });
@@ -314,23 +314,23 @@ export default {
     /** 删除按钮操作 */
     handleDelete(row) {
       const ids = row.id || this.ids;
-      this.$confirm('是否确认删除?', "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
+      this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+        confirmButtonText: this.$t('确定'),
+        cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
           return delMeasurerecord(ids);
         }).then(() => {
           this.getList();
-          this.msgSuccess("删除成功");
+          this.msgSuccess(this.$t('删除成功'));
         })
     },
     /** 导出按钮操作 */
     handleExport() {
       const queryParams = this.queryParams;
-      this.$confirm('是否确认导出所有测厚记录数据项?', "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
+      this.$confirm(this.$t('是否确认导出所有测厚记录数据项?'), this.$t('警告'), {
+        confirmButtonText: this.$t('确定'),
+        cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
           return exportMeasurerecord(queryParams);
@@ -340,7 +340,7 @@ export default {
     },
       /** 导入按钮操作 */
       handleImport() {
-          this.upload.title = "用户导入";
+          this.upload.title = this.$t('用户导入');
           this.upload.open = true;
       },
       /** 下载模板操作 */
@@ -358,7 +358,7 @@ export default {
           this.upload.open = false;
           this.upload.isUploading = false;
           this.$refs.upload.clearFiles();
-          this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
+          this.$alert(response.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
           this.getList();
       },
       // 提交上传文件

+ 2 - 2
ui/src/views/system/alarmtype/index.vue

@@ -300,7 +300,7 @@ export default {
     handleAdd() {
       this.reset();
       this.open = true;
-      this.title = this.$t('新增') + " " + this.$t('报警配置管理');
+      this.title = this.$t('新增') + this.$t('空格') + this.$t('报警配置管理');
       this.diasabledInput=false;
     },
     /** 修改按钮操作 */
@@ -316,7 +316,7 @@ export default {
       getAlarmtype(id).then(response => {
         this.form = response.data;
         this.open = true;
-        this.title = this.$t('修改') + " " + this.$t('报警配置管理');
+        this.title = this.$t('修改') + this.$t('报警配置管理');
       });
     },
     /** 提交按钮 */

+ 9 - 9
ui/src/views/system/config/index.vue

@@ -1,28 +1,28 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="参数名称" prop="configName">
+      <el-form-item :label="$t('参数名称')" prop="configName">
         <el-input
           v-model="queryParams.configName"
-          placeholder="请输入参数名称"
+          :placeholder="$t('请输入')+$t('参数名称')"
           clearable
           size="small"
           style="width: 240px"
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="参数键名" prop="configKey">
+      <el-form-item :label="$t('参数键名')" prop="configKey">
         <el-input
           v-model="queryParams.configKey"
-          placeholder="请输入参数键名"
+          :placeholder="$t('请输入')+$t('参数键名')"
           clearable
           size="small"
           style="width: 240px"
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="系统内置" prop="configType">
-        <el-select v-model="queryParams.configType" placeholder="系统内置" clearable size="small">
+      <el-form-item :label="$t('系统内置')" prop="configType">
+        <el-select v-model="queryParams.configType" :placeholder="$t('系统内置')" clearable size="small">
           <el-option
             v-for="dict in typeOptions"
             :key="dict.dictValue"
@@ -31,7 +31,7 @@
           />
         </el-select>
       </el-form-item>
-      <el-form-item label="创建时间">
+      <el-form-item :label="$t('')创建时间">
         <el-date-picker
           v-model="dateRange"
           size="small"
@@ -39,8 +39,8 @@
           value-format="yyyy-MM-dd"
           type="daterange"
           range-separator="-"
-          start-placeholder="$t('开始日期')"
-          end-placeholder="$t('结束日期')"
+          :start-placeholder="$t('开始日期')"
+          :end-placeholder="$t('结束日期')"
         ></el-date-picker>
       </el-form-item>
       <el-form-item>