mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
完善
This commit is contained in:
parent
1f23801b39
commit
92c55b1882
@ -200,14 +200,14 @@ function datetimeMerge({ columns, item }: any) {
|
||||
const key = item.prop.replace("start", "");
|
||||
|
||||
if (columns.find((e: any) => e.propertyName == "end" + key)) {
|
||||
item.label = key == "time" ? "时间范围" : "日期访问";
|
||||
item.label = key == "time" ? "时间范围" : "日期范围";
|
||||
item.prop = key.toLocaleLowerCase();
|
||||
item.hook = "datetimeRange";
|
||||
item.component = {
|
||||
name: "el-date-picker",
|
||||
props: {
|
||||
type: key == "time" ? "datetimerange" : "daterange",
|
||||
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
||||
valueFormat: "time" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user