cfofpp 5 months ago
parent
commit
1d41993a54

+ 3 - 0
src/assets/styles/common.scss

@@ -52,4 +52,7 @@
 }
 .justify-between {
   justify-content: space-between;
+}
+.scroll-auto {
+  overflow-y: auto;
 }

+ 65 - 72
src/views/distributionnetwork/config/setting/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-container>
       <el-header style="text-align: center; display: block">
         <span style="font-weight: 600; font-size: 18px">配网参数信息</span>
@@ -21,20 +21,20 @@
                 label="项目编码"
                 prop="parCode"
                 :show-overflow-tooltip="true"
-								 align="center"
+                align="center"
               ></el-table-column>
               <el-table-column
                 label="项目名称"
                 prop="parName"
                 width="150"
-								 align="center"
+                align="center"
               ></el-table-column>
               <el-table-column
                 label="项目对应值"
                 prop="parValue"
-								 align="center"
+                align="center"
               ></el-table-column>
-              <el-table-column label="计量单位" prop="parUnit"  align="center">
+              <el-table-column label="计量单位" prop="parUnit" align="center">
                 <template slot-scope="scope">
                   <dict-tag
                     :options="dict.type.pdm_maintenance_time"
@@ -42,7 +42,7 @@
                   />
                 </template>
               </el-table-column>
-              <el-table-column label="状态" prop="status"  align="center">
+              <el-table-column label="状态" prop="status" align="center">
                 <template slot-scope="scope">
                   <el-tag
                     type="success"
@@ -95,21 +95,21 @@
                 label="项目编码"
                 prop="parCode"
                 width="100"
-				 align="center"
+                align="center"
                 :show-overflow-tooltip="true"
               ></el-table-column>
               <el-table-column
                 label="项目名称"
                 prop="parName"
-                width="180"  
-				 align="center"
+                width="180"
+                align="center"
               ></el-table-column>
               <el-table-column
                 label="项目对应值"
                 prop="parValue"
-				 align="center"
+                align="center"
               ></el-table-column>
-              <el-table-column label="计量单位" prop="parUnit"  align="center">
+              <el-table-column label="计量单位" prop="parUnit" align="center">
                 <template slot-scope="scope">
                   <dict-tag
                     :options="dict.type.repeat_power_failure"
@@ -117,7 +117,7 @@
                   />
                 </template>
               </el-table-column>
-              <el-table-column label="状态" prop="status"  align="center">
+              <el-table-column label="状态" prop="status" align="center">
                 <template slot-scope="scope">
                   <el-tag
                     type="success"
@@ -171,10 +171,10 @@
               <el-table-column
                 label="无故障持续时间"
                 prop="parValue"
-				 align="center"
+                align="center"
                 :show-overflow-tooltip="true"
               ></el-table-column>
-              <el-table-column label="计量单位" prop="parUnit"  align="center">
+              <el-table-column label="计量单位" prop="parUnit" align="center">
                 <template slot-scope="scope">
                   <dict-tag
                     :options="dict.type.pdm_maintenance_time"
@@ -182,12 +182,12 @@
                   />
                 </template>
               </el-table-column>
-              <el-table-column label="金额奖励" prop="parField"  align="center">
+              <el-table-column label="金额奖励" prop="parField" align="center">
                 <template #default="scope">
                   {{ scope.row.parField }}/元
                 </template>
               </el-table-column>
-              <el-table-column label="状态" prop="status"  align="center">
+              <el-table-column label="状态" prop="status" align="center">
                 <template slot-scope="scope">
                   <el-tag
                     type="success"
@@ -243,10 +243,7 @@
                 label="扣分项目"
                 prop="parName"
               ></el-table-column>
-              <el-table-column
-                label="扣分"
-                prop="parValue"
-              ></el-table-column>
+              <el-table-column label="扣分" prop="parValue"></el-table-column>
               <el-table-column label="状态" prop="status">
                 <template slot-scope="scope">
                   <el-tag
@@ -298,12 +295,12 @@
       @success="handleDicSuccess"
       @closed="dialog.info = false"
     ></fault-free-duration-dic-dialog>
-	<deduct-points-dialog
-	  v-if="dialog.info"
-	  ref="deductPointsDialog"
-	  @success="handleDicSuccess"
-	  @closed="dialog.deduct = false"
-	></deduct-points-dialog>
+    <deduct-points-dialog
+      v-if="dialog.info"
+      ref="deductPointsDialog"
+      @success="handleDicSuccess"
+      @closed="dialog.deduct = false"
+    ></deduct-points-dialog>
   </div>
 </template>
 
