Browse Source

版本1.4.1 阀井巡查修改

qinhouyu 1 year ago
parent
commit
8730f1aa39
2 changed files with 56 additions and 1 deletions
  1. 8 0
      src/api/gas/valveWellInspection.js
  2. 48 1
      src/views/gas/valveWellInspection/index.vue

+ 8 - 0
src/api/gas/valveWellInspection.js

@@ -49,3 +49,11 @@ export function delValveWellInspection(id) {
     method: 'delete'
   })
 }
+
+export function getReviewList(data) {
+  return request({
+    url: '/gas/valveWellInspection/reviewList',
+    method: 'get',
+    params: data
+  })
+}

+ 48 - 1
src/views/gas/valveWellInspection/index.vue

@@ -139,6 +139,53 @@
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
+    <el-dialog title="'审核记录'" :visible.sync="reviewListShow" width="800px" append-to-body>
+      <el-table
+        :data="reviewList"
+        style="width: 100%"
+        border
+        :header-cell-style="{'text-align':'center'}"
+        height="500">
+        <el-table-column label="历史审核记录">
+          <el-table-column
+            prop="createBy"
+            label="审核人"
+            width="80">
+          </el-table-column>
+          <el-table-column
+            prop="userPost"
+            label="岗位"
+            width="65">
+            <!--            <template slot-scope="scope">-->
+            <!--              <span v-if="scope.row.userPost == 'admin'">管理员</span>-->
+            <!--              <span v-if="scope.row.userPost == 'deputyDirector'">副处长</span>-->
+            <!--              <span v-if="scope.row.userPost == 'director'">处长</span>-->
+            <!--            </template>-->
+          </el-table-column>
+          <el-table-column
+            prop="processStatus"
+            label="审核状态"
+            width="75">
+            <template slot-scope="scope">
+              {{ scope.row.processStatus == '0' ? '通过' : '拒绝' }}
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="createTime"
+            label="审核时间"
+            width="155">
+          </el-table-column>
+          <el-table-column
+            prop="processComments"
+            label="审核意见"
+            width="384">
+          </el-table-column>
+        </el-table-column>
+      </el-table>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="reviewListShow = false">关 闭</el-button>
+      </div>
+    </el-dialog>
 
     <el-table v-loading="loading" :data="valveWellInspectionList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center"/>
@@ -323,7 +370,7 @@ import {
 import {listValveWellPosition} from "@/api/gas/valveWellPosition";
 import Cookies from "js-cookie";
 import {listPostAll} from "@/api/system/post";
-import {getReviewList, updateRegulatingBoxMaintenance} from "@/api/gas/regulatingBoxMaintenance";
+import {getReviewList} from "@/api/gas/valveWellInspection";
 import {getWorker} from "@/api/gas/user";
 
 export default {