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

查询条件接入

parent ab937998
...@@ -333,6 +333,19 @@ export const powerRoutes=[ ...@@ -333,6 +333,19 @@ export const powerRoutes=[
}, },
name:'yhtj', name:'yhtj',
path:"yhtj" path:"yhtj"
},
{
component:'dangerManagement/yhslhz/index',
hidden:false,
meta:{
"title": "隐患数量汇总",
"icon": "",
"noCache": false,
"link": null,
"mkid":'test',
},
name:'yhslhz',
path:"yhslhz"
} }
] ]
}, },
......
...@@ -17,13 +17,19 @@ ...@@ -17,13 +17,19 @@
<el-date-picker value-format="timestamp" v-model="queryParams.jsrq"></el-date-picker> <el-date-picker value-format="timestamp" v-model="queryParams.jsrq"></el-date-picker>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">班组:</span> <span class="search-span">班组:</span>
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect> <RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="4" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">隐患类型:</span> <span class="search-span">隐患类型:</span>
<RelSelect src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='queryParams.flid' ></RelSelect> <RelSelect src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='queryParams.flid' ></RelSelect>
...@@ -37,6 +43,14 @@ ...@@ -37,6 +43,14 @@
<!--</div>--> <!--</div>-->
<!--</el-col>--> <!--</el-col>-->
</el-row> </el-row>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">报告人:</span>
<el-input v-model="queryParams.sbr"></el-input>
</div>
</el-col>
</el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
...@@ -101,7 +115,8 @@ ...@@ -101,7 +115,8 @@
ksrq: new Date().getTime()-1000*60*60*24*30, ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime(), jsrq: new Date().getTime(),
bmid:'', bmid:'',
sbr:'' sbr:'',
gsid:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
......
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">上报人:</span>
<el-input v-model="queryParams.sbr" ></el-input>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
...@@ -98,6 +104,7 @@ this.$refs['TablePager'].pageQuery() ...@@ -98,6 +104,7 @@ this.$refs['TablePager'].pageQuery()
baseUrl: '/aqgl/yhgl/yhjl', baseUrl: '/aqgl/yhgl/yhjl',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
sbr:'',
gsid:'', gsid:'',
queryType:'YHSB', queryType:'YHSB',
flid:'', flid:'',
......
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">风险点:</span> <span class="search-span">风险点:</span>
<el-input v-model="queryParams.fxd"></el-input> <!-- <el-input v-model="queryParams.fxd"></el-input> -->
<RelSelect linkage :linkParams="{gsid:queryParams.gsid}" style="width: 100%;" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='queryParams.fxd' ></RelSelect>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<!-- <AttachFileButton :app='app' ></AttachFileButton> --> <!-- <AttachFileButton :app='app' ></AttachFileButton> -->
......
<template>
<div>汇总,等待对接</div>
</template>
<script>
</script>
<style>
</style>
\ No newline at end of file
...@@ -18,8 +18,14 @@ ...@@ -18,8 +18,14 @@
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">单位:</span> <span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='kzzx/bm/query' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect> <RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">班组:</span>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -83,6 +89,7 @@ ...@@ -83,6 +89,7 @@
baseUrl: '/aqgl/yhbzfl', baseUrl: '/aqgl/yhbzfl',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
gsid:'',
ksrq: new Date().getTime()-1000*60*60*24*30, ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime(), jsrq: new Date().getTime(),
bmid:'' bmid:''
......
<template> <template>
<div class="min_full" style="height: 140vh;"> <div class="min_full" style="height: 140vh;">
<Zdzrr :app='this' v-if="showDialog" ></Zdzrr>
<div class="min_full" style="height: 40%;"> <div class="min_full" style="height: 40%;">
<!-- 查询条件--> <!-- 查询条件-->
...@@ -15,15 +15,8 @@ ...@@ -15,15 +15,8 @@
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">岗位:</span> <span class="search-span">检查人员:</span>
<el-select v-model="queryParams.gwid" clearable placeholder="请选择"> <el-input v-model="queryParams.jcr" ></el-input>
<el-option
v-for="item in doQueryScgw"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
...@@ -51,6 +44,7 @@ ...@@ -51,6 +44,7 @@
<AttachFileButton :app='app'></AttachFileButton> <AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<el-button size='mini' @click="zdzrr" type="primary">指定责任人</el-button>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -81,7 +75,7 @@ ...@@ -81,7 +75,7 @@
</template> </template>
<script> <script>
import Zdzrr from './zdzrr'
/* 引入需要的接口*/ /* 引入需要的接口*/
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
...@@ -118,6 +112,9 @@ ...@@ -118,6 +112,9 @@
}, },
data() { data() {
return { return {
DialogTitle:'指定责任人',
/*需要的额外参数 */
showDialog:false,
doQueryScgw:[], doQueryScgw:[],
activeName: 'first', activeName: 'first',
/*需要的额外参数 */ /*需要的额外参数 */
...@@ -129,8 +126,8 @@ ...@@ -129,8 +126,8 @@
baseUrl: '/aqgl/fxyk/fxpc', baseUrl: '/aqgl/fxyk/fxpc',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
jcr:'',
zt:'', zt:'',
gwid:'',
ksrq: new Date().getTime()-1000*60*60*24*30, ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime() jsrq: new Date().getTime()
}, },
...@@ -160,6 +157,13 @@ ...@@ -160,6 +157,13 @@
} }
}, },
methods: { methods: {
zdzrr(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
} else {
this.$warning('请选中一行操作');
}
},
getRow: function(e) { getRow: function(e) {
this.rowItem = e this.rowItem = e
this.$refs.Details.queryParams.fxbzid=e.fxbzid this.$refs.Details.queryParams.fxbzid=e.fxbzid
...@@ -188,7 +192,8 @@ ...@@ -188,7 +192,8 @@
components: { components: {
Edit, Edit,
Details, Details,
Content Content,
Zdzrr
} }
......
<template>
<DefaultDialog :app='app'>
<el-form slot="form" ref="form" label-width="100px" >
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr">
<personSelector :label="singleItem.zrrName||'暂无'" @selected='zrrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr">
<!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
<personSelector :label="singleItem.fcrName||'暂无'" @selected='fcrSelected' ></personSelector>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {
doFp
} from "@/api/dangerManagement/common.js"
export default {
props: {
app: {
type: Object,
default: {}
}
},
async mounted() {
this.singleItem=_.cloneDeep(this.app.singleItem)
},
name: 'role',
data() {
return {
singleItem:{
zrr:'',
zrrName:'',
fcr:'',
fcrName:''
},
}},
methods: {
save(){
let params={
id:this.singleItem.id,
fcr:this.singleItem.fcr,
zrr:this.singleItem.zrr,
}
doFp(params).then(res=>{
if(res.success){
this.$success('分配成功')
this.app.$refs['TablePager'].reLoad()
this.app.$refs['TablePager'].clearSelected()
this.app.showDialog=false
}
})
},
zrrSelected(row){
this.singleItem.zrr=row.id
},
fcrSelected(row){
this.singleItem.fcr=row.id
}
}
}
</script>
<style scoped>
</style>
...@@ -138,11 +138,13 @@ ...@@ -138,11 +138,13 @@
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "公司", prop: "gsName", fieldType: "ftString",width:192}, {label: "公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "部门", prop: "bmName", fieldType: "ftString",width:192}, // {label: "部门", prop: "bmName", fieldType: "ftString",width:192},
{label: "车间", prop: "cjName", fieldType: "ftString",width:192}, // {label: "车间", prop: "cjName", fieldType: "ftString",width:192},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:192}, {label: "岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300}, {label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxdName", fieldType: "ftString",width:300},
/* 检查部位 事故后果 固有风险等级 现有风险等级*/
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192}, {label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{ {label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id' url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
......
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