选择项调整
parent
947948502a
commit
38f2930d61
|
@ -31,6 +31,19 @@
|
||||||
<label>联系人:</label>
|
<label>联系人:</label>
|
||||||
<input type="text" name="contactPerson"/>
|
<input type="text" name="contactPerson"/>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>联系电话:</label>
|
||||||
|
<input type="text" name="contactPhone"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>所属行业:</label>
|
||||||
|
<select name="industryType" class="form-control"
|
||||||
|
th:with="type=${@dict.getType('industry_code')}" required>
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
<li style="width: 46%;text-align: right;">
|
<li style="width: 46%;text-align: right;">
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
class="fa fa-search"></i> 搜索</a>
|
class="fa fa-search"></i> 搜索</a>
|
||||||
|
@ -48,8 +61,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<th:block th:include="include :: footer"/>
|
<th:block th:include="include :: footer"/>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var prefix = ctx + "system/customer";
|
var prefix = ctx + "system/customer";
|
||||||
$(function () {
|
$(function () {
|
||||||
|
@ -95,7 +106,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'industryType',
|
field: 'industryType',
|
||||||
title: '所属行业'
|
title: '所属行业',
|
||||||
|
formatter:(value,row)=>{
|
||||||
|
const arr=[]
|
||||||
|
$('[name="industryType"] option').each((index,item)=>{
|
||||||
|
arr.push({
|
||||||
|
text:$(item).text(),
|
||||||
|
value:$(item).val()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
return arr.find((ele)=>ele.value==value)?.text
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'remark',
|
field: 'remark',
|
||||||
|
|
|
@ -87,10 +87,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label">所属行业:</label>
|
<label class="col-sm-4 control-label is-required">所属行业:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="industryType" class="form-control"
|
<select name="industryType" class="form-control"
|
||||||
th:with="type=${@dict.getType('industry_code')}" required>
|
th:with="type=${@dict.getType('industry_code')}" required>
|
||||||
|
<option value="">请选择</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
th:value="${dict.dictValue}"></option>
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
<label>所属行业:</label>
|
<label>所属行业:</label>
|
||||||
<select name="industryType" class="form-control"
|
<select name="industryType" class="form-control"
|
||||||
th:with="type=${@dict.getType('industry_code')}" required>
|
th:with="type=${@dict.getType('industry_code')}" required>
|
||||||
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
th:value="${dict.dictValue}"></option>
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue