ouyj před 4 měsíci
rodič
revize
053968a98c

+ 4 - 4
ygtx-common/src/main/java/com/ygtx/common/core/domain/entity/SysUser.java

@@ -29,15 +29,15 @@ public class SysUser extends BaseEntity
     private Long deptId;
 
     /** 用户账号 */
-    @Excel(name = "登录名称")
+    @Excel(name = "工号")
     private String userName;
 
     /** 用户昵称 */
-    @Excel(name = "用户名称")
+    @Excel(name = "姓名")
     private String nickName;
 
     /** 用户邮箱 */
-    @Excel(name = "用户邮箱")
+    @Excel(name = "邮箱")
     private String email;
 
     /** 手机号码 */
@@ -55,7 +55,7 @@ public class SysUser extends BaseEntity
     private String password;
 
     /** 账号状态(0正常 1停用) */
-    @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用")
+    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
     private String status;
 
     /** 删除标志(0代表存在 2代表删除) */

+ 3 - 4
ygtx-gxt/src/main/java/com/ygtx/gxt/domain/GxtFanInspectionScore.java

@@ -22,19 +22,18 @@ public class GxtFanInspectionScore extends BaseEntity
     private Long id;
 
     /** 风机类型 */
-    @Excel(name = "型")
+    @Excel(name = "机型")
     private String fanType;
 
     /** 检查类型ID */
-    @Excel(name = "检查类型ID")
     private Integer inspectionTypeId;
 
     /** 对应分值 */
-    @Excel(name = "对应分值")
+    @Excel(name = "分值")
     private BigDecimal score;
 
     /** 状态 */
-    @Excel(name = "状态")
+    @Excel(name = "启用状态")
     private Integer status;
 
     /** 创建者 */

+ 4 - 4
ygtx-gxt/src/main/java/com/ygtx/gxt/domain/GxtScoreProject.java

@@ -26,22 +26,22 @@ public class GxtScoreProject extends BaseEntity
     private Long id;
 
     /** 项目代码(A,B,C,D) */
-    @Excel(name = "项目代码(A,B,C,D)")
+    @Excel(name = "检修类型代码")
     @ApiModelProperty(value = "项目代码(A,B,C,D)")
     private String maintenanceType;
 
     /** 项目名称 */
-    @Excel(name = "项目名称")
+    @Excel(name = "检修类型")
     @ApiModelProperty(value = "项目名称")
     private String projectName;
 
     /** 完成一次的分值 */
-    @Excel(name = "完成一次的分值")
+    @Excel(name = "分值")
     @ApiModelProperty(value = "完成一次的分值")
     private BigDecimal scorePerCompletion;
 
     /** 状态 */
-    @Excel(name = "状态")
+    @Excel(name = "启用状态")
     @ApiModelProperty(value = "状态")
     private Integer status;
 

+ 4 - 4
ygtx-gxt/src/main/java/com/ygtx/gxt/domain/GxtScoreRuntime.java

@@ -26,7 +26,7 @@ public class GxtScoreRuntime extends BaseEntity
     private Long id;
 
     /** 运行时长范围 */
-    @Excel(name = "运行时长范围")
+    @Excel(name = "连续运行时长")
     @ApiModelProperty(value = "运行时长范围")
     private String runtimeRange;
 
@@ -36,17 +36,17 @@ public class GxtScoreRuntime extends BaseEntity
     private Integer minHours;
 
     /** 最大小时数(为空表示无上限) */
-    @Excel(name = "最大天数(为空表示无上限)")
+    @Excel(name = "最大天数")
     @ApiModelProperty(value = "最大天数(为空表示无上限)")
     private Integer maxHours;
 
     /** 对应分值 */
-    @Excel(name = "对应分值")
+    @Excel(name = "分值")
     @ApiModelProperty(value = "对应分值")
     private BigDecimal score;
 
     /** 状态 */
-    @Excel(name = "状态")
+    @Excel(name = "启用状态")
     @ApiModelProperty(value = "状态")
     private Integer status;
 

+ 30 - 9
ygtx-ui/src/views/gxt/equipment/index.vue

@@ -683,12 +683,32 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  // 显示字段选择对话框
-  showExportFieldsDialog.value = true;
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = [];
-  // 获取导出字段数据
-  getExportFieldsData();
+  // 获取导出字段数据并处理默认选中
+  getExportFieldsData().then(() => {
+    // 显示字段选择对话框
+    showExportFieldsDialog.value = true;
+    
+    // 定义默认选中的字段(基于字段标签)
+    const defaultSelectedLabels = [
+      '风机编号',
+      '维保中心',
+      '场站',
+      '品牌',
+      '机型',
+      '责任人'
+    ];
+    
+    // 在导出字段中查找对应的key
+    const selectedKeys = [];
+    exportFieldsData.value.forEach(field => {
+      if (defaultSelectedLabels.includes(field.label)) {
+        selectedKeys.push(field.key);
+      }
+    });
+    
+    // 设置默认选中的字段
+    exportFieldsSelected.value = selectedKeys;
+  });
 }
 
 /** 确认导出 */
@@ -713,9 +733,10 @@ function confirmExport() {
 
 /** 获取导出字段数据 */
 function getExportFieldsData() {
-  getExportFields().then(response => {
-    exportFieldsData.value = response.data
-  })
+  return getExportFields().then(response => {
+    exportFieldsData.value = response.data;
+    return response.data;
+  });
 }
 
 /** 导入按钮操作 */

+ 26 - 7
ygtx-ui/src/views/gxt/fanInspectionScore/index.vue

@@ -389,12 +389,30 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  // 显示字段选择对话框
-  showExportFieldsDialog.value = true;
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = [];
-  // 获取导出字段数据
-  getExportFieldsData();
+  // 获取导出字段数据并处理默认选中
+  getExportFieldsData().then(() => {
+    // 显示字段选择对话框
+    showExportFieldsDialog.value = true;
+    
+    // 定义默认选中的字段(基于字段标签)
+    const defaultSelectedLabels = [
+      '机型',
+      '维保类型',
+      '分值',
+      '启用状态'
+    ];
+    
+    // 在导出字段中查找对应的key
+    const selectedKeys = [];
+    exportFieldsData.value.forEach(field => {
+      if (defaultSelectedLabels.includes(field.label)) {
+        selectedKeys.push(field.key);
+      }
+    });
+    
+    // 设置默认选中的字段
+    exportFieldsSelected.value = selectedKeys;
+  });
 }
 
 /** 确认导出 */
