@ -180,7 +180,7 @@
/ >
/ >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
<!-- < el -form -item label = "是否乡镇 (街道) " prop = "isTowns" label -width = " 130px " >
< el -form -item label = "是否乡镇 (街道) " prop = "isTowns" label -width = " 130px " >
< el -select v -model = " queryParams.isTowns " placeholder = "请选择是否乡镇(街道)" clearable >
< el -select v -model = " queryParams.isTowns " placeholder = "请选择是否乡镇(街道)" clearable >
< el -option
< el -option
v - for = "dict in dict.type.ehs_yes_no"
v - for = "dict in dict.type.ehs_yes_no"
@ -189,7 +189,7 @@
: value = "dict.value"
: value = "dict.value"
/ >
/ >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m > - - >
< / e l - f o r m - i t e m >
< el -form -item >
< el -form -item >
< el -button type = "primary" icon = "el-icon-search" size = "mini" @click ="handleQuery" > 搜 索 < / el -button >
< el -button type = "primary" icon = "el-icon-search" size = "mini" @click ="handleQuery" > 搜 索 < / el -button >
< el -button icon = "el-icon-refresh" size = "mini" @click ="resetQuery" > 重 置 < / el -button >
< el -button icon = "el-icon-refresh" size = "mini" @click ="resetQuery" > 重 置 < / el -button >
@ -253,7 +253,7 @@
< / e l - r o w >
< / e l - r o w >
< el -table v-loading ="loading" :data="ehsHiddenDangerList" @selection-change="handleSelectionChange" max-height="550" style="width: 100%" :row-class-name="tableRowClassName" >
< el -table v-loading ="loading" :data="ehsHiddenDangerList" @selection-change="handleSelectionChange" max-height="550" style="width: 100%" :row-class-name="tableRowClassName" >
< el -table -column type = "selection" width = "55" align = "center" / >
<!-- < el -table -column type = "selection" width = "55" align = "center" / > -- >
<!-- < el -table -column label = "主键" align = "center" prop = "hiddenDangerId" / > -- >
<!-- < el -table -column label = "主键" align = "center" prop = "hiddenDangerId" / > -- >
< el -table -column label = "上报部门" align = "center" prop = "deptName" v -if = " deptShow " / >
< el -table -column label = "上报部门" align = "center" prop = "deptName" v -if = " deptShow " / >
< el -table -column label = "单位名称" align = "center" prop = "enterpriseName" >
< el -table -column label = "单位名称" align = "center" prop = "enterpriseName" >
@ -266,42 +266,43 @@
< dict -tag :options ="dict.type.enterprise_type" :value ="scope.row.enterpriseType" / >
< dict -tag :options ="dict.type.enterprise_type" :value ="scope.row.enterpriseType" / >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "企业现状" align = "center" prop = "enterpriseStatus" >
< el -table -column label = "企业现状" align = "center" prop = "enterpriseStatus" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< span > { { ( scope . row . enterpriseStatus != null && scope . row . enterpriseStatus != "" ) ? statusOptions [ scope . row . enterpriseStatus ] . label : "" } } < / span >
< span > { { ( scope . row . enterpriseStatus != null && scope . row . enterpriseStatus != "" ) ? statusOptions [ scope . row . enterpriseStatus ] . label : "" } } < / span >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "隐患数量" align = "center" prop = "hdCount" width = "50" / >
< el -table -column label = "隐患情况" align = "center" prop = "hiddenDangerDesc" / >
< el -table -column label = "隐患情况" align = "center" prop = "hiddenDangerDesc" / >
< el -table -column label = "排查时间" align = "center" prop = "checkTime" width = "100" >
< el -table -column label = "排查时间" align = "center" prop = "checkTime" width = "100" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< span > { { parseTime ( scope . row . checkTime , '{y}-{m}-{d}' ) } } < / span >
< span > { { parseTime ( scope . row . checkTime , '{y}-{m}-{d}' ) } } < / span >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "排查方式" align = "center" prop = "checkType" >
< el -table -column label = "排查方式" align = "center" prop = "checkType" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< dict -tag :options ="dict.type.check_type" :value ="scope.row.checkType" / >
< dict -tag :options ="dict.type.check_type" :value ="scope.row.checkType" / >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "整改措施" align = "center" prop = "rectifyMeasure" / >
< el -table -column label = "整改措施" align = "center" prop = "rectifyMeasure" / >
< el -table -column label = "要求整改时间" align = "center" prop = "rectifyTermTime" width = " 10 0">
< el -table -column label = "要求整改时间" align = "center" prop = "rectifyTermTime" width = " 8 0">
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< span > { { parseTime ( scope . row . rectifyTermTime , '{y}-{m}-{d}' ) } } < / span >
< span > { { parseTime ( scope . row . rectifyTermTime , '{y}-{m}-{d}' ) } } < / span >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "整改进度" align = "center" prop = "status" >
< el -table -column label = "整改进度" align = "center" prop = "status" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< dict -tag :options ="dict.type.hidden_danger_status" :value ="scope.row.status" / >
< dict -tag :options ="dict.type.hidden_danger_status" :value ="scope.row.status" / >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "整改时间" align = "center" prop = "rectifyTime" width = " 10 0">
< el -table -column label = "整改时间" align = "center" prop = "rectifyTime" width = " 8 0">
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< span > { { parseTime ( scope . row . rectifyTime , '{y}-{m}-{d}' ) } } < / span >
< span > { { parseTime ( scope . row . rectifyTime , '{y}-{m}-{d}' ) } } < / span >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "整改责任人" align = "center" prop = "principalName" / >
< el -table -column label = "整改责任人" align = "center" prop = "principalName" width = "50" / >
< el -table -column label = "监管部门" align = "center" prop = "regulatoryDept" / >
< el -table -column label = "监管部门" align = "center" prop = "regulatoryDept" / >
< el -table -column label = "监管部门责任人" align = "center" prop = "regulatoryName" / >
< el -table -column label = "监管部门责任人" align = "center" prop = "regulatoryName" width = "50" / >
< el -table -column label = "隐患级别" align = "center" prop = "hiddenDangerGrade" >
< el -table -column label = "隐患级别" align = "center" prop = "hiddenDangerGrade" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< dict -tag :options ="dict.type.hidden_danger_grade" :value ="scope.row.hiddenDangerGrade" / >
< dict -tag :options ="dict.type.hidden_danger_grade" :value ="scope.row.hiddenDangerGrade" / >
< / template >
< / template >
@ -332,18 +333,18 @@
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "整改资金" align = "center" prop = "rectifyMoney" / > -- >
< el -table -column label = "整改资金" align = "center" prop = "rectifyMoney" / > -- >
< el -table -column label = "是否督办" align = "center" prop = "isSupervise" >
< el -table -column label = "是否督办" align = "center" prop = "isSupervise" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< el -switch v -model = " scope.row.isSupervise = = 1 " @ change = "val => {isSuperviseChange(val, scope.row);}" > < / e l - s w i t c h >
< el -switch v -model = " scope.row.isSupervise = = 1 " @ change = "val => {isSuperviseChange(val, scope.row);}" > < / e l - s w i t c h >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "是否协办" align = "center" prop = "assistDept" >
< el -table -column label = "是否协办" align = "center" prop = "assistDept" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< el -link type = "primary" @ click = "val => {assistDeptClick(val, scope.row);}" > { { ( scope . row . assistDept == '' || scope . row . assistDept == null ) ? "无协办单位" : "显示协办单位" } } < / e l - l i n k >
< el -link type = "primary" @ click = "val => {assistDeptClick(val, scope.row);}" > { { ( scope . row . assistDept == '' || scope . row . assistDept == null ) ? "无协办单位" : "显示协办单位" } } < / e l - l i n k >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "标签" align = "center" prop = "hiddenDangerLabel" >
< el -table -column label = "标签" align = "center" prop = "hiddenDangerLabel" width = "50" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< dict -tag :options ="dict.type.hidden_danger_label" :value ="scope.row.hiddenDangerLabel" / >
< dict -tag :options ="dict.type.hidden_danger_label" :value ="scope.row.hiddenDangerLabel" / >
< / template >
< / template >
@ -499,22 +500,34 @@
< / e l - r o w >
< / e l - r o w >
< el -row >
< el -row >
< el -col :span ="12" >
< el -col :span ="12" >
<!-- < el -form -item label = " 是否乡镇(街道)" prop = "isTown s">
< el -form -item label = " 整改进度" prop = "statu s">
< el -select v-model ="form. isTowns" placeholder="请选择是否乡镇(街道) " :disabled ="isReadOnly" >
< el -select v-model ="form. status" placeholder="请选择整改进度 " :disabled ="isReadOnly" >
< el -option
< el -option
v - for = "dict in dict.type. ehs_yes_no "
v - for = "dict in dict.type. hidden_danger_status "
: key = "dict.value"
: key = "dict.value"
: label = "dict.label"
: label = "dict.label"
: value = "dict.value"
: value = "dict.value"
> < / e l - o p t i o n >
> < / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m > - - >
< / e l - f o r m - i t e m >
< / e l - c o l >
< / e l - c o l >
< el -col :span ="12" >
< el -col :span ="12" >
< el -form -item label = "整改进度" prop = "status" >
< el -form -item label = "排查时间" prop = "checkTime" >
< el -select v-model ="form.status" placeholder="请选择整改进度" :disabled ="isReadOnly" >
< el -date -picker clearable :readonly ="isReadOnly"
v - model = "form.checkTime"
type = "date"
value - format = "yyyy-MM-dd"
placeholder = "请选择排查时间" >
< / e l - d a t e - p i c k e r >
< / e l - f o r m - i t e m >
< / e l - c o l >
< / e l - r o w >
< el -row >
< el -col :span ="22" >
< el -form -item label = "是否乡镇(街道)" prop = "isTowns" label -width = " 130px " >
< el -select v-model ="form.isTowns" placeholder="请选择是否乡镇(街道)" :disabled ="isReadOnly" >
< el -option
< el -option
v - for = "dict in dict.type.hidden_danger_status"
v - for = "dict in dict.type. ehs_yes_no "
: key = "dict.value"
: key = "dict.value"
: label = "dict.label"
: label = "dict.label"
: value = "dict.value"
: value = "dict.value"
@ -527,19 +540,9 @@
< el -input v -model = " form.address " type = "textarea" placeholder = "请输入内容" :readonly ="isReadOnly" / >
< el -input v -model = " form.address " type = "textarea" placeholder = "请输入内容" :readonly ="isReadOnly" / >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item label = "隐患情况" prop = "hiddenDangerDesc" >
< el -form -item label = "隐患情况" prop = "hiddenDangerDesc" >
< el -input v -model = " form.hiddenDangerDesc " type = "textarea" placeholder = "请输入内容" :readonly ="isReadOnly" / >
< el -input v -model = " form.hiddenDangerDesc " type = "textarea" placeholder = "请输入内容" :readonly ="isReadOnly" @blur ="handleBlur" / >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -row >
< el -row >
< el -col :span ="12" >
< el -form -item label = "排查时间" prop = "checkTime" >
< el -date -picker clearable :readonly ="isReadOnly"
v - model = "form.checkTime"
type = "date"
value - format = "yyyy-MM-dd"
placeholder = "请选择排查时间" >
< / e l - d a t e - p i c k e r >
< / e l - f o r m - i t e m >
< / e l - c o l >
< el -col :span ="12" >
< el -col :span ="12" >
< el -form -item label = "整改期限" prop = "rectifyTermTime" >
< el -form -item label = "整改期限" prop = "rectifyTermTime" >
< el -date -picker clearable :readonly ="isReadOnly"
< el -date -picker clearable :readonly ="isReadOnly"
@ -550,6 +553,11 @@
< / e l - d a t e - p i c k e r >
< / e l - d a t e - p i c k e r >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - c o l >
< / e l - c o l >
< el -col :span ="12" >
< el -form -item label = "隐患数量" prop = "hdCount" >
< el -input v -model = " form.hdCount " :readonly ="true" / >
< / e l - f o r m - i t e m >
< / e l - c o l >
< / e l - r o w >
< / e l - r o w >
< el -form -item label = "隐患照片" prop = "hiddenDangerImg" >
< el -form -item label = "隐患照片" prop = "hiddenDangerImg" >
< image -upload v -if = " ! isReadOnly " v -model = " form.hiddenDangerImg " / >
< image -upload v -if = " ! isReadOnly " v -model = " form.hiddenDangerImg " / >
@ -708,6 +716,7 @@ export default {
/ / 是 否 显 示 弹 出 层
/ / 是 否 显 示 弹 出 层
open : false ,
open : false ,
isReadOnly : false , / / f o r m 表 单 是 否 可 以 编 辑 , 新 增 、 修 改 可 以 编 辑 、 明 细 是 只 读
isReadOnly : false , / / f o r m 表 单 是 否 可 以 编 辑 , 新 增 、 修 改 可 以 编 辑 、 明 细 是 只 读
/ / 是 否 显 示 部 门 列 表 查 询 条 件
/ / 是 否 显 示 部 门 列 表 查 询 条 件
deptShow : false ,
deptShow : false ,
curDeptId : null , / / 登 录 用 户 的 部 门 i d
curDeptId : null , / / 登 录 用 户 的 部 门 i d
@ -754,6 +763,7 @@ export default {
isTowns : null ,
isTowns : null ,
overTime : null ,
overTime : null ,
address : null ,
address : null ,
hdCount : 0 , / / 隐 患 条 数
} ,
} ,
alertState : [ {
alertState : [ {
value : '7' ,
value : '7' ,
@ -947,7 +957,12 @@ export default {
this . form . hiddenDangerLabelArray . push ( "1" ) ; * /
this . form . hiddenDangerLabelArray . push ( "1" ) ; * /
console . log ( this . form . hiddenDangerLabelArray ) ;
console . log ( this . form . hiddenDangerLabelArray ) ;
this . open = true ;
this . open = true ;
if ( isReadOnly ) {
this . title = "显示隐患信息" ;
} else {
this . title = "修改隐患信息" ;
this . title = "修改隐患信息" ;
}
} ) ;
} ) ;
} ,
} ,
@ -958,6 +973,8 @@ export default {
if ( this . form . hiddenDangerLabelArray != null ) {
if ( this . form . hiddenDangerLabelArray != null ) {
this . form . hiddenDangerLabel = this . form . hiddenDangerLabelArray . join ( ) ;
this . form . hiddenDangerLabel = this . form . hiddenDangerLabelArray . join ( ) ;
}
}
let str = this . form . hiddenDangerDesc . replace ( /; /g , ';' ) ;
this . form . hdCount = str . split ( ';' ) . length ;
if ( this . form . hiddenDangerId != null ) {
if ( this . form . hiddenDangerId != null ) {
updateEhsHiddenDanger ( this . form ) . then ( response => {
updateEhsHiddenDanger ( this . form ) . then ( response => {
this . $modal . msgSuccess ( "修改成功" ) ;
this . $modal . msgSuccess ( "修改成功" ) ;
@ -974,15 +991,20 @@ export default {
}
}
} ) ;
} ) ;
} ,
} ,
/** */
handleBlur ( ) {
console . log ( "handleBlur" ) ;
if ( this . form . hiddenDangerDesc != null && this . form . hiddenDangerDesc != null ) {
let str = this . form . hiddenDangerDesc . replace ( /; /g , ';' ) ;
this . form . hdCount = str . split ( ';' ) . length ;
} else {
this . form . hdCount = 0 ;
}
} ,
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete ( row ) {
handleDelete ( row ) {
const hiddenDangerIds = row . hiddenDangerId || this . ids ;
this . $modal . confirm ( '是否确认删除选中的隐患的数据项?' ) . then ( function ( ) {
return delEhsHiddenDanger ( hiddenDangerIds ) ;
} ) . then ( ( ) => {
this . getList ( ) ;
this . $modal . msgSuccess ( "删除成功" ) ;
} ) . catch ( ( ) => { } ) ;
} ,
} ,
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport ( ) {
handleExport ( ) {