|
@@ -15,11 +15,11 @@
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
<view style="flex-flow: row;display: flex; justify-content: flex-end;">
|
|
|
- <view class="small-title">调压箱 </view>
|
|
|
+ <view class="small-title">调压箱 </view>
|
|
|
<view class="small-title" style="margin-left: auto;" @click="BoxDetails()">详情<u-icon name="arrow-right"></u-icon></view>
|
|
|
</view>
|
|
|
<u-form-item label="名称" borderBottom ref="item1" placeholder="请输入名称" labelWidth="140">
|
|
|
- <u-input v-model="form.name" length='20px' placeholder="请输入名称"
|
|
|
+ <u-input v-model="form.name" length='20px' placeholder="请输入名称"
|
|
|
type="digit" :clearable="false" disabled></u-input>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="管理所" borderBottom ref="item1" labelWidth="140">
|
|
@@ -34,10 +34,10 @@
|
|
|
</u-form-item>
|
|
|
<u-form-item label="维护项目" labelWidth="140" borderBottom ref="item1">
|
|
|
<u-checkbox-group @change="changeconfirm" >
|
|
|
- <u-checkbox
|
|
|
+ <u-checkbox
|
|
|
v-for="(item, index) in typelist.regulating_box_maintenance"
|
|
|
- :key="index"
|
|
|
- v-model="item.default"
|
|
|
+ :key="index"
|
|
|
+ v-model="item.default"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
|
</u-checkbox>
|
|
@@ -66,16 +66,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
-
|
|
|
+
|
|
|
<u-form-item borderBottom ref="item1">
|
|
|
<view>备注</view>
|
|
|
- <u-input v-model="form.remarks" type="textarea" placeholder="请输入备注" ></u-input>
|
|
|
+ <u-input v-model="form.remarks" type="textarea" placeholder="请输入备注" maxlength="500" ></u-input>
|
|
|
</u-form-item>
|
|
|
</u-form>
|
|
|
- <u-button style="background: #2d95f4;color: #fff;border-radius: 20rpx;" @click="save()"
|
|
|
+ <u-button style="background: #2d95f4;color: #fff;border-radius: 20rpx;" @click="save()"
|
|
|
type='primary' v-if="type!=1">确认上传</u-button>
|
|
|
- <u-button style="background: #2d95f4;color: #fff;border-radius: 20rpx;" @click="update()"
|
|
|
- type='primary' v-else>确认修改</u-button>
|
|
|
+<!-- <u-button style="background: #2d95f4;color: #fff;border-radius: 20rpx;" @click="update()" -->
|
|
|
+<!-- type='primary' v-else>确认修改</u-button>-->
|
|
|
</view>
|
|
|
<view>
|
|
|
<u-popup v-model="showBoxDetails" height= "400px" border-radius="14" mode=bottom closeable=true close-icon-color="#000000">
|
|
@@ -238,7 +238,7 @@ data() {
|
|
|
managementOfficeId:null,
|
|
|
boxform:{},
|
|
|
pressureRegulatingBoxDetailsBo:{}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onLoad(e) {
|
|
@@ -289,7 +289,7 @@ methods: {
|
|
|
this.pressureRegulatingBoxDetailsBo = res.pressureRegulatingBoxDetailsVo[0];
|
|
|
this.showBoxDetails=true
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getAdministrativeOffice(userId){
|
|
|
service.getAdministrativeOffice({userId:userId}).then(res=>{
|
|
@@ -402,7 +402,7 @@ methods: {
|
|
|
// this.imgArr=[]
|
|
|
// this.imgymxs=[]
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
save() {
|
|
|
let _this = this
|
|
@@ -445,7 +445,7 @@ methods: {
|
|
|
yesandnolist.push(item)
|
|
|
})
|
|
|
this.typelist.regulating_box_maintenance=yesandnolist
|
|
|
-
|
|
|
+
|
|
|
// this.buildingName=''
|
|
|
this.imgArr=[]
|
|
|
this.imgymxs=[]
|
|
@@ -497,8 +497,8 @@ methods: {
|
|
|
this.managementOfficeId=this.form.parentId
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
console.log(res)
|
|
|
})
|
|
|
},
|
|
@@ -566,7 +566,7 @@ methods: {
|
|
|
_this.$UTILS.showPrompt('选取失败!')
|
|
|
this.uploadError(index, e);
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
complete: res => {
|
|
|
_this.uploading = false;
|
|
|
// _this.uploadFile(index + 1);
|