修复bug
parent
c3cb02c9c4
commit
8a9707e924
|
@ -67,7 +67,7 @@
|
|||
<text></text>
|
||||
<text>
|
||||
<button class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToDetail,item.OUTSOURCED_ID)">查看</button>
|
||||
<button style="margin-left: 20upx;" class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToVideo,item.OUTSOURCED_ID)">播放</button>
|
||||
<!-- <button style="margin-left: 20upx;" class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToVideo,item.OUTSOURCED_ID)">播放</button> -->
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -25,19 +25,10 @@
|
|||
<view>{{form.INSPECTION_CATEGORY}}现场检查记录</view>
|
||||
</view>
|
||||
<view class="cu-form-group">
|
||||
<view class="title" style="height: auto;">
|
||||
<view class="title">
|
||||
<view>被检查单位:</view>
|
||||
</view>
|
||||
<block v-if="!forbidEdit">
|
||||
<view class="picker-tree-box">
|
||||
<view class="picker-tree" @tap="showZgTree('tkiTree1', 1)">
|
||||
{{ form.UNITS_NAME || '请选择' }}
|
||||
</view>
|
||||
</view>
|
||||
<tki-tree ref="tkiTree1" :selectParent=true :range="treeNode" rangeKey="UNITS_NAME"
|
||||
@confirm="zgtreeConfirm($event,'inspectedSiteuserList')" @cancel="zgtreeCancel"></tki-tree>
|
||||
</block>
|
||||
<block v-else>{{ form.UNITS_NAME }}</block>
|
||||
<view>{{ form.UNITS_NAME }}</view>
|
||||
</view>
|
||||
<view class="cu-form-group" v-if="form.UNITS_NAME">
|
||||
<view class="title">被检查单位现场负责人:</view>
|
||||
|
@ -1519,9 +1510,13 @@
|
|||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
_this.treeNode = res.data.varList;
|
||||
if(!_this.form.UNITS_NAME) {
|
||||
_this.form.UNITS_NAME = _this.treeNode[0].UNITS_NAME
|
||||
}
|
||||
if(!_this.form.UNITS_ID) {
|
||||
_this.form.UNITS_ID = _this.treeNode[0].UNITS_ID
|
||||
_this.getUserList('inspectedSiteuserList', _this.treeNode[0].UNITS_ID)
|
||||
}
|
||||
_this.getUserList('inspectedSiteuserList', _this.form.UNITS_ID)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
|
@ -1577,7 +1572,8 @@
|
|||
},
|
||||
success: function(res) {
|
||||
if ("success" == res.data.result) {
|
||||
console.log(res.data.pd);
|
||||
_this.form.UNITS_NAME = res.data.pd.UNITS_NAME
|
||||
_this.form.UNITS_ID = res.data.pd.UNITS_ID
|
||||
_this.form.PERSONNELMANAGEMENT_ID = res.data.pd.PERSONNELMANAGEMENT_ID;
|
||||
_this.form.PERSON_NAME = res.data.pd.NAME;
|
||||
} else {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<view>
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">安全环保检查指派确认人</block>
|
||||
<block slot="content">安全环保检查指派</block>
|
||||
</cu-custom>
|
||||
<view class="form">
|
||||
<view class="wui-form-list">
|
||||
|
@ -398,6 +398,7 @@
|
|||
HIDDEN_STATUS: '', // 检查ID
|
||||
principalList: [],
|
||||
form: {
|
||||
RECTIFICATIONORNAME:'',
|
||||
HIDDENDESCR: '', // 隐患描述
|
||||
CREATORNAME: '', // 隐患责任人
|
||||
HIDDENLEVELNAME: '', // 隐患级别
|
||||
|
|
|
@ -464,7 +464,7 @@
|
|||
if ("success" == res.data.result) {
|
||||
uni.hideLoading();
|
||||
_this.form = res.data.pd; //参数map
|
||||
_this.form.hiddenForm = res.data.hiddenList[0];
|
||||
_this.form.hiddenForm = res.data.pd.hiddenList[0];
|
||||
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
||||
_this.inspectorList.push([])
|
||||
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
||||
|
|
Loading…
Reference in New Issue