Dragon 1 year ago
parent f490843941
commit c94c04c169

1
components.d.ts vendored

@ -9,6 +9,7 @@ declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
Application: typeof import('./src/components/Application/Application.vue')['default'] Application: typeof import('./src/components/Application/Application.vue')['default']
BasicModal: typeof import('./src/components/Modal/BasicModal.vue')['default'] BasicModal: typeof import('./src/components/Modal/BasicModal.vue')['default']
DataHeader: typeof import('./src/components/DataHeader/index.vue')['default']
NAvatar: typeof import('naive-ui')['NAvatar'] NAvatar: typeof import('naive-ui')['NAvatar']
NButton: typeof import('naive-ui')['NButton'] NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard'] NCard: typeof import('naive-ui')['NCard']

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -32,12 +32,9 @@ defineExpose({
<div class="wrapper-header"> <div class="wrapper-header">
<span class="wrapper-left">全局快捷键</span> <span class="wrapper-left">全局快捷键</span>
<div class="wrapper-right"> <div class="wrapper-right">
<div> <img class="img-question" src="@/assets/images/question.png" alt="">查看快捷键的信息
<span class="wrapper-mark">?</span>查看快捷键的信息
</div> <img class="img-close" src="@/assets/images/close.png" alt="" @click="closeModal">
<div class="wrapper-close" @pointerdown="closeModal">
<div class="wrapper-icon" />
</div>
</div> </div>
</div> </div>
<n-divider /> <n-divider />
@ -133,6 +130,8 @@ defineExpose({
</table> </table>
</div> </div>
</div> </div>
<n-divider />
<template #footer> <template #footer>
<div class="wrapper-footer"> <div class="wrapper-footer">
<n-button type="info" @click="closeModal"> <n-button type="info" @click="closeModal">
@ -149,9 +148,51 @@ defineExpose({
</template> </template>
<style lang="less" scoped> <style lang="less" scoped>
.wrapper-footer{
margin-top: -20px;
}
.wrapper { .wrapper {
.title{
.wrapper-header{
padding: 14px;
padding-bottom: 0;
}
.img-question{
width: 16px;
height: 16px;
margin: 0 2px;
}
.img-close{
width: 16px;
height: 16px;
margin-left: 16px;
cursor: pointer;
}
.wrapper-right{
font-size: 16px; font-size: 16px;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular;
text-align: left;
color: #666666;
line-height: 22px;
display: flex;
align-items: center
}
.wrapper-left{
font-size: 18px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #333333;
line-height: 25px;
}
.title{
font-size: 14px;
font-weight: 600; font-weight: 600;
margin-bottom: 10px; margin-bottom: 10px;
padding-left: 30px; padding-left: 30px;

@ -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>

@ -76,13 +76,18 @@ function switchTab(type: number) {
getList() getList()
} }
function goFinalDetail(row) {
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid } })
}
function goDetail(item) { function goDetail(item) {
if (tab.value === 1) if (tab.value === 1) {
clearMsgOne(item.id) clearMsgOne(item.id)
goFinalDetail(item)
}
else else
// emit('goDetail', item.id) // emit('goDetail', item.id)
router.push({ name: 'message-detail', query: { id: item.id } }) { router.push({ name: 'message-detail', query: { id: item.id } }) }
} }
async function clearMsgOne(id) { async function clearMsgOne(id) {

@ -58,7 +58,7 @@ onMounted(() => {
<div class="time-wrap"> <div class="time-wrap">
<div class="triangle" /> <div class="triangle" />
<div class="time"> <div class="time">
完成时间{{ formatToDateHMS(props.data.createdate) }} 完成时间{{ props.data.finishtime ? formatToDateHMS(props.data.finishtime) : '' }}
</div> </div>
</div> </div>
</template> </template>

Loading…
Cancel
Save