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

调整

parent 76f2fd38
......@@ -44,11 +44,18 @@
: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/queryBm'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid'></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>
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bzid'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
......@@ -167,6 +174,7 @@
rwlx: '',
queryType: 'fxpc',
gsid: '',
bzid:'',
bmid: '',
jcr: '',
zt: '',
......
<template>
<!-- <div class="min_full" style="height: 140vh;"> -->
<!-- <div class="min_full" style="height: 140vh;"> -->
<div class="min_full" >
<!-- <Zdzrr :app='this' v-if="showDialog&&DialogName=='指定检查人'" ></Zdzrr> -->
<yhContent :app='this' v-if="showDialog&&DialogName=='关联隐患'" ></yhContent>
<div class="min_full">
<!-- <Zdzrr :app='this' v-if="showDialog&&DialogName=='指定检查人'" ></Zdzrr> -->
<yhContent :app='this' v-if="showDialog&&DialogName=='关联隐患'"></yhContent>
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
......@@ -11,13 +11,14 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">状态:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></RelSelect>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/zt' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.zt'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查人员:</span>
<el-input v-model="queryParams.jcr" ></el-input>
<el-input v-model="queryParams.jcr"></el-input>
</div>
</el-col>
......@@ -30,41 +31,45 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<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>
</el-col>
</el-row>
<el-row :gutter="20" class="search-row-1">
<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>
<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">
<el-col :span="4" 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>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBm'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid'></RelSelect>
</div>
</el-col> -->
<el-col :span="6" class="search-col">
</el-col>
<el-col :span="4" 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>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bzid'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查结果:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/jcjg' filterable clearable :match="{value:'id',label:'name'}" v-model='queryParams.jcjg' ></RelSelect>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/jcjg' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.jcjg'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">任务类型:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/rwlx' clearable :match="{value:'id',label:'name'}" v-model='queryParams.rwlx' ></RelSelect>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/rwlx' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.rwlx'></RelSelect>
</div>
</el-col>
</el-row>
......@@ -82,12 +87,13 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query'
@selectItem='selectItem' @getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="关联隐患" width="90" header-align="center" >
<template slot-scope="scope" >
<span @click="watchglyh(scope.row)" style="color: cornflowerblue;cursor: pointer;line-height: 30px;text-align: center;width: 70px;display: inline-block;">查看</span>
<el-table-column label="关联隐患" width="90" header-align="center">
<template slot-scope="scope">
<span @click="watchglyh(scope.row)"
style="color: cornflowerblue;cursor: pointer;line-height: 30px;text-align: center;width: 70px;display: inline-block;">查看</span>
</template>
</el-table-column>
</template>
......@@ -97,7 +103,7 @@
</template>
<script>
// import Zdzrr from './zdzrr'
// import Zdzrr from './zdzrr'
/* 引入需要的接口*/
/* 引入需要的接口*/
import {
......@@ -132,15 +138,17 @@
}
]
)
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
this.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
console.log(this)
},
data() {
return {
DialogTitle:'指定检查人',
DialogTitle: '指定检查人',
/*需要的额外参数 */
showDialog:false,
doQueryScgw:[],
showDialog: false,
doQueryScgw: [],
activeName: 'first',
/*需要的额外参数 */
showDialog: false,
......@@ -150,54 +158,120 @@
baseUrl: '/aqgl/fxyk/fxpc',
/* 查询参数*/
queryParams: {
queryType:'fxpc',
rwlx:'',
jcjg:'',
gsid:'',
bmid:'',
jcr:'',
zt:'',
queryType: 'fxpc',
rwlx: '',
jcjg: '',
gsid: '',
bmid: '',
bzid:'',
jcr: '',
zt: '',
ksrq: '',
jsrq:''
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "ID", prop: "id", fieldType: "ftString",width:192},
// {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{label: "状态", prop: "ztName", fieldType: "ftString",width:50},
{label: "任务类型", prop: "rwlxName", fieldType: "ftString",width:100},
{label: "下达日期", prop: "xdrq", fieldType: "ftDate"},
{
label: "状态",
prop: "ztName",
fieldType: "ftString",
width: 50
},
{
label: "任务类型",
prop: "rwlxName",
fieldType: "ftString",
width: 100
},
{
label: "下达日期",
prop: "xdrq",
fieldType: "ftDate"
},
// {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "检查时间", prop: "sjjcsj", fieldType: "ftDateTime"},
{label: "检查结果", prop: "jcjgName"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "检查岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "检查部位", prop: "jcyd", fieldType: "ftString",width:300},
{label: "检查人", prop: "jcrName", fieldType: "ftString",width:192},
{label: "地点", prop: "fxpcdd", fieldType: "ftString",width:192},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:192},
{label: "公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "班组", prop: "bzName", fieldType: "ftString",width:192},
{
label: "检查时间",
prop: "sjjcsj",
fieldType: "ftDateTime"
},
{
label: "检查结果",
prop: "jcjgName"
},
{
label: "创建时间",
prop: "cjsj",
fieldType: "ftDateTime"
},
{
label: "检查岗位",
prop: "gwName",
fieldType: "ftString",
width: 192
},
{
label: "检查内容",
prop: "nr",
fieldType: "ftString",
width: 300
},
{
label: "检查部位",
prop: "jcyd",
fieldType: "ftString",
width: 300
},
{
label: "检查人",
prop: "jcrName",
fieldType: "ftString",
width: 192
},
{
label: "地点",
prop: "fxpcdd",
fieldType: "ftString",
width: 192
},
{
label: "风险点",
prop: "fxd",
fieldType: "ftString",
width: 192
},
{
label: "公司",
prop: "gsName",
fieldType: "ftString",
width: 192
},
{
label: "班组",
prop: "bzName",
fieldType: "ftString",
width: 192
},
],
timer:false,
timer: false,
}
},
methods: {
watchglyh(row){
this.watchglyh.fxpcid=row.id
watchglyh(row) {
this.watchglyh.fxpcid = row.id
this.showDialog = true
this.DialogTitle='关联隐患'
this.DialogName='关联隐患'
this.DialogTitle = '关联隐患'
this.DialogName = '关联隐患'
},
zdzrr(){
zdzrr() {
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
this.DialogTitle='指定检查人'
this.DialogName='指定检查人'
this.DialogTitle = '指定检查人'
this.DialogName = '指定检查人'
} else {
this.$warning('请选中一行操作');
}
......
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