|
@ -1,6 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<PageWrapper dense> |
|
|
<PageWrapper dense> |
|
|
|
|
|
|
|
|
<!--引用表格--> |
|
|
<!--引用表格--> |
|
|
<BasicTable @register="registerTable"> |
|
|
<BasicTable @register="registerTable"> |
|
|
<!--插槽:table标题--> |
|
|
<!--插槽:table标题--> |
|
@ -9,12 +8,14 @@ |
|
|
<!-- <TableAction :actions="getTableAction(record)" /> --> |
|
|
<!-- <TableAction :actions="getTableAction(record)" /> --> |
|
|
<TableAction :actions="getTableAction(record)" /> |
|
|
<TableAction :actions="getTableAction(record)" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template #tableTitle> |
|
|
|
|
|
<el-button type="primary" round @click="handleAdd" v-if="isShowByRoles('manageOrg')" |
|
|
|
|
|
>新增</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</template> |
|
|
</BasicTable> |
|
|
</BasicTable> |
|
|
<BasicModal @register="registechangeFieldManageModal" title="变更字段详情" width="1200px" :showOkBtn="false"> |
|
|
<modifycountStatistics @register="register" @exit="close" /> |
|
|
<modifycountStatistics :id="id" @exit="close" /> |
|
|
|
|
|
</BasicModal> |
|
|
|
|
|
</PageWrapper> |
|
|
</PageWrapper> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script lang="ts" name="system-user" setup> |
|
|
<script lang="ts" name="system-user" setup> |
|
@ -22,15 +23,14 @@ |
|
|
import { ref } from 'vue'; |
|
|
import { ref } from 'vue'; |
|
|
import { ActionItem, BasicTable, TableAction, useTable } from '@/components/Table'; |
|
|
import { ActionItem, BasicTable, TableAction, useTable } from '@/components/Table'; |
|
|
import { PageWrapper } from '@/components/Page'; |
|
|
import { PageWrapper } from '@/components/Page'; |
|
|
import modifycountStatistics from "./modifycountStatistics.vue" |
|
|
import modifycountStatistics from './modifycountStatistics.vue'; |
|
|
import { BasicModal, useModal } from '@/components/Modal'; |
|
|
import { BasicModal, useModal } from '@/components/Modal'; |
|
|
import { countStatisticsColumns, searchFormSchema } from './countStatistics.data' |
|
|
import { countStatisticsColumns, searchFormSchema } from './countStatistics.data'; |
|
|
import { periodicallabCountPageList } from './countStatistics.api'; |
|
|
import { periodicallabCountPageList,deletePeriodicallabCount } from './countStatistics.api'; |
|
|
|
|
|
import { isShowByRoles } from '@/views/projectLib/projectInfo/projectInfo.api'; |
|
|
|
|
|
|
|
|
let id = ref(); |
|
|
let id = ref(); |
|
|
const [registechangeFieldManageModal, { openModal: openchangeFieldManage,closeModal}] = useModal();//项目详情 |
|
|
const [register, { openModal }] = useModal(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [registerTable, { reload }] = useTable({ |
|
|
const [registerTable, { reload }] = useTable({ |
|
|
title: '信息稿件详情', |
|
|
title: '信息稿件详情', |
|
@ -46,7 +46,7 @@ const [registerTable,{reload}] = useTable({ |
|
|
//表单查询项设置 |
|
|
//表单查询项设置 |
|
|
formConfig: { |
|
|
formConfig: { |
|
|
schemas: searchFormSchema, |
|
|
schemas: searchFormSchema, |
|
|
} |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
function getTableAction(record): ActionItem[] { |
|
|
function getTableAction(record): ActionItem[] { |
|
@ -55,18 +55,33 @@ function getTableAction(record): ActionItem[] { |
|
|
label: '修改', |
|
|
label: '修改', |
|
|
onClick: handlemodifympage.bind(null, record), |
|
|
onClick: handlemodifympage.bind(null, record), |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '删除', |
|
|
|
|
|
ifShow: () => { |
|
|
|
|
|
return isShowByRoles('manageOrg') |
|
|
|
|
|
}, |
|
|
|
|
|
popConfirm: { |
|
|
|
|
|
title: '确定删除吗?', |
|
|
|
|
|
confirm: handleDelete.bind(null, record), |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
function handleAdd() { |
|
|
|
|
|
openModal(true,{id:null}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function handlemodifympage(record) { |
|
|
function handlemodifympage(record) { |
|
|
id.value = record.id |
|
|
id.value = record.id; |
|
|
openchangeFieldManage() |
|
|
openModal(true,{id:record.id}); |
|
|
} |
|
|
} |
|
|
function close() { |
|
|
function close() { |
|
|
closeModal() |
|
|
reload(); |
|
|
reload() |
|
|
} |
|
|
|
|
|
async function handleDelete(record) { |
|
|
|
|
|
await deletePeriodicallabCount({id:record.id}) |
|
|
|
|
|
reload(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|