pull/39/head
Dragon 1 year ago
parent d70094ef41
commit 8281a4719d

8
components.d.ts vendored

@ -21,8 +21,11 @@ declare module 'vue' {
NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider'] NDivider: typeof import('naive-ui')['NDivider']
NDropdown: typeof import('naive-ui')['NDropdown'] NDropdown: typeof import('naive-ui')['NDropdown']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NEmpty: typeof import('naive-ui')['NEmpty']
NForm: typeof import('naive-ui')['NForm'] NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem'] NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid'] NGrid: typeof import('naive-ui')['NGrid']
NGridItem: typeof import('naive-ui')['NGridItem'] NGridItem: typeof import('naive-ui')['NGridItem']
NImage: typeof import('naive-ui')['NImage'] NImage: typeof import('naive-ui')['NImage']
@ -31,6 +34,7 @@ declare module 'vue' {
NModal: typeof import('naive-ui')['NModal'] NModal: typeof import('naive-ui')['NModal']
NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider']
NotPassed: typeof import('./src/components/NotPassed.vue')['default'] NotPassed: typeof import('./src/components/NotPassed.vue')['default']
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
NPopover: typeof import('naive-ui')['NPopover'] NPopover: typeof import('naive-ui')['NPopover']
NPopselect: typeof import('naive-ui')['NPopselect'] NPopselect: typeof import('naive-ui')['NPopselect']
NProgress: typeof import('naive-ui')['NProgress'] NProgress: typeof import('naive-ui')['NProgress']
@ -40,7 +44,11 @@ declare module 'vue' {
NSpace: typeof import('naive-ui')['NSpace'] NSpace: typeof import('naive-ui')['NSpace']
NSpin: typeof import('naive-ui')['NSpin'] NSpin: typeof import('naive-ui')['NSpin']
NSwitch: typeof import('naive-ui')['NSwitch'] NSwitch: typeof import('naive-ui')['NSwitch']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag'] NTag: typeof import('naive-ui')['NTag']
NTimeline: typeof import('naive-ui')['NTimeline']
NTimelineItem: typeof import('naive-ui')['NTimelineItem']
NTooltip: typeof import('naive-ui')['NTooltip'] NTooltip: typeof import('naive-ui')['NTooltip']
NUpload: typeof import('naive-ui')['NUpload'] NUpload: typeof import('naive-ui')['NUpload']
NUploadDragger: typeof import('naive-ui')['NUploadDragger'] NUploadDragger: typeof import('naive-ui')['NUploadDragger']

@ -68,31 +68,16 @@ export async function repetitionTask() {
* @returns * @returns
*/ */
export async function getRepeatList(params: FinalParam) { export async function getRepeatList(params: FinalParam) {
const notEmptyParams = pickBy(params, notEmpty)
Object.keys(notEmptyParams).forEach((key) => {
const val = notEmptyParams[key]
if (key === 'izuptime') {
const start = formatToDate2(val[0])
const end = formatToDate2(val[1])
notEmptyParams[key] = `${start}-${end}`
}
if (Array.isArray(notEmptyParams[key]))
notEmptyParams[key] = val.join(',')
})
const res = await http.request({ const res = await http.request({
url: `/flow/task/repetitionTaskList`, url: `/flow/task/repetitionTaskList`,
method: 'get', method: 'get',
params: notEmptyParams, params,
}) })
const { data: { list, totalPage, totalCount } } = res const { data: { records, totalPage, totalCount } } = res
return { return {
pageCount: totalPage, pageCount: totalPage,
data: list, data: records,
totalCount, totalCount,
} }
} }

@ -40,10 +40,6 @@ onBeforeMount(() => {
dicStore.fetchizstatusListt() dicStore.fetchizstatusListt()
}) })
function showModal() {
show.value = true
}
function closeModal() { function closeModal() {
show.value = false show.value = false
} }
@ -53,10 +49,6 @@ async function handleSumbit(e: MouseEvent) {
closeModal() closeModal()
} }
defineExpose({
showModal,
})
const columns: DataTableColumns<RowData> = [ const columns: DataTableColumns<RowData> = [
{ {
type: 'selection', type: 'selection',
@ -190,7 +182,7 @@ async function query(page: number, pageSize: number) {
const result = await getRepeatList({ const result = await getRepeatList({
sortorder: 'asc', sortorder: 'asc',
pageSize: pagination.pageSize, pageSize: pagination.pageSize,
currPage: 1, pageNo: 1,
sortname: '', sortname: '',
}) })
console.log(666666) console.log(666666)
@ -351,12 +343,21 @@ function rejectHandler(list) {
const modal = unref(notPassModalRef)! as any const modal = unref(notPassModalRef)! as any
modal.showModal(list) modal.showModal(list)
} }
query(pagination.page, pagination.pageSize) // query(pagination.page, pagination.pageSize)
function showModal() {
query(pagination.page, pagination.pageSize)
show.value = true
}
function reload() { function reload() {
selectionIds.value = [] selectionIds.value = []
checkedRowKeys.value = [] checkedRowKeys.value = []
} }
defineExpose({
showModal,
})
</script> </script>
<template> <template>

Loading…
Cancel
Save