Commit d3411171 authored by 邓超's avatar 邓超

fix: 修改建表字段默认长度

parent 432a56e1
Pipeline #62715 passed with stages
......@@ -428,7 +428,7 @@ const TableView = props => {
keyIndex: count,
Name: '',
FieldType: 0,
FieldLength: 50,
FieldLength: 255,
DecimalPlace: 0,
IsNullable: true,
};
......@@ -467,7 +467,10 @@ const TableView = props => {
// 修改后存值
const handleSave = (row, key) => {
if (key === 'FieldType') {
if (row.FieldType === 0 || row.FieldType === 10 || row.FieldType === 2) {
if (row.FieldType === 0 || row.FieldType === 2) {
row.FieldLength = 255;
row.DecimalPlace = 0;
} else if (row.FieldType === 10) {
row.FieldLength = 50;
row.DecimalPlace = 0;
} else if (row.FieldType === 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment