diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts index 4de6ce2..db0b317 100644 --- a/src/router/modules/business.ts +++ b/src/router/modules/business.ts @@ -307,6 +307,18 @@ }, }, { + path: 'subpackage/apply/detail/:id?', + name: 'subpackageApplyDetail', + component: () => import('@/views/business/subpackage/apply/edit.vue'), + meta: { + title: '分包项目申请', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemApply', + }, + }, + { path: 'itemCheck', name: 'ItemCheck', component: () => import('@/views/business/subpackage/check/list.vue'), @@ -317,6 +329,18 @@ }, }, { + path: 'subpackage/check/detail/:id?', + name: 'subpackageCheckDetail', + component: () => import('@/views/business/subpackage/check/edit.vue'), + meta: { + title: '分包项目验收', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemCheck', + }, + }, + { path: 'archives', name: 'Archives', component: () => import('@/views/business/subpackage/record/list.vue'), @@ -327,6 +351,18 @@ }, }, { + path: 'subpackage/archives/detail/:id?', + name: 'subpackageArchivesDetail', + component: () => import('@/views/business/subpackage/record/edit.vue'), + meta: { + title: '分包方档案', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/archives', + }, + }, + { path: 'qualificationApprove', name: 'QualificationApprove', component: () => import('@/views/business/subpackage/approve/list.vue'), @@ -337,6 +373,18 @@ }, }, { + path: 'subpackage/qualificationApprove/detail/:id?', + name: 'subpackageQualificationApproveDetail', + component: () => import('@/views/business/subpackage/approve/edit.vue'), + meta: { + title: '分包方资格审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/qualificationApprove', + }, + }, + { path: 'certificate', name: 'Certificate', component: () => import('@/views/business/subpackage/certificate/list.vue'), @@ -347,6 +395,18 @@ }, }, { + path: 'subpackage/certificate/detail/:id?', + name: 'subpackageCertificateDetail', + component: () => import('@/views/business/subpackage/certificate/edit.vue'), + meta: { + title: '分包证书管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/certificate', + }, + }, + { path: '/:type/:id?', name: 'taskDetail', component: () => import('@/views/business/subpackage/certificate/edit.vue'), diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts index 4de6ce2..db0b317 100644 --- a/src/router/modules/business.ts +++ b/src/router/modules/business.ts @@ -307,6 +307,18 @@ }, }, { + path: 'subpackage/apply/detail/:id?', + name: 'subpackageApplyDetail', + component: () => import('@/views/business/subpackage/apply/edit.vue'), + meta: { + title: '分包项目申请', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemApply', + }, + }, + { path: 'itemCheck', name: 'ItemCheck', component: () => import('@/views/business/subpackage/check/list.vue'), @@ -317,6 +329,18 @@ }, }, { + path: 'subpackage/check/detail/:id?', + name: 'subpackageCheckDetail', + component: () => import('@/views/business/subpackage/check/edit.vue'), + meta: { + title: '分包项目验收', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemCheck', + }, + }, + { path: 'archives', name: 'Archives', component: () => import('@/views/business/subpackage/record/list.vue'), @@ -327,6 +351,18 @@ }, }, { + path: 'subpackage/archives/detail/:id?', + name: 'subpackageArchivesDetail', + component: () => import('@/views/business/subpackage/record/edit.vue'), + meta: { + title: '分包方档案', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/archives', + }, + }, + { path: 'qualificationApprove', name: 'QualificationApprove', component: () => import('@/views/business/subpackage/approve/list.vue'), @@ -337,6 +373,18 @@ }, }, { + path: 'subpackage/qualificationApprove/detail/:id?', + name: 'subpackageQualificationApproveDetail', + component: () => import('@/views/business/subpackage/approve/edit.vue'), + meta: { + title: '分包方资格审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/qualificationApprove', + }, + }, + { path: 'certificate', name: 'Certificate', component: () => import('@/views/business/subpackage/certificate/list.vue'), @@ -347,6 +395,18 @@ }, }, { + path: 'subpackage/certificate/detail/:id?', + name: 'subpackageCertificateDetail', + component: () => import('@/views/business/subpackage/certificate/edit.vue'), + meta: { + title: '分包证书管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/certificate', + }, + }, + { path: '/:type/:id?', name: 'taskDetail', component: () => import('@/views/business/subpackage/certificate/edit.vue'), diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c4a4b4..d64aa23 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -549,7 +549,7 @@ - + + + + + + diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts index 4de6ce2..db0b317 100644 --- a/src/router/modules/business.ts +++ b/src/router/modules/business.ts @@ -307,6 +307,18 @@ }, }, { + path: 'subpackage/apply/detail/:id?', + name: 'subpackageApplyDetail', + component: () => import('@/views/business/subpackage/apply/edit.vue'), + meta: { + title: '分包项目申请', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemApply', + }, + }, + { path: 'itemCheck', name: 'ItemCheck', component: () => import('@/views/business/subpackage/check/list.vue'), @@ -317,6 +329,18 @@ }, }, { + path: 'subpackage/check/detail/:id?', + name: 'subpackageCheckDetail', + component: () => import('@/views/business/subpackage/check/edit.vue'), + meta: { + title: '分包项目验收', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemCheck', + }, + }, + { path: 'archives', name: 'Archives', component: () => import('@/views/business/subpackage/record/list.vue'), @@ -327,6 +351,18 @@ }, }, { + path: 'subpackage/archives/detail/:id?', + name: 'subpackageArchivesDetail', + component: () => import('@/views/business/subpackage/record/edit.vue'), + meta: { + title: '分包方档案', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/archives', + }, + }, + { path: 'qualificationApprove', name: 'QualificationApprove', component: () => import('@/views/business/subpackage/approve/list.vue'), @@ -337,6 +373,18 @@ }, }, { + path: 'subpackage/qualificationApprove/detail/:id?', + name: 'subpackageQualificationApproveDetail', + component: () => import('@/views/business/subpackage/approve/edit.vue'), + meta: { + title: '分包方资格审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/qualificationApprove', + }, + }, + { path: 'certificate', name: 'Certificate', component: () => import('@/views/business/subpackage/certificate/list.vue'), @@ -347,6 +395,18 @@ }, }, { + path: 'subpackage/certificate/detail/:id?', + name: 'subpackageCertificateDetail', + component: () => import('@/views/business/subpackage/certificate/edit.vue'), + meta: { + title: '分包证书管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/certificate', + }, + }, + { path: '/:type/:id?', name: 'taskDetail', component: () => import('@/views/business/subpackage/certificate/edit.vue'), diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c4a4b4..d64aa23 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -549,7 +549,7 @@ - + + + + + + diff --git a/src/views/business/subpackage/apply/list.vue b/src/views/business/subpackage/apply/list.vue index 8fc0173..9cca21e 100644 --- a/src/views/business/subpackage/apply/list.vue +++ b/src/views/business/subpackage/apply/list.vue @@ -11,8 +11,9 @@ import type { dictType } from '@/views/device/receive/receive' import type { IMenu } from '@/components/buttonBox/buttonBox' import ButtonBox from '@/components/buttonBox/buttonBox.vue' -import { detail, getListPage } from '@/api/business/subpackage/apply' +import { getListPage } from '@/api/business/subpackage/apply' import { SCHEDULE } from '@/utils/scheduleDict' +const $route = useRoute() const $router = useRouter() const { proxy } = getCurrentInstance() as any const TabActiveButton = 'SubpackageApplyActive' @@ -46,7 +47,13 @@ ]) const list = ref([]) const total = ref(0) - +const permUrl = { + edit: `${$route.path}/edit`, // 编辑 + agree: `${$route.path}/agree`, // 同意 + reject: `${$route.path}/reject`, // 驳回 拒绝 + cancel: `${$route.path}/cancle`, // 取消 + delete: `${$route.path}/delete`, // 删除 +} // 时间变更 watch(timeRange, (val) => { if (val) { @@ -98,7 +105,15 @@ // 新建 const add = () => { - + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'add', + }, + query: { + title: '新建', + }, + }) } // 导出 const exportAll = () => { @@ -116,18 +131,66 @@ const handleSelectionChange = () => { } -// 详情或者编辑 -const handleEdit = (row: IApplyList, status: string) => { - if (status !== 'edit') { - detail({ id: row.id }).then((res) => { - console.log(res) - }) - } +// 详情 +const detail = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'detail', + id: row.id, + }, + query: { + title: '详情', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) } -// 取消 -const handleCancle = (row: IApplyList) => { + +// 编辑 +const update = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'edit', + id: row.id, + }, + query: { + title: '编辑', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) +} + +// 提交 +const submit = (row: IApplyList) => { } + +// 同意 +const agree = (row: IApplyList) => { + +} + +// 驳回 +const reject = (row: IApplyList) => { + +} + +// 拒绝 +const refuse = (row: IApplyList) => { + +} + +// 取消 +const cancel = (row: IApplyList) => { + +} + +// 删除 +const remove = (row: IApplyList) => { + +} + // 获取字典值 const getDict = async () => { // 审批状态 @@ -189,18 +252,9 @@ diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts index 4de6ce2..db0b317 100644 --- a/src/router/modules/business.ts +++ b/src/router/modules/business.ts @@ -307,6 +307,18 @@ }, }, { + path: 'subpackage/apply/detail/:id?', + name: 'subpackageApplyDetail', + component: () => import('@/views/business/subpackage/apply/edit.vue'), + meta: { + title: '分包项目申请', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemApply', + }, + }, + { path: 'itemCheck', name: 'ItemCheck', component: () => import('@/views/business/subpackage/check/list.vue'), @@ -317,6 +329,18 @@ }, }, { + path: 'subpackage/check/detail/:id?', + name: 'subpackageCheckDetail', + component: () => import('@/views/business/subpackage/check/edit.vue'), + meta: { + title: '分包项目验收', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemCheck', + }, + }, + { path: 'archives', name: 'Archives', component: () => import('@/views/business/subpackage/record/list.vue'), @@ -327,6 +351,18 @@ }, }, { + path: 'subpackage/archives/detail/:id?', + name: 'subpackageArchivesDetail', + component: () => import('@/views/business/subpackage/record/edit.vue'), + meta: { + title: '分包方档案', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/archives', + }, + }, + { path: 'qualificationApprove', name: 'QualificationApprove', component: () => import('@/views/business/subpackage/approve/list.vue'), @@ -337,6 +373,18 @@ }, }, { + path: 'subpackage/qualificationApprove/detail/:id?', + name: 'subpackageQualificationApproveDetail', + component: () => import('@/views/business/subpackage/approve/edit.vue'), + meta: { + title: '分包方资格审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/qualificationApprove', + }, + }, + { path: 'certificate', name: 'Certificate', component: () => import('@/views/business/subpackage/certificate/list.vue'), @@ -347,6 +395,18 @@ }, }, { + path: 'subpackage/certificate/detail/:id?', + name: 'subpackageCertificateDetail', + component: () => import('@/views/business/subpackage/certificate/edit.vue'), + meta: { + title: '分包证书管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/certificate', + }, + }, + { path: '/:type/:id?', name: 'taskDetail', component: () => import('@/views/business/subpackage/certificate/edit.vue'), diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c4a4b4..d64aa23 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -549,7 +549,7 @@ - + + + + + + diff --git a/src/views/business/subpackage/apply/list.vue b/src/views/business/subpackage/apply/list.vue index 8fc0173..9cca21e 100644 --- a/src/views/business/subpackage/apply/list.vue +++ b/src/views/business/subpackage/apply/list.vue @@ -11,8 +11,9 @@ import type { dictType } from '@/views/device/receive/receive' import type { IMenu } from '@/components/buttonBox/buttonBox' import ButtonBox from '@/components/buttonBox/buttonBox.vue' -import { detail, getListPage } from '@/api/business/subpackage/apply' +import { getListPage } from '@/api/business/subpackage/apply' import { SCHEDULE } from '@/utils/scheduleDict' +const $route = useRoute() const $router = useRouter() const { proxy } = getCurrentInstance() as any const TabActiveButton = 'SubpackageApplyActive' @@ -46,7 +47,13 @@ ]) const list = ref([]) const total = ref(0) - +const permUrl = { + edit: `${$route.path}/edit`, // 编辑 + agree: `${$route.path}/agree`, // 同意 + reject: `${$route.path}/reject`, // 驳回 拒绝 + cancel: `${$route.path}/cancle`, // 取消 + delete: `${$route.path}/delete`, // 删除 +} // 时间变更 watch(timeRange, (val) => { if (val) { @@ -98,7 +105,15 @@ // 新建 const add = () => { - + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'add', + }, + query: { + title: '新建', + }, + }) } // 导出 const exportAll = () => { @@ -116,18 +131,66 @@ const handleSelectionChange = () => { } -// 详情或者编辑 -const handleEdit = (row: IApplyList, status: string) => { - if (status !== 'edit') { - detail({ id: row.id }).then((res) => { - console.log(res) - }) - } +// 详情 +const detail = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'detail', + id: row.id, + }, + query: { + title: '详情', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) } -// 取消 -const handleCancle = (row: IApplyList) => { + +// 编辑 +const update = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'edit', + id: row.id, + }, + query: { + title: '编辑', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) +} + +// 提交 +const submit = (row: IApplyList) => { } + +// 同意 +const agree = (row: IApplyList) => { + +} + +// 驳回 +const reject = (row: IApplyList) => { + +} + +// 拒绝 +const refuse = (row: IApplyList) => { + +} + +// 取消 +const cancel = (row: IApplyList) => { + +} + +// 删除 +const remove = (row: IApplyList) => { + +} + // 获取字典值 const getDict = async () => { // 审批状态 @@ -189,18 +252,9 @@ diff --git a/src/views/business/subpackage/approve/edit.vue b/src/views/business/subpackage/approve/edit.vue new file mode 100644 index 0000000..6352f2e --- /dev/null +++ b/src/views/business/subpackage/approve/edit.vue @@ -0,0 +1,14 @@ + + + + + + diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts index 4de6ce2..db0b317 100644 --- a/src/router/modules/business.ts +++ b/src/router/modules/business.ts @@ -307,6 +307,18 @@ }, }, { + path: 'subpackage/apply/detail/:id?', + name: 'subpackageApplyDetail', + component: () => import('@/views/business/subpackage/apply/edit.vue'), + meta: { + title: '分包项目申请', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemApply', + }, + }, + { path: 'itemCheck', name: 'ItemCheck', component: () => import('@/views/business/subpackage/check/list.vue'), @@ -317,6 +329,18 @@ }, }, { + path: 'subpackage/check/detail/:id?', + name: 'subpackageCheckDetail', + component: () => import('@/views/business/subpackage/check/edit.vue'), + meta: { + title: '分包项目验收', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/itemCheck', + }, + }, + { path: 'archives', name: 'Archives', component: () => import('@/views/business/subpackage/record/list.vue'), @@ -327,6 +351,18 @@ }, }, { + path: 'subpackage/archives/detail/:id?', + name: 'subpackageArchivesDetail', + component: () => import('@/views/business/subpackage/record/edit.vue'), + meta: { + title: '分包方档案', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/archives', + }, + }, + { path: 'qualificationApprove', name: 'QualificationApprove', component: () => import('@/views/business/subpackage/approve/list.vue'), @@ -337,6 +373,18 @@ }, }, { + path: 'subpackage/qualificationApprove/detail/:id?', + name: 'subpackageQualificationApproveDetail', + component: () => import('@/views/business/subpackage/approve/edit.vue'), + meta: { + title: '分包方资格审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/qualificationApprove', + }, + }, + { path: 'certificate', name: 'Certificate', component: () => import('@/views/business/subpackage/certificate/list.vue'), @@ -347,6 +395,18 @@ }, }, { + path: 'subpackage/certificate/detail/:id?', + name: 'subpackageCertificateDetail', + component: () => import('@/views/business/subpackage/certificate/edit.vue'), + meta: { + title: '分包证书管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/subpackage/certificate', + }, + }, + { path: '/:type/:id?', name: 'taskDetail', component: () => import('@/views/business/subpackage/certificate/edit.vue'), diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c4a4b4..d64aa23 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -549,7 +549,7 @@ - + + + + + + diff --git a/src/views/business/subpackage/apply/list.vue b/src/views/business/subpackage/apply/list.vue index 8fc0173..9cca21e 100644 --- a/src/views/business/subpackage/apply/list.vue +++ b/src/views/business/subpackage/apply/list.vue @@ -11,8 +11,9 @@ import type { dictType } from '@/views/device/receive/receive' import type { IMenu } from '@/components/buttonBox/buttonBox' import ButtonBox from '@/components/buttonBox/buttonBox.vue' -import { detail, getListPage } from '@/api/business/subpackage/apply' +import { getListPage } from '@/api/business/subpackage/apply' import { SCHEDULE } from '@/utils/scheduleDict' +const $route = useRoute() const $router = useRouter() const { proxy } = getCurrentInstance() as any const TabActiveButton = 'SubpackageApplyActive' @@ -46,7 +47,13 @@ ]) const list = ref([]) const total = ref(0) - +const permUrl = { + edit: `${$route.path}/edit`, // 编辑 + agree: `${$route.path}/agree`, // 同意 + reject: `${$route.path}/reject`, // 驳回 拒绝 + cancel: `${$route.path}/cancle`, // 取消 + delete: `${$route.path}/delete`, // 删除 +} // 时间变更 watch(timeRange, (val) => { if (val) { @@ -98,7 +105,15 @@ // 新建 const add = () => { - + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'add', + }, + query: { + title: '新建', + }, + }) } // 导出 const exportAll = () => { @@ -116,18 +131,66 @@ const handleSelectionChange = () => { } -// 详情或者编辑 -const handleEdit = (row: IApplyList, status: string) => { - if (status !== 'edit') { - detail({ id: row.id }).then((res) => { - console.log(res) - }) - } +// 详情 +const detail = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'detail', + id: row.id, + }, + query: { + title: '详情', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) } -// 取消 -const handleCancle = (row: IApplyList) => { + +// 编辑 +const update = (row: IApplyList) => { + $router.push({ + name: 'subpackageApplyDetail', + params: { + type: 'edit', + id: row.id, + }, + query: { + title: '编辑', + approvalStatusName: menu.value.find(item => item.id === active.value)!.name as string, + }, + }) +} + +// 提交 +const submit = (row: IApplyList) => { } + +// 同意 +const agree = (row: IApplyList) => { + +} + +// 驳回 +const reject = (row: IApplyList) => { + +} + +// 拒绝 +const refuse = (row: IApplyList) => { + +} + +// 取消 +const cancel = (row: IApplyList) => { + +} + +// 删除 +const remove = (row: IApplyList) => { + +} + // 获取字典值 const getDict = async () => { // 审批状态 @@ -189,18 +252,9 @@ diff --git a/src/views/business/subpackage/approve/edit.vue b/src/views/business/subpackage/approve/edit.vue new file mode 100644 index 0000000..6352f2e --- /dev/null +++ b/src/views/business/subpackage/approve/edit.vue @@ -0,0 +1,14 @@ + + + + + + diff --git a/src/views/business/subpackage/approve/list.vue b/src/views/business/subpackage/approve/list.vue index 6755ede..0be983d 100644 --- a/src/views/business/subpackage/approve/list.vue +++ b/src/views/business/subpackage/approve/list.vue @@ -11,9 +11,10 @@ import type { dictType } from '@/views/device/receive/receive' import type { IMenu } from '@/components/buttonBox/buttonBox' import ButtonBox from '@/components/buttonBox/buttonBox.vue' -import { detail, getListPage } from '@/api/business/subpackage/approval' +import { getListPage } from '@/api/business/subpackage/approval' import { SCHEDULE } from '@/utils/scheduleDict' const $router = useRouter() +const $route = useRoute() const { proxy } = getCurrentInstance() as any const TabActiveButton = 'SubpackageApproveActive' const loadingTable = ref(false) @@ -54,6 +55,13 @@ const list = ref([]) const total = ref(0) +const permUrl = { + edit: `${$route.path}/edit`, // 编辑 + agree: `${$route.path}/agree`, // 同意 + reject: `${$route.path}/reject`, // 驳回 拒绝 + cancel: `${$route.path}/cancle`, // 取消 + delete: `${$route.path}/delete`, // 删除 +} // 时间变更 watch(timeRange, (val) => { if (val) { @@ -134,13 +142,44 @@ const handleSelectionChange = () => { } -// 详情或者编辑 -const handleEdit = (row: IApproveList, status: string) => { - // if (status !== 'edit') { - // detail({ id: row.id }).then((res) => { - // console.log(res) - // }) - // } +// 详情 +const detail = (row: IApproveList) => { + +} + +// 编辑 +const update = (row: IApproveList) => { + +} + +// 提交 +const submit = (row: IApproveList) => { + +} + +// 同意 +const agree = (row: IApproveList) => { + +} + +// 驳回 +const reject = (row: IApproveList) => { + +} + +// 拒绝 +const refuse = (row: IApproveList) => { + +} + +// 取消 +const cancel = (row: IApproveList) => { + +} + +// 删除 +const remove = (row: IApproveList) => { + } // 获取字典值 @@ -219,11 +258,82 @@