Преглед на файлове

Merge branch 'zhangtao' of gitadmin/tuoheng_lc_web into develop

tags/v1.1.0^2
zhangtao преди 1 година
родител
ревизия
3acb1e39b7
променени са 2 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. +5
    -2
      src/views/order-manage/all-order/components/AssignModal.vue
  2. +5
    -2
      src/views/order-manage/deal-order/components/QuestionModal.vue

+ 5
- 2
src/views/order-manage/all-order/components/AssignModal.vue Целия файл

@@ -1,7 +1,7 @@
<template>
<Modal
:options="getModalOptions"
:on-positive-click="handleConfirm"
:on-positive-click="throttleFn"
:on-negative-click="handleClose"
:on-close="handleClose"
>
@@ -30,6 +30,7 @@ import { form, getUserOptions } from '../tools/form.js'
import { defineComponent, ref, reactive, computed, toRefs } from 'vue'
import Modal from '@/components/Modal/index.vue'
import { assignOrder } from '@/api/order/index.js'
import { throttle } from '@/utils/index.js'
export default defineComponent({
name: 'UserModal',
components: { Modal },
@@ -100,6 +101,8 @@ export default defineComponent({
})
}

const throttleFn = throttle(handleConfirm, 5000)

/* 关闭弹窗 */
const handleClose = () => {
emit('update:visible', false)
@@ -109,7 +112,7 @@ export default defineComponent({
formRef,
getModalOptions,
getFormOptions,
handleConfirm,
throttleFn,
handleClose
}
}

+ 5
- 2
src/views/order-manage/deal-order/components/QuestionModal.vue Целия файл

@@ -1,7 +1,7 @@
<template>
<Modal
:options="getModalOptions"
:on-positive-click="handleConfirm"
:on-positive-click="throttleFn"
:on-negative-click="handleClose"
:on-close="handleClose"
>
@@ -34,6 +34,7 @@ import { defineComponent, ref, reactive, computed, toRefs } from 'vue'
import Modal from '@/components/Modal/index.vue'
import UploadOss from '@/components/UploadOss/index.vue'
import { handleOrder } from '@/api/order/index.js'
import { throttle } from '@/utils/index.js'
export default defineComponent({
name: 'UserModal',
components: { Modal, UploadOss },
@@ -153,6 +154,8 @@ export default defineComponent({
})
}

const throttleFn = throttle(handleConfirm, 5000)

/* 关闭弹窗 */
const handleClose = () => {
emit('update:visible', false)
@@ -164,7 +167,7 @@ export default defineComponent({
getFormOptions,
ossRefs,
handleUploadStatus,
handleConfirm,
throttleFn,
handleClose
}
}

Loading…
Отказ
Запис