Ver código fonte

chore: 调整

cfofpp 6 meses atrás
pai
commit
2ffb071458

+ 4 - 9
src/views/distributionnetwork/power-outage-control/completion-status/components/OverallObjectiveTable.vue

@@ -49,19 +49,14 @@
           >录入原因</el-button
         >
       </el-col> -->
-      <!-- <right-toolbar
+      <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
-      ></right-toolbar> -->
+      ></right-toolbar>
     </el-row>
     <div class="table">
-      <el-table
-        ref="renewalTable"
-        v-loading="loading"
-        :data="dataList"
-        @selection-change="handleSelectionChange"
-      >
-        <el-table-column type="selection" width="55" align="center" />
+      <el-table ref="renewalTable" v-loading="loading" :data="dataList">
+        <!-- <el-table-column type="selection" width="55" align="center" /> -->
         <el-table-column
           label="事件序号"
           align="center"

+ 13 - 1
src/views/distributionnetwork/power-outage-control/rules/index.vue

@@ -1,7 +1,13 @@
 <template>
   <!-- 奖惩规则配置 -->
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="编码名称" prop="roleName">
         <el-input
           v-model="queryParams.roleName"
@@ -41,6 +47,10 @@
           >删除</el-button
         >
       </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
     <div class="table">
       <el-table
@@ -123,6 +133,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,

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

@@ -203,7 +203,7 @@ export default {
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        year: "",
+        year: `${new Date().getFullYear()}`,
       },
     };
   },

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

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="作业类型" prop="opTypDsc">
         <el-select v-model="queryParams.opTypDsc" placeholder="请选择">
           <el-option
@@ -70,6 +76,12 @@
         >
       </el-form-item>
     </el-form>
+    <el-row :gutter="10" class="mb8">
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
+    </el-row>
     <div class="table">
       <el-table v-loading="loading" :data="dataList">
         <el-table-column prop="date" label="序号" width="80" align="center">
@@ -90,7 +102,7 @@
           <template slot-scope="scope">
             <a
               @click="handleDetail(scope.row, '明细')"
-              style="color: #00afff;cursor: pointer"
+              style="color: #00afff; cursor: pointer"
               >{{ scope.row.opContent }}</a
             >
           </template>
@@ -203,6 +215,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,

+ 13 - 1
src/views/distributionnetwork/secure/code-maintenance/index.vue

@@ -1,7 +1,13 @@
 // 风险规则配置
 <template>
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="编码名称" prop="roleName">
         <el-input
           v-model="queryParams.roleName"
@@ -41,6 +47,10 @@
           >删除</el-button
         >
       </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
     <div class="table">
       <el-table
@@ -123,6 +133,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,

+ 2 - 2
src/views/distributionnetwork/secure/components/RankingTable.vue

@@ -183,8 +183,8 @@ export default {
   // height: calc(100% - 150px);
 }
 .icon-box {
-  width: 30px;
-  height: 30px;
+  width: 23px;
+  height: 23px;
 }
 ::v-deep {
   .el-table {

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

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="作业类型" prop="opTypDsc">
         <el-select v-model="queryParams.opTypDsc" placeholder="请选择">
           <el-option
@@ -81,6 +87,10 @@
           >录入取消原因</el-button
         >
       </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
     <div class="table">
       <el-table
@@ -108,7 +118,7 @@
           <template slot-scope="scope">
             <a
               @click="handleDetail(scope.row, '明细')"
-              style="color: #00afff;cursor: pointer"
+              style="color: #00afff; cursor: pointer"
               >{{ scope.row.opContent }}</a
             >
           </template>
@@ -249,6 +259,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,

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

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="作业类型" prop="opTypDsc">
         <el-select v-model="queryParams.opTypDsc" placeholder="请选择">
           <el-option
@@ -81,6 +87,10 @@
           >录入临时计划原因</el-button
         >
       </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
     <div class="table">
       <el-table
@@ -108,7 +118,7 @@
           <template slot-scope="scope">
             <a
               @click="handleDetail(scope.row, '明细')"
-              style="color: #00afff;cursor: pointer"
+              style="color: #00afff; cursor: pointer"
               >{{ scope.row.opContent }}</a
             >
           </template>
@@ -243,6 +253,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,

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

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
+    <el-form
+      ref="queryForm"
+      :model="queryParams"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <el-form-item label="作业类型" prop="opTypDsc">
         <el-select v-model="queryParams.opTypDsc" placeholder="请选择">
           <el-option
@@ -70,6 +76,12 @@
         >
       </el-form-item>
     </el-form>
+    <el-row :gutter="10" class="mb8">
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
+    </el-row>
     <div class="table">
       <el-table ref="renewalTable" v-loading="loading" :data="dataList">
         <el-table-column prop="date" label="序号" width="80" align="center">
@@ -90,24 +102,27 @@
           <template slot-scope="scope">
             <a
               @click="handleDetail(scope.row, '明细')"
-              style="color: #00afff;cursor: pointer"
+              style="color: #00afff; cursor: pointer"
               >{{ scope.row.opContent }}</a
             >
           </template>
         </el-table-column>
-		<el-table-column
-		  label="作业风险"
-		  align="center"
-		  prop="riskType"
-		  :show-overflow-tooltip="true"
-		>
-		  <template slot-scope="scope">
-		    <div v-for="(ite, i) in riskTypeList" :key="i">
-		     <span v-if="ite.roleCode == scope.row.riskType">
-		      <el-tag type="danger" effect="dark">{{ ite.roleName }}</el-tag></span>
-		    </div>
-		  </template>
-		</el-table-column>
+        <el-table-column
+          label="作业风险"
+          align="center"
+          prop="riskType"
+          :show-overflow-tooltip="true"
+        >
+          <template slot-scope="scope">
+            <div v-for="(ite, i) in riskTypeList" :key="i">
+              <span v-if="ite.roleCode == scope.row.riskType">
+                <el-tag type="danger" effect="dark">{{
+                  ite.roleName
+                }}</el-tag></span
+              >
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column
           label="作业地址"
           align="center"
@@ -193,7 +208,6 @@
         </el-table-column>
         <el-table-column label="专业类型" align="center" prop="majorTypDsc">
         </el-table-column>
-       
       </el-table>
       <pagination
         class="page-box"
@@ -218,6 +232,8 @@ export default {
   data() {
     return {
       dataList: [],
+      // 显示搜索条件
+      showSearch: true,
       // 遮罩层
       loading: true,
       total: 0,