unis_sip/ruoyi-admin/src/main/resources/templates/system/partner/partner.html

193 lines
8.0 KiB
HTML
Raw Normal View History

2025-04-30 03:40:38 +00:00
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
2025-05-20 06:27:27 +00:00
<th:block th:include="include :: header('代理商管理列表')" />
2025-04-30 03:40:38 +00:00
</head>
2025-05-23 03:56:00 +00:00
<style>
#element1{
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: wrap;
}
.select-list li p, .select-list li label:not(.radio-box){
width: 80px;
}
.bootstrap-table table {
table-layout: fixed;
}
.word-warp{
word-break: break-all;
}
2025-05-23 03:56:00 +00:00
</style>
2025-04-30 03:40:38 +00:00
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
2025-05-23 03:56:00 +00:00
<ul id="element1">
2025-04-30 03:40:38 +00:00
<li>
2025-05-20 06:27:27 +00:00
<label>代理商编码:</label>
2025-04-30 03:40:38 +00:00
<input type="text" name="partnerCode"/>
</li>
<li>
2025-05-20 06:27:27 +00:00
<label>代理商名称:</label>
2025-04-30 03:40:38 +00:00
<input type="text" name="partnerName"/>
</li>
2025-05-23 03:56:00 +00:00
<li>
<label>所在省:</label>
<select name="province" class="province form-control" data-first-title="选择省">
<option value="">请选择</option>
</select>
</li>
<li>
<label>所在市:</label>
<select name="city" class="city form-control" data-first-title="选择省">
<option value="">请选择</option>
</select>
</li>
2025-04-30 03:40:38 +00:00
<li>
<label>认证级别:</label>
<select name="level" th:with="type=${@dict.getType('identify_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:partner:add">
<i class="fa fa-plus"></i> 添加
</a>
2025-04-30 03:40:38 +00:00
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:partner:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:partner:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
2025-05-23 03:56:00 +00:00
<th:block th:include="include :: jquery-cxselect-js"/>
<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
2025-04-30 03:40:38 +00:00
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:partner:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:partner:remove')}]];
var qrCodeFlag = [[${@permission.hasPermi('system:partner:qrCode')}]];
2025-04-30 03:40:38 +00:00
var levelDatas = [[${@dict.getType('identify_level')}]];
var prefix = ctx + "system/partner";
function generatedQrCode(id){
window.location.href = prefix + `/qr/code?id=` +id;
}
2025-04-30 03:40:38 +00:00
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
2025-05-20 06:27:27 +00:00
modalName: "代理商管理",
fixedColumns:true,
fixedRightNumber:1,
2025-04-30 03:40:38 +00:00
columns: [{
checkbox: true
},
{
field: 'id',
title: '主键',
visible: false
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'partnerCode',
2025-05-20 06:27:27 +00:00
title: '代理商编码'
2025-04-30 03:40:38 +00:00
},
{
width: 200,
2025-04-30 03:40:38 +00:00
field: 'partnerName',
2025-05-20 06:27:27 +00:00
title: '代理商名称'
2025-04-30 03:40:38 +00:00
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'province',
title: '省'
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'city',
title: '市'
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'address',
title: '详细地址'
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'contactPerson',
title: '联系人'
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'contactPhone',
title: '联系电话'
},
{
width:100,
class:'word-warp',
field: 'contactEmail',
title: '邮件'
2025-04-30 03:40:38 +00:00
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'level',
title: '认证级别',
formatter: function(value, row, index) {
return $.table.selectDictLabel(levelDatas, value);
}
},
{
width:100,
2025-04-30 03:40:38 +00:00
field: 'createAt',
title: '创建时间'
2025-04-30 03:40:38 +00:00
},
{
width:170,
2025-04-30 03:40:38 +00:00
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
actions.push('<a style="margin-left: 5px" class="btn btn-info btn-xs '+qrCodeFlag+' " href="javascript:void(0)" onclick="generatedQrCode(\'' + row.id + '\')"><i class="fa fa-remove"></i>生成二维码</a>');
2025-04-30 03:40:38 +00:00
return actions.join('');
}
}]
};
$.table.init(options);
2025-05-23 03:56:00 +00:00
var urlChina = '/cnarea/select';
$.cxSelect.defaults.url = urlChina;
// $.cxSelect.defaults.jsonSpace = 'data';
$('#element1').cxSelect({
selects: ['province', 'city'],
nodata: 'none'
});
2025-04-30 03:40:38 +00:00
});
</script>
</body>
</html>