bk-cmdb icon indicating copy to clipboard operation
bk-cmdb copied to clipboard

【3.10.24-alpha1 】导出模型的excel中,属性字段的默认值并未被导出

Open reggieisrunning opened this issue 3 years ago • 3 comments

选择任意模型进行导出到excel,其中的属性字段设置的默认值没有被导出。用户可能在修改完导出的excel后,未注意到默认值,此时再进行导入,导致属性字段的默认值被覆盖置空。

reggieisrunning avatar Apr 11 '23 04:04 reggieisrunning

当默认值可以被导出时存在两种异常情况: case1: 当导入的xlsx文件中编辑了数字或者浮点的默认值并且超过取值范围,如下图 image 前端提示未全部成功第8行:字段 test4,未知或未能识别的异常,未具体提示信息,如果直接编辑浮点或数字时前端提示最大值不可超过xxx image image

case2: 当导入的xlsx文件中编辑了时间或者日期的默认值时,如下图 image 前端提示未全部成功,提示第13行:字段 test9,未知或未能识别的异常 image

sobbingchild avatar Apr 11 '23 14:04 sobbingchild

当默认值可以被导出时存在两种异常情况: case1: 当导入的xlsx文件中编辑了数字或者浮点的默认值并且超过取值范围,如下图 image 前端提示未全部成功第8行:字段 test4,未知或未能识别的异常,未具体提示信息,如果直接编辑浮点或数字时前端提示最大值不可超过xxx image image

case2: 当导入的xlsx文件中编辑了时间或者日期的默认值时,如下图 image 前端提示未全部成功,提示第13行:字段 test9,未知或未能识别的异常 image

这两个case非阻断性问题,后续进行优化

reggieisrunning avatar Apr 12 '23 02:04 reggieisrunning

1.现在枚举,枚举多选。表格字段的默认值没有导出 image image image image 2.修改“数字”,“浮点”字段的默认值超出设置的范围,导入更新时报错目前还没有优化 企业微信截图_16980269932220 3.日期/时间/用户/时区/列表这四个字段没做任何变动导入时报错 企业微信截图_16980272414233 image

testqwerts avatar Oct 23 '23 02:10 testqwerts