平安校园
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

98 wiersze
2.9 KiB

  1. <template>
  2. <view style="padding-top: 30rpx;">
  3. <view class="whiteCard">
  4. <u--form labelPosition="top" :labelStyle="{fontSize:'32rpx',color:'#666'}" labelWidth="200" :model="form" :rules="rules" ref="uForm">
  5. <u-form-item label="摄像头(多选)" prop="name" borderBottom>
  6. <view
  7. style="width: 160%;margin-left: -30rpx;margin-right: -30rpx;margin-bottom: -20rpx;margin-top: -10rpx;">
  8. <selectSearch :value.sync="form.shexiangtou"
  9. :options="[{value:1,label:'走廊尽头(海康)'},{value:2,label:'厨房(海康)'},{value:3,label:'走廊尽头(海康)'},{value:4,label:'厨房(海康)'}]"
  10. placeholder="请选择摄像头" :filterable="false" multiple />
  11. </view>
  12. </u-form-item>
  13. <u-form-item label="查询时间段" prop="timeslot" borderBottom>
  14. <uni-datetime-picker v-model="form.tick" type="datetimerange">
  15. <view class="demo-layout">
  16. <view>
  17. {{form.tick.length?form.tick.join('-'):'请选择'}}
  18. </view>
  19. <image style="width: 30rpx;height:30rpx;"
  20. src="@/static/image/earlyWarning/calendar.png" mode=""></image>
  21. </view>
  22. </uni-datetime-picker>
  23. </u-form-item>
  24. <u-form-item label="系部/专业/班级" prop="timeslot" borderBottom>
  25. <view
  26. style="width: 160%;margin-left: -30rpx;margin-right: -30rpx;margin-bottom: -20rpx;margin-top: -10rpx;">
  27. <selectTree v-model="form.departCalss" :labels.sync="form.departCalssName"/>
  28. </view>
  29. </u-form-item>
  30. <u-form-item labelPosition="left" label="分片类型(天/小时)" prop="timeslot" borderBottom>
  31. <u-radio-group v-model="form.type">
  32. <u-radio v-for="(item,index) in [{value:'1',label:'天'},{value:'2',label:'小时'}]" :key="index" :label="item.label"
  33. :name="item.value"></u-radio>
  34. </u-radio-group>
  35. </u-form-item>
  36. </u--form>
  37. </view>
  38. <view style="padding: 36rpx 30rpx;position: fixed;bottom: 0;width: 100%;box-sizing: border-box;">
  39. <u-button @click="confirm" type="primary" style="border-radius: 36rpx;height: 72rpx;"
  40. text="确定"></u-button>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import selectSearch from "@/components/selectSearch.vue"
  46. import selectTree from "@/components/selectTree.vue"
  47. export default {
  48. components: {
  49. selectSearch,
  50. selectTree
  51. },
  52. data() {
  53. return {
  54. form: {
  55. shexiangtou: [],
  56. tick: [],
  57. },
  58. rules: []
  59. }
  60. },
  61. methods: {
  62. confirm(){
  63. this.CONFIRM(`是否删除点名任务?`).then(()=>{
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .whiteCard {
  71. padding: 30rpx 30rpx;
  72. margin: 15rpx 30rpx;
  73. border-radius: 18rpx;
  74. background-color: #ffffff;
  75. font-size: 32rpx;
  76. }
  77. .demo-layout{
  78. display: flex;
  79. padding: 15rpx 0;
  80. justify-content: space-between;
  81. align-items: center;
  82. &:first-child{
  83. flex: 1;
  84. padding-right:30rpx;
  85. }
  86. }
  87. .u-radio-group{
  88. &>*:first-child{
  89. margin-right: 36rpx;
  90. }
  91. }
  92. </style>