参数部分支持select和textarea
This commit is contained in:
parent
e0f9e3d359
commit
ccfbce2c3c
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"Database": {
|
"Database": {
|
||||||
"ReportService": "Server=.\\SQLSERVER2008R2;Database=EASY_HEALTHRECORDS;User ID=sa;Password=111"
|
"ReportService": "Server=.\\SQLSERVER2008R2;Database=ReportService;User ID=sa;Password=111"
|
||||||
},
|
},
|
||||||
"urls": "http://*:9000;https://*:9001"
|
"urls": "http://*:9000;https://*:9001"
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,8 @@ var myjs = {
|
||||||
createSql(e) {
|
createSql(e) {
|
||||||
var pn = "";
|
var pn = "";
|
||||||
var paras = "";
|
var paras = "";
|
||||||
var ec = $(e).find("input");
|
var ec = $(e).find("input,select,textarea");
|
||||||
|
debugger;
|
||||||
for (var i = 0; i < ec.length; i++) {
|
for (var i = 0; i < ec.length; i++) {
|
||||||
var e = $(ec[i]);
|
var e = $(ec[i]);
|
||||||
var n = e.attr("name");
|
var n = e.attr("name");
|
||||||
|
|
|
@ -7,8 +7,12 @@
|
||||||
<input type="hidden" name="uName" v-model="uName" />
|
<input type="hidden" name="uName" v-model="uName" />
|
||||||
<!--以下部分为查询条件,根据实际需要修改-->
|
<!--以下部分为查询条件,根据实际需要修改-->
|
||||||
<label>姓名:<input name="name" value="" placeholder="输入姓名或留空" /></label>
|
<label>姓名:<input name="name" value="" placeholder="输入姓名或留空" /></label>
|
||||||
<label>地址:<input name="address" value="" placeholder="输入地址数据" /></label>
|
<label>地址:<textarea name="address" rows="4" placeholder="输入地址数据" /></label>
|
||||||
<label>地址:<input name="marry" value="" placeholder="是否结婚" /></label>
|
<label for="marry">婚姻</label>
|
||||||
|
<select id="marry" name="marry">
|
||||||
|
<option value="1" selected="selected">男</option>
|
||||||
|
<option value="2">女</option>
|
||||||
|
</select>
|
||||||
<button class="btn btn-primary" v-on:click="find">查询</button>
|
<button class="btn btn-primary" v-on:click="find">查询</button>
|
||||||
<button class="btn btn-primary" v-on:click="print">打印</button>
|
<button class="btn btn-primary" v-on:click="print">打印</button>
|
||||||
<button class="btn btn-primary" v-on:click="down" v-if="result.length > 0">下载EXCEL</button>
|
<button class="btn btn-primary" v-on:click="down" v-if="result.length > 0">下载EXCEL</button>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user