Commit 0580795f authored by wuqinghua's avatar wuqinghua

Merge remote-tracking branch 'origin/master'

parents a6a9632f 612dc52e
...@@ -26,18 +26,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -26,18 +26,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectTHiddenTroubleInfoVo"> <sql id="selectTHiddenTroubleInfoVo">
select hidden_trouble_id, work_id, hidden_trouble_name, hidden_trouble_level, hidden_trouble_type, longitude, latitude, picture_url, hidden_trouble_describe, report_time, (select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name, report_person, hidden_trouble_deal_status, hidden_trouble_deal_condition, hidden_trouble_deal_finish_time, is_del, remarks from t_hidden_trouble_info select hidden_trouble_id, work_id, hidden_trouble_name, hidden_trouble_level, hidden_trouble_type, longitude, latitude, picture_url, hidden_trouble_describe, report_time, (select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name, report_person, hidden_trouble_deal_status, hidden_trouble_deal_condition, hidden_trouble_deal_finish_time, is_del, remarks,beyond_enterprise_id from t_hidden_trouble_info
</sql> </sql>
<select id="selectTHiddenTroubleInfoList" parameterType="THiddenTroubleInfo" resultMap="THiddenTroubleInfoResult"> <select id="selectTHiddenTroubleInfoList" parameterType="THiddenTroubleInfo" resultMap="THiddenTroubleInfoResult">
<include refid="selectTHiddenTroubleInfoVo"/> <include refid="selectTHiddenTroubleInfoVo"/>
<where> <where>
is_del='0' is_del='0'
<if test="workId != null "> and work_id = #{workId}</if>
<if test="hiddenTroubleLevel != null and hiddenTroubleLevel != ''"> and hidden_trouble_level = #{hiddenTroubleLevel}</if>
<if test="hiddenTroubleType != null and hiddenTroubleType != ''"> and hidden_trouble_type = #{hiddenTroubleType}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url = #{pictureUrl}</if>
<if test="hiddenTroubleDescribe != null and hiddenTroubleDescribe != ''"> and hidden_trouble_describe = #{hiddenTroubleDescribe}</if>
<if test="reportTime != null "> and report_time = #{reportTime}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if> <if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if> <if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if> <if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if>
<if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if>
<if test="hiddenTroubleDealCondition != null and hiddenTroubleDealCondition != ''"> and hidden_trouble_deal_condition = #{hiddenTroubleDealCondition}</if>
<if test="hiddenTroubleDealFinishTime != null "> and hidden_trouble_deal_finish_time = #{hiddenTroubleDealFinishTime}</if>
</where> </where>
group by hidden_trouble_id desc ORDER BY hidden_trouble_id DESC
</select> </select>
<select id="selectTHiddenTroubleInfoById" parameterType="Long" resultMap="THiddenTroubleInfoResult"> <select id="selectTHiddenTroubleInfoById" parameterType="Long" resultMap="THiddenTroubleInfoResult">
......
...@@ -70,7 +70,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -70,7 +70,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTWorkOrderList" parameterType="TWorkOrder" resultMap="TWorkOrderResult"> <select id="selectTWorkOrderList" parameterType="TWorkOrder" resultMap="TWorkOrderResult">
<include refid="selectTWorkOrderVo"/> <include refid="selectTWorkOrderVo"/>
<where> <where>
workOrder.is_del = '0'
<if test="workTitle != null and workTitle != ''"> and workOrder.work_title like concat('%', #{workTitle}, '%')</if> <if test="workTitle != null and workTitle != ''"> and workOrder.work_title like concat('%', #{workTitle}, '%')</if>
<if test="workType != null and workType != ''"> and workOrder.work_type = #{workType}</if> <if test="workType != null and workType != ''"> and workOrder.work_type = #{workType}</if>
<if test="workContent != null and workContent != ''"> and workOrder.work_content = #{workContent}</if> <if test="workContent != null and workContent != ''"> and workOrder.work_content = #{workContent}</if>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
</div> </div>
<div id="main1" style="width: 100%;height: 280px;"></div> <div id="main1" style="width: 100%;height: 280px;"></div>
<!-- 任务完成率 --> <!-- 任务完成率 -->
<div> <div>
...@@ -67,9 +67,9 @@ ...@@ -67,9 +67,9 @@
<span :style="{color: '#0099ff'}"> ● 未完成:{{allNum.typeTwo}}</span> <span :style="{color: '#0099ff'}"> ● 未完成:{{allNum.typeTwo}}</span>
</div> </div>
</div> </div>
<!-- <div class="echarts-two" style="margin-top: 30px;width: 430px;margin-left: 10px;"> --> <!-- <div class="echarts-two" style="margin-top: 30px;width: 430px;margin-left: 10px;"> -->
<!-- <div class="div-el"> <!-- <div class="div-el">
...@@ -227,12 +227,12 @@ ...@@ -227,12 +227,12 @@
radius: '55%', radius: '55%',
center: ['50%','58%'], center: ['50%','58%'],
data: [ data: [
{ {
value: this.allNum.typeTwo, value: this.allNum.typeTwo,
name: '未完成', name: '未完成',
itemStyle: { color: '#09f' } itemStyle: { color: '#09f' }
}, },
{ {
value: this.allNum.typeOne, value: this.allNum.typeOne,
name: '已完成' , name: '已完成' ,
itemStyle: { color: '#00ffff' } itemStyle: { color: '#00ffff' }
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
}); });
pietwo.setOption({ pietwo.setOption({
title: { title: {
text: '隐患整治数(个) : '+ (this.allNum.typeOne+this.allNum.typeTwo), text: '隐患整治数(个) : 0',
left: 'center', left: 'center',
top :20, top :20,
textStyle:{ textStyle:{
...@@ -304,13 +304,13 @@ ...@@ -304,13 +304,13 @@
radius: '55%', radius: '55%',
center: ['50%','58%'], center: ['50%','58%'],
data: [ data: [
{ {
value: this.allNum.typeTwo, value: 0,
name: '未完成', name: '未完成',
itemStyle: { color: '#09f' } itemStyle: { color: '#09f' }
}, },
{ {
value: this.allNum.typeOne, value: 0,
name: '已完成' , name: '已完成' ,
itemStyle: { color: '#00ffff' } itemStyle: { color: '#00ffff' }
}, },
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
<div class="yujingbottom"> <div class="yujingbottom">
<div>设备预警</div> <div>设备预警</div>
<span>2</span> <span>0</span>
</div> </div>
</div> </div>
<div class="yujingcenter yujing" > <div class="yujingcenter yujing" >
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</div> </div>
<div class="yujingbottom"> <div class="yujingbottom">
<div>事件情况</div> <div>事件情况</div>
<span>2</span> <span>0</span>
</div> </div>
</div> </div>
<div class="yujingright yujing" > <div class="yujingright yujing" >
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</div> </div>
<div class="yujingbottom"> <div class="yujingbottom">
<div>隐患数量</div> <div>隐患数量</div>
<span>2</span> <span>0</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -221,7 +221,6 @@ export default { ...@@ -221,7 +221,6 @@ export default {
this.getDicts("t_hidden_trouble_type").then(response => { this.getDicts("t_hidden_trouble_type").then(response => {
this.hiddenTroubleOptions = response.data; this.hiddenTroubleOptions = response.data;
}); });
console.log("fdafdsafds",this.workId)
this.getHiddenInfoList({workId:this.workId}); this.getHiddenInfoList({workId:this.workId});
}, },
methods: { methods: {
...@@ -264,7 +263,6 @@ export default { ...@@ -264,7 +263,6 @@ export default {
this.reset(); this.reset();
this.index = index; this.index = index;
this.hiddenForm = {...row}; this.hiddenForm = {...row};
console.log(row,"ffffffffff",this.hiddenForm);
this.title = "修改隐患信息" this.title = "修改隐患信息"
this.hiddenOpen = true; this.hiddenOpen = true;
if (this.hiddenForm.pictureUrl) { if (this.hiddenForm.pictureUrl) {
...@@ -288,6 +286,7 @@ export default { ...@@ -288,6 +286,7 @@ export default {
this.hiddenForm.reportTime = moment().format("YYYY-MM-DD HH:mm:ss"); this.hiddenForm.reportTime = moment().format("YYYY-MM-DD HH:mm:ss");
this.hiddenForm.reportPersonName = this.$store.state.user.name; this.hiddenForm.reportPersonName = this.$store.state.user.name;
this.hiddenForm.reportPerson = this.$store.state.user.userId; this.hiddenForm.reportPerson = this.$store.state.user.userId;
this.hiddenForm.beyondEnterpriseId = this.$store.state.user.enterpriseId;
addHiddenInfo(this.hiddenForm).then(response => { addHiddenInfo(this.hiddenForm).then(response => {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");
this.hiddenOpen = false; this.hiddenOpen = false;
...@@ -305,7 +304,8 @@ export default { ...@@ -305,7 +304,8 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function() {
return delHiddenInfo(hiddenTroubleId); //return delHiddenInfo(hiddenTroubleId);
return updateHiddenInfo({hiddenTroubleId: hiddenTroubleId,isDel: '1'})
}).then(() => { }).then(() => {
this.getHiddenInfoList({workId:this.workId}); this.getHiddenInfoList({workId:this.workId});
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
......
...@@ -93,16 +93,47 @@ ...@@ -93,16 +93,47 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-form-item label="隐患类型" prop="hiddenTroubleType"> <el-row>
<el-select v-model="hiddenForm.hiddenTroubleType" placeholder="请选择隐患类型" style="width: 330px" :disabled="isView"> <el-col :span="12">
<el-option <el-form-item label="隐患类型" prop="hiddenTroubleType">
v-for="dict in hiddenTroubleOptions" <el-select v-model="hiddenForm.hiddenTroubleType" placeholder="请选择隐患类型" style="width: 330px" :disabled="isView">
:key="dict.dictValue" <el-option
:label="dict.dictLabel" v-for="dict in hiddenTroubleOptions"
:value="dict.dictValue" :key="dict.dictValue"
></el-option> :label="dict.dictLabel"
</el-select> :value="dict.dictValue"
</el-form-item> ></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属企业" prop="beyondEnterpriseName" v-if="isView">
<el-input v-model="hiddenForm.beyondEnterpriseName" placeholder="请输入所属企业" :disabled="isView"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="处理状态" prop="hiddenTroubleDealStatus" v-if="isView">
<el-input v-if="hiddenForm.hiddenTroubleDealStatus == '1'" value="待处理" :disabled="isView"/>
<el-input v-if="hiddenForm.hiddenTroubleDealStatus == '2'" value="处理中" :disabled="isView"/>
<el-input v-if="hiddenForm.hiddenTroubleDealStatus == '3'" value="已完成" :disabled="isView"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报时间" prop="reportTime">
<el-date-picker clearable size="small"
v-model="hiddenForm.reportTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择上报时间" style="width: 100%" :disabled="isView">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="经纬度坐标" prop="longitude"> <el-form-item label="经纬度坐标" prop="longitude">
...@@ -152,6 +183,7 @@ ...@@ -152,6 +183,7 @@
</template> </template>
<script> <script>
import { getInfo } from "@/api/regulation/info";
import MyFileUpload from '@/components/MyFileUpload'; import MyFileUpload from '@/components/MyFileUpload';
import GetPos from '@/components/GetPos'; import GetPos from '@/components/GetPos';
import moment from "moment"; import moment from "moment";
...@@ -187,7 +219,8 @@ export default { ...@@ -187,7 +219,8 @@ export default {
hiddenOpen: false, hiddenOpen: false,
// 表单参数 // 表单参数
hiddenForm: { hiddenForm: {
pictureUrl: "" pictureUrl: "",
beyondEnterpriseName: "1233"
}, },
// 表单校验 // 表单校验
rules: { rules: {
...@@ -237,7 +270,7 @@ export default { ...@@ -237,7 +270,7 @@ export default {
this.hiddenOpen = true; this.hiddenOpen = true;
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
viewDetail(row,index) { viewDetail(row,index) {
this.reset(); this.reset();
this.index = index; this.index = index;
this.hiddenForm = {...row}; this.hiddenForm = {...row};
...@@ -248,6 +281,13 @@ export default { ...@@ -248,6 +281,13 @@ export default {
url: this.hiddenForm.pictureUrl, url: this.hiddenForm.pictureUrl,
}); });
} }
if(this.hiddenForm.beyondEnterpriseId && !this.hiddenForm.beyondEnterpriseName){
getInfo(this.hiddenForm.beyondEnterpriseId).then(res =>{
if(res.data){
this.$set(this.hiddenForm,"beyondEnterpriseName",res.data.enterpriseName);
}
})
}
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row,index) { handleUpdate(row,index) {
......
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="23"> <el-col :span="12">
<el-form-item label="截止日期" prop="expiryDate"> <el-form-item label="截止日期" prop="expiryDate">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="form.expiryDate" v-model="form.expiryDate"
...@@ -521,7 +521,8 @@ ...@@ -521,7 +521,8 @@
<HiddenFeedTrouble <HiddenFeedTrouble
:workId="hiddenFeedForm.workId" :workId="hiddenFeedForm.workId"
:isView="false" :isView="false"
ref="hiddenChild"/> ref="hiddenChild"
v-if="hiddenFeedOpen"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -868,7 +869,8 @@ export default { ...@@ -868,7 +869,8 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function() {
return delOrder(workIds); //return delOrder(workIds);
updateOrder({workId: workIds,isDel: '1'})
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
...@@ -1137,7 +1139,7 @@ export default { ...@@ -1137,7 +1139,7 @@ export default {
//隐患反馈取消 //隐患反馈取消
cancelHiddenFeedForm(){ cancelHiddenFeedForm(){
this.hiddenFeedOpen = false; this.hiddenFeedOpen = false;
this.hiddenFeedForm = {hiddenList:[]}; this.hiddenFeedForm = {};
this.fileList = []; this.fileList = [];
}, },
//督办 //督办
......
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