新增前端vue
This commit is contained in:
@@ -19,11 +19,12 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
<template #slotBizKey="{ record }">
|
<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 }}
|
{{ record.title }}
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
|
<FlowForm @register="registerFlowModal" @success="handleSuccess" />
|
||||||
<InputForm @register="registerModal" @success="handleSuccess" />
|
<InputForm @register="registerModal" @success="handleSuccess" />
|
||||||
<FormImport @register="registerImportModal" @success="handleSuccess" />
|
<FormImport @register="registerImportModal" @success="handleSuccess" />
|
||||||
</div>
|
</div>
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
import { bizCalendarScheduleDelete, bizCalendarScheduleListData } from '@jeesite/biz/api/biz/calendarSchedule';
|
import { bizCalendarScheduleDelete, bizCalendarScheduleListData } from '@jeesite/biz/api/biz/calendarSchedule';
|
||||||
import { useModal } from '@jeesite/core/components/Modal';
|
import { useModal } from '@jeesite/core/components/Modal';
|
||||||
import { FormProps } from '@jeesite/core/components/Form';
|
import { FormProps } from '@jeesite/core/components/Form';
|
||||||
|
import FlowForm from './flow.vue';
|
||||||
import InputForm from './form.vue';
|
import InputForm from './form.vue';
|
||||||
import FormImport from './formImport.vue';
|
import FormImport from './formImport.vue';
|
||||||
import { useUserStore } from '@jeesite/core/store/modules/user';
|
import { useUserStore } from '@jeesite/core/store/modules/user';
|
||||||
@@ -234,7 +236,6 @@
|
|||||||
title: t('编辑'),
|
title: t('编辑'),
|
||||||
onClick: handleForm.bind(this, { scheduleId: record.scheduleId }),
|
onClick: handleForm.bind(this, { scheduleId: record.scheduleId }),
|
||||||
auth: 'biz:calendarSchedule:edit',
|
auth: 'biz:calendarSchedule:edit',
|
||||||
ifShow: record.ustatus !== '9'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'i-ant-design:delete-outlined',
|
icon: 'i-ant-design:delete-outlined',
|
||||||
@@ -245,7 +246,12 @@
|
|||||||
confirm: handleDelete.bind(this, record),
|
confirm: handleDelete.bind(this, record),
|
||||||
},
|
},
|
||||||
auth: 'biz:calendarSchedule:edit',
|
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 [registerModal, { openModal }] = useModal();
|
||||||
|
|
||||||
|
const [registerFlowModal, { openModal: openFlowModal }] = useModal();
|
||||||
|
|
||||||
function handleForm(record: Recordable) {
|
function handleForm(record: Recordable) {
|
||||||
openModal(true, record);
|
openModal(true, record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function flowForm(record: Recordable) {
|
||||||
|
openFlowModal(true, record);
|
||||||
|
}
|
||||||
|
|
||||||
async function handleExport() {
|
async function handleExport() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<th class="col-user">操作人</th>
|
<th class="col-user">操作人</th>
|
||||||
<th class="col-type">操作类型</th>
|
<th class="col-type">操作类型</th>
|
||||||
<th class="col-status">操作状态</th>
|
<th class="col-status">操作状态</th>
|
||||||
<th class="col-content">流程内容</th>
|
<th class="col-content">明细内容</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="table-body">
|
<tbody class="table-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user