Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyunapp into bjxz-rain
This commit is contained in:
commit
dec276cf88
@ -13,7 +13,7 @@
|
||||
</headers>
|
||||
</view>
|
||||
<view class="content">
|
||||
<!-- <view class="row-line">
|
||||
<view class="row-line">
|
||||
<view class="row-label">
|
||||
<text style="color: firebrick;">*</text>
|
||||
<text>处置结果</text>
|
||||
@ -25,7 +25,7 @@
|
||||
</radio-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row-line" v-show="isDis === 'dis'">
|
||||
<!-- <view class="row-line" v-show="isDis === 'dis'">
|
||||
<view class="row-label">
|
||||
<text>描述</text>
|
||||
</view>
|
||||
@ -74,10 +74,6 @@
|
||||
<text style="display: flex;align-items: center;margin-left: 10px;">分</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view class="confirm-btn" @click="confirm">
|
||||
<view class="inner-btn">确认</view>
|
||||
@ -131,6 +127,15 @@
|
||||
console.log(">>>>>>>>>>>>>>>>>>>>>>>");
|
||||
console.log(this.selectedItem);
|
||||
console.log(this.alarmItem);
|
||||
let requestData = {}
|
||||
if(this.isDis == 'dis'){
|
||||
requestData = {
|
||||
...this.alarmItem,
|
||||
handleResult: 1,
|
||||
handleDone: true,
|
||||
projectSn: this.projectSn,
|
||||
workerInfoList: [{id: this.workerId}]
|
||||
}
|
||||
if(this.workerId === '' || this.workerId === null || this.workerId === undefined){
|
||||
uni.showToast({
|
||||
title: '请选择违章人员',
|
||||
@ -145,6 +150,13 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
}else{
|
||||
requestData = {
|
||||
...this.alarmItem,
|
||||
handleResult: 2,
|
||||
projectSn: this.projectSn,
|
||||
}
|
||||
}
|
||||
// if(this.isDis === 'dis') {
|
||||
// if(this.workerId === '' || this.workerId === null || this.workerId === undefined){
|
||||
// uni.showToast({
|
||||
@ -179,21 +191,16 @@
|
||||
// this.alarmItem.handleResult = this.handleResult
|
||||
// }
|
||||
// this.handleResult = 1
|
||||
let requestData = {
|
||||
...this.alarmItem,
|
||||
handleResult: 1,
|
||||
handleDone: true,
|
||||
projectSn: this.projectSn,
|
||||
workerInfoList: [{id: this.workerId}]
|
||||
}
|
||||
|
||||
this.sendRequest({
|
||||
url: 'xmgl/aiAnalyseHardWareAlarmRecord/edit',
|
||||
// url: 'xmgl/aiAnalyseHardWareAlarmRecord/edit',
|
||||
url: 'xmgl/aiAnalyseHardWareAlarmRecord/setFalsePositive',
|
||||
method: "post",
|
||||
data: requestData,
|
||||
success: res => {
|
||||
if (res.code == 200) {
|
||||
console.log('res', res)
|
||||
uni.navigateBack({delta: 1})
|
||||
uni.navigateBack({delta: 2})
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -221,8 +228,8 @@
|
||||
},
|
||||
cleanForm(){
|
||||
this.workerId = ''
|
||||
this.desc = ''
|
||||
this.deductScore = ''
|
||||
// this.desc = ''
|
||||
// this.deductScore = ''
|
||||
},
|
||||
bindTextAreaBlur(e) {
|
||||
this.desc = e.detail.value
|
||||
|
||||
@ -13,20 +13,23 @@
|
||||
</headers>
|
||||
</view>
|
||||
<view class="content">
|
||||
<!-- <view class="row-line">
|
||||
<view class="row-line">
|
||||
<view class="row-label">
|
||||
<text style="color: firebrick;">*</text>
|
||||
<text>处置结果</text>
|
||||
</view>
|
||||
<view class="row-content">
|
||||
<text style="color: #d8d8d8;">已处置</text>
|
||||
<radio-group @change="isShowContent" v-model="isDis">
|
||||
<radio value="dis" checked="true">已处置</radio>
|
||||
<radio value="ign" disabled="true" style="">误报忽略</radio>
|
||||
<!-- <text style="color: #d8d8d8;">已处置</text> -->
|
||||
<!-- <radio-group @change="isShowContent" v-model="alarmItem.handleResult"> -->
|
||||
<radio-group v-model="alarmItem.handleResult">
|
||||
<!-- <radio :value="1" checked="true">已处置</radio>
|
||||
<radio :value="2" disabled="true" style="">误报忽略</radio> -->
|
||||
<radio :disabled="true" :checked="alarmItem.handleResult == 1">已处置</radio>
|
||||
<radio :disabled="true" :checked="alarmItem.handleResult == 2">误报忽略</radio>
|
||||
</radio-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row-line" v-show="isDis === 'dis'">
|
||||
<!-- <view class="row-line" v-show="alarmItem.handleResult === 1">
|
||||
<view class="row-label">
|
||||
<text>描述</text>
|
||||
</view>
|
||||
@ -34,7 +37,7 @@
|
||||
<textarea style="background-color: #e1e1e1;" disabled :value="alarmItem.desc" @blur="bindTextAreaBlur" />
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="row-line" v-show="isDis === 'dis'">
|
||||
<view class="row-line" v-show="alarmItem.handleResult === 1">
|
||||
<view class="row-label">
|
||||
<text style="color: firebrick;">*</text>
|
||||
<text>违章人员</text>
|
||||
@ -48,7 +51,7 @@
|
||||
</select> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="row-line" v-show="isDis === 'dis'">
|
||||
<view class="row-line" v-show="alarmItem.handleResult === 1">
|
||||
<view class="row-label">
|
||||
<text style="color: firebrick;">*</text>
|
||||
<text>扣</text>
|
||||
@ -72,7 +75,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isDis: 'dis',
|
||||
handleResult: '',
|
||||
dispositionForm: {
|
||||
workerId: '',
|
||||
desc: '',
|
||||
@ -87,6 +90,7 @@
|
||||
onLoad(option) {
|
||||
this.alarmItem = JSON.parse(decodeURIComponent(option.item));
|
||||
this.alarmItem.deductScore = this.alarmItem.aiDeductRule.deductScore;
|
||||
// this.handleResult = this.alarmItem.handleResult
|
||||
console.log('alarmItem',this.alarmItem)
|
||||
},
|
||||
mounted() {
|
||||
@ -109,13 +113,13 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
isShowContent(e){
|
||||
this.isDis = e.detail.value
|
||||
if(this.isDis === 'ign'){
|
||||
this.cleanForm()
|
||||
}
|
||||
console.log(this.dispositionForm);
|
||||
},
|
||||
// isShowContent(e){
|
||||
// this.handleResult = e.detail.value
|
||||
// if(this.handleResult === 2){
|
||||
// this.cleanForm()
|
||||
// }
|
||||
// console.log(this.dispositionForm);
|
||||
// },
|
||||
cleanForm(){
|
||||
this.dispositionForm.workerId = ''
|
||||
this.dispositionForm.desc = ''
|
||||
|
||||
@ -570,7 +570,7 @@
|
||||
this.getCheckPointList();
|
||||
this.getIssueList();
|
||||
this.getPersonList();
|
||||
this.getReviewPeopleList();
|
||||
// this.getReviewPeopleList();
|
||||
// this.getPersonUpdateList();
|
||||
this.getProgressListData()
|
||||
console.log('lll', option.taskId, option.itemId)
|
||||
@ -590,7 +590,10 @@
|
||||
method: 'post',
|
||||
data: {
|
||||
projectSn: this.projectSn,
|
||||
enterpriseTypeId: 7,
|
||||
// enterpriseTypeId: 7,
|
||||
qualityRegionId: this.form.regionId,
|
||||
qualityRegionBindType: 2,
|
||||
isSupervisingRoleName: 1
|
||||
},
|
||||
success: res => {
|
||||
console.log(res.result)
|
||||
@ -749,7 +752,8 @@
|
||||
url: 'xmgl/qualityRegion/list',
|
||||
method: 'post',
|
||||
data: {
|
||||
projectSn: this.projectSn
|
||||
projectSn: this.projectSn,
|
||||
notSupervisingUnit: 1
|
||||
},
|
||||
success: res => {
|
||||
if (res.code == 200) {
|
||||
@ -810,6 +814,7 @@
|
||||
// this.changePeopleIndex = index
|
||||
// }
|
||||
// });
|
||||
this.getReviewPeopleList()
|
||||
} else if (type == 2) {
|
||||
console.log('选择问题描述的数据', val);
|
||||
//设置问题描述
|
||||
|
||||
@ -89,6 +89,7 @@
|
||||
<textarea class="textarea" maxlength="-1" placeholder-class="cl" name="inspectContent"
|
||||
@input='supplementTextarea' :value="form.dangerDesc" placeholder="请输入"></textarea>
|
||||
</view>
|
||||
|
||||
<view class="type flex3" v-if="typeCheck == 'type1'">
|
||||
<view class="name">整改要求:</view>
|
||||
<textarea class="textarea" maxlength="-1" placeholder-class="cl" name="inspectContent"
|
||||
@ -572,7 +573,7 @@
|
||||
this.getCheckPointList();
|
||||
this.getIssueList();
|
||||
this.getPersonList();
|
||||
this.getReviewPeopleList();
|
||||
// this.getReviewPeopleList();
|
||||
// this.getPersonUpdateList();
|
||||
this.getProgressListData()
|
||||
console.log('lll', option.taskId, option.itemId)
|
||||
@ -594,7 +595,10 @@
|
||||
method: 'post',
|
||||
data: {
|
||||
projectSn: this.projectSn,
|
||||
enterpriseTypeId: 7,
|
||||
// enterpriseTypeId: 7,
|
||||
qualityRegionId: this.form.regionId,
|
||||
qualityRegionBindType: 2,
|
||||
isSupervisingRoleName: 1
|
||||
},
|
||||
success: res => {
|
||||
console.log(res.result)
|
||||
@ -753,7 +757,8 @@
|
||||
url: 'xmgl/qualityRegion/list',
|
||||
method: 'post',
|
||||
data: {
|
||||
projectSn: this.projectSn
|
||||
projectSn: this.projectSn,
|
||||
notSupervisingUnit: 1
|
||||
},
|
||||
success: res => {
|
||||
if (res.code == 200) {
|
||||
@ -817,6 +822,7 @@
|
||||
// this.changePeopleIndex = index
|
||||
// }
|
||||
// });
|
||||
this.getReviewPeopleList()
|
||||
} else if (type == 2) {
|
||||
console.log('选择问题描述的数据', val);
|
||||
//设置问题描述
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user