新增前端vue

This commit is contained in:
2025-12-12 13:21:26 +08:00
parent efb20722f4
commit 2089f6eddb
2 changed files with 16 additions and 4 deletions

View File

@@ -19,11 +19,12 @@
</a-button>
</template>
<template #slotBizKey="{ record }">
<a v-if="record.ustatus !== '9'" @click="handleForm({ scheduleId: record.scheduleId })" :title="record.title">
<a @click="handleForm({ scheduleId: record.scheduleId })" :title="record.title">
{{ record.title }}
</a>
</template>
</BasicTable>
<FlowForm @register="registerFlowModal" @success="handleSuccess" />
<InputForm @register="registerModal" @success="handleSuccess" />
<FormImport @register="registerImportModal" @success="handleSuccess" />
</div>
@@ -41,6 +42,7 @@
import { bizCalendarScheduleDelete, bizCalendarScheduleListData } from '@jeesite/biz/api/biz/calendarSchedule';
import { useModal } from '@jeesite/core/components/Modal';
import { FormProps } from '@jeesite/core/components/Form';
import FlowForm from './flow.vue';
import InputForm from './form.vue';
import FormImport from './formImport.vue';
import { useUserStore } from '@jeesite/core/store/modules/user';
@@ -234,7 +236,6 @@
title: t('编辑'),
onClick: handleForm.bind(this, { scheduleId: record.scheduleId }),
auth: 'biz:calendarSchedule:edit',
ifShow: record.ustatus !== '9'
},
{
icon: 'i-ant-design:delete-outlined',
@@ -245,7 +246,12 @@
confirm: handleDelete.bind(this, record),
},
auth: 'biz:calendarSchedule:edit',
ifShow: record.ustatus == '0'
ifShow: record.ustatus == '0'
},
{
icon: 'ant-design:node-expand-outlined',
title: t('流程'),
onClick: flowForm.bind(this, { scheduleId: record.scheduleId }),
},
],
};
@@ -273,10 +279,16 @@
});
const [registerModal, { openModal }] = useModal();
const [registerFlowModal, { openModal: openFlowModal }] = useModal();
function handleForm(record: Recordable) {
openModal(true, record);
}
function flowForm(record: Recordable) {
openFlowModal(true, record);
}
async function handleExport() {
loading.value = true;

View File

@@ -28,7 +28,7 @@
<th class="col-user">操作人</th>
<th class="col-type">操作类型</th>
<th class="col-status">操作状态</th>
<th class="col-content">流程内容</th>
<th class="col-content">明细内容</th>
</tr>
</thead>
<tbody class="table-body">