|
@@ -13,8 +13,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <div class="text-lg p-5">
|
|
|
|
- <div class="pb-5">1. 点击下载 <a @click="getTemplate()" class="text-[#79BBFF] cursor-pointer">任务导入模板</a></div>
|
|
|
|
|
|
+ <div class="p-5">
|
|
|
|
+ <div class="pb-5">1. 点击下载 <el-link type="primary"
|
|
|
|
+ @click="downloadTemplate('Task', '任务导入模板.xlsx')">任务导入模板.xlsx</el-link>
|
|
|
|
+ </div>
|
|
<div>2. 填写excel文件, 任务名称与优先级必填</div>
|
|
<div>2. 填写excel文件, 任务名称与优先级必填</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -24,6 +26,8 @@
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { ref, watch } from "vue";
|
|
import { ref, watch } from "vue";
|
|
import { Props, Emits } from "./type"
|
|
import { Props, Emits } from "./type"
|
|
|
|
+import { downloadTemplate } from '@/utils/tools'
|
|
|
|
+
|
|
|
|
|
|
const props = defineProps<Props>();
|
|
const props = defineProps<Props>();
|
|
const emits = defineEmits<Emits>();
|
|
const emits = defineEmits<Emits>();
|