|
|
@ -3,6 +3,7 @@ import type { DataTableColumns, DataTableRowKey, PaginationProps } from 'naive-u
|
|
|
|
import { NButton, NDataTable, useDialog, useMessage } from 'naive-ui'
|
|
|
|
import { NButton, NDataTable, useDialog, useMessage } from 'naive-ui'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
computed,
|
|
|
|
computed,
|
|
|
|
|
|
|
|
defineEmits,
|
|
|
|
h,
|
|
|
|
h,
|
|
|
|
nextTick,
|
|
|
|
nextTick,
|
|
|
|
onBeforeMount,
|
|
|
|
onBeforeMount,
|
|
|
@ -12,7 +13,6 @@ import {
|
|
|
|
ref,
|
|
|
|
ref,
|
|
|
|
unref,
|
|
|
|
unref,
|
|
|
|
watch,
|
|
|
|
watch,
|
|
|
|
defineEmits
|
|
|
|
|
|
|
|
} from 'vue'
|
|
|
|
} from 'vue'
|
|
|
|
import { rowPropKeys } from 'naive-ui/es/legacy-grid/src/Row'
|
|
|
|
import { rowPropKeys } from 'naive-ui/es/legacy-grid/src/Row'
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
@ -43,11 +43,10 @@ import { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
import { getAllfieldList, getfieldList, savefield } from '@/api/home/filter'
|
|
|
|
import { getAllfieldList, getfieldList, savefield } from '@/api/home/filter'
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['changeShow'])
|
|
|
|
const emit = defineEmits(['changeShow'])
|
|
|
|
const changeContent = ()=>{
|
|
|
|
function changeContent() {
|
|
|
|
emit('changeShow')
|
|
|
|
emit('changeShow')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dicStore = useDictionary()
|
|
|
|
const dicStore = useDictionary()
|
|
|
|
const izstatusList = ref([])
|
|
|
|
const izstatusList = ref([])
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
@ -379,22 +378,22 @@ const pagination = reactive({
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
pageCount: 1,
|
|
|
|
pageCount: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
showSizePicker:true,
|
|
|
|
showSizePicker: true,
|
|
|
|
pageSizes: [
|
|
|
|
pageSizes: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "10 每页",
|
|
|
|
label: '10 每页',
|
|
|
|
value: 10,
|
|
|
|
value: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "15 每页",
|
|
|
|
label: '15 每页',
|
|
|
|
value: 15,
|
|
|
|
value: 15,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "30 每页",
|
|
|
|
label: '30 每页',
|
|
|
|
value: 30,
|
|
|
|
value: 30,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "50 每页",
|
|
|
|
label: '50 每页',
|
|
|
|
value: 50,
|
|
|
|
value: 50,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -432,12 +431,13 @@ async function handlePageChange(currentPage) {
|
|
|
|
await query(currentPage, pageSize)
|
|
|
|
await query(currentPage, pageSize)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async function handlePageSizeChange(currentPageSize) {
|
|
|
|
async function handlePageSizeChange(currentPageSize) {
|
|
|
|
if (loading.value) return;
|
|
|
|
if (loading.value)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
const { page } = pagination;
|
|
|
|
const { page } = pagination
|
|
|
|
pagination.pageSize = currentPageSize;
|
|
|
|
pagination.pageSize = currentPageSize
|
|
|
|
|
|
|
|
|
|
|
|
await query(page, currentPageSize);
|
|
|
|
await query(page, currentPageSize)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleCheck(rowKeys: DataTableRowKey[]) {
|
|
|
|
function handleCheck(rowKeys: DataTableRowKey[]) {
|
|
|
@ -565,6 +565,7 @@ function actionHandler(action: any, row: any) {
|
|
|
|
const { key } = action
|
|
|
|
const { key } = action
|
|
|
|
switch (key) {
|
|
|
|
switch (key) {
|
|
|
|
case 'view':
|
|
|
|
case 'view':
|
|
|
|
|
|
|
|
goDetail(row)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
case 'reset':
|
|
|
|
case 'reset':
|
|
|
|
resetHandler()
|
|
|
|
resetHandler()
|
|
|
@ -754,7 +755,7 @@ async function refreshHandler(searchId?: any) {
|
|
|
|
<div class="wrapper-header">
|
|
|
|
<div class="wrapper-header">
|
|
|
|
<div class="wrapper-header-left">
|
|
|
|
<div class="wrapper-header-left">
|
|
|
|
<span class="wrapper-header-font">任务管理列表</span>
|
|
|
|
<span class="wrapper-header-font">任务管理列表</span>
|
|
|
|
<SvgIcon size="32" name="magnifying" @click="changeContent"/>
|
|
|
|
<SvgIcon size="32" name="magnifying" @click="changeContent" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<NButton class="xjcc" text @click="showModal(repeatModalRef)">
|
|
|
|
<NButton class="xjcc" text @click="showModal(repeatModalRef)">
|
|
|
@ -822,7 +823,7 @@ async function refreshHandler(searchId?: any) {
|
|
|
|
:pagination="pagination"
|
|
|
|
:pagination="pagination"
|
|
|
|
:row-key="rowKey"
|
|
|
|
:row-key="rowKey"
|
|
|
|
@update:page="handlePageChange"
|
|
|
|
@update:page="handlePageChange"
|
|
|
|
@update-page-size="handlePageSizeChange"
|
|
|
|
@update-page-size="handlePageSizeChange"
|
|
|
|
@update:checked-row-keys="handleCheck"
|
|
|
|
@update:checked-row-keys="handleCheck"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|