Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表格字段类型可搜索 #92

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/plugin/admin/app/view/table/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
</script>

<script type="text/html" id="col-type">
<select name="columns[{{ d.LAY_NUM-1 }}][type]" lay-verify="">
<select name="columns[{{ d.LAY_NUM-1 }}][type]" lay-verify="" lay-search>
<option value="">请选择或搜索</option>
{{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary","json"], function (index, item) { }}
<option value="{{ item }}" {{ d.type==item?"selected":""}}>{{ item }}</option>
{{# }); }}
Expand Down Expand Up @@ -323,7 +324,7 @@
comment: "",
length: "",
default: "",
type: "integer",
type: "",
primary_key: false,
auto_increment: false,
nullable: true,
Expand Down
5 changes: 3 additions & 2 deletions src/plugin/admin/app/view/table/modify.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
</script>

<script type="text/html" id="col-type">
<select name="columns[{{ d.LAY_NUM-1 }}][type]" lay-verify="">
<select name="columns[{{ d.LAY_NUM-1 }}][type]" lay-verify="" lay-search>
<option value="">请选择或搜索</option>
{{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary","json"], function (index, item) { }}
<option value="{{ item }}" {{ d.type==item?'selected':''}}>{{ item }}</option>
{{# }); }}
Expand Down Expand Up @@ -364,7 +365,7 @@
comment: "",
length: "",
default: "",
type: "integer",
type: "",
primary_key: false,
auto_increment: false,
nullable: true,
Expand Down