Commit f4c01ecb authored by 李苏's avatar 李苏 💬

隐患数量

parent 9dc7f639
import request from 'common/src/utils/request'
/* query逐年月隐患统计 */
export function queryYhsbtj(query) {
return request({
url: 'aqgl/yhgl/yhjl/yhsbtj',
method: 'post',
data: query||{}
})
}
/* 更新 */
\ No newline at end of file
......@@ -19,9 +19,9 @@
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<el-radio v-model="radio" label="gs">按公司</el-radio>
<el-radio v-model="radio" label="bz">按班组</el-radio>
<el-radio v-model="radio" label="ry">按人员</el-radio>
<el-radio v-model="queryParams.hzfs" label="GS">按公司</el-radio>
<el-radio v-model="queryParams.hzfs" label="BM">按班组</el-radio>
<el-radio v-model="queryParams.hzfs" label="RY">按人员</el-radio>
</div>
</el-col>
......@@ -30,11 +30,11 @@
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<!-- <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<AttachFileButton :app='app' ></AttachFileButton> -->
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
......@@ -55,13 +55,8 @@
<script>
/* 引入需要的接口*/
import {
QueryKzzxRole,
QueryApptype,
AddKzzxRole,
DeleteKzzxRole,
UpdateKzzxRole,
QtKzzxRole
} from "common/src/api/system/dmgSystem.js";
queryYhsbtj
} from "@/api/dangerManagement/yhslhz.js";
/* edit页面*/
import Edit from './edit'
import {
......@@ -69,24 +64,22 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
radio:'ry',
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'kzzx/role',
baseUrl: 'aqgl/yhgl/yhjl/yhsbtj',
/* 查询参数*/
queryParams: {
hzfs:'RY',
ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime()
},
......@@ -139,38 +132,13 @@
methods: {
/* 基础查询*/
query: QueryKzzxRole,
/* 基础增*/
apiAdd: AddKzzxRole,
/* 基础更新*/
apiUpdate: UpdateKzzxRole,
/* 删除操作*/
apiDelete: DeleteKzzxRole,
query: queryYhsbtj,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
}
},
......
......@@ -13,7 +13,7 @@
<el-option
v-for="item in yearsToNow"
:key="item"
:label="item+'年'"
:label="item?(item+'年'):'全部'"
:value="item">
</el-option>
</el-select>
......@@ -22,7 +22,7 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">月:</span>
<el-select style="width: 100%;" v-model="queryParams.month" placeholder="请选择">
<el-select clearable style="width: 100%;" v-model="queryParams.month" placeholder="请选择">
<el-option
v-for="item in 12"
:key="item"
......@@ -89,6 +89,7 @@
for (let i = 0; i <= Years; i++) {
arrYear.push(nowYears--)
}
this.yearsToNow.push('')
arrYear.forEach(item => {
//下拉框的数组
this.yearsToNow.push(item)
......
......@@ -98,7 +98,7 @@
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}},
{label: "分值", prop: "fz", fieldType: "float"},
{label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192},
{label: "风险类型", prop: "fxlxName", fieldType: "ftString",width:192},
{label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160},
{label: "管理层级", prop: "glcj",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/glcj',label:'name',value:'id'
......
......@@ -22,15 +22,15 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="作业活动设施风险点">
<el-form-item label="风险点">
<el-input :value="details.fxd" >
</el-input>
</el-form-item>
</el-col>
<!-- 为对接-->
<el-col :span="8">
<el-form-item label="事故类型">
<!-- <RelSelect readonly style="width: 100%;" src='/aqgl/fxyk/fxsj/init/shxz' clearable :match="{value:'id',label:'name'}" v-model='details.sglx' ></RelSelect> -->
<el-input :value="details.sglx" >
<el-form-item label="固有风险等级">
<el-input :value="details.fxd" >
</el-input>
</el-form-item>
</el-col>
......@@ -42,6 +42,82 @@
</el-input> -->
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="风险点">
<el-input :value="details.fxd" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检查部位">
<el-input type="textarea" :value="details.fxd" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="危害因素">
<el-input :value="details.whys" type="textarea" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="事故后果">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<!-- -->
<el-col :span="24">
<el-form-item label="技术措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="管理措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="教育措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="个体防护措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="应急措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="其他措施">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注">
<el-input :value="details.bz" type="textarea">
</el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="8">
<el-form-item label="事故类型">
<el-input :value="details.sglx" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="危险分值">
<el-input :value="details.fz" >
......@@ -51,8 +127,8 @@
<el-col :span="8">
<el-form-item label=" 风险类型">
<RelSelect style="width: 100%;" readonly src='/aqgl/fxyk/shlx/query' clearable :match="{value:'id',label:'name'}" v-model='details.fxlx' ></RelSelect>
<!-- <el-input :value="details.fxlx" >
</el-input> -->
</el-input>
</el-form-item>
</el-col>
......@@ -65,14 +141,13 @@
<el-col :span="8">
<el-form-item label="管理层级">
<RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/glcj' :match="{value:'id',label:'name'}" v-model='details.glcj' ></RelSelect>
<!-- <el-input :value="details.glcj" >
</el-input> -->
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="拍照选项">
<RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/pzxx' :match="{value:'id',label:'name'}" v-model='details.pzxx' ></RelSelect>
<!-- <el-input :value="details.pzxx" > -->
</el-input>
</el-form-item>
</el-col>
......@@ -83,18 +158,8 @@
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="危害因素">
<el-input :value="details.whys" type="textarea" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="事故后果">
<el-input :value="details.sghg" type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检查措施描述">
<el-input :value="details.jccsms" type="textarea">
......@@ -106,8 +171,8 @@
<el-input :value="details.bz" type="textarea" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
</el-col> -->
<!-- <el-col :span="8">
<el-form-item label="序号">
<el-input :value="details.xh" >
</el-input>
......@@ -142,7 +207,7 @@
<el-input :value="details.zrrName" >
</el-input>
</el-form-item>
</el-col>
</el-col> -->
</el-row>
</el-form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment