| | |
| | | <template> |
| | | <!-- <div class="header">计划库</div>--> |
| | | <!--搜索栏--> |
| | | <a-config-provider :locale="zhCN"> |
| | | |
| | | <div class="search-panel-wrapper"> |
| | | <div class="search-part"> |
| | | <a-range-picker :size="searchPanelOptions.size" :format="searchPanelOptions.dateFormat" :valueFormat="searchPanelOptions.valueFormat" v-model:value="timeRangeArr.data" @change="dateChange" style="width: 300px" /> |
| | | <a-range-picker :size="searchPanelOptions.size" :format="searchPanelOptions.dateFormat" |
| | | :valueFormat="searchPanelOptions.valueFormat" v-model:value="timeRangeArr.data" |
| | | @change="dateChange" style="width: 300px"/> |
| | | </div> |
| | | |
| | | <div class="search-part"> |
| | | <a-select :size="searchPanelOptions.size" @change="selectChange" ref="select" v-model:value="searchQuery.taskType" style="width: 300px"> |
| | | <a-select :size="searchPanelOptions.size" @change="selectChange" ref="select" |
| | | v-model:value="searchQuery.taskType" style="width: 300px"> |
| | | <a-select-option value="">所有类型</a-select-option> |
| | | <a-select-option :value="item.value" v-for="(item) in TaskTypeOptions" :key="item.value">{{ item.label }} |
| | | </a-select-option> |
| | |
| | | </div> |
| | | |
| | | <div class="search-part"> |
| | | <a-select v-model:value="statusArr" allowClear @change="selectMultipleChange" :options="TaskStatusOptions" :maxTagCount="searchPanelOptions.maxTagCount" mode="multiple" |
| | | <a-select v-model:value="statusArr" allowClear @change="selectMultipleChange" :options="TaskStatusOptions" |
| | | :maxTagCount="searchPanelOptions.maxTagCount" mode="multiple" |
| | | :size="searchPanelOptions.size" placeholder="全部状态" style="width: 300px"> |
| | | </a-select> |
| | | </div> |
| | | |
| | | <div class="search-part"> |
| | | <a-input-search :size="searchPanelOptions.size" v-model:value="searchQuery.name" @change="inputChange" placeholder="按航线或计划名搜索" style="width: 300px"/> |
| | | <a-input-search :size="searchPanelOptions.size" v-model:value="searchQuery.name" @change="inputChange" |
| | | placeholder="按航线或计划名搜索" style="width: 300px"/> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <!--表格--> |
| | | <div class="plan-panel-wrapper"> |
| | | <a-table :loading="tableLoading" class="plan-table" :columns="columns" :data-source="plansData.data" row-key="job_id" |
| | | <a-table :loading="tableLoading" class="plan-table" :columns="columns" :data-source="plansData.data" |
| | | row-key="job_id" |
| | | :pagination="paginationProp" :scroll="{ x: '100%', y: 600 }" @change="refreshData"> |
| | | <!-- 执行时间 --> |
| | | <template #duration="{ record }"> |
| | |
| | | </template> |
| | | </a-table> |
| | | </div> |
| | | </a-config-provider> |
| | | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | import { TableState } from 'ant-design-vue/lib/table/interface' |
| | | import { computed, onMounted } from 'vue' |
| | | import { IPage } from '/@/api/http/type' |
| | | import zhCN from 'ant-design-vue/es/locale/zh_CN' |
| | | import 'moment/dist/locale/zh-cn' |
| | | import { |
| | | deleteTask, |
| | | updateTaskStatus, |
| | |
| | | const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId)! |
| | | |
| | | const dockSns = computed(() => store.state.common.dockSns) |
| | | |
| | | // 监听设备选择 |
| | | watch( |
| | | () => dockSns.value, |