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">
......
...@@ -56,15 +56,15 @@ ...@@ -56,15 +56,15 @@
@click="downloadSuccessDataMethod" @click="downloadSuccessDataMethod"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="info" type="info"
icon="el-icon-upload2" icon="el-icon-upload2"
size="mini" size="mini"
@click="handleImport">导入</el-button> @click="handleImport">导入</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>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
</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="userType"> <el-form-item label="用户类型" prop="userType">
<el-select v-model="form.userType" placeholder="请选择用户类型"> <el-select v-model="form.userType" placeholder="请选择用户类型">
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11" v-if="form.userType === '1'"> <el-col :span="11" v-if="form.userType === '1'">
<el-form-item label="居住区(村、庄)" prop="villageId"> <el-form-item label="居住区(村、庄)" prop="villageId">
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -188,8 +188,8 @@ ...@@ -188,8 +188,8 @@
<el-input v-model="form.address" placeholder="请输入地址" /> <el-input v-model="form.address" placeholder="请输入地址" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="21"> <el-col :span="21">
<el-form-item label="经纬度坐标" prop="longitude"> <el-form-item label="经纬度坐标" prop="longitude">
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
<el-input onkeyup="this.value=this.value.replace(/\D/g,'')" v-model="form.phone" placeholder="请输入电话" /> <el-input onkeyup="this.value=this.value.replace(/\D/g,'')" v-model="form.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">
...@@ -233,8 +233,8 @@ ...@@ -233,8 +233,8 @@
<div class="tableTitle"> <div class="tableTitle">
<img :src="relationImg" style="width: 24px; height: 25px;position: relative; left: -355px; top: -12px; bottom: 8px;"/> <img :src="relationImg" style="width: 24px; height: 25px;position: relative; left: -355px; top: -12px; bottom: 8px;"/>
<span class="midText">安全装置</span> <span class="midText">安全装置</span>
<el-row :gutter="10" class="mb9"> <el-row :gutter="10" class="mb9">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
...@@ -244,10 +244,10 @@ ...@@ -244,10 +244,10 @@
size="mini" size="mini"
@click="dialogFormVisible = true" @click="dialogFormVisible = true"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<el-table v-loading="loadings" ref="multipleTable" :data="detailInfoList" tooltip-effect="dark" style="width: 100%" max-height="250"> <el-table v-loading="loadings" ref="multipleTable" :data="detailInfoList" tooltip-effect="dark" style="width: 100%" max-height="250">
<el-table-column label="设备名称" align="center" prop="deviceName" /> <el-table-column label="设备名称" align="center" prop="deviceName" />
<el-table-column label="设备型号" align="center" prop="deviceModel" /> <el-table-column label="设备型号" align="center" prop="deviceModel" />
...@@ -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>
...@@ -308,53 +308,53 @@ ...@@ -308,53 +308,53 @@
<el-input v-model="formDetailInfo.fIotNo" placeholder="请输入物联网编号" /> <el-input v-model="formDetailInfo.fIotNo" 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="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="选择安装时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</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>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="insertListDetailInfo">提 交</el-button> <el-button type="primary" @click="insertListDetailInfo">提 交</el-button>
<el-button @click="dialogFormVisible=false">取 消</el-button> <el-button @click="dialogFormVisible=false">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
@close="dialogcancelFun" @close="dialogcancelFun"
@getPath="getPath" @getPath="getPath"
/> />
<!-- 用户导入对话框 --> <!-- 用户导入对话框 -->
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload <el-upload
...@@ -387,24 +387,24 @@ ...@@ -387,24 +387,24 @@
<span>仅允许导入xls、xlsx格式文件。</span> <span>仅允许导入xls、xlsx格式文件。</span>
<el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link> <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link>
<br> <br>
<el-divider v-if="this.importError > 0 " content-position="left">错误数据导出分隔</el-divider> <el-divider v-if="this.importError > 0 " content-position="left">错误数据导出分隔</el-divider>
<br> <br>
<el-button <el-button
type="danger" type="danger"
icon="el-icon-download" icon="el-icon-download"
size="small" size="small"
@click="handleImportError" @click="handleImportError"
v-if="this.importError > 0 " v-if="this.importError > 0 "
> >
下载导入时错误数据 下载导入时错误数据
</el-button> </el-button>
<el-badge v-if="this.importError > 0 " :value="importError" class="item"> <el-badge v-if="this.importError > 0 " :value="importError" class="item">
</el-badge> </el-badge>
</div> </div>
</el-upload> </el-upload>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -414,15 +414,15 @@ ...@@ -414,15 +414,15 @@
</el-dialog> </el-dialog>
<!-- 燃气用户错误数据弹出框 --> <!-- 燃气用户错误数据弹出框 -->
<el-dialog :title="importErrorShowTitle" :visible.sync="importErrorShow" width="400px" append-to-body> <el-dialog :title="importErrorShowTitle" :visible.sync="importErrorShow" width="400px" append-to-body>
<el-form> <el-form>
<el-form-item> <el-form-item>
<div style="width: 100%; text-align: center;"> <div style="width: 100%; text-align: center;">
<el-button type="primary" @click="downloadImportError">下载</el-button> <el-button type="primary" @click="downloadImportError">下载</el-button>
<el-button type="danger" @click="clearImportErrorMethod">清除错误数据</el-button> <el-button type="danger" @click="clearImportErrorMethod">清除错误数据</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-dialog> </el-dialog>
</div> </div>
...@@ -464,7 +464,7 @@ export default { ...@@ -464,7 +464,7 @@ export default {
headers: { Authorization: "Bearer " + getToken() }, headers: { Authorization: "Bearer " + getToken() },
// 上传的地址 // 上传的地址
url: process.env.VUE_APP_BASE_API + "/supervise/user/moreSheetImportExcelLpg" // todo url: process.env.VUE_APP_BASE_API + "/supervise/user/moreSheetImportExcelLpg" // todo
}, },
importError: null, importError: null,
importErrorShow: false, importErrorShow: false,
...@@ -580,7 +580,7 @@ export default { ...@@ -580,7 +580,7 @@ export default {
// { min: 0, max: 30, message: "长度30位", trigger: "blur" }, // { min: 0, max: 30, message: "长度30位", trigger: "blur" },
], ],
}, },
//关联设备下级数据 表单校验 //关联设备下级数据 表单校验
formDetailInfoRules:{ formDetailInfoRules:{
deviceName:[ deviceName:[
...@@ -610,10 +610,10 @@ export default { ...@@ -610,10 +610,10 @@ export default {
this.gasTypeOpers = response.data; this.gasTypeOpers = response.data;
}); });
this.getNoPageListVillage(); this.getNoPageListVillage();
this.countImportError(); this.countImportError();
}, },
methods: { methods: {
// 下载燃气用户错误 按钮 // 下载燃气用户错误 按钮
handleImportError() { handleImportError() {
...@@ -627,7 +627,7 @@ export default { ...@@ -627,7 +627,7 @@ export default {
} }
}, },
//自定义-模版下载-正确数据导出-燃气用户 //自定义-模版下载-正确数据导出-燃气用户
downloadSuccessDataMethod() { downloadSuccessDataMethod() {
this.$showLoading.show() this.$showLoading.show()
...@@ -651,16 +651,16 @@ export default { ...@@ -651,16 +651,16 @@ export default {
document.body.removeChild(downloadElement); //下载完成移除元素 document.body.removeChild(downloadElement); //下载完成移除元素
window.URL.revokeObjectURL(href); //释放掉blob对象 window.URL.revokeObjectURL(href); //释放掉blob对象
this.$showLoading.hide() this.$showLoading.hide()
return true return true
}) })
}, },
// 下载燃气用户错误 按钮 // 下载燃气用户错误 按钮
downloadImportError() { downloadImportError() {
exportErrorData("1").then((res) =>{ exportErrorData("1").then((res) =>{
let blob = new Blob([res], {type: 'data:application/vnd.ms-excel;base64;charset=utf-8'}); let blob = new Blob([res], {type: 'data:application/vnd.ms-excel;base64;charset=utf-8'});
...@@ -680,8 +680,8 @@ export default { ...@@ -680,8 +680,8 @@ export default {
window.URL.revokeObjectURL(href); //释放掉blob对象 window.URL.revokeObjectURL(href); //释放掉blob对象
return true return true
}) })
this.importErrorShow = false; this.importErrorShow = false;
...@@ -712,7 +712,7 @@ export default { ...@@ -712,7 +712,7 @@ export default {
// 提交上传文件 // 提交上传文件
submitFileForm() { submitFileForm() {
this.$refs.upload.submit(); this.$refs.upload.submit();
}, },
handleImport(){ handleImport(){
...@@ -722,7 +722,7 @@ export default { ...@@ -722,7 +722,7 @@ export default {
/** 下载模板操作 */ /** 下载模板操作 */
importTemplate() { importTemplate() {
downloadLiquefiedGasTemplate().then((res) =>{ downloadLiquefiedGasTemplate().then((res) =>{
let blob = new Blob([res], {type: 'data:application/vnd.ms-excel;base64;charset=utf-8'}); let blob = new Blob([res], {type: 'data:application/vnd.ms-excel;base64;charset=utf-8'});
...@@ -742,9 +742,9 @@ export default { ...@@ -742,9 +742,9 @@ export default {
window.URL.revokeObjectURL(href); //释放掉blob对象 window.URL.revokeObjectURL(href); //释放掉blob对象
return true return true
}) })
}, },
// 文件上传处理中 // 文件上传处理中
handleFileUploadProgress(event,file,fileList) { handleFileUploadProgress(event,file,fileList) {
...@@ -756,8 +756,8 @@ export default { ...@@ -756,8 +756,8 @@ export default {
this.upload.open = false; this.upload.open = false;
this.upload.isUploading = false; this.upload.isUploading = false;
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
// this.getDataList(); // this.getDataList();
countImportError("1").then(response => { countImportError("1").then(response => {
this.importError = response.data; this.importError = response.data;
if(this.importError === 0) { if(this.importError === 0) {
...@@ -769,13 +769,13 @@ export default { ...@@ -769,13 +769,13 @@ export default {
listUser(this.queryParams).then(response => { listUser(this.queryParams).then(response => {
this.userList = response.rows; this.userList = response.rows;
this.total = response.total; this.total = response.total;
}); });
}, },
/**关联设备已经选中数据删除方法*/ /**关联设备已经选中数据删除方法*/
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 => {
...@@ -788,7 +788,7 @@ export default { ...@@ -788,7 +788,7 @@ export default {
} }
}, },
/**关联设备单条删除方法*/ /**关联设备单条删除方法*/
deleteDetailInfo(row){ deleteDetailInfo(row){
const deviceIds = row.gasUserSafetyDeviceId; const deviceIds = row.gasUserSafetyDeviceId;
...@@ -841,7 +841,7 @@ export default { ...@@ -841,7 +841,7 @@ export default {
insertListDetailInfo(){ insertListDetailInfo(){
console.log("this.detailInfoList" + this); console.log("this.detailInfoList" + this);
this.detailInfoList.push(this.formDetailInfo); this.detailInfoList.push(this.formDetailInfo);
//数据表单重置 //数据表单重置
this.formDetailInfo={ this.formDetailInfo={
relationDeviceType: null, relationDeviceType: null,
...@@ -856,8 +856,8 @@ export default { ...@@ -856,8 +856,8 @@ export default {
}; };
this.dialogFormVisible = false; this.dialogFormVisible = false;
}, },
/**关联设备添加方法*/ /**关联设备添加方法*/
addSafetyDeviceInfo(){ addSafetyDeviceInfo(){
this.$refs["formDetailInfo"].validate(valid => { this.$refs["formDetailInfo"].validate(valid => {
...@@ -903,7 +903,7 @@ export default { ...@@ -903,7 +903,7 @@ export default {
this.safetyDeviceManageLoadings = false; this.safetyDeviceManageLoadings = false;
}); });
}, },
/** 下级数据重置按钮操作 搜索框重置*/ /** 下级数据重置按钮操作 搜索框重置*/
resetQueryDate(){ resetQueryDate(){
this.dateQueryParams={ this.dateQueryParams={
...@@ -999,7 +999,7 @@ export default { ...@@ -999,7 +999,7 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.loadings = true; this.loadings = true;
//查询企业名称下拉框数据 //查询企业名称下拉框数据
selectTEnterprise().then(response => { selectTEnterprise().then(response => {
...@@ -1015,29 +1015,29 @@ export default { ...@@ -1015,29 +1015,29 @@ export default {
this.devicePos = []; this.devicePos = [];
} else { } else {
this.devicePos = [response.data.longitude, response.data.latitude]; this.devicePos = [response.data.longitude, response.data.latitude];
} }
}); });
//查询关联设备信息数据 //查询关联设备信息数据
selectSafetyDeviceDetailInfo(userId).then(response => { selectSafetyDeviceDetailInfo(userId).then(response => {
this.detailInfoList = response.data; this.detailInfoList = response.data;
this.loadings = false; this.loadings = false;
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
if (this.form.userType === '1' && this.form.villageId == null ) { if (this.form.userType === '1' && this.form.villageId == null ) {
alert("当用户类型是 ‘居民用户’ 时,居住区(村、庄) 必选"); alert("当用户类型是 ‘居民用户’ 时,居住区(村、庄) 必选");
return return
} }
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.userId != null) { if (this.form.userId != null) {
var tDeviceInfon={ var tDeviceInfon={
detectorUser:this.form, detectorUser:this.form,
gasuserSafetyDeviceInfoList:this.detailInfoList gasuserSafetyDeviceInfoList:this.detailInfoList
...@@ -1046,9 +1046,9 @@ export default { ...@@ -1046,9 +1046,9 @@ export default {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
var tDeviceInfon={ var tDeviceInfon={
detectorUser:this.form, detectorUser:this.form,
gasuserSafetyDeviceInfoList:this.detailInfoList gasuserSafetyDeviceInfoList:this.detailInfoList
...@@ -1128,7 +1128,7 @@ export default { ...@@ -1128,7 +1128,7 @@ export default {
font-size: 16px; font-size: 16px;
color: rgba(101, 101, 101, 1); color: rgba(101, 101, 101, 1);
} }
.midText { .midText {
position: absolute; position: absolute;
left: 3%; left: 3%;
...@@ -1136,10 +1136,10 @@ export default { ...@@ -1136,10 +1136,10 @@ export default {
padding: 0 15px; padding: 0 15px;
transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%);
} }
.mb9 { .mb9 {
left: -60px; left: -60px;
bottom: 8px; bottom: 8px;
} }
</style> </style>
\ No newline at end of file
...@@ -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.form.relationDeviceType = '3';
var tConfinedSpaceParam = {
tConfinedSpace: this.form,
tDeviceInfoS: this.datalist
}
updateSpace(JSON.stringify(tConfinedSpaceParam)).then(response => {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
if (this.datalist != null && this.datalist.length > 0) {
this.form.relationDeviceType = '3';
var tConfinedSpaceParam = {
tConfinedSpace: this.form,
tDeviceInfoS: this.datalist
}
//重新绑定修改后的关联设备
updateDetailInfoLists(JSON.stringify(tConfinedSpaceParam)).then(response => {
this.open = false;
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