|
@@ -57,7 +57,7 @@
|
|
|
<el-button type="primary" @click="batchDeletes()">批量删除</el-button>
|
|
|
<el-button type="primary" @click="showDeteleClue(true)">回收站</el-button>
|
|
|
<el-button type="primary" @click="dialogVisible.importVisible = true">导入</el-button>
|
|
|
- <el-button type="primary">导出</el-button>
|
|
|
+ <el-button type="primary" @click="exportTheadTableList()" :loading="allLoading.exoprtLoading">导出</el-button>
|
|
|
</div>
|
|
|
<div class="flex-1 w-full overflow-hidden">
|
|
|
<el-table ref="clueTableRef" :data="clueTable" border v-loading="allLoading.clueTableLading"
|
|
@@ -169,8 +169,8 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
|
-import { GETSYSFILED, MOD, IMPORMOD, GETPERSONNEL, GETTABLE, GETTEMPLATE, GETDETAIL, UNDATECLAIM, UNDATEFORM, DELTEROW, URL_IMPORTTHREAD } from './constant'
|
|
|
-import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate, createTaskFromType, confirmAction, downloadTemplate } from '@/utils/tools'
|
|
|
+import { GETSYSFILED, MOD, IMPORMOD, GETPERSONNEL, GETTABLE, GETTEMPLATE, GETDETAIL, UNDATECLAIM, UNDATEFORM, DELTEROW, URL_IMPORTTHREAD, URL_EXPOERTHREAD } from './constant'
|
|
|
+import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate, createTaskFromType, confirmAction, downloadTemplate, downloadFile } from '@/utils/tools'
|
|
|
import { FormInstance, FormRules, ElMessageBox, ElTable, UploadRequestOptions } from 'element-plus'
|
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
@@ -219,6 +219,7 @@ const allLoading = reactive({
|
|
|
generateFormLading: false,
|
|
|
clueLoading: false,
|
|
|
importLoading: false,
|
|
|
+ exoprtLoading: false,
|
|
|
})
|
|
|
const dialogVisible = reactive({
|
|
|
editClueDialogVisible: false,
|
|
@@ -256,6 +257,16 @@ const transferForm = reactive({
|
|
|
|
|
|
|
|
|
// 定义方法
|
|
|
+function exportTheadTableList() {
|
|
|
+ allLoading.exoprtLoading = true
|
|
|
+ let valueForm = getFromValue(filterCriteriaForm)
|
|
|
+ post(URL_EXPOERTHREAD, {...valueForm}).then((res) => {
|
|
|
+ downloadFile(res.data, '线索表表导出.xlsx')
|
|
|
+ }).finally(() => {
|
|
|
+ allLoading.exoprtLoading = false
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
function newTask(item: any) {
|
|
|
const { id } = item
|
|
|
taskModalForm.value = { ...createTaskFromType(3), clueId: id, }
|