参数部分支持select和textarea

This commit is contained in:
falcon 2020-06-19 16:49:25 +08:00
parent e0f9e3d359
commit ccfbce2c3c
3 changed files with 9 additions and 4 deletions

View File

@ -8,7 +8,7 @@
},
"AllowedHosts": "*",
"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"
}

View File

@ -20,7 +20,8 @@ var myjs = {
createSql(e) {
var pn = "";
var paras = "";
var ec = $(e).find("input");
var ec = $(e).find("input,select,textarea");
debugger;
for (var i = 0; i < ec.length; i++) {
var e = $(ec[i]);
var n = e.attr("name");

View File

@ -7,8 +7,12 @@
<input type="hidden" name="uName" v-model="uName" />
<!--以下部分为查询条件,根据实际需要修改-->
<label>姓名:<input name="name" value="" placeholder="输入姓名或留空" /></label>
<label>地址:<input name="address" value="" placeholder="输入地址数据" /></label>
<label>地址:<input name="marry" value="" placeholder="是否结婚" /></label>
<label>地址:<textarea name="address" rows="4" 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="print">打印</button>
<button class="btn btn-primary" v-on:click="down" v-if="result.length > 0">下载EXCEL</button>