无人机管理后台前端(已迁走)
chenyao
2025-05-30 593c3dc1800cb03ad895856fdddecb29c0b44249
src/views/job/components/SearchBox.vue
@@ -57,7 +57,7 @@
               </div>
            </el-form-item>
            <el-form-item label="任务算法:" v-if="isExpand" class="taskAlgorithm">
               <TaskAlgorithmBusiness :setWidth="186" :showAlgorithm="true" @algorithmChange="algorithmChange" />
               <TaskAlgorithmBusiness :setWidth="162" :showAlgorithm="true" @algorithmChange="algorithmChange" />
            </el-form-item>
            <el-form-item label="所属部门:" v-if="isExpand">
               <el-select
@@ -105,7 +105,7 @@
   </div>
</template>
<script setup>
// import { pxToRem } from '@/utils/rem'
import { pxToRem } from '@/utils/rem'
import { ElMessage } from 'element-plus'
import { deptsByAreaCode } from '@/api/job/task'
import TaskAlgorithmBusiness from './TaskAlgorithmBusiness.vue'
@@ -247,8 +247,8 @@
      const end = dayjs(val[1])
      const diff = end.diff(start, 'day')
      if (diff > 30) {
         ElMessage.warning('日期范围不能超过30天')
      if (diff > 31) {
         ElMessage.warning('日期范围不能超过31天')
         dateRange.value = []
         return
      }
@@ -319,13 +319,13 @@
<style lang="scss">
</style>
<style lang="scss" scoped>
.taskAlgorithm {
   :deep() {
      .task-algorithm > div {
         width: 233px !important;
      }
   }
}
// .taskAlgorithm {
//    :deep() {
//       .task-algorithm > div {
//          width: 233px !important;
//       }
//    }
// }
.search-box-test {
   transition: all 0.3s;