|
|
@@ -42,6 +42,25 @@
|
|
|
<view>隐患描述</view>
|
|
|
<view></view>
|
|
|
</view>
|
|
|
+ <view class="list-button-max-box">
|
|
|
+ <view class="list-button-title-box">隐患级别</view>
|
|
|
+ <view class="list-button-big-box"
|
|
|
+ :class="form.dangerLevel == 1?'list-button-big-box-check':''"
|
|
|
+ @click="checkDangerLevel(1)">
|
|
|
+ <view class="check-left-button">
|
|
|
+ <view></view>
|
|
|
+ </view>
|
|
|
+ <view>一般隐患</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-button-big-box"
|
|
|
+ :class="form.dangerLevel == 2?'list-button-big-box-check':''"
|
|
|
+ @click="checkDangerLevel(2)">
|
|
|
+ <view class="check-left-button">
|
|
|
+ <view></view>
|
|
|
+ </view>
|
|
|
+ <view>重大隐患</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="describe">
|
|
|
<textarea v-if="!form.checkFlag && !checkItemModuleType" cursor-spacing="40" class="describe-n" type="text"
|
|
|
v-model="form.hazardDescribe" maxlength="200" placeholder="请填写隐患描述"
|
|
|
@@ -109,6 +128,7 @@
|
|
|
return {
|
|
|
baseUrl: config.base_url,
|
|
|
form: {
|
|
|
+ dangerLevel:1,
|
|
|
checkFlag: false,
|
|
|
photoList: [],
|
|
|
voiceList: [],
|
|
|
@@ -157,6 +177,10 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //选择隐患级别
|
|
|
+ checkDangerLevel(type){
|
|
|
+ this.$set(this.form,'dangerLevel',type);
|
|
|
+ },
|
|
|
//折叠展开
|
|
|
inspectDot() {
|
|
|
|
|
|
@@ -204,6 +228,7 @@
|
|
|
// list=data.data.hazardCheckPoint.split('#');
|
|
|
// this.$set(this.form, 'hazardDescribe', list[0]);
|
|
|
}
|
|
|
+ this.$set(this.form, 'dangerLevel', data.data.dangerLevel ? data.data.dangerLevel : 1);
|
|
|
this.$set(this.form, 'photoList', data.data.photoList ? data.data.photoList : []);
|
|
|
this.$set(this.form, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
|
|
|
|
|
|
@@ -302,6 +327,7 @@
|
|
|
let obj = {
|
|
|
checkFlag: this.form.checkFlag,
|
|
|
checkStatus: 1,
|
|
|
+ dangerLevel: this.form.dangerLevel,
|
|
|
hazardDescribe: this.form.hazardDescribe,
|
|
|
photoList: this.form.photoList,
|
|
|
voiceList: this.form.voiceList,
|
|
|
@@ -659,7 +685,44 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ .list-button-max-box{
|
|
|
+ background-color: #fff;
|
|
|
+ display: flex;
|
|
|
+ .list-button-title-box{
|
|
|
+ line-height:40rpx;
|
|
|
+ width:200rpx;
|
|
|
+ padding:30rpx 30rpx 0 30rpx;
|
|
|
+ }
|
|
|
+ .list-button-big-box{
|
|
|
+ padding:30rpx 30rpx 0 0;
|
|
|
+ margin-right:40rpx;
|
|
|
+ display: flex;
|
|
|
+ .check-left-button{
|
|
|
+ width:28rpx;
|
|
|
+ height:28rpx;
|
|
|
+ border-radius:50%;
|
|
|
+ border:1rpx solid #0183fa;
|
|
|
+ margin:5rpx 20rpx 0 0;
|
|
|
+ }
|
|
|
+ view:nth-child(2){
|
|
|
+ line-height:40rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .list-button-big-box-check{
|
|
|
+ .check-left-button{
|
|
|
+ view{
|
|
|
+ margin:5rpx;
|
|
|
+ width:20rpx;
|
|
|
+ height:20rpx;
|
|
|
+ background-color:#0183fa;
|
|
|
+ border-radius:50%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ view:nth-child(2){
|
|
|
+ line-height:40rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.hidden-content {
|
|
|
width: 630rpx;
|
|
|
min-height: 200rpx;
|