tsg-app/pages/mypage/compents/wxyh/formZdy/formTop.vue

38 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view>
<!-- 注意如果需要兼容微信小程序最好通过setRules方法设置rules规则 -->
<u--form labelPosition="left" :model="formData" label-width='80px'>
<u-form-item label="上报人" prop="reportUserName" borderBottom ref="item1">
<u--input v-model="formData.reportUserName" border="none" disabled></u--input>
</u-form-item>
<u-form-item label="上报时间" prop="reportTime" borderBottom ref="item1">
<u--input v-model="formData.reportTime" border="none" disabled></u--input>
</u-form-item>
</u--form>
</view>
</template>
<script>
import moment from 'moment';
export default {
props:{
formData:Object
},
data() {
return {
// formData: {
// reportUserName:uni.getStorageSync('value').userName,
// reportTime:moment().format('YYYY-MM-DD HH:mm:ss'),
// userId:uni.getStorageSync('value').userId
// },
};
},
onShow() {
// debugger;
// const userList=uni.getStorageSync('value')
// console.log(userList,'3456789045678945678');
// this.formData.reportUserName = uni.getStorageSync('value').userName
// this.formData.userId = uni.getStorageSync('value').userId
},
};
</script>