UiRadioTime.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. @change="selectChange"
  14. :name="lists.name"
  15. :label="lists.other.start"
  16. border>{{lists.other.start}} 至 {{lists.other.end}}</el-radio>
  17. </div>
  18. <div v-for="lts in lists.list">
  19. <el-col :span="18">
  20. <el-radio
  21. v-for="it in lts"
  22. :name="lists.name"
  23. v-model="defaultValue"
  24. :label="it.start"
  25. border>{{it.start}} 至 {{it.end}}</el-radio>
  26. </el-col>
  27. </div>
  28. </el-col>
  29. <el-col :span="3"></el-col>
  30. </el-row>
  31. </template>
  32. <script>
  33. export default {
  34. props: ['lists'],
  35. data() {
  36. return {
  37. defaultValue: this.lists.default
  38. }
  39. },
  40. mounted() {},
  41. methods: {
  42. selectChange(value) {
  43. this.$emit('set-keys',value);
  44. },
  45. }
  46. }
  47. </script>
  48. <style scoped>
  49. .el-radio-button__orig-radio {
  50. display: none;
  51. }
  52. .classJs {
  53. margin-left: 10px;
  54. vertical-align: middle;
  55. height:42px;
  56. line-height:42px;
  57. }
  58. .red{
  59. color: red;
  60. }
  61. </style>