mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore: 1
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<fs-page class="page-project-member">
|
<fs-page class="page-project-member">
|
||||||
|
<template #header>
|
||||||
|
<div class="title">
|
||||||
|
{{ t("certd.projectMemberManager") }}
|
||||||
|
<span class="sub">
|
||||||
|
{{ t("certd.projectMemberDescription") }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<fs-crud ref="crudRef" v-bind="crudBinding">
|
<fs-crud ref="crudRef" v-bind="crudBinding">
|
||||||
<template #pagination-left>
|
<template #pagination-left>
|
||||||
<a-tooltip :title="t('certd.batchDelete')">
|
<a-tooltip :title="t('certd.batchDelete')">
|
||||||
@@ -17,13 +25,22 @@ import createCrudOptions from "./crud";
|
|||||||
import { message, Modal } from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
import { DeleteBatch } from "./api";
|
import { DeleteBatch } from "./api";
|
||||||
import { useI18n } from "/src/locales";
|
import { useI18n } from "/src/locales";
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "ProjectMemberManager",
|
name: "ProjectMemberManager",
|
||||||
});
|
});
|
||||||
const { crudBinding, crudRef, crudExpose, context } = useFs({ createCrudOptions });
|
|
||||||
|
const route = useRoute();
|
||||||
|
const projectIdStr = route.query.projectId as string;
|
||||||
|
const projectId = Number(projectIdStr);
|
||||||
|
|
||||||
|
const context: any = {
|
||||||
|
projectId,
|
||||||
|
};
|
||||||
|
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context });
|
||||||
|
|
||||||
const selectedRowKeys = context.selectedRowKeys;
|
const selectedRowKeys = context.selectedRowKeys;
|
||||||
const handleBatchDelete = () => {
|
const handleBatchDelete = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user