setInputTPT.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div class="setInput">
  3. <div class="flexBetween ">
  4. <el-select
  5. v-model="value"
  6. clearable
  7. placeholder="请选择"
  8. >
  9. <el-option
  10. v-for="item in options"
  11. :key="item.value"
  12. :label="item.label"
  13. :value="item.value"
  14. >
  15. </el-option>
  16. </el-select>
  17. <el-select
  18. v-model="value"
  19. clearable
  20. placeholder="请选择"
  21. >
  22. <el-option
  23. v-for="item in options"
  24. :key="item.value"
  25. :label="item.label"
  26. :value="item.value"
  27. >
  28. </el-option>
  29. </el-select>
  30. </div>
  31. <!-- 添加框 -->
  32. <div
  33. style="border: 1px dotted rgb(187, 187, 187);box-sizing: border-box;padding: 0px 15px;"
  34. class="martop20"
  35. >
  36. <table
  37. class="table"
  38. width='100%'
  39. border='1px'
  40. cellpadding='2px'
  41. bordercolor="#E5E5E5"
  42. >
  43. <thead
  44. cellpadding='2px'
  45. height='40px'
  46. >
  47. <tr>
  48. <th width='15%'>序号</th>
  49. <th width='55%'>默认值</th>
  50. </tr>
  51. </thead>
  52. <tbody height='36px'>
  53. <tr
  54. v-for="(item,key) in setInputTable"
  55. :key="key"
  56. >
  57. <td>{{item.id}}</td>
  58. <td></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <div class="martop20 flexEnd marbottom10"><i
  63. style="color:rgb(10, 134, 217);font-size:24px;"
  64. class="el-icon-circle-plus"
  65. ></i></div>
  66. </div>
  67. <el-button
  68. class="martop15"
  69. style="float:right;"
  70. type="info"
  71. size="mini"
  72. >保存设置</el-button>
  73. </div>
  74. </template>
  75. <script>
  76. export default {
  77. data () {
  78. return {
  79. options: [{
  80. value: '选项1',
  81. label: '黄金糕'
  82. }, {
  83. value: '选项2',
  84. label: '双皮奶'
  85. }, {
  86. value: '选项3',
  87. label: '蚵仔煎'
  88. }, {
  89. value: '选项4',
  90. label: '龙须面'
  91. }, {
  92. value: '选项5',
  93. label: '北京烤鸭'
  94. }],
  95. value: '',
  96. setInputTable: [{ id: 11 }],//数据体
  97. }
  98. },
  99. methods: {
  100. },
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. .table {
  105. margin-top: 20px;
  106. border-radius: 5px;
  107. color: #101010;
  108. font-size: 14px;
  109. }
  110. </style>