|
@@ -25,6 +25,7 @@
|
|
|
:refresh="{
|
|
|
queryMethod: handleQuery,
|
|
|
}"
|
|
|
+ :tools="[{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }]"
|
|
|
>
|
|
|
<template #buttons>
|
|
|
<el-button type="primary" @click="addParameter" v-auth="'auxiliary:orderLexicon:add'">
|
|
@@ -51,6 +52,7 @@
|
|
|
:custom-config="{ storage: true }"
|
|
|
@checkbox-all="selectAllChangeEvent"
|
|
|
@checkbox-change="selectChangeEvent"
|
|
|
+ :params="{ exportMethod: orderLexiconExport, exportParams: requestParams }"
|
|
|
>
|
|
|
<vxe-column type="checkbox" width="60" align="center"></vxe-column>
|
|
|
<vxe-column field="classify" title="词性分类" min-width="150"></vxe-column>
|
|
@@ -101,8 +103,9 @@
|
|
|
<script lang="tsx" setup name="auxiliaryOrderLexicon">
|
|
|
import { computed, defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
|
|
|
-import { orderLexiconBaseData, orderLexiconDelete, orderLexiconList } from '@/api/auxiliary/orderLexicon';
|
|
|
+import { orderLexiconBaseData, orderLexiconDelete, orderLexiconExport, orderLexiconList } from '@/api/auxiliary/orderLexicon';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
+import Other from '@/utils/other';
|
|
|
// 引入组件
|
|
|
const OrderLexiconAdd = defineAsyncComponent(() => import('@/views/auxiliary/orderLexicon/components/Order-lexicon-add.vue')); // 新增工单词库
|
|
|
const OrderLexiconEdit = defineAsyncComponent(() => import('@/views/auxiliary/orderLexicon/components/Order-lexicon-edit.vue')); // 编辑工单词库
|
|
@@ -139,9 +142,11 @@ const handleQuery = () => {
|
|
|
queryList();
|
|
|
};
|
|
|
// 获取列表
|
|
|
+const requestParams = ref<EmptyObjectType>({});
|
|
|
const queryList = () => {
|
|
|
state.loading = true;
|
|
|
- orderLexiconList(state.queryParams)
|
|
|
+ requestParams.value = Other.deepClone(state.queryParams);
|
|
|
+ orderLexiconList(requestParams.value)
|
|
|
.then((res) => {
|
|
|
state.loading = false;
|
|
|
state.tableData = res.result.items ?? [];
|