fix: 删除无用命名,更新了一些细节
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
This commit is contained in:
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createAdmin, updateAdmin } from '#/views/system/admin/api';
|
||||
import { modalFormProps } from '#/views/system/admin/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createBaseConfig, updateBaseConfig } from '#/views/system/base-config/api';
|
||||
import { modalFormProps } from '#/views/system/base-config/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createMenu, updateMenu } from '../api';
|
||||
import { modalFormProps } from '../config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createPlatform, updatePlatform } from '#/views/system/platform/api';
|
||||
import { modalFormProps } from '#/views/system/platform/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createProcess, updateProcess } from '#/views/system/process/api';
|
||||
import { modalFormProps } from '#/views/system/process/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createRegion, updateRegion } from '#/views/system/region/api';
|
||||
import { modalFormProps } from '#/views/system/region/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createRole, updateRole } from '#/views/system/role/api';
|
||||
import { modalFormProps } from '#/views/system/role/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
@@ -11,9 +11,7 @@ import { modalFormProps } from '#/views/system/store/config/form';
|
||||
import { createStore, updateStore } from '../api';
|
||||
import dayjs from "dayjs";
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
@@ -52,10 +50,14 @@ const [Modal, modalApi] = useVbenModal({
|
||||
if (values) {
|
||||
isUpdate.value = update;
|
||||
// 把values.start_time变成dayjs
|
||||
values.start_time = dayjs(values.start_time, 'HH:mm');
|
||||
values.end_time = dayjs(values.end_time, 'HH:mm');
|
||||
// values.start_time = dayjs(values.start_time, 'HH:mm');
|
||||
// values.end_time = dayjs(values.end_time, 'HH:mm');
|
||||
values.address = [values.province_id, values.city_id];
|
||||
formApi.setValues(values);
|
||||
formApi.setValues({
|
||||
...values,
|
||||
start_time: dayjs(values.start_time, 'HH:mm'),
|
||||
end_time: dayjs(values.end_time, 'HH:mm')
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -151,6 +151,21 @@ export const modalFormProps: VbenFormProps = {
|
||||
label: '详细地址',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
component: 'UploadImage',
|
||||
fieldName: 'url',
|
||||
label: '轮播图',
|
||||
rules: 'required',
|
||||
dependencies: {
|
||||
show: (values) => {
|
||||
return values.id == null;
|
||||
},
|
||||
triggerFields: ['id'],
|
||||
},
|
||||
componentProps: {
|
||||
maxCount: 9,
|
||||
},
|
||||
},
|
||||
{
|
||||
component: 'Divider',
|
||||
fieldName: '',
|
||||
|
||||
@@ -35,11 +35,21 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
// { field: 'erp_id', title: 'erpID' },
|
||||
// { field: 'shouzimu', title: '诊所首字母' },
|
||||
{ field: 'position', title: '详细地址' },
|
||||
{ field: 'new_admin.nick_name', title: '业务员' },
|
||||
// { field: 'contact', title: '联系人' },
|
||||
{ field: 'mobile', title: '联系人、电话', slots: { default: 'mobile' } },
|
||||
{ field: 'start_time', title: '营业时间', slots: { default: 'start-time' } },
|
||||
{
|
||||
field: 'start_time',
|
||||
title: '营业时间',
|
||||
slots: { default: 'start-time' },
|
||||
},
|
||||
{ field: 'created_at', title: '注册时间' },
|
||||
{ type: 'html', title: '操作', align: 'right', slots: { default: 'action' } },
|
||||
{
|
||||
type: 'html',
|
||||
title: '操作',
|
||||
align: 'right',
|
||||
slots: { default: 'action' },
|
||||
},
|
||||
],
|
||||
keepSource: true,
|
||||
pagerConfig: {},
|
||||
|
||||
@@ -9,9 +9,7 @@ import { useVbenForm } from '#/adapter/form';
|
||||
import { createSupplier, updateSupplier } from '#/views/system/supplier/api';
|
||||
import { modalFormProps } from '#/views/system/supplier/config/form';
|
||||
|
||||
defineOptions({
|
||||
name: 'FormModelDemo',
|
||||
});
|
||||
|
||||
|
||||
const isUpdate = ref(false);
|
||||
const gridApi = ref();
|
||||
|
||||
Reference in New Issue
Block a user