@@ -419,8 +437,9 @@ function confirmExport() {
 
 /** 获取导出字段数据 */
 function getExportFieldsData() {
-  getExportFields().then(response => {
+  return getExportFields().then(response => {
     exportFieldsData.value = response.data;
+    return response.data;
   });
 }
 

+ 28 - 4
ygtx-ui/src/views/gxt/gxtOrder/index.vue

@@ -2805,8 +2805,32 @@ function submitPersonFileForm() {
 function handleExport() {
   // 显示字段选择对话框
   showExportFieldsDialog.value = true;
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = [];
+  
+  // 定义默认选中的字段(基于字段标签)
+  const defaultSelectedLabels = [
+    '工单编码',
+    '风机编号',
+    '工单状态',
+    '维保中心',
+    '场站',
+    '品牌',
+    '机型',
+    '发生时间',
+    '工作负责人',
+    '开始时间',
+    '结束时间',
+  ];
+  
+  // 在导出字段中查找对应的key
+  const selectedKeys = [];
+  exportFieldsData.value.forEach(field => {
+    if (defaultSelectedLabels.includes(field.label)) {
+      selectedKeys.push(field.key);
+    }
+  });
+  
+  // 设置默认选中的字段
+  exportFieldsSelected.value = selectedKeys;
 }
 
 /** 确认导出 */
@@ -2832,8 +2856,8 @@ function confirmExport() {
 /** 获取导出字段数据 */
 function getExportFieldsData() {
   getExportFields().then(response => {
-    exportFieldsData.value = response.data
-  })
+    exportFieldsData.value = response.data;
+  });
 }
 
 function handleMaintenanceCenterChange(selectedCenter) {

+ 28 - 4
ygtx-ui/src/views/gxt/repairOrder/index.vue

@@ -2904,8 +2904,32 @@ function handleDelete(row) {
 function handleExport() {
   // 显示字段选择对话框
   showExportFieldsDialog.value = true;
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = [];
+  
+  // 定义默认选中的字段(基于字段标签)
+  const defaultSelectedLabels = [
+    '工单编码',
+    '风机编号',
+    '工单状态',
+    '维保中心',
+    '场站',
+    '品牌',
+    '机型',
+    '发生时间',
+    '工作负责人',
+    '开始时间',
+    '结束时间',
+  ];
+  
+  // 在导出字段中查找对应的key
+  const selectedKeys = [];
+  exportFieldsData.value.forEach(field => {
+    if (defaultSelectedLabels.includes(field.label)) {
+      selectedKeys.push(field.key);
+    }
+  });
+  
+  // 设置默认选中的字段
+  exportFieldsSelected.value = selectedKeys;
 }
 
 /** 确认导出 */
@@ -3263,8 +3287,8 @@ async function submitComplete() {
 /** 获取导出字段数据 */
 function getExportFieldsData() {
   getExportFields().then(response => {
-    exportFieldsData.value = response.data
-  })
+    exportFieldsData.value = response.data;
+  });
 }
 
 /** 评分操作 */

+ 27 - 9
ygtx-ui/src/views/gxt/scoreRuntime/index.vue

@@ -294,12 +294,29 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  // 显示字段选择对话框
-  showExportFieldsDialog.value = true
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = []
-  // 获取导出字段数据
-  getExportFieldsData()
+  // 获取导出字段数据并处理默认选中
+  getExportFieldsData().then(() => {
+    // 显示字段选择对话框
+    showExportFieldsDialog.value = true
+    
+    // 定义默认选中的字段(基于字段标签)
+    const defaultSelectedLabels = [
+      '连续运行时长',
+      '分值',
+      '启用状态'
+    ];
+    
+    // 在导出字段中查找对应的key
+    const selectedKeys = [];
+    exportFieldsData.value.forEach(field => {
+      if (defaultSelectedLabels.includes(field.label)) {
+        selectedKeys.push(field.key);
+      }
+    });
+    
+    // 设置默认选中的字段
+    exportFieldsSelected.value = selectedKeys;
+  });
 }
 
 /** 确认导出 */
@@ -324,9 +341,10 @@ function confirmExport() {
 
 /** 获取导出字段数据 */
 function getExportFieldsData() {
-  getExportFields().then(response => {
-    exportFieldsData.value = response.data
-  })
+  return getExportFields().then(response => {
+    exportFieldsData.value = response.data;
+    return response.data;
+  });
 }
 
 /** 解析时间 */

+ 25 - 7
ygtx-ui/src/views/gxt/scoreproject/index.vue

@@ -308,12 +308,29 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  // 显示字段选择对话框
-  showExportFieldsDialog.value = true;
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = [];
-  // 获取导出字段数据
-  getExportFieldsData();
+  // 获取导出字段数据并处理默认选中
+  getExportFieldsData().then(() => {
+    // 显示字段选择对话框
+    showExportFieldsDialog.value = true;
+    
+    // 定义默认选中的字段(基于字段标签)
+    const defaultSelectedLabels = [
+      '检修类型',
+      '分值',
+      '启用状态'
+    ];
+    
+    // 在导出字段中查找对应的key
+    const selectedKeys = [];
+    exportFieldsData.value.forEach(field => {
+      if (defaultSelectedLabels.includes(field.label)) {
+        selectedKeys.push(field.key);
+      }
+    });
+    
+    // 设置默认选中的字段
+    exportFieldsSelected.value = selectedKeys;
+  });
 }
 
 /** 确认导出 */
@@ -338,8 +355,9 @@ function confirmExport() {
 
 /** 获取导出字段数据 */
 function getExportFieldsData() {
-  getExportFields().then(response => {
+  return getExportFields().then(response => {
     exportFieldsData.value = response.data;
+    return response.data;
   });
 }
 

+ 31 - 9
ygtx-ui/src/views/system/user/index.vue

@@ -503,12 +503,33 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  // 显示字段选择对话框
-  showExportFieldsDialog.value = true
-  // 初始时不选中任何字段(符合用户期望)
-  exportFieldsSelected.value = []
-  // 获取导出字段数据
-  getExportFieldsData()
+  // 获取导出字段数据并处理默认选中
+  getExportFieldsData().then(() => {
+    // 显示字段选择对话框
+    showExportFieldsDialog.value = true
+    
+    // 定义默认选中的字段(基于字段标签)
+    const defaultSelectedLabels = [
+      '用户编号',
+      '工号',
+      '姓名',
+      '部门',
+      '手机号码',
+      '状态',
+      '创建时间'
+    ];
+    
+    // 在导出字段中查找对应的key
+    const selectedKeys = [];
+    exportFieldsData.value.forEach(field => {
+      if (defaultSelectedLabels.includes(field.label)) {
+        selectedKeys.push(field.key);
+      }
+    });
+    
+    // 设置默认选中的字段
+    exportFieldsSelected.value = selectedKeys;
+  });
 }
 
 /** 确认导出 */
@@ -533,9 +554,10 @@ function confirmExport() {
 
 /** 获取导出字段数据 */
 function getExportFieldsData() {
-  getExportFields().then(response => {
-    exportFieldsData.value = response.data
-  })
+  return getExportFields().then(response => {
+    exportFieldsData.value = response.data;
+    return response.data;
+  });
 }
 
 /** 用户状态修改  */