Ver código fonte

[Mod 0000] 文本修改及表单隐患排查

houzekong 1 semana atrás
pai
commit
263fc9325f

+ 2 - 0
src/components/Form/src/components/FormItem.vue

@@ -136,6 +136,8 @@
           if (isFunction(dynamicPropsVal)) {
             value = dynamicPropsVal(unref(getValues));
             return value;
+          } else {
+            return value;
           }
         }
       });

+ 3 - 3
src/views/analysis/warningAnalysis/fireAreaJudgeAnalysis/fireAreaJudgeAnalysis.data.ts

@@ -33,12 +33,12 @@ export const columns: BasicColumn[] = [
   {
     title: '煤矿名称',
     dataIndex: 'mineName',
-    width: 160,
+    width: 200,
   },
   {
-    title: '老空区永久密闭',
+    title: '老空区永久密闭名称',
     dataIndex: 'devicePos',
-    width: 100,
+    width: 200,
   },
   {
     title: '所属煤层',

+ 2 - 1
src/views/analysis/warningAnalysis/reportAnalysis/index.vue

@@ -111,6 +111,7 @@
         {
           title: '恢复时间',
           dataIndex: 'endTime',
+          width: 100,
         },
       ],
       // columns: historyColumns,
@@ -147,7 +148,7 @@
               //返回值格式化(绑定值的格式)
               valueFormat: 'YYYY-MM-DD 00:00:00',
             },
-            defaultValue: dayjs().add(-30, 'day').format('YYYY-MM-DD'),
+            defaultValue: dayjs().add(-7, 'day').format('YYYY-MM-DD'),
             colProps: { span: 6 },
           },
           {

+ 1 - 1
src/views/dashboard/basicInfo/dataQuality/index.vue

@@ -149,7 +149,7 @@
   const exportType = ref<'resolved' | 'unresolved'>('unresolved'); // 记录当前导出类型
   const exportConfig = ref({
     url: '/province/dataQuaQue/exportDataQuaQueList',
-    name: '数据质量',
+    name: '数据质量问题反馈',
     params: {
       isOk: 0,
       startTime: '',

+ 4 - 4
src/views/dashboard/basicInfo/problemReport/components/ProblemReportModal.vue

@@ -59,7 +59,7 @@
               @change="changeCascader"
             />
           </a-form-item>
-          <a-form-item name="goafId" label="老空区永久密闭名称">
+          <a-form-item name="goafId" label="密闭名称">
             <a-select v-model:value="goafId" :options="goafOptions" placeholder="请选择" />
           </a-form-item>
         </div>
@@ -307,9 +307,9 @@
   // 模态框标题计算属性
   const getTitle = computed(() => {
     const titleMap = {
-      view: '质量问题详情',
-      edit: '编辑质量问题',
-      add: '新增质量问题',
+      view: '密闭墙问题详情',
+      edit: '编辑密闭墙问题',
+      add: '新增密闭墙问题',
     };
     return titleMap[mode.value];
   });

+ 4 - 5
src/views/dashboard/basicInfo/problemReport/index.vue

@@ -64,7 +64,6 @@
         <template #form-mine-cascader>
           <MineCascader
             v-model:value="innerValue"
-            style="width: 330px"
             :sync-to-store="false"
             :init-from-store="false"
             :change-on-select="false"
@@ -190,7 +189,7 @@
   const exportType = ref<'resolved' | 'unresolved'>('unresolved'); // 记录当前导出类型
   const exportConfig = ref({
     url: '/province/goafQuestionReport/exportDataQuaQueList',
-    name: '数据质量',
+    name: '密闭墙问题反馈',
     params: {
       isOk: 0,
       startTime: '',
@@ -378,13 +377,13 @@
   // 解析queJson并拼接orderNum+queCon的辅助函数
   function formatQueJson(queJsonStr: string) {
     // 空值处理
-    if (!queJsonStr) return '无质量问题';
+    if (!queJsonStr) return '无密闭墙问题';
     try {
       const queList = JSON.parse(queJsonStr);
       // 非数组格式处理
       if (!Array.isArray(queList)) return '问题格式异常';
       // 空数组处理
-      if (queList.length === 0) return '无质量问题';
+      if (queList.length === 0) return '无密闭墙问题';
       return queList
         .map((item) => {
           const goafName = item.goafName;
@@ -393,7 +392,7 @@
         })
         .join('\n'); // 多个问题分行显示
     } catch (error) {
-      console.error('解析质量问题JSON失败:', error);
+      console.error('解析密闭墙问题JSON失败:', error);
       return '问题数据解析失败';
     }
   }