修复字典管理新增值时is_value错误的bug
This commit is contained in:
@@ -308,7 +308,7 @@ class ExportSerializerMixin:
|
|||||||
async_export_data.delay(
|
async_export_data.delay(
|
||||||
data,
|
data,
|
||||||
str(f"导出{get_verbose_name(queryset)}-{datetime.datetime.now().strftime('%Y%m%d%H%M%S')}.xlsx"),
|
str(f"导出{get_verbose_name(queryset)}-{datetime.datetime.now().strftime('%Y%m%d%H%M%S')}.xlsx"),
|
||||||
DownloadCenter.objects.create(creator=request.user, task_name=f'{get_verbose_name(queryset)}数据导出任务', dept_belong_id=request.user.dept).pk,
|
DownloadCenter.objects.create(creator=request.user, task_name=f'{get_verbose_name(queryset)}数据导出任务', dept_belong_id=request.user.dept_id).pk,
|
||||||
self.export_field_label
|
self.export_field_label
|
||||||
)
|
)
|
||||||
return SuccessResponse(msg="导入任务已创建,请前往‘下载中心’等待下载")
|
return SuccessResponse(msg="导入任务已创建,请前往‘下载中心’等待下载")
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { DictionaryStore } from '/@/stores/dictionary';
|
|||||||
/**
|
/**
|
||||||
* @method 获取指定name字典
|
* @method 获取指定name字典
|
||||||
*/
|
*/
|
||||||
export const dictionary = (name: string,key:string|number|undefined) => {
|
export const dictionary = (name: string,key?:string|number|undefined) => {
|
||||||
const dict = DictionaryStore()
|
const dict = DictionaryStore()
|
||||||
const dictionary = toRaw(dict.data)
|
const dictionary = toRaw(dict.data)
|
||||||
if(key!=undefined){
|
if(key!=undefined){
|
||||||
|
|||||||
@@ -303,6 +303,16 @@ export const createCrudOptions = function ({crudExpose, context}: CreateCrudOpti
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
is_value: {
|
||||||
|
title: '是否值',
|
||||||
|
column: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
show: false,
|
||||||
|
value: true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user