feat: 去除BpmFormApi中的vo
This commit is contained in:
@@ -35,7 +35,7 @@ function handleCreate() {
|
||||
}
|
||||
|
||||
/** 编辑 */
|
||||
function handleEdit(row: BpmFormApi.FormVO) {
|
||||
function handleEdit(row: BpmFormApi.Form) {
|
||||
router.push({
|
||||
name: 'BpmFormEditor',
|
||||
query: {
|
||||
@@ -46,7 +46,7 @@ function handleEdit(row: BpmFormApi.FormVO) {
|
||||
}
|
||||
|
||||
/** 复制 */
|
||||
function handleCopy(row: BpmFormApi.FormVO) {
|
||||
function handleCopy(row: BpmFormApi.Form) {
|
||||
router.push({
|
||||
name: 'BpmFormEditor',
|
||||
query: {
|
||||
@@ -57,7 +57,7 @@ function handleCopy(row: BpmFormApi.FormVO) {
|
||||
}
|
||||
|
||||
/** 删除 */
|
||||
async function handleDelete(row: BpmFormApi.FormVO) {
|
||||
async function handleDelete(row: BpmFormApi.Form) {
|
||||
const hideLoading = message.loading({
|
||||
content: $t('ui.actionMessage.deleting', [row.name]),
|
||||
key: 'action_key_msg',
|
||||
@@ -73,7 +73,7 @@ async function handleDelete(row: BpmFormApi.FormVO) {
|
||||
hideLoading();
|
||||
}
|
||||
}
|
||||
async function handleDetail(row: BpmFormApi.FormVO) {
|
||||
async function handleDetail(row: BpmFormApi.Form) {
|
||||
detailModalApi.setData(row).open();
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
cellConfig: {
|
||||
height: 64,
|
||||
},
|
||||
} as VxeTableGridOptions<BpmFormApi.FormVO>,
|
||||
} as VxeTableGridOptions<BpmFormApi.Form>,
|
||||
});
|
||||
|
||||
watch(
|
||||
|
||||
@@ -19,7 +19,7 @@ import { useFormSchema } from '../data';
|
||||
const emit = defineEmits(['success']);
|
||||
|
||||
const designerComponent = ref<InstanceType<typeof FcDesigner>>();
|
||||
const formData = ref<BpmFormApi.FormVO>();
|
||||
const formData = ref<BpmFormApi.Form>();
|
||||
const editorAction = ref<string>();
|
||||
|
||||
const getTitle = computed(() => {
|
||||
@@ -47,7 +47,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
modalApi.lock();
|
||||
try {
|
||||
// 获取表单数据
|
||||
const data = (await formApi.getValues()) as BpmFormApi.FormVO;
|
||||
const data = (await formApi.getValues()) as BpmFormApi.Form;
|
||||
|
||||
// 编码表单配置和表单字段
|
||||
data.conf = encodeConf(designerComponent);
|
||||
|
||||
@@ -132,7 +132,7 @@ provide('processData', processData);
|
||||
provide('modelData', formData);
|
||||
|
||||
// 数据列表
|
||||
const formList = ref<BpmFormApi.FormVO[]>([]);
|
||||
const formList = ref<BpmFormApi.Form[]>([]);
|
||||
const categoryList = ref<BpmCategoryApi.Category[]>([]);
|
||||
const userList = ref<SystemUserApi.User[]>([]);
|
||||
const deptList = ref<SystemDeptApi.Dept[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user