@@ -323,7 +320,7 @@ export default {
   components: {
     dicDialog,
     faultFreeDurationDicDialog,
-	deductPointsDialog
+    deductPointsDialog,
   },
   data() {
     return {
@@ -365,7 +362,7 @@ export default {
       dialog: {
         dic: false,
         info: false,
-		deduct:false
+        deduct: false,
       },
     };
   },
@@ -463,26 +460,26 @@ export default {
         this.$refs.deductPointsDialog.open().setData(this.form);
       });
     },
-	/** 新增按钮操作 */
-	handleAddFaultFreeDuration() {
-	  this.dialog.info = true;
-	  this.$nextTick(() => {
-	    this.form = {
-	      id: null,
-	      parCode: null,
-	      parName: "无故障持续时间",
-	      parValue: null,
-	      parUnit: null,
-	      parType: 2,
-	      remark: null,
-	      createBy: null,
-	      createTime: null,
-	      updateBy: null,
-	      updateTime: null,
-	    };
-	    this.$refs.faultFreeDurationDicDialog.open().setData(this.form);
-	  });
-	},
+    /** 新增按钮操作 */
+    handleAddFaultFreeDuration() {
+      this.dialog.info = true;
+      this.$nextTick(() => {
+        this.form = {
+          id: null,
+          parCode: null,
+          parName: "无故障持续时间",
+          parValue: null,
+          parUnit: null,
+          parType: 2,
+          remark: null,
+          createBy: null,
+          createTime: null,
+          updateBy: null,
+          updateTime: null,
+        };
+        this.$refs.faultFreeDurationDicDialog.open().setData(this.form);
+      });
+    },
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
@@ -495,16 +492,12 @@ export default {
               .open("edit")
               .setData(response.data);
           });
