소스 검색

fix:期次

chenxinlei 2 년 전
부모
커밋
da9a11ff00
1개의 변경된 파일12개의 추가작업 그리고 27개의 파일을 삭제
  1. 12 27
      src/views/stationConfiguration/period/index.vue

+ 12 - 27
src/views/stationConfiguration/period/index.vue

@@ -37,33 +37,18 @@
         <el-table-column show-overflow-tooltip type="selection" width="55" align="center"></el-table-column>
         <el-table-column show-overflow-tooltip label="编码" prop="id" align="center" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="编号" prop="nemCode" align="center" sortable></el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="工程名称" prop="name" align="left" sortable>
-        </el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="工程名称" prop="name" align="left" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="别称" prop="aname" align="left" sortable></el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="风场编号" prop="windpowerstationId" align="center"
-          sortable>
-        </el-table-column>
-        <!-- <el-table-column width="120" show-overflow-tooltip label="变电所编号" prop="windsubStationId" align="center"
-          sortable> -->
-        </el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="装机容量" prop="capacity" align="center" sortable>
-        </el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="容量单位" prop="capacityUnit" align="center" sortable>
-        </el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="投产日期" prop="commissionDate" align="center" sortable>
-        </el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="主控电话" prop="masterPhone" align="center" sortable>
-        </el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="风场编号" prop="windpowerstationId" align="center" sortable></el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="装机容量" prop="capacity" align="center" sortable></el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="容量单位" prop="capacityUnit" align="center" sortable></el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="投产日期" prop="commissionDate" align="center" sortable></el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="主控电话" prop="masterPhone" align="center" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="机型" prop="model" align="center" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="顺序" prop="orderNum" align="center" sortable></el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="装机数量" prop="quantity" align="center" sortable>
-        </el-table-column>
+        <el-table-column width="120" show-overflow-tooltip label="装机数量" prop="quantity" align="center" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="值长" prop="shiftforeMan" align="center" sortable></el-table-column>
-        <el-table-column width="120" show-overflow-tooltip label="值长电话" prop="shiftforeManPhone" align="center"
-          sortable>
-        </el-table-column>
-        <!--  :formatter="nameEcho" -->
-
+        <el-table-column width="120" show-overflow-tooltip label="值长电话" prop="shiftforeManPhone" align="center" sortable></el-table-column>
         <el-table-column show-overflow-tooltip label="操作" width="100px" fixed="right">
           <template #default="{ row }">
             <el-button type="text" @click="handleEdit(row)">编辑</el-button>
@@ -162,9 +147,10 @@ export default {
           this.templateExcel = [
             {
               id: '',
-              code: '',
+              nemCode: '',
               name: '',
               aname: '',
+              windpowerstationId: '',
               capacity: '',
               capacityUnit: '',
               commissionDate: '',
@@ -174,7 +160,6 @@ export default {
               quantity: '',
               shiftforeMan: '',
               shiftforeManPhone: '',
-              windpowerstationId: '',
             }
           ]
           // 导出
@@ -182,9 +167,10 @@ export default {
           res.data.records.forEach(item => {
             exportExcel.push({
               id: item.id,
-              code: item.code,
+              nemCode: item.nemCode,
               name: item.name,
               aname: item.aname,
+              windpowerstationId: item.windpowerstationId,
               capacity: item.capacity,
               capacityUnit: item.capacityUnit,
               commissionDate: item.commissionDate,
@@ -194,7 +180,6 @@ export default {
               quantity: item.quantity,
               shiftforeMan: item.shiftforeMan,
               shiftforeManPhone: item.shiftforeManPhone,
-              windpowerstationId: item.windpowerstationId,
             })
           })
           this.exportExcel = exportExcel