|
@@ -11,42 +11,10 @@
|
|
|
<div class="select-list">
|
|
<div class="select-list">
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>
|
|
<li>
|
|
|
- <label>文创品牌名:</label>
|
|
|
|
|
|
|
+ <label>品牌名:</label>
|
|
|
<input type="text" name="ipName"/>
|
|
<input type="text" name="ipName"/>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <label>ip图片:</label>
|
|
|
|
|
- <input type="text" name="ipUrl"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>色号:</label>
|
|
|
|
|
- <input type="text" name="colorNo"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>显示顺序:</label>
|
|
|
|
|
- <input type="text" name="sort"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>删除标志:</label>
|
|
|
|
|
- <input type="text" name="delFlag"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>创建者:</label>
|
|
|
|
|
- <input type="text" name="createUser"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>创建时间:</label>
|
|
|
|
|
- <input type="text" class="time-input" placeholder="请选择创建时间" name="createTime"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>更新者:</label>
|
|
|
|
|
- <input type="text" name="updateUser"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <label>更新时间:</label>
|
|
|
|
|
- <input type="text" class="time-input" placeholder="请选择更新时间" name="updateTime"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
</li>
|
|
</li>
|
|
@@ -56,18 +24,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:ipinfo:add">
|
|
|
|
|
|
|
+ <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="master:ipInfo:add">
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
</a>
|
|
</a>
|
|
|
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:ipinfo:edit">
|
|
|
|
|
|
|
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="master:ipInfo:edit">
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
</a>
|
|
</a>
|
|
|
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:ipinfo:remove">
|
|
|
|
|
|
|
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="master:ipInfo:remove">
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
</a>
|
|
</a>
|
|
|
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:ipinfo:export">
|
|
|
|
|
- <i class="fa fa-download"></i> 导出
|
|
|
|
|
- </a>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
<table id="bootstrap-table"></table>
|
|
<table id="bootstrap-table"></table>
|
|
@@ -76,9 +41,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: footer" />
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
- var editFlag = [[${@permission.hasPermi('system:ipinfo:edit')}]];
|
|
|
|
|
- var removeFlag = [[${@permission.hasPermi('system:ipinfo:remove')}]];
|
|
|
|
|
- var prefix = ctx + "system/ipinfo";
|
|
|
|
|
|
|
+ var editFlag = [[${@permission.hasPermi('system:ipInfo:edit')}]];
|
|
|
|
|
+ var removeFlag = [[${@permission.hasPermi('system:ipInfo:remove')}]];
|
|
|
|
|
+ var prefix = ctx + "master/ipInfo";
|
|
|
|
|
|
|
|
$(function() {
|
|
$(function() {
|
|
|
var options = {
|
|
var options = {
|
|
@@ -88,60 +53,39 @@
|
|
|
removeUrl: prefix + "/remove",
|
|
removeUrl: prefix + "/remove",
|
|
|
exportUrl: prefix + "/export",
|
|
exportUrl: prefix + "/export",
|
|
|
modalName: "文创品牌",
|
|
modalName: "文创品牌",
|
|
|
- columns: [{
|
|
|
|
|
- checkbox: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'ipId',
|
|
|
|
|
- title: '主键',
|
|
|
|
|
- visible: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'ipName',
|
|
|
|
|
- title: '文创品牌名'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'ipUrl',
|
|
|
|
|
- title: 'ip图片'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'colorNo',
|
|
|
|
|
- title: '色号'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'sort',
|
|
|
|
|
- title: '显示顺序'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'delFlag',
|
|
|
|
|
- title: '删除标志'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'createUser',
|
|
|
|
|
- title: '创建者'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'createTime',
|
|
|
|
|
- title: '创建时间'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'updateUser',
|
|
|
|
|
- title: '更新者'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'updateTime',
|
|
|
|
|
- title: '更新时间'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- 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.ipId + '\')"><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.ipId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
- return actions.join('');
|
|
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'ipId',
|
|
|
|
|
+ title: '主键',
|
|
|
|
|
+ visible: false
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'ipName',
|
|
|
|
|
+ title: '文创品牌名'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'ipUrl',
|
|
|
|
|
+ title: 'IP图片'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'colorNo',
|
|
|
|
|
+ title: '色号'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'sort',
|
|
|
|
|
+ title: '显示顺序'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ 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.ipId + '\')"><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.ipId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
+ return actions.join('');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }]
|
|
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
$.table.init(options);
|
|
$.table.init(options);
|
|
|
});
|
|
});
|