|
|
@@ -277,6 +277,10 @@ func MysqlToVueView(table GTable, columns []GenTableColumn) string {
|
|
|
"\nfunction openDialog(type: string, row: " + table.GenTable.Name + ") {" +
|
|
|
"\n open.value = true" +
|
|
|
"\n dialogType.value = type" +
|
|
|
+ "\n\tif (type===\"save\"){" +
|
|
|
+ "\n dialogForm.value = " + table.GenTable.Name + ".Create()" +
|
|
|
+ "\n return" +
|
|
|
+ "\n }" +
|
|
|
"\n //深拷贝,不会影响数据" +
|
|
|
"\n dialogForm.value = JSON.parse(JSON.stringify(row))" +
|
|
|
"\n" +
|