|
@@ -18,7 +18,7 @@
|
|
|
</template>
|
|
|
<template #toolbar_buttons>
|
|
|
<el-button type="primary" @click="onJbExport" :disabled="isChecked" :loading="state.loading"
|
|
|
- ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出</el-button
|
|
|
+ ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出<span v-if="checkTable.length">({{ checkTable.length }})</span></el-button
|
|
|
>
|
|
|
</template>
|
|
|
<template #statusText="{ row }">
|
|
@@ -234,13 +234,17 @@ const queryList = () => {
|
|
|
state.loading = false;
|
|
|
copyViewList(requestParams.value)
|
|
|
.then((res: any) => {
|
|
|
- state.tableData = res?.result ?? [];
|
|
|
+ gridOptions.data = res?.result ?? [];
|
|
|
state.loading = false;
|
|
|
gridOptions.loading = false;
|
|
|
+ gridRef.value.clearCheckboxRow();
|
|
|
+ checkTable.value = [];
|
|
|
})
|
|
|
.catch(() => {
|
|
|
state.loading = false;
|
|
|
gridOptions.loading = false;
|
|
|
+ gridRef.value.clearCheckboxRow();
|
|
|
+ checkTable.value = [];
|
|
|
});
|
|
|
};
|
|
|
|
|
@@ -264,7 +268,7 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
};
|
|
|
// 交办单导出
|
|
|
const onJbExport = () => {
|
|
|
- const ids = checkTable.value.map((item: any) => item.order.id);
|
|
|
+ const ids = checkTable.value.map((item: any) => item.id);
|
|
|
exportAssignment(ids);
|
|
|
};
|
|
|
const checkTable = ref<EmptyArrayType>([]);
|