do-and-check.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="com-plan-content">
  3. <view class="title">
  4. <text>{{ title }}</text>
  5. </view>
  6. <view class="item-view">
  7. <view class="top-action">
  8. <text>改善确认(1)</text>
  9. <text class="close-text">删除</text>
  10. </view>
  11. <view class="main">
  12. <view class="row">
  13. <view class="label-view">
  14. <text>{{ label }}</text>
  15. </view>
  16. <view class="content">
  17. <textarea class="textarea"
  18. :key="title"
  19. placeholder="请输入"
  20. placeholder-style="color: #B8BECC"
  21. :maxlength="-1"
  22. auto-height
  23. />
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. // 执行过程记录(Do)和 改善确认(Check)
  32. export default {
  33. props: {
  34. // 多行文本框标题
  35. title: {
  36. type: String,
  37. default: '执行过程记录(Do)'
  38. },
  39. // 多行文本框子标题
  40. label: {
  41. type: String,
  42. default: '执行过程记录'
  43. }
  44. },
  45. data() {
  46. return {
  47. // list长度 控制个数
  48. list: [
  49. {gcjl: '', date: '', imgPath: '' },
  50. {gcjl: '', date: '', imgPath: '' }
  51. ]
  52. }
  53. },
  54. methods: {
  55. changeVal(e) {
  56. if(this.label === '改善计划'){
  57. this.planvalue = e.target.value;
  58. }else {
  59. this.actionvalue = e.target.value;
  60. }
  61. }
  62. },
  63. }
  64. </script>
  65. <style lang="less">
  66. .com-plan-content {
  67. height: 100%;
  68. padding-top: 35rpx;
  69. .title {
  70. line-height: 35rpx;
  71. padding: 0 25rpx;
  72. text {
  73. font-size: 35rpx;
  74. color: #292C33;
  75. }
  76. }
  77. .item-view {
  78. .top-action {
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. margin-top: 25rpx;
  83. margin-bottom: 15rpx;
  84. height: 22.5rpx;
  85. padding: 0 25rpx;
  86. text {
  87. font-size: 22.5rpx;
  88. color: #666F80;
  89. }
  90. .close-text {
  91. font-size: 20rpx;
  92. color: #3377FF;
  93. }
  94. }
  95. .main {
  96. padding-left: 25rpx;
  97. background-color: #fff;
  98. .row {
  99. display: flex;
  100. .label-view {
  101. width: 175rpx;
  102. line-height: 37.5rpx;
  103. padding: 25rpx 0;
  104. >text {
  105. font-size: 22.5rpx;
  106. color: #666F80;
  107. }
  108. }
  109. .content {
  110. flex: 1;
  111. padding: 25rpx 0;
  112. .textarea {
  113. width: 100%;
  114. min-height: 200rpx;
  115. padding: 0 25rpx;
  116. line-height: 38.5rpx;
  117. font-size: 22.5rpx;
  118. color: #525866;
  119. box-sizing: border-box;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>