作者 fungleo

优化 index-tree.vue.vm 文件,undefined 修改为 null

@@ -253,7 +253,7 @@ export default { @@ -253,7 +253,7 @@ export default {
253 queryParams: { 253 queryParams: {
254 #foreach ($column in $columns) 254 #foreach ($column in $columns)
255 #if($column.query) 255 #if($column.query)
256 - $column.javaField: undefined#if($velocityCount != $columns.size()),#end 256 + $column.javaField: null#if($velocityCount != $columns.size()),#end
257 257
258 #end 258 #end
259 #end 259 #end
@@ -349,7 +349,7 @@ export default { @@ -349,7 +349,7 @@ export default {
349 $column.javaField: []#if($velocityCount != $columns.size()),#end 349 $column.javaField: []#if($velocityCount != $columns.size()),#end
350 350
351 #else 351 #else
352 - $column.javaField: undefined#if($velocityCount != $columns.size()),#end 352 + $column.javaField: null#if($velocityCount != $columns.size()),#end
353 353
354 #end 354 #end
355 #end 355 #end
@@ -376,7 +376,7 @@ export default { @@ -376,7 +376,7 @@ export default {
376 handleUpdate(row) { 376 handleUpdate(row) {
377 this.reset(); 377 this.reset();
378 this.getTreeselect(); 378 this.getTreeselect();
379 - if (row != undefined) { 379 + if (row != null) {
380 this.form.${treeParentCode} = row.${treeCode}; 380 this.form.${treeParentCode} = row.${treeCode};
381 } 381 }
382 get${BusinessName}(row.${pkColumn.javaField}).then(response => { 382 get${BusinessName}(row.${pkColumn.javaField}).then(response => {
@@ -391,7 +391,7 @@ export default { @@ -391,7 +391,7 @@ export default {
391 }); 391 });
392 }, 392 },
393 /** 提交按钮 */ 393 /** 提交按钮 */
394 - submitForm: function() { 394 + submitForm() {
395 this.#[[$]]#refs["form"].validate(valid => { 395 this.#[[$]]#refs["form"].validate(valid => {
396 if (valid) { 396 if (valid) {
397 #foreach ($column in $columns) 397 #foreach ($column in $columns)
@@ -399,7 +399,7 @@ export default { @@ -399,7 +399,7 @@ export default {
399 this.form.$column.javaField = this.form.${column.javaField}.join(","); 399 this.form.$column.javaField = this.form.${column.javaField}.join(",");
400 #end 400 #end
401 #end 401 #end
402 - if (this.form.${pkColumn.javaField} != undefined) { 402 + if (this.form.${pkColumn.javaField} != null) {
403 update${BusinessName}(this.form).then(response => { 403 update${BusinessName}(this.form).then(response => {
404 if (response.code === 200) { 404 if (response.code === 200) {
405 this.msgSuccess("修改成功"); 405 this.msgSuccess("修改成功");
@@ -434,4 +434,4 @@ export default { @@ -434,4 +434,4 @@ export default {
434 } 434 }
435 } 435 }
436 }; 436 };
437 -</script>  
  437 +</script>