浏览代码

!333 update ruoyi-generator/src/main/resources/templates/tool/gen/edit.html.
Merge pull request !333 from 偶滴神啊/N/A

若依 3 年之前
父节点
当前提交
4b6ed674b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-generator/src/main/resources/templates/tool/gen/edit.html

+ 1 - 1
ruoyi-generator/src/main/resources/templates/tool/gen/edit.html

@@ -431,7 +431,7 @@
 		            title: '字典类型',
 		            width: "13%",
 		            formatter: function (value, row, index) {
-		        		var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].dictType' value='%s' id='columns_dict_%s'>", index, value, row.columnId);
+		        		var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].dictType' value='%s' id='columns_dict_%s'>", index, (value === undefined ? '' : value), row.columnId);
 		        		return "<div class='input-group'>" + html + "<span class='input-group-addon input-sm' onclick='selectDictTree(" + row.columnId + ", this)'><i class='fa fa-search'></i></span></div>";
 		        	},
 		        	cellStyle: function(value, row, index) {