Commit ad8cad1a authored by zhangjianqian's avatar zhangjianqian

Merge remote-tracking branch 'origin/master'

parents 9149e3c8 555e286b
...@@ -164,6 +164,7 @@ public class THiddenTroubleInfoServiceImpl implements ITHiddenTroubleInfoService ...@@ -164,6 +164,7 @@ public class THiddenTroubleInfoServiceImpl implements ITHiddenTroubleInfoService
tHiddenDangerStandingBook.setBeyondEnterpriseId(hiddenTroubleInfo.getBeyondEnterpriseId()); tHiddenDangerStandingBook.setBeyondEnterpriseId(hiddenTroubleInfo.getBeyondEnterpriseId());
tHiddenDangerStandingBook.setCreateTime(new Date()); tHiddenDangerStandingBook.setCreateTime(new Date());
tHiddenDangerStandingBook.setHiddenTroubleType(hiddenTroubleInfo.getHiddenTroubleType()); tHiddenDangerStandingBook.setHiddenTroubleType(hiddenTroubleInfo.getHiddenTroubleType());
tHiddenDangerStandingBook.setDealPlanUrl(hiddenTroubleInfo.getDealUrl());
tHiddenDangerStandingBookMapper.insertTHiddenDangerStandingBook(tHiddenDangerStandingBook); tHiddenDangerStandingBookMapper.insertTHiddenDangerStandingBook(tHiddenDangerStandingBook);
return tHiddenTroubleInfoMapper.updateTHiddenTroubleInfo(tHiddenTroubleInfo); return tHiddenTroubleInfoMapper.updateTHiddenTroubleInfo(tHiddenTroubleInfo);
} }
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl;
import java.util.List; import java.util.List;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TStaEnterpriseInforMapper; import com.zehong.system.mapper.TStaEnterpriseInforMapper;
...@@ -52,6 +54,7 @@ public class TStaEnterpriseInforServiceImpl implements ITStaEnterpriseInforServi ...@@ -52,6 +54,7 @@ public class TStaEnterpriseInforServiceImpl implements ITStaEnterpriseInforServi
@Override @Override
public int insertTStaEnterpriseInfor(TStaEnterpriseInfor tStaEnterpriseInfor) public int insertTStaEnterpriseInfor(TStaEnterpriseInfor tStaEnterpriseInfor)
{ {
tStaEnterpriseInfor.setfCreateTime(DateUtils.getNowDate());
return tStaEnterpriseInforMapper.insertTStaEnterpriseInfor(tStaEnterpriseInfor); return tStaEnterpriseInforMapper.insertTStaEnterpriseInfor(tStaEnterpriseInfor);
} }
......
...@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fMethod != null and fMethod != ''"> and spot.f_method = #{fMethod}</if> <if test="fMethod != null and fMethod != ''"> and spot.f_method = #{fMethod}</if>
<if test="govUploadState != null and govUploadState != ''"> and spot.f_gov_upload_state = #{govUploadState}</if> <if test="govUploadState != null and govUploadState != ''"> and spot.f_gov_upload_state = #{govUploadState}</if>
</where> </where>
order by spot.f_ins_spot_rec_infor_id desc
</select> </select>
<select id="selectTInsSpotRecInforById" parameterType="Long" resultMap="TInsSpotRecInforResult"> <select id="selectTInsSpotRecInforById" parameterType="Long" resultMap="TInsSpotRecInforResult">
......
...@@ -74,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -74,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isReport != null "> and is_report = #{isReport}</if> <if test="isReport != null "> and is_report = #{isReport}</if>
<if test="fYear != null "> and f_year = #{fYear}</if> <if test="fYear != null "> and f_year = #{fYear}</if>
</where> </where>
order by f_create_time desc
</select> </select>
<select id="selectTStaEnterpriseInforById" parameterType="Long" resultMap="TStaEnterpriseInforResult"> <select id="selectTStaEnterpriseInforById" parameterType="Long" resultMap="TStaEnterpriseInforResult">
......
...@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="publishTime != null "> and publish_time = #{publishTime}</if> <if test="publishTime != null "> and publish_time = #{publishTime}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if> <if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectTTrainManageById" parameterType="Long" resultMap="TTrainManageResult"> <select id="selectTTrainManageById" parameterType="Long" resultMap="TTrainManageResult">
......
...@@ -283,22 +283,22 @@ ...@@ -283,22 +283,22 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="设备名称" prop="fDeviceName"> <el-form-item label="设备名称" prop="deviceName">
<el-input v-model="formDetailInfo.fDeviceName" placeholder="请输入设备名称" autocomplete="off"></el-input> <el-input v-model="formDetailInfo.deviceName" placeholder="请输入设备名称" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="设备型号" prop="fDeviceModel"> <el-form-item label="设备型号" prop="deviceModel">
<el-input v-model="formDetailInfo.fDeviceModel" placeholder="请输入设备型号" /> <el-input v-model="formDetailInfo.deviceModel" placeholder="请输入设备型号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="设备类型" prop="fRelationDeviceType"> <el-form-item label="设备类型" prop="relationDeviceType">
<el-input v-model="formDetailInfo.fRelationDeviceType" placeholder="请输入设备类型"> <el-input v-model="formDetailInfo.relationDeviceType" placeholder="请输入设备类型">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -312,9 +312,9 @@ ...@@ -312,9 +312,9 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="设备安装时间" prop="fDeviceInstallTime"> <el-form-item label="设备安装时间" prop="deviceInstallTime">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="formDetailInfo.fDeviceInstallTime" v-model="formDetailInfo.deviceInstallTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择安装时间"> placeholder="选择安装时间">
...@@ -323,31 +323,31 @@ ...@@ -323,31 +323,31 @@
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="安装位置" prop="fDeviceInstallPosition" > <el-form-item label="安装位置" prop="deviceInstallPosition" >
<el-input v-model="formDetailInfo.fDeviceInstallPosition" placeholder="请输入安装位置" /> <el-input v-model="formDetailInfo.deviceInstallPosition" placeholder="请输入安装位置" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="负责人" prop="fHead"> <el-form-item label="负责人" prop="head">
<el-input v-model="formDetailInfo.fHead" placeholder="请输入负责人"> <el-input v-model="formDetailInfo.head" placeholder="请输入负责人">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="联系电话" prop="fPhone" > <el-form-item label="联系电话" prop="phone" >
<el-input v-model="formDetailInfo.fPhone" placeholder="请输入联系电话" /> <el-input v-model="formDetailInfo.phone" placeholder="请输入联系电话" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="22"> <el-col :span="22">
<el-form-item label="探测介质" prop="fDetectionMedium" > <el-form-item label="探测介质" prop="detectionMedium" >
<el-input v-model="formDetailInfo.fDetectionMedium" placeholder="请输入探测介质" /> <el-input v-model="formDetailInfo.detectionMedium" placeholder="请输入探测介质" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -775,7 +775,7 @@ export default { ...@@ -775,7 +775,7 @@ export default {
/**关联设备已经选中数据删除方法*/ /**关联设备已经选中数据删除方法*/
deleteDataListilInfo(row,index){ deleteDataListilInfo(row,index){
const deviceIds = row.fSafetyDeviceId; const deviceIds = row.gasUserSafetyDeviceId;
//判断form表单是否有id来验证是修改的删除还是添加的删除 //判断form表单是否有id来验证是修改的删除还是添加的删除
if (this.form.userId != null) { if (this.form.userId != null) {
deleteSafetyDeviceInfo(deviceIds).then(response => { deleteSafetyDeviceInfo(deviceIds).then(response => {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
@click="handleDelete" @click="handleDelete"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
:loading="exportLoading" :loading="exportLoading"
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</el-col> </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -697,23 +697,16 @@ export default { ...@@ -697,23 +697,16 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateSpace(this.form).then(response => {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
if (this.datalist != null && this.datalist.length > 0) {
this.form.relationDeviceType = '3'; this.form.relationDeviceType = '3';
var tConfinedSpaceParam = { var tConfinedSpaceParam = {
tConfinedSpace: this.form, tConfinedSpace: this.form,
tDeviceInfoS: this.datalist tDeviceInfoS: this.datalist
} }
//重新绑定修改后的关联设备 updateSpace(JSON.stringify(tConfinedSpaceParam)).then(response => {
updateDetailInfoLists(JSON.stringify(tConfinedSpaceParam)).then(response => { this.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
}
} else { } else {
if (valid) { if (valid) {
const deviceIds = this.ids; const deviceIds = this.ids;
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<span <span
class="dbtn" class="dbtn"
@click="checkFile(scope.row.dealPlanUrl)" @click="checkFile(scope.row.dealPlanUrl)"
v-if="scope.row.dealPlan != ''" v-if="scope.row.dealPlanUrl != '' && scope.row.dealPlanUrl != null"
> >
<i class="el-icon el-icon-view"></i>查看/下载 <i class="el-icon el-icon-view"></i>查看/下载
</span> </span>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<el-row> <el-row>
<el-col :span="23"> <el-col :span="23">
<el-form-item label="处理方案:"> <el-form-item label="处理方案:">
<span class="dbtn" @click="checkFile(detailForm.dealPlanUrl)" v-if="detailForm.dealPlan != ''"> <span class="dbtn" @click="checkFile(detailForm.dealPlanUrl)" v-if="detailForm.dealPlanUrl != '' && detailForm.dealPlanUrl != null">
<i class="el-icon el-icon-view"></i>查看/下载 <i class="el-icon el-icon-view"></i>查看/下载
</span> </span>
<span v-else><el-input disabled/></span> <span v-else><el-input disabled/></span>
......
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