|
@@ -102,7 +102,7 @@
|
|
|
upload-url="/api/admin/tb/crm/detail/sop/import"
|
|
|
:format="['xls', 'xlsx']"
|
|
|
:uploadData="{ crmNo: props.dispatchInfo.crmNo }"
|
|
|
- @onSuccess="fetchData"
|
|
|
+ @onSuccess="search"
|
|
|
:failRule="uploadFailRule"
|
|
|
>
|
|
|
<t-button variant="outline">
|
|
@@ -126,6 +126,15 @@
|
|
|
:columns="columns"
|
|
|
:data="tableData"
|
|
|
bordered
|
|
|
+ :pagination="{
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 10,
|
|
|
+ onChange,
|
|
|
+ showJumper: true,
|
|
|
+ showPageSize: false,
|
|
|
+ total: pagination.total,
|
|
|
+ current: pagination.pageNumber,
|
|
|
+ }"
|
|
|
>
|
|
|
<template #serviceScope="{ row }">{{
|
|
|
SERVICE_RANGE[row.serviceScope]
|
|
@@ -191,7 +200,7 @@
|
|
|
<AllocationDialog
|
|
|
v-model:visible="showAllocationDialog"
|
|
|
:curRow="curRow"
|
|
|
- @success="fetchData"
|
|
|
+ @success="search"
|
|
|
:isCloud="isCloud"
|
|
|
></AllocationDialog>
|
|
|
</my-drawer>
|
|
@@ -295,7 +304,11 @@ const addSopItem = (item) => {
|
|
|
isCloud.value
|
|
|
).then(() => {
|
|
|
MessagePlugin.success(curRow.value?.id ? '修改成功' : '新增成功');
|
|
|
- fetchData();
|
|
|
+ if (curRow.value?.id) {
|
|
|
+ fetchData();
|
|
|
+ } else {
|
|
|
+ search();
|
|
|
+ }
|
|
|
});
|
|
|
};
|
|
|
const editSopItem = (row) => {
|
|
@@ -403,7 +416,7 @@ const getInfo = () => {
|
|
|
});
|
|
|
};
|
|
|
const whenOpen = () => {
|
|
|
- fetchData();
|
|
|
+ search();
|
|
|
getInfo();
|
|
|
};
|
|
|
|