|
@@ -93,7 +93,7 @@
|
|
<view class="out-button" @click="outButton()">取消</view>
|
|
<view class="out-button" @click="outButton()">取消</view>
|
|
</view>
|
|
</view>
|
|
<view class="input-for-max-box">
|
|
<view class="input-for-max-box">
|
|
- <view class="for-box" v-for="(item,index) in dataList" :key="index">
|
|
|
|
|
|
+ <view class="for-box" v-for="(item,index) in dataList" :key="index" v-if="optionData.infoType==0">
|
|
<view class="for-box-n">
|
|
<view class="for-box-n">
|
|
{{item.hazardCheckCode1}}{{item.hazardCheckName1}}
|
|
{{item.hazardCheckCode1}}{{item.hazardCheckName1}}
|
|
</view>
|
|
</view>
|
|
@@ -103,10 +103,17 @@
|
|
<view class="for-box-n">
|
|
<view class="for-box-n">
|
|
{{item.hazardCheckCode}}{{item.hazardCheckName}}
|
|
{{item.hazardCheckCode}}{{item.hazardCheckName}}
|
|
</view>
|
|
</view>
|
|
- <view class="for-box-n" @click="checkItemButton(item,item2)" v-for="(item2,index2) in item.hazardCheckPointList" v-html="brightenKeyword(item2,searchValue)">
|
|
|
|
|
|
+ <view class="for-box-n" @click="checkItemButton(item,item2)"
|
|
|
|
+ v-for="(item2,index2) in item.hazardCheckPointList" v-html="brightenKeyword(item2,searchValue)">
|
|
{{item2}}
|
|
{{item2}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="for-box" @click="checkItemButton(item,'')" v-for="(item,index) in dataList" :key="index"
|
|
|
|
+ v-if="optionData.infoType==1 || optionData.infoType==2">
|
|
|
|
+ <view class="for-box-n">
|
|
|
|
+ {{item.hazardCheckCode}}{{item.hazardCheckName}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 级联选择模块 -->
|
|
<!-- 级联选择模块 -->
|
|
@@ -181,7 +188,7 @@
|
|
getSearchValue() {
|
|
getSearchValue() {
|
|
if (this.optionData.infoType == 0) {
|
|
if (this.optionData.infoType == 0) {
|
|
//检查
|
|
//检查
|
|
- this.dataList=[];
|
|
|
|
|
|
+ this.dataList = [];
|
|
this.securityAppCheckSetOptionList();
|
|
this.securityAppCheckSetOptionList();
|
|
} else if (this.optionData.infoType == 1) {
|
|
} else if (this.optionData.infoType == 1) {
|
|
//复查
|
|
//复查
|
|
@@ -230,13 +237,13 @@
|
|
this.$set(this, 'checkList', item.children);
|
|
this.$set(this, 'checkList', item.children);
|
|
console.log(this.checkList)
|
|
console.log(this.checkList)
|
|
} else if (item.level == 3) {
|
|
} else if (item.level == 3) {
|
|
- this.checkItemButton(item,item2);
|
|
|
|
|
|
+ this.checkItemButton(item, item2);
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//选中检查项
|
|
//选中检查项
|
|
- checkItemButton(item,item2) {
|
|
|
|
- this.$parent.checkItemModuleButton('submit', item,item2);
|
|
|
|
|
|
+ checkItemButton(item, item2) {
|
|
|
|
+ this.$parent.checkItemModuleButton('submit', item, item2);
|
|
},
|
|
},
|
|
//高亮
|
|
//高亮
|
|
brightenKeyword(val, editKeyword) {
|
|
brightenKeyword(val, editKeyword) {
|
|
@@ -282,12 +289,12 @@
|
|
this.cascadeData(maxList, minList);
|
|
this.cascadeData(maxList, minList);
|
|
}
|
|
}
|
|
console.log(data.data)
|
|
console.log(data.data)
|
|
- if(data.data[0]){
|
|
|
|
- data.data.forEach(function(item){
|
|
|
|
|
|
+ if (data.data[0]) {
|
|
|
|
+ data.data.forEach(function(item) {
|
|
console.log(item)
|
|
console.log(item)
|
|
console.log(item.hazardCheckPoint)
|
|
console.log(item.hazardCheckPoint)
|
|
- if(item.hazardCheckPoint){
|
|
|
|
- item.hazardCheckPointList=item.hazardCheckPoint.split('#')
|
|
|
|
|
|
+ if (item.hazardCheckPoint) {
|
|
|
|
+ item.hazardCheckPointList = item.hazardCheckPoint.split('#')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -313,12 +320,12 @@
|
|
let minList = JSON.parse(JSON.stringify(data.data))
|
|
let minList = JSON.parse(JSON.stringify(data.data))
|
|
this.cascadeData(maxList, minList);
|
|
this.cascadeData(maxList, minList);
|
|
}
|
|
}
|
|
- if(data.data[0]){
|
|
|
|
- data.data.forEach(function(item){
|
|
|
|
|
|
+ if (data.data[0]) {
|
|
|
|
+ data.data.forEach(function(item) {
|
|
console.log(item)
|
|
console.log(item)
|
|
console.log(item.hazardCheckPoint)
|
|
console.log(item.hazardCheckPoint)
|
|
- if(item.hazardCheckPoint){
|
|
|
|
- item.hazardCheckPointList=item.hazardCheckPoint.split('#')
|
|
|
|
|
|
+ if (item.hazardCheckPoint) {
|
|
|
|
+ item.hazardCheckPointList = item.hazardCheckPoint.split('#')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|