| | |
| | | <template> |
| | | <el-row justify="space-between"> |
| | | <el-text>{{dateStr}}计划</el-text> |
| | | <el-text>{{ dateStr }}计划</el-text> |
| | | <div v-show="create && data && data.length > 0"> |
| | | <el-button |
| | | icon="IconPrinter" |
| | |
| | | <el-button type="success" size="small" @click="add" icon="Switch" |
| | | >任务调整</el-button |
| | | > |
| | | <el-button type="primary" size="small" @click="openMap"> |
| | | 进入地图<el-icon class="el-icon--right"><Right /></el-icon> |
| | | </el-button> |
| | | </div> |
| | | </el-row> |
| | | <el-divider /> |
| | |
| | | > |
| | | <ItemSubTask v-for="s in data" :key="s.guid" :item="s"> |
| | | <template #default="{ item }"> |
| | | <el-space direction="vertical"> |
| | | <el-space direction="horizontal"> |
| | | <el-button |
| | | :disabled="item.status != '未执行'" |
| | | plain |
| | |
| | | size="small" |
| | | icon="EditPen" |
| | | @click="edit(item)" |
| | | >修改</el-button |
| | | > |
| | | title="修改" |
| | | ></el-button> |
| | | <el-button |
| | | :disabled="item.status != '未执行'" |
| | | type="danger" |
| | | size="small" |
| | | icon="Delete" |
| | | @click="remove(item)" |
| | | >移除</el-button |
| | | > |
| | | title="移除" |
| | | ></el-button> |
| | | </el-space> |
| | | </template> |
| | | </ItemSubTask> |
| | |
| | | const downloadDialog = ref(false); |
| | | const downloadSceneList = ref([]); |
| | | |
| | | const emit = defineEmits(['submit', 'add', 'remove', 'update:modelValue']); |
| | | const emit = defineEmits(['submit', 'add', 'openMap', 'remove', 'update:modelValue']); |
| | | |
| | | const dateStr = computed(()=> dayjs(props.date).format('MM月DD日')) |
| | | const dateStr = computed(() => dayjs(props.date).format('MM月DD日')); |
| | | |
| | | function remove(item) { |
| | | if (item.status == '未执行') { |
| | |
| | | emit('add'); |
| | | } |
| | | |
| | | /** |
| | | * 打开场景地图 |
| | | */ |
| | | function openMap() { |
| | | emit('openMap'); |
| | | } |
| | | |
| | | |
| | | |
| | | onUnmounted(() => { |
| | | dialogVisible.value = false; |
| | | }); |