UiRadioTime.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <el-row class="form-group">
  3. <el-col :span="3" style="min-height:50px;padding-top:5px;"></el-col>
  4. <el-col :span="18">
  5. <div>
  6. <el-radio border>第一个自然周</el-radio>&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
  7. <el-radio border>第二个自然周</el-radio>&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
  8. <el-radio border>第三个自然周</el-radio>
  9. </div>
  10. <div v-if="lists.other.start">
  11. <el-radio
  12. v-model="defaultValue"
  13. :name="lists.name"
  14. :label="lists.other.start"
  15. border>{{lists.other.start}} 至 {{lists.other.end}}</el-radio>
  16. </div>
  17. <div v-for="lts in lists.list">
  18. <el-col :span="18">
  19. <el-radio
  20. v-for="it in lts"
  21. :name="lists.name"
  22. v-model="defaultValue"
  23. :label="it.start"
  24. border>{{it.start}} 至 {{it.end}}</el-radio>
  25. </el-col>
  26. </div>
  27. </el-col>
  28. <el-col :span="3"></el-col>
  29. </el-row>
  30. </template>
  31. <script>
  32. export default {
  33. props: ['lists'],
  34. data() {
  35. return {
  36. defaultValue: this.lists.default
  37. }
  38. },
  39. mounted() {},
  40. methods: {}
  41. }
  42. </script>
  43. <style scoped>
  44. .el-radio-button__orig-radio {
  45. display: none;
  46. }
  47. .classJs {
  48. margin-left: 10px;
  49. vertical-align: middle;
  50. height:42px;
  51. line-height:42px;
  52. }
  53. .red{
  54. color: red;
  55. }
  56. </style>