infoPage.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="gradingControl-infoPage">
  3. <view class="text-box">
  4. <view>管控名称:</view>
  5. <view>{{newData.data1}}</view>
  6. </view>
  7. <view class="text-box">
  8. <view>二级单位:</view>
  9. <view>{{newData.data3}}</view>
  10. </view>
  11. <view class="text-box">
  12. <view>安全分类:</view>
  13. <view>{{newData.data4}}</view>
  14. </view>
  15. <view class="text-box">
  16. <view>安全分级:</view>
  17. <view>{{newData.data5}}</view>
  18. </view>
  19. <view class="text-box">
  20. <view>管控描述:</view>
  21. <view>{{newData.data2}}</view>
  22. </view>
  23. <view class="text-box">
  24. <view>执行状态:</view>
  25. <view :class="newData.data6?'colorA':'colorB'">{{newData.data6?'已执行':'未执行'}}</view>
  26. </view>
  27. <view class="text-box" v-if="newData.data6">
  28. <view>执行人:</view>
  29. <view>{{newData.data7}}</view>
  30. </view>
  31. <view class="text-box" v-if="newData.data6">
  32. <view>执行时间:</view>
  33. <view>{{newData.data8}}</view>
  34. </view>
  35. <view class="text-box" v-if="newData.data6">
  36. <view>执行备注:</view>
  37. <view>{{newData.data9}}</view>
  38. </view>
  39. <view class="text-box" v-if="!newData.data6">
  40. <view>执行备注:</view>
  41. <textarea v-model="newData.inputData" class="input-box"
  42. placeholder="请输入执行备注" maxlength="50"></textarea>
  43. </view>
  44. <view class="null-p"></view>
  45. <view class="button-p" v-if="!newData.data6">完成</view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. name: "gradingControl-infoPage",
  51. data() {
  52. return {
  53. //列表数据
  54. newData: {
  55. data1: '管控名称管控名称管控名称管控名称管控名称管控名称管控名称管控名称管控名称管控名称管控名称管控名称',
  56. data2: '管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述管控描述',
  57. data3: '二级单位',
  58. data4: '安全分类',
  59. data5: '安全分级',
  60. data6: false,
  61. data7: '执行人',
  62. data8: '执行时间',
  63. data9: '执行备注',
  64. },
  65. inputData:"",
  66. }
  67. },
  68. onLoad(option) {
  69. },
  70. onShow() {
  71. },
  72. methods: {
  73. }
  74. }
  75. </script>
  76. <style lang="stylus" scoped>
  77. .gradingControl-infoPage {
  78. height: 100%;
  79. display: flex;
  80. flex-direction: column;
  81. background: #fff;
  82. padding: 0 20rpx;
  83. .text-box:nth-child(1){
  84. margin-top:30rpx;
  85. }
  86. .text-box {
  87. display: flex;
  88. font-size: 32rpx;
  89. color: #333;
  90. view:nth-child(1) {
  91. width: 160rpx;
  92. line-height: 60rpx;
  93. }
  94. view:nth-child(2) {
  95. flex: 1;
  96. line-height: 40rpx;
  97. padding: 10rpx 0;
  98. }
  99. .colorA {
  100. color: #0183FA;
  101. }
  102. .colorB {
  103. color: #666;
  104. }
  105. .input-box{
  106. margin-top:20rpx;
  107. height:200rpx;
  108. width:500rpx;
  109. padding:10rpx;
  110. border:1px solid #dedede;
  111. border-radius:12rpx;
  112. }
  113. }
  114. .null-p{
  115. flex:1;
  116. }
  117. .button-p{
  118. font-size: 32rpx;
  119. text-align: center;
  120. line-height:60rpx;
  121. width:200rpx;
  122. border-radius:8rpx;
  123. margin:40rpx auto;
  124. background-color: #0183FA;
  125. color:#fff;
  126. }
  127. }
  128. </style>