1.解决样式问题
parent
3f0f4c89fa
commit
0109d54da2
|
@ -158,13 +158,13 @@
|
|||
<uni-th align="center">隐患描述</uni-th>
|
||||
<uni-th align="center">操作</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.id">
|
||||
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.HIDDEN_ID">
|
||||
<uni-td>{{ index + 1 }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENPART_NAME ? item.HIDDENPART_NAME : item.HIDDENPART }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENDESCR }}</uni-td>
|
||||
<uni-td>
|
||||
<view class="flex-between">
|
||||
<u-icon name="eye-fill" @tap="showHidden(item, index)"/>
|
||||
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
|
||||
<view class="ml-10">
|
||||
<u-icon name="trash-fill" @tap="removeHidden(item, index)"
|
||||
v-if="!disabled"/>
|
||||
|
@ -403,7 +403,7 @@ import {
|
|||
setSafetyenvironmentalAdd, setSafetyenvironmentalAdd_plus,
|
||||
setSafetyenvironmentalEdit, setSafetyenvironmentalEdit_plus,
|
||||
setVideoAdd
|
||||
} from "@/api";
|
||||
} from "../../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -533,7 +533,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async fnGetInspectedDepartment() {
|
||||
let resData = await getInspectedDepartment();
|
||||
let resData = await getInspectedDepartment({'CORPINFO_ID': ''});
|
||||
this.inspectedDepartmentTreeList = JSON.parse(resData.zTreeNodes);
|
||||
},
|
||||
async fnGetInspectionDepartment() {
|
||||
|
@ -1021,7 +1021,7 @@ export default {
|
|||
}
|
||||
|
||||
.title {
|
||||
min-width: 150rpx;
|
||||
min-width: 170rpx;
|
||||
}
|
||||
|
||||
.textarea-box {
|
||||
|
|
|
@ -93,31 +93,32 @@
|
|||
</u-cell>
|
||||
</view>
|
||||
<u-cell>
|
||||
<view slot="title" class="title">发现问题:</view>
|
||||
<view slot="title" class="title">发现问题 </view>
|
||||
</u-cell>
|
||||
<view class="title-none">
|
||||
<u-cell>
|
||||
<view slot="value" style="width: 100%">
|
||||
<uni-table border stripe emptyText="暂无更多数据">
|
||||
<uni-tr>
|
||||
<uni-th align="center">序号</uni-th>
|
||||
<uni-th align="center">隐患部位</uni-th>
|
||||
<uni-th align="center">隐患描述</uni-th>
|
||||
<uni-th align="center">操作</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.id">
|
||||
<uni-td>{{ index + 1 }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENPART_NAME ? item.HIDDENPART_NAME : item.HIDDENPART }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENDESCR }}</uni-td>
|
||||
<uni-td>
|
||||
<view class="flex-between">
|
||||
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</u-cell>
|
||||
<u-cell>
|
||||
<view slot="value" style="width: 100%">
|
||||
<uni-table border stripe emptyText="暂无更多数据">
|
||||
<uni-tr>
|
||||
<uni-th align="center">序号</uni-th>
|
||||
<uni-th align="center">隐患部位</uni-th>
|
||||
<uni-th align="center">隐患描述</uni-th>
|
||||
<uni-th align="center">操作</uni-th>
|
||||
</uni-tr>
|
||||
|
||||
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.HIDDEN_ID">
|
||||
<uni-td>{{ index + 1 }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENPART_NAME ? item.HIDDENPART_NAME : item.HIDDENPART }}</uni-td>
|
||||
<uni-td>{{ item.HIDDENDESCR }}</uni-td>
|
||||
<uni-td>
|
||||
<view class="flex-between">
|
||||
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</u-cell>
|
||||
</view>
|
||||
<template v-if="type === 'verify'">
|
||||
<u-cell>
|
||||
|
@ -348,9 +349,6 @@ export default {
|
|||
}
|
||||
},
|
||||
onLoad(event) {
|
||||
console.info('event')
|
||||
console.info(event)
|
||||
console.info('event')
|
||||
this.INSPECTION_ID = event.INSPECTION_ID
|
||||
this.type = event.type
|
||||
this.INSPECTION_INSPECTOR_ID = event.INSPECTION_INSPECTOR_ID
|
||||
|
@ -366,7 +364,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async fnGetSafetyenvironmentalGoEdit() {
|
||||
let resData = await getSafetyenvironmentalGoEdit({INSPECTION_ID: this.INSPECTION_ID})
|
||||
let resData = await getSafetyenvironmentalGoEdit({INSPECTION_ID: this.INSPECTION_ID,'CORPINFO_ID': ''})
|
||||
for (let i = 0; i < resData.pd.hiddenList.length; i++) {
|
||||
resData.pd.hiddenList[i].id = resData.pd.hiddenList[i].HIDDEN_ID
|
||||
for (let j = 0; j < resData.pd.hiddenList[i].hiddenImgs.length; j++) {
|
||||
|
@ -378,7 +376,6 @@ export default {
|
|||
}
|
||||
this.form = resData.pd
|
||||
this.esipList = resData.esipList
|
||||
console.info(resData)
|
||||
},
|
||||
async fnSubmit(INSPECTION_STATUS) {
|
||||
for (const key in this.rules) {
|
||||
|
|
Loading…
Reference in New Issue