fix: BUG修改

This commit is contained in:
kun 2024-05-09 16:43:21 +08:00
parent 4eb29cfc97
commit 92a700d3d4
5 changed files with 114 additions and 19 deletions

View File

@ -85,13 +85,13 @@ if (process.env.NODE_ENV === 'development') {
// Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址
// Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址
// Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢线上地址(弃用)
Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢线上地址
// Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢线上测试地址
// Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢线上地址
Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢线上测试地址
// Vue.prototype.url_config = 'http://182.90.224.237:51234/' // 百色三标段
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' // 百色三标段
// Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用)
Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址
// Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址
// Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址
Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址
// Vue.prototype.work_url = 'http://192.168.34.139:5173' // 工作流地址
// Vue.prototype.url_config = 'http://182.90.224.147:100/' //演示平台
// Vue.prototype.url_config ='http://124.71.178.44:8012/' // 河南

View File

@ -441,6 +441,15 @@
this.contractList = res.result.contractList; //
this.physicalsList = res.result.physicalsList; //
this.safeEducationList = res.result.safeEducationList; //
//
if(this.workerInfo.idCard){
let str = "***************"
this.workerInfo.idCard = this.workerInfo.idCard.substring(0,3)+str+this.workerInfo.idCard.substring(16)
}
if(this.workerInfo.attendanceNumber){
let str = "***************"
this.workerInfo.attendanceNumber = this.workerInfo.attendanceNumber.substring(0,3)+str+this.workerInfo.attendanceNumber.substring(16)
}
if (this.workerInfo) {
this.setCodeColor(this.workerInfo.safeScore)
} else {

View File

@ -758,6 +758,18 @@
}
})
},
dealFalseCheck(arr){
arr.map(item => {
if(item.children){
item.checked = false;
item.orChecked = false;
this.dealFalseCheck(item.children)
} else {
item.checked = false;
item.orChecked = false;
}
})
},
//--
checkPointBtn(val, type) {
this.form.level = ''
@ -1422,6 +1434,23 @@
this.subsectionIndex = -1
this.subentryIndex = -1
this.changePeopleIndex = null
//
this.dealFalseCheck(this.checkPointList);
this.$refs.locationTree._reTreeList();
//
this.subpackageLsit = []
//
this.personUpdateList = []
let index = this.personList.findIndex(item => {
return item.userId == this.userInfo.userId;
})
if (index != -1) {
this.verifyManIndex = index;
this.form.verifyManId = this.personList[index].userId;
} else {
this.defaultAuditPerson = this.userInfo.realName;
this.form.verifyManId = this.userInfo.userId;
}
}
}
}

View File

@ -758,6 +758,18 @@
}
})
},
dealFalseCheck(arr){
arr.map(item => {
if(item.children){
item.checked = false;
item.orChecked = false;
this.dealFalseCheck(item.children)
} else {
item.checked = false;
item.orChecked = false;
}
})
},
//--
checkPointBtn(val, type) {
this.form.level = ''
@ -786,6 +798,9 @@
this.form.changeId = val[0].dutyId;
this.notifier = val[0].intendanceNames;
this.form.notifyPerson = val[0].intendanceIds;
//
this.dealFalseCheck(this.checkPointList);
this.$refs.locationTree._reTreeList();
//
this.subpackageLsit = val[0].enterpriseInfos
//
@ -1422,6 +1437,20 @@
this.subsectionIndex = -1
this.subentryIndex = -1
this.changePeopleIndex = null
//
this.subpackageLsit = []
//
this.personUpdateList = []
let index = this.personList.findIndex(item => {
return item.userId == this.userInfo.userId;
})
if (index != -1) {
this.verifyManIndex = index;
this.form.verifyManId = this.personList[index].userId;
} else {
this.defaultAuditPerson = this.userInfo.realName;
this.form.verifyManId = this.userInfo.userId;
}
}
}
}

View File

@ -49,7 +49,7 @@
<uni-icons @click="deleteImg(item)" class="deleteImg" type="clear" size="24">
</uni-icons>
</view>
<view class="addImgBox" @click="selectImg" v-if="fileList.length<5">
<view class="addImgBox" @click="selectImg" v-if="fileList.length<1">
<image src="/static/icon-add.png" class="icon-add"></image>
</view>
</view>
@ -79,25 +79,29 @@
form: {
alarmDetails: "", //
alarmImage: "", //
inPointName: "巡检点", //
inPointName: "", //
inPointId: 0, //
posiTion: "777563", //
createUserName: "创建人", //
createData: "创建时间", //
posiTion: "", //
createUserName: "", //
createData: "", //
templateList: [],
status: 1,
},
fileList: [],
status: false,
saoData: "",
longitude: 0,
latitude: 0,
sendData: ""
}
},
onLoad(e) {
this.checkOpenGPSServiceByAndroid()
console.log(e.data,'我的测试数据')
this.sendData = JSON.parse(e.data);
uni.showLoading({
title: "获取数据中"
})
this.getnow(e.data)
},
methods: {
@ -126,6 +130,7 @@
}
},
getnow(Val) {
let that = this;
uni.getLocation({
// type: 'wgs84',
type: 'gcj02',
@ -194,13 +199,23 @@
// }
})
this.form.inPointName = data.checkingPointName
this.form.createUserName = data.createUserName
this.form.posiTion = data.position
this.form.inPointId = data.checkingPointId
this.form.templateList = JSON.parse(data.template)
console.log('this.form.templateList 数据 ' + JSON.parse(data.template)[0].title);
this.sendRequest({
url: "xmgl/checkingPoint/queryById",
data: {
id: data.checkingPointId
},
method: "GET",
success(res) {
console.log('responseData-----------', res);
let responseData = res.result || {};
that.form.inPointName = responseData.checkingPointName
that.form.createUserName = responseData.createUserName
that.form.posiTion = responseData.position
that.form.inPointId = responseData.checkingPointId
that.form.templateList = JSON.parse(responseData.template)
uni.hideLoading()
}
})
},
fail: function(msg) {
console.log("获取位置失败", msg)
@ -270,12 +285,12 @@
data: {
alarmDetails: this.form.alarmDetails,
alarmImage: JSON.stringify(this.fileList),
checkingPointId: this.form.inPointId,
// checkingPointId: this.form.inPointId,
checkingPointName: this.form.inPointName,
checkingPointUserId: userInfo.userId,
checkingPointUserName: userInfo.account,
createDate: "",
id: 0,
checkingPointId: this.sendData?this.sendData.checkingPointId:"",
position: this.form.posiTion,
status: this.form.status,
template: JSON.stringify(this.form.templateList),
@ -306,6 +321,19 @@
},
//
addBtn() {
if(!this.form.alarmDetails && this.form.status == 2){
uni.showModal({
title: '提示',
content: "异常详情不能为空",
confirmColor: '#ee6666', //
showCancel: false, //
buttonText: '确定',
success: function(res) {
},
});
return;
}
if (this.form.templateList.length >= 1) {
let check = true
this.form.templateList.forEach(res => {