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