|
@@ -2,42 +2,19 @@
|
|
|
<div class="app-container">
|
|
|
<div ref="sousuH">
|
|
|
<!-- 搜索工作栏 -->
|
|
|
- <el-form
|
|
|
- :model="queryParams"
|
|
|
- ref="queryForm"
|
|
|
- size="small"
|
|
|
- :inline="true"
|
|
|
- v-show="showSearch"
|
|
|
- label-width="68px"
|
|
|
- >
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-form-item label="隐患状态" prop="dengerStatus">
|
|
|
<!-- <el-input v-model="queryParams.denger_status" placeholder="请输入隐患状态" clearable
|
|
|
@keyup.enter.native="handleQuery" /> -->
|
|
|
- <el-select
|
|
|
- v-model="queryParams.dengerStatus"
|
|
|
- placeholder="请选择状态"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in this.getDictDatas(DICT_TYPE.DENGER_STATUS)"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
+ <el-select v-model="queryParams.dengerStatus" placeholder="请选择状态" clearable size="small">
|
|
|
+ <el-option v-for="dict in this.getDictDatas(DICT_TYPE.DENGER_STATUS)" :key="dict.value" :label="dict.label"
|
|
|
+ :value="dict.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="检查时间" prop="inspectTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="queryParams.inspectTime"
|
|
|
- style="width: 240px"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- type="daterange"
|
|
|
- range-separator="-"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- />
|
|
|
+ <el-date-picker v-model="queryParams.inspectTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
+ :default-time="['00:00:00', '23:59:59']" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="状态" prop="status">
|
|
|
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
|
|
@@ -46,21 +23,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="隐患描述" prop="description">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.description"
|
|
|
- placeholder="请输入隐患描述"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.description" placeholder="请输入隐患描述" clearable @keyup.enter.native="handleQuery" />
|
|
|
<!-- <el-select v-model="queryParams.handleMethod" placeholder="请选择处理方式" clearable size="small">
|
|
|
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.DENGER_HANDLE)" :key="dict.value" :label="dict.label"
|
|
|
:value="dict.value" /> -->
|
|
|
<!-- </el-select> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleQuery"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -74,72 +44,38 @@
|
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
:loading="exportLoading" v-hasPermi="['backend:hidden-danger:export']">导出</el-button>
|
|
|
</el-col> -->
|
|
|
- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<!-- <el-table v-loading="loading" :data="list" :height="list.length ? tableHeight : 'auto'"> -->
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="list"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- >
|
|
|
+ <el-table v-loading="loading" :data="list" class-name="small-padding fixed-width">
|
|
|
<el-table-column label="ID" align="center" prop="id" width="60px" />
|
|
|
<el-table-column label="任务名称" align="center" prop="task_name" />
|
|
|
- <el-table-column
|
|
|
- label="任务类型"
|
|
|
- align="center"
|
|
|
- prop="task_type"
|
|
|
- width="120px"
|
|
|
- >
|
|
|
+ <el-table-column label="任务类型" align="center" prop="task_type" width="120px">
|
|
|
<template v-slot="scope">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.TASK_STATUS"
|
|
|
- :value="scope.row.task_type"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.TASK_STATUS" :value="scope.row.task_type" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="检查项名称" align="center" prop="insp_name" />
|
|
|
<el-table-column label="检查项类型" align="center" prop="insp_type">
|
|
|
<template v-slot="scope">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.DICT_INSPECT_TYPE"
|
|
|
- :value="scope.row.insp_type"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.DICT_INSPECT_TYPE" :value="scope.row.insp_type" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="单位名称"
|
|
|
- align="center"
|
|
|
- prop="org_name"
|
|
|
- width="150px"
|
|
|
- />
|
|
|
+ <el-table-column label="单位名称" align="center" prop="org_name" width="150px" />
|
|
|
<el-table-column label="单位类型" align="center" prop="dwlx">
|
|
|
<template v-slot="scope">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.BACKEND_ORG_TYPE"
|
|
|
- :value="scope.row.dwlx"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.BACKEND_ORG_TYPE" :value="scope.row.dwlx" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="隐患状态" align="center" prop="denger_status">
|
|
|
<template v-slot="scope">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.DENGER_STATUS"
|
|
|
- :value="scope.row.denger_status"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.DENGER_STATUS" :value="scope.row.denger_status" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="隐患描述" align="center" prop="description" />
|
|
|
- <el-table-column
|
|
|
- label="检查时间"
|
|
|
- align="center"
|
|
|
- prop="inspect_time"
|
|
|
- width="150px"
|
|
|
- >
|
|
|
+ <el-table-column label="检查时间" align="center" prop="inspect_time" width="150px">
|
|
|
<template v-slot="scope">
|
|
|
<span>{{ parseTime(scope.row.inspect_time) }}</span>
|
|
|
</template>
|
|
@@ -149,21 +85,9 @@
|
|
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- fixed="right"
|
|
|
- width="140"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="140">
|
|
|
<template v-slot="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-view"
|
|
|
- @click="handleSee(scope.row)"
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="handleSee(scope.row)">查看</el-button>
|
|
|
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['backend:hidden-danger:update']">修改</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
@@ -172,34 +96,17 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 分页组件 -->
|
|
|
- <pagination
|
|
|
- v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="queryParams.pageNo"
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList" />
|
|
|
<!-- 对话框(添加 / 修改) -->
|
|
|
- <el-dialog
|
|
|
- :title="title"
|
|
|
- :visible.sync="open"
|
|
|
- width="500px"
|
|
|
- v-dialogDrag
|
|
|
- append-to-body
|
|
|
- >
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="500px" v-dialogDrag append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-form-item label="处理结果" prop="handleResult">
|
|
|
<el-input v-model="form.handleResult" placeholder="请输入处理结果" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="处理时间" prop="handleTime">
|
|
|
- <el-date-picker
|
|
|
- clearable
|
|
|
- v-model="form.handleTime"
|
|
|
- type="date"
|
|
|
- value-format="timestamp"
|
|
|
- placeholder="选择处理时间"
|
|
|
- style="width: 100%"
|
|
|
- />
|
|
|
+ <el-date-picker clearable v-model="form.handleTime" type="date" value-format="timestamp" placeholder="选择处理时间"
|
|
|
+ style="width: 100%" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="状态" prop="status">
|
|
|
<el-radio-group v-model="form.status" style="width: 100%;">
|
|
@@ -208,17 +115,9 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="处理方式" prop="handleMethod">
|
|
|
- <el-select
|
|
|
- v-model="form.handleMethod"
|
|
|
- placeholder="请选择处理方式"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in this.getDictDatas(DICT_TYPE.DENGER_HANDLE)"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
+ <el-select v-model="form.handleMethod" placeholder="请选择处理方式" style="width: 100%">
|
|
|
+ <el-option v-for="dict in this.getDictDatas(DICT_TYPE.DENGER_HANDLE)" :key="dict.value" :label="dict.label"
|
|
|
+ :value="dict.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -227,30 +126,16 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog
|
|
|
- title="详细信息查看"
|
|
|
- :visible.sync="openSeedialog"
|
|
|
- width="85vw"
|
|
|
- class="detail"
|
|
|
- >
|
|
|
- <el-form
|
|
|
- ref="form"
|
|
|
- :model="deatilData"
|
|
|
- label-width="auto"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
+ <el-dialog title="详细信息查看" :visible.sync="openSeedialog" width="85vw" class="detail">
|
|
|
+ <el-form ref="form" :model="deatilData" label-width="auto" label-position="left">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="任务名称:" prop="inspName">
|
|
|
<div>{{ deatilData.task_name }}</div>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="任务类型:" prop="dwdz">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.TASK_STATUS"
|
|
|
- :value="deatilData.task_type"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.TASK_STATUS" :value="deatilData.task_type" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -258,14 +143,10 @@
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="检查项名称:" prop="insp_name">
|
|
|
<div>{{ deatilData.insp_name }}</div>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="检查项类型:" prop="insp_type">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.DICT_INSPECT_TYPE"
|
|
|
- :value="deatilData.insp_type"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.DICT_INSPECT_TYPE" :value="deatilData.insp_type" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -273,14 +154,10 @@
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="单位名称:" prop="org_name">
|
|
|
<div>{{ deatilData.org_name }}</div>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="单位类型:" prop="dwlx">
|
|
|
- <dict-tag
|
|
|
- :type="DICT_TYPE.BACKEND_ORG_TYPE"
|
|
|
- :value="deatilData.dwlx"
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.BACKEND_ORG_TYPE" :value="deatilData.dwlx" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -288,8 +165,7 @@
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="隐患状态:" prop="denger_status">
|
|
|
<div>{{ deatilData.denger_status }}</div>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="隐患描述:" prop="description">
|
|
|
<div>{{ deatilData.description }}</div>
|
|
@@ -300,23 +176,22 @@
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="检查项时间:" prop="insp_name">
|
|
|
<span>{{ parseTime(deatilData.inspect_time) }}</span>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="现场照片:" prop="insp_name">
|
|
|
- <div v-if="imgDeatilData.imgUrlList"><img v-for="(item,index) in imgDeatilData.imgUrlList" :key="index" :src="item.imgUrl" style="width:120px;height:120px;margin-right: 30px;"></div>
|
|
|
+ <div v-if="imgDeatilData.imgUrlList"><img v-for="(item, index) in imgDeatilData.imgUrlList" :key="index"
|
|
|
+ :src="item.imgUrl" style="width:120px;height:120px;margin-right: 30px;"></div>
|
|
|
<div v-else style="justify-content:space-around;margin-top:10px;">
|
|
|
- <img v-if="imgDeatilData.imgUrl1" :showLoading="true" :src="imgDeatilData.imgUrl1"
|
|
|
- style="width:120px;height:120px;margin-right: 30px;"/>
|
|
|
- <img v-if="imgDeatilData.imgUrl2" :showLoading="true"
|
|
|
- :src="imgDeatilData.imgUrl2" style="width:120px;height:120px;margin-right: 30px;"/>
|
|
|
- <img v-if="imgDeatilData.imgUrl3" :showLoading="true"
|
|
|
- :src="imgDeatilData.imgUrl3" style="width:120px;height:120px;"/>
|
|
|
+ <img v-if="imgDeatilData.imgUrl1" :showLoading="true" :src="imgDeatilData.imgUrl1"
|
|
|
+ style="width:120px;height:120px;margin-right: 30px;" />
|
|
|
+ <img v-if="imgDeatilData.imgUrl2" :showLoading="true" :src="imgDeatilData.imgUrl2"
|
|
|
+ style="width:120px;height:120px;margin-right: 30px;" />
|
|
|
+ <img v-if="imgDeatilData.imgUrl3" :showLoading="true" :src="imgDeatilData.imgUrl3"
|
|
|
+ style="width:120px;height:120px;" />
|
|
|
</div>
|
|
|
- </el-form-item></el-col
|
|
|
- >
|
|
|
+ </el-form-item></el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
|
|
@@ -556,7 +431,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -575,7 +450,7 @@ export default {
|
|
|
this.$download.excel(response, "隐患列表.xls");
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
},
|
|
|
};
|