-        }
-		 else if (row.parType == 3) {
-		   this.dialog.deduct = true;
-		   this.$nextTick(() => {
-		     this.$refs.deductPointsDialog
-		       .open("edit")
-		       .setData(response.data);
-		   });
-		 }
-		 else {
+        } else if (row.parType == 3) {
+          this.dialog.deduct = true;
+          this.$nextTick(() => {
+            this.$refs.deductPointsDialog.open("edit").setData(response.data);
+          });
+        } else {
           this.dialog.dic = true;
           this.$nextTick(() => {
             this.$refs.dicDialog.open("edit").setData(response.data);
@@ -613,20 +606,20 @@ export default {
         </div>
       );
     },
-	renderHeader4() {
-	  return (
-	    <div>
-	      <span>操作</span>
-	      <el-button
-	        type="primary"
-	        icon="el-icon-plus"
-	        class="table-icon"
-	        size="mini"
-	        onClick={() => this.handleAddDeductPoints()}
-	      ></el-button>
-	    </div>
-	  );
-	  },
+    renderHeader4() {
+      return (
+        <div>
+          <span>操作</span>
+          <el-button
+            type="primary"
+            icon="el-icon-plus"
+            class="table-icon"
+            size="mini"
+            onClick={() => this.handleAddDeductPoints()}
+          ></el-button>
+        </div>
+      );
+    },
     //本地更新数据
     async handleDicSuccess(data, mode) {
       this.getParList(data.parType);

+ 23 - 23
src/views/distributionnetwork/maintenance/line-info/index.vue

@@ -8,15 +8,19 @@
       v-show="showSearch"
     >
       <el-form-item label="线路名称" prop="lineNm">
-        <el-input v-model="queryParams.lineNm" placeholder="请输入" clearable></el-input>
+        <el-input
+          v-model="queryParams.lineNm"
+          placeholder="请输入"
+          clearable
+        ></el-input>
+      </el-form-item>
+      <el-form-item label="主分支名称" prop="voltLvlDsc">
+        <el-input
+          v-model="queryParams.branchLineNm"
+          placeholder="请输入"
+          clearable
+        ></el-input>
       </el-form-item>
-	  <el-form-item label="主分支名称" prop="voltLvlDsc">
-	    <el-input
-	      v-model="queryParams.branchLineNm"
-	      placeholder="请输入"
-		  clearable
-	    ></el-input>
-	  </el-form-item>
       <el-form-item label="是否检修超期" prop="isMaintOverdue">
         <el-checkbox v-model="queryParams.isMaintOverdue"></el-checkbox>
       </el-form-item>
@@ -73,14 +77,14 @@
               label="主分支名称"
               align="center"
               prop="lineNm"
-			  width="150"
+              width="150"
               :show-overflow-tooltip="true"
             />
-			<el-table-column
-			  label="线路类型"
-			  align="center"
-			  prop="lineNatureDsc"
-			/>
+            <el-table-column
+              label="线路类型"
+              align="center"
+              prop="lineNatureDsc"
+            />
             <el-table-column
               label="电压等级"
               prop="voltLvlDsc"
@@ -111,7 +115,7 @@
               label="所属县公司"
               prop="stdCountyOrgNm"
               align="center"
-			  width="150"
+              width="150"
               :show-overflow-tooltip="true"
             >
             </el-table-column>
@@ -139,11 +143,7 @@
               align="center"
               :show-overflow-tooltip="true"
             />
-			<el-table-column
-			  label="状态"
-			  prop="runStDsc"
-			  align="center"
-			/>
+            <el-table-column label="状态" prop="runStDsc" align="center" />
             <el-table-column
               label="停电次数"
               prop="poweroffNum"
@@ -212,7 +212,7 @@
           label="所属县公司"
           prop="stdCountyOrgNm"
           align="center"
-		   width="150"
+          width="150"
           :show-overflow-tooltip="true"
         >
         </el-table-column>
@@ -296,7 +296,7 @@ export default {
       // 查询参数
       queryParams: {
         lineNm: "",
-		branchLineNm: "",
+        branchLineNm: "",
         isMaintOverdue: false,
         isRepeatPoweroff: false,
         pageNum: 1,
@@ -325,7 +325,7 @@ export default {
           pageNum: 1,
           pageSize: 9999,
           blgBigFeederId: row.feederId,
-		  lineNm: this.queryParams.branchLineNm,
+          lineNm: this.queryParams.branchLineNm,
         });
         this.childrenList = data.rows;
         this.childrenLoading = false;

+ 1 - 1
src/views/distributionnetwork/maintenance/process/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
        <el-form-item label="月计划编号" prop="planCode" label-width="120">
            <el-input

+ 1 - 1
src/views/distributionnetwork/power-outage-control/completion-status/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 完成情况 -->
-  <div class="app-container" style="overflow-y: scroll">
+  <div class="app-container scroll-auto">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
       <el-form-item label="时间" prop="reportYear">
         <el-date-picker

+ 3 - 3
src/views/distributionnetwork/power-outage-control/duration-analysis/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 时长分析 -->
-  <div class="app-container" style="overflow-y: scroll">
+  <div class="app-container scroll-auto">
     <el-form
       :model="queryParams"
       ref="queryForm"
@@ -93,7 +93,7 @@
     <div class="table">
       <el-table
         style="width: 100%"
-        :max-height="600"
+        :max-height="500"
         ref="renewalTable"
         v-loading="loading"
         :data="dataList"
@@ -374,7 +374,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .table {
-  height: calc(100% - 150px);
+  height: calc(100% - 180px);
 }
 ::v-deep {
   // .el-table {

+ 1 - 1
src/views/distributionnetwork/power-outage-control/target-display-board/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 目标展板 -->
-  <div class="app-container" style="overflow-y: scroll">
+  <div class="app-container scroll-auto">
     <el-form
       :model="queryParams"
       ref="queryForm"

+ 2 - 2
src/views/distributionnetwork/secure/abnormal-data/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form
       ref="queryForm"
       :model="queryParams"
@@ -341,7 +341,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .table {
-  height: calc(100% - 150px);
+  height: calc(100% - 180px);
 }
 ::v-deep {
   .el-table {

+ 1 - 1
src/views/distributionnetwork/secure/daily-newspaper/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form size="small" :inline="true">
       <el-form-item label="日期" prop="reportDate">
         <!-- <el-date-picker

+ 2 - 2
src/views/distributionnetwork/secure/reason-for-cancellation/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form
       ref="queryForm"
       :model="queryParams"
@@ -352,7 +352,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .table {
-  height: calc(100% - 150px);
+  height: calc(100% - 180px);
 }
 ::v-deep {
   .el-table {

+ 2 - 2
src/views/distributionnetwork/secure/reason-for-the-plan/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form
       ref="queryForm"
       :model="queryParams"
@@ -363,7 +363,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .table {
-  height: calc(100% - 150px);
+  height: calc(100% - 180px);
 }
 ::v-deep {
   .el-table {

+ 2 - 2
src/views/distributionnetwork/secure/risk-identification/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form
       ref="queryForm"
       :model="queryParams"
@@ -386,7 +386,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .table {
-  height: calc(100% - 150px);
+  height: calc(100% - 180px);
 }
 ::v-deep {
   .el-table {

+ 1 - 1
src/views/distributionnetwork/secure/weekly-report/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-container">
+  <div class="app-container scroll-auto">
     <el-form size="small" :inline="true">
       <el-form-item label="日期" prop="menuName">
         <el-date-picker