From f19e5267cc23b1c714dc746239864f33ed715dd9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 十二月 2025 17:55:02 +0800
Subject: [PATCH] 完成地图制作任务功能初版
---
src/views/fysp/task/components/CompSubTaskList.vue | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/views/fysp/task/components/CompSubTaskList.vue b/src/views/fysp/task/components/CompSubTaskList.vue
index 51dd342..5b6d1e0 100644
--- a/src/views/fysp/task/components/CompSubTaskList.vue
+++ b/src/views/fysp/task/components/CompSubTaskList.vue
@@ -1,6 +1,6 @@
<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"
@@ -13,6 +13,9 @@
<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 />
@@ -27,7 +30,7 @@
>
<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
@@ -35,16 +38,16 @@
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>
@@ -111,9 +114,9 @@
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鏈圖D鏃�'))
+const dateStr = computed(() => dayjs(props.date).format('MM鏈圖D鏃�'));
function remove(item) {
if (item.status == '鏈墽琛�') {
@@ -156,6 +159,15 @@
emit('add');
}
+/**
+ * 鎵撳紑鍦烘櫙鍦板浘
+ */
+function openMap() {
+ emit('openMap');
+}
+
+
+
onUnmounted(() => {
dialogVisible.value = false;
});
--
Gitblit v1.9.3