| | |
| | | @clear="handleClear" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="所属部门:" v-if="isExpand"> |
| | | <el-select |
| | | :teleported="false" |
| | | <el-form-item label="所属部门:" v-if="isExpand"> |
| | | <el-tree-select |
| | | popper-class="custom-tree-select" |
| | | v-model="searchForm.create_dept" |
| | | placeholder="请选择" |
| | | :data="deptData" |
| | | :default-expanded-keys="[searchForm.create_dept]" |
| | | check-strictly |
| | | node-key="id" |
| | | :props="treeDeptProps" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="item in deptData" |
| | | :key="item.id" |
| | | :label="item.deptName" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="任务状态:" v-if="isExpand"> |
| | | <el-select |
| | | style="z-index: 1000" |
| | |
| | | import { pxToRem } from '@/utils/rem'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { deptsByAreaCode, getSFDictionaryTree } from '@/api/job/task'; |
| | | import { getDeptLazyTree } from '@/api/system/dept' |
| | | // import TaskAlgorithmBusiness from './TaskAlgorithmBusiness.vue'; |
| | | import dayjs from 'dayjs'; |
| | | import { useStore } from 'vuex'; |
| | |
| | | let deptData = ref([]); |
| | | // 所属部门信息 |
| | | const getDeptsByAreaCode = () => { |
| | | deptsByAreaCode(searchForm.area_code).then(res => { |
| | | if (res.code !== 0) { |
| | | deptData.value = res.data.data; |
| | | } |
| | | getDeptLazyTree({ parentId: 0, level: 0 }).then(res => { |
| | | deptData.value = res.data.data; |
| | | }); |
| | | }; |
| | | |
| | |
| | | label: 'dictValue', |
| | | value: 'id', |
| | | children: 'children', |
| | | } |
| | | // 部门 |
| | | const treeDeptProps = { |
| | | label: 'title', |
| | | value: 'id', |
| | | children: 'children', |
| | | } |
| | | const dictKey = ref('') |
| | | const dataList = ref([]) |
| | |
| | | searchForm.device_sn = signDevice_sn.value; |
| | | } |
| | | // 所属部门重新请求值 |
| | | searchForm.create_dept = ''; |
| | | deptData.value = []; |
| | | getDeptsByAreaCode(); |
| | | // searchForm.create_dept = ''; |
| | | // deptData.value = []; |
| | | // getDeptsByAreaCode(); |
| | | handleSearch(); |
| | | }; |
| | | |
| | |
| | | |
| | | onMounted(() => { |
| | | requestDockInfo(); |
| | | getDeptsByAreaCode() |
| | | getAlgorithmList(); |
| | | // 日历传值 |
| | | const calendarday = ref(route.query.day); |