提交后不再查询列表和详情

master
yujialong 2 months ago
parent 0ca09ffa98
commit 6d8f7a338d
  1. 2
      src/components/Panel/index.vue
  2. 2
      src/views/product/bank/Add.vue
  3. 3
      src/views/product/bank/CardList.vue
  4. 2
      src/views/product/bank/Config.vue
  5. 3
      src/views/product/bank/Info.vue
  6. 2
      src/views/product/bank/List.vue
  7. 4
      src/views/product/fund/Add.vue
  8. 2
      src/views/product/fund/CardList.vue
  9. 8
      src/views/product/fund/Info.vue
  10. 2
      src/views/product/fund/List.vue
  11. 4
      src/views/product/insurance/Add.vue
  12. 2
      src/views/product/insurance/CardList.vue
  13. 5
      src/views/product/insurance/Info.vue
  14. 2
      src/views/product/insurance/List.vue
  15. 4
      src/views/report/Index.vue

@ -474,7 +474,7 @@ let handleCache = () => {
}; };
// //
const toReport = () => { const toReport = () => {
router.push('/report'); router.replace('/report');
}; };
// //
let reload = async () => { let reload = async () => {

@ -371,6 +371,7 @@ const getConfig = async () => {
}; };
// //
const getDetail = async () => { const getDetail = async () => {
if (!Cookies.get('sand-submit')) {
if (!route.query.show) curTab.value = 'tab1'; if (!route.query.show) curTab.value = 'tab1';
userName.value = await getUsername(); userName.value = await getUsername();
@ -404,6 +405,7 @@ const getDetail = async () => {
} finally { } finally {
} }
} }
}
}; };
watch( watch(
() => route.query, () => route.query,

@ -46,6 +46,7 @@ import { bankingProductsList, batchDeletion } from '@/api/bank';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { getStatus } from '@/store/useProduct'; import { getStatus } from '@/store/useProduct';
import { getIds } from '@/utils/common'; import { getIds } from '@/utils/common';
import Cookies from 'js-cookie';
import Config from './Config.vue'; import Config from './Config.vue';
import Detail from './Detail.vue'; import Detail from './Detail.vue';
import Add from './Add.vue'; import Add from './Add.vue';
@ -63,6 +64,7 @@ const id = computed(() => +route.query.id);
const actionKey = ref<number>(1); const actionKey = ref<number>(1);
// //
const getList = async (refresh?: number) => { const getList = async (refresh?: number) => {
if (!Cookies.get('sand-submit')) {
loading.value = true; loading.value = true;
try { try {
const { data } = await bankingProductsList({ const { data } = await bankingProductsList({
@ -81,6 +83,7 @@ const getList = async (refresh?: number) => {
} finally { } finally {
loading.value = false; loading.value = false;
} }
}
}; };
onMounted(getList); onMounted(getList);

@ -844,7 +844,7 @@ const getConfig = async () => {
}; };
// //
const getDetail = async () => { const getDetail = async () => {
if (id.value) { if (id.value && !Cookies.get('sand-submit')) {
try { try {
// //
const { data } = await findById(id.value); const { data } = await findById(id.value);

@ -155,6 +155,7 @@ import { findById, approvalRecord } from '@/api/bank';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { getStatus } from '@/store/useProduct'; import { getStatus } from '@/store/useProduct';
import { getUsername } from '@/utils/common'; import { getUsername } from '@/utils/common';
import Cookies from 'js-cookie';
const emit = defineEmits(['updateAudits']); const emit = defineEmits(['updateAudits']);
const route = useRoute(); const route = useRoute();
@ -205,6 +206,7 @@ const loadComponent = async (componentName: string) => {
// //
const getDetail = async () => { const getDetail = async () => {
if (!Cookies.get('sand-submit')) {
userName.value = await getUsername(); userName.value = await getUsername();
if (id.value) { if (id.value) {
@ -220,6 +222,7 @@ const getDetail = async () => {
emit('updateAudits', res.list.length); emit('updateAudits', res.list.length);
} catch (e) {} } catch (e) {}
} }
}
}; };
watch( watch(
() => route.query, () => route.query,

@ -143,8 +143,10 @@ const initList = async () => {
getList(); getList();
}; };
onMounted(() => { onMounted(() => {
if (!Cookies.get('sand-submit')) {
getGuarantee(); getGuarantee();
getList(); getList();
}
}); });
watch([params, () => route.query], initList); watch([params, () => route.query], initList);

@ -207,7 +207,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive, computed, watch, onMounted, defineEmits } from 'vue'; import { ref, reactive, computed, onMounted, defineEmits } from 'vue';
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { Plus, Minus } from '@element-plus/icons-vue'; import { Plus, Minus } from '@element-plus/icons-vue';
import { getAListOfAShares, saveFund } from '@/api/fund'; import { getAListOfAShares, saveFund } from '@/api/fund';
@ -461,7 +461,9 @@ const submit = async () => {
} }
}; };
onMounted(() => { onMounted(() => {
if (!Cookies.get('sand-submit')) {
getConfig(); getConfig();
}
}); });
</script> </script>

@ -55,6 +55,7 @@ const loading = ref<boolean>(false);
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
// //
const getList = async (refresh?: number) => { const getList = async (refresh?: number) => {
if (!Cookies.get('sand-submit')) {
loading.value = true; loading.value = true;
try { try {
const { data } = await fundProductList({ const { data } = await fundProductList({
@ -69,6 +70,7 @@ const getList = async (refresh?: number) => {
} finally { } finally {
loading.value = false; loading.value = false;
} }
}
}; };
onMounted(() => { onMounted(() => {
getList(); getList();

@ -50,18 +50,18 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue'; import { ref, computed, watch } from 'vue';
import { findById } from '@/api/fund'; import { findById } from '@/api/fund';
import { useRouter, useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import Cookies from 'js-cookie';
const router = useRouter();
const route = useRoute(); const route = useRoute();
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
const info = ref<Record<string, any>>({}); const info = ref<Record<string, any>>({});
// //
const getDetail = async () => { const getDetail = async () => {
if (id.value) { if (id.value && !Cookies.get('sand-submit')) {
try { try {
const { data } = await findById(id.value); const { data } = await findById(id.value);
info.value = data; info.value = data;

@ -72,6 +72,7 @@ const list = ref<Record<string, any>[]>([]);
const loading = ref<boolean>(false); const loading = ref<boolean>(false);
// //
const getList = async () => { const getList = async () => {
if (!Cookies.get('sand-submit')) {
loading.value = true; loading.value = true;
try { try {
const { data } = await fundProductList({ pageNum: currentPage.value, pageSize: pageSize.value, ...toParams(params) }); const { data } = await fundProductList({ pageNum: currentPage.value, pageSize: pageSize.value, ...toParams(params) });
@ -80,6 +81,7 @@ const getList = async () => {
} finally { } finally {
loading.value = false; loading.value = false;
} }
}
}; };
// //
const initList = async () => { const initList = async () => {

@ -113,12 +113,14 @@ const form = reactive({
// //
const getConfig = async () => { const getConfig = async () => {
if (!Cookies.get('sand-submit')) {
const { process } = await getProcessInformationBasedOnRoles(275); const { process } = await getProcessInformationBasedOnRoles(275);
config.value = process; config.value = process;
}
}; };
// //
const getDetail = async () => { const getDetail = async () => {
if (id.value) { if (id.value && !Cookies.get('sand-submit')) {
try { try {
const { data } = await insuranceProductDetails(id.value); const { data } = await insuranceProductDetails(id.value);
info.value = data; info.value = data;

@ -57,6 +57,7 @@ const loading = ref<boolean>(false);
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
// //
const getList = async (first: any) => { const getList = async (first: any) => {
if (!Cookies.get('sand-submit')) {
loading.value = true; loading.value = true;
try { try {
const { data } = await insuranceList({ const { data } = await insuranceList({
@ -72,6 +73,7 @@ const getList = async (first: any) => {
} finally { } finally {
loading.value = false; loading.value = false;
} }
}
}; };
onMounted(() => { onMounted(() => {
getList(); getList();

@ -28,9 +28,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue'; import { ref, computed, watch } from 'vue';
import { insuranceProductDetails } from '@/api/insurance'; import { insuranceProductDetails } from '@/api/insurance';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import Cookies from 'js-cookie';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
@ -39,7 +40,7 @@ const info = ref<Record<string, any>>({});
// //
const getDetail = async () => { const getDetail = async () => {
if (id.value) { if (id.value && !Cookies.get('sand-submit')) {
try { try {
const { data } = await insuranceProductDetails(id.value); const { data } = await insuranceProductDetails(id.value);
info.value = data; info.value = data;

@ -104,6 +104,7 @@ const loading = ref<boolean>(false);
const stop = () => {}; const stop = () => {};
// //
const getList = async () => { const getList = async () => {
if (!Cookies.get('sand-submit')) {
loading.value = true; loading.value = true;
try { try {
const { data } = await insuranceList({ pageNum: currentPage.value, pageSize: pageSize.value, ...toParams(params) }); const { data } = await insuranceList({ pageNum: currentPage.value, pageSize: pageSize.value, ...toParams(params) });
@ -112,6 +113,7 @@ const getList = async () => {
} finally { } finally {
loading.value = false; loading.value = false;
} }
}
}; };
// //
const initList = async () => { const initList = async () => {

@ -143,7 +143,7 @@ import { ref, onMounted } from 'vue';
import { logout } from '@/store/useCurrentUser'; import { logout } from '@/store/useCurrentUser';
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import { useRouter, useRoute } from 'vue-router'; import { useRouter } from 'vue-router';
import { reportDetail, exportBankExperimentReport, updateReport, editExperimentalData } from '@/api/system'; import { reportDetail, exportBankExperimentReport, updateReport, editExperimentalData } from '@/api/system';
import Tinymce from '@/components/Tinymce/index.vue'; import Tinymce from '@/components/Tinymce/index.vue';
import { downloadFileDirect } from '@/utils/common'; import { downloadFileDirect } from '@/utils/common';
@ -252,7 +252,7 @@ const editReport = async () => {
}; };
// //
const toLevel = () => { const toLevel = () => {
router.push('/'); router.replace('/');
}; };
onMounted(getData); onMounted(getData);

Loading…
Cancel
Save