|
@@ -31,13 +31,12 @@
|
|
|
</u--form>
|
|
|
</view>
|
|
|
<uni-row class="heigthButton">
|
|
|
- <u-button @click="gotoEditDetection(formData)" shape="circle" size="large" color="#4cb2b6"
|
|
|
+ <u-button @click="gotoEditDetection(formData)" class="hBtn" shape="circle" size="large" color="#4cb2b6"
|
|
|
style="width: 60%;" text="修改信息"></u-button>
|
|
|
</uni-row>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
- var that = null;
|
|
|
import {
|
|
|
createFpdDetection, //创建消防设备维护和检测台账
|
|
|
updateFpdDetection, //更新消防设备维护和检测台账
|
|
@@ -66,10 +65,27 @@
|
|
|
thisId: '',
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ loading: {
|
|
|
+ handler(newLength, oldLength) {
|
|
|
+ this.$modal.isLoadingModel(this.loading)
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
- uni.createSelectorQuery().in(this).select('.heigthButton').boundingClientRect(data => {
|
|
|
- this.wheight = data.height
|
|
|
- }).exec()
|
|
|
+ // uni.createSelectorQuery().in(this).select('.heigthButton').boundingClientRect(data => {
|
|
|
+ // console.log('data',data);
|
|
|
+ // this.wheight = data.height
|
|
|
+ // }).exec()
|
|
|
+ // const query = uni.createSelectorQuery().in(this)
|
|
|
+ // console.log('query', query);
|
|
|
+ // const thisNode = query.select(".heigthButton")
|
|
|
+ // console.log('thisNode', thisNode);
|
|
|
+ // thisNode.boundingClientRect(data => {
|
|
|
+ // console.log('data', data);
|
|
|
+ // this.wheight = data.height
|
|
|
+ // }).exec()
|
|
|
},
|
|
|
onShow() {
|
|
|
if (this.thisId) {
|
|
@@ -104,14 +120,17 @@
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
+ uni.createSelectorQuery().in(this).select('.heigthButton').boundingClientRect(data => {
|
|
|
+ console.log('data',data);
|
|
|
+ this.wheight = data.height
|
|
|
+ }).exec()
|
|
|
console.log('edit页面的val的值', this.formData);
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
|
|
|
- that = this
|
|
|
this.thisId = option.id
|
|
|
//获取当前表单数据
|
|
|
getFpdDetection(option.id).then(res => {
|
|
@@ -154,6 +173,10 @@
|
|
|
// } else {
|
|
|
// File = null
|
|
|
// }
|
|
|
+ // uni.createSelectorQuery().in(this).select('.heigthButton').boundingClientRect(data => {
|
|
|
+ // console.log('data',data);
|
|
|
+ // this.wheight = data.height
|
|
|
+ // }).exec()
|
|
|
console.log('edit页面的val的值', this.formData);
|
|
|
})
|
|
|
|
|
@@ -166,7 +189,6 @@
|
|
|
// console.log('val+++++++++++++++++++', that.formData);
|
|
|
// });
|
|
|
// this.formData.orgName = option.orgName
|
|
|
- console.log("option: ", that.formData);
|
|
|
},
|
|
|
|
|
|
methods: {
|