|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { reactive, ref, toRefs } from 'vue'
|
|
|
|
|
|
|
|
|
|
import { repetitionTask } from '@/api/final/index'
|
|
|
|
|
import listDark from 'naive-ui/lib/mention/styles/dark'
|
|
|
|
|
import { getRepeatList, repetitionTask } from '@/api/final/index'
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
|
(e: 'reject', params: any)
|
|
|
|
@ -45,17 +46,30 @@ function closeModal() {
|
|
|
|
|
show.value = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function reject() {
|
|
|
|
|
const list = []
|
|
|
|
|
state.detail.forEach((items) => {
|
|
|
|
|
items.repeatedTaskList.forEach((item) => {
|
|
|
|
|
list.push(item)
|
|
|
|
|
})
|
|
|
|
|
async function query() {
|
|
|
|
|
const result = await getRepeatList({
|
|
|
|
|
sortorder: 'asc',
|
|
|
|
|
pageSize: 300,
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
sortname: '',
|
|
|
|
|
})
|
|
|
|
|
emit('reject', list)
|
|
|
|
|
const { data } = result
|
|
|
|
|
// console.log(data)
|
|
|
|
|
// // const list = []
|
|
|
|
|
// // data.forEach((items) => {
|
|
|
|
|
// // items.repeatedTaskList.forEach((item) => {
|
|
|
|
|
// // list.push(item)
|
|
|
|
|
// // })
|
|
|
|
|
// // })
|
|
|
|
|
// console.log(data)
|
|
|
|
|
emit('reject', data)
|
|
|
|
|
closeModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function reject() {
|
|
|
|
|
query()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function viewRepeat(e: MouseEvent) {
|
|
|
|
|
emit('viewrepeat')
|
|
|
|
|
e.preventDefault()
|
|
|
|
|