上传
This commit is contained in:
@@ -213,7 +213,7 @@ export const fenToYuan = (amount: string | number): number => {
|
|||||||
export const removeNullField = (obj: Object) => {
|
export const removeNullField = (obj: Object) => {
|
||||||
for (const key in obj) {
|
for (const key in obj) {
|
||||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||||
if (obj[key] === '') {
|
if (obj[key] === '' || obj[key] === null || obj[key] == undefined) {
|
||||||
delete obj[key]
|
delete obj[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ const formSchema = computed(() => {
|
|||||||
newSchema.forEach((it) => {
|
newSchema.forEach((it) => {
|
||||||
if (it.field == 'consultTime') {
|
if (it.field == 'consultTime') {
|
||||||
it.componentProps['disabled-date'] = dateAfterToday
|
it.componentProps['disabled-date'] = dateAfterToday
|
||||||
|
it.componentProps['disabled'] = formType.value != 'create'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user