| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view>
- <form action="" class="planDetailDone" >
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 上报名称:
- </view>
- <view>市光四村221号楼</view>
- </view>
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 巡检状态:
- </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>
-
- <view>151198415.jpg</view>
- </view>
-
- <view class="form-item">
- <view class="title">
- <text class="necessary">*</text>
- 巡检描述:
- </view>
- <view>描述信息</view>
- </view>
-
- </form>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
- onload(option){
- this.getAuthority({"id":option.phone,"company_code": uni.getStorageSync('selectedCode')})
- },
- methods: {
- radioChange(e) {
- console.log('type:' + e.detail.value);
- this.radioOne = e.detail.value;
- },
-
- // 回显信息请求
- async getAuthority(params={}) {
- const res = await this.$myRequest({
- url: 'Inspection/getInspectionDetails',
- data:params
- })
- this.authorityData=res.data.data[0]
- this.selectedData=res.data.data[0].siteIdData;
-
- },
-
-
-
- }
- }
- </script>
- <style lang="scss">
-
-
- </style>
|