12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <template>
- <view>
- <form action="" class="planDetailDone" >
-
- <view class="form-item" v-if="this.getData.spot_status=='异常'">
- <view class="title">
- <text class="necessary">*</text>
- 上报名称:
- </view>
- <view>{{this.getData.wx_name}}</view>
- </view>
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 巡检状态:
- </view>
- <view>{{this.getData.spot_status}}</view>
- <!-- <radio-group name="gender" @change="radioChange">
- <label class="margin-right-xs">
- <radio value="2" checked /><text>正常</text>
- </label>
- <label class="margin-right-xs">
- <radio value="3" /><text>异常</text>
- </label>
- <label class="margin-right-xs">
- <radio value="2" checked /><text>故障</text>
- </label>
- <label>
- <radio value="3" /><text>其他</text>
- </label>
- </radio-group> -->
- </view>
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 上传图片:
- </view>
-
- <!-- <img :src="`https://qhome.usky.cn${this.getData.report_photos}`" alt="" style="max-width:50%"> -->
- <img :src="`${this.$websiteUrl}${this.getData.report_photos}`" alt="" style="max-width:50%">
- </view>
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 巡检描述:
- </view>
- <view>{{this.getData.dwsb_remarks}}</view>
- </view>
-
- </form>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- getData:{}
- }
- },
- onLoad:function(option){
- this.getPlanDetail({"zb_id":option.zb_id,"spot_id":option.id})
- },
- methods: {
- radioChange(e) {
- console.log('type:' + e.detail.value);
- this.radioOne = e.detail.value;
- },
-
- async getPlanDetail(params = {}) {
- const res = await this.$myRequest({
- url: 'Inspection/getPatrolDetailss',
- data:params,
- showLoading: true
- })
- this.getData=res.data.data[0];
-
- console.log(this.getData)
- },
-
-
-
- }
- }
- </script>
- <style lang="scss">
-
-
- </style>
|