删除没用代码

This commit is contained in:
jinqiming 2021-11-26 18:02:02 +08:00
parent b47eb5c1eb
commit 5fad4f9fe2
5 changed files with 7 additions and 335 deletions

View File

@ -1,67 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增单字段')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-field-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段标识:</label>
<div class="col-sm-8">
<input name="fieldKey" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段名称:</label>
<div class="col-sm-8">
<input name="fieldName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段类型:</label>
<div class="col-sm-8">
<input name="fieldType" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段html</label>
<div class="col-sm-8">
<input name="fieldHtml" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">乐观锁版本号:</label>
<div class="col-sm-8">
<input name="rev" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">租户ID</label>
<div class="col-sm-8">
<input name="tenantId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标识:</label>
<div class="col-sm-8">
<input name="isDelete" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/field"
$("#form-field-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-field-add').serialize());
}
}
</script>
</body>
</html>

View File

@ -1,68 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改单字段')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-field-edit" th:object="${sysFormField}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段标识:</label>
<div class="col-sm-8">
<input name="fieldKey" th:field="*{fieldKey}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段名称:</label>
<div class="col-sm-8">
<input name="fieldName" th:field="*{fieldName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段类型:</label>
<div class="col-sm-8">
<input name="fieldType" th:field="*{fieldType}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">字段html</label>
<div class="col-sm-8">
<input name="fieldHtml" th:field="*{fieldHtml}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">乐观锁版本号:</label>
<div class="col-sm-8">
<input name="rev" th:field="*{rev}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">租户ID</label>
<div class="col-sm-8">
<input name="tenantId" th:field="*{tenantId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标识:</label>
<div class="col-sm-8">
<input name="isDelete" th:field="*{isDelete}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/field";
$("#form-field-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-field-edit').serialize());
}
}
</script>
</body>
</html>

View File

@ -1,138 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('单字段列表')" />
</head>
<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">
<ul>
<li>
<label>字段标识:</label>
<input type="text" name="fieldKey"/>
</li>
<li>
<label>字段名称:</label>
<input type="text" name="fieldName"/>
</li>
<li>
<label>字段类型:</label>
<input type="text" name="fieldType"/>
</li>
<li>
<label>字段html</label>
<input type="text" name="fieldHtml"/>
</li>
<li>
<label>乐观锁版本号:</label>
<input type="text" name="rev"/>
</li>
<li>
<label>租户ID</label>
<input type="text" name="tenantId"/>
</li>
<li>
<label>删除标识:</label>
<input type="text" name="isDelete"/>
</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:field:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:field:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:field:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:field: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" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:field:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:field:remove')}]];
var prefix = ctx + "system/field";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "单字段",
columns: [{
checkbox: true
},
{
field: 'id',
title: '主键ID',
visible: false
},
{
field: 'fieldKey',
title: '字段标识'
},
{
field: 'fieldName',
title: '字段名称'
},
{
field: 'fieldType',
title: '字段类型'
},
{
field: 'fieldHtml',
title: '字段html'
},
{
field: 'remark',
title: '字段备注'
},
{
field: 'rev',
title: '乐观锁版本号'
},
{
field: 'tenantId',
title: '租户ID'
},
{
field: 'isDelete',
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.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>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -1,61 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增单实例')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-instance-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">表单定义code</label>
<div class="col-sm-8">
<input name="formCode" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">表单名称:</label>
<div class="col-sm-8">
<input name="formName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">表单url</label>
<div class="col-sm-8">
<input name="fromUrl" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">乐观锁版本号:</label>
<div class="col-sm-8">
<input name="rev" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标识:</label>
<div class="col-sm-8">
<input name="isDelete" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">租户ID</label>
<div class="col-sm-8">
<input name="tenantId" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/instance"
$("#form-instance-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-instance-add').serialize());
}
}
</script>
</body>
</html>

View File

@ -7,7 +7,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-instance-edit" th:object="${sysFormInstance}">
<input name="id" th:field="*{id}" type="hidden">
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i>请注意: 表单修改目前只能修改基础属性</span>
<div class="form-group">
<label class="col-sm-3 control-label ">表单code</label>
<div class="col-sm-8">
@ -26,6 +26,12 @@
<input name="fromUrl" th:field="*{fromUrl}" class="form-control" type="text" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label "></label>
<div class="col-sm-8">
<span class="help-block m-b-none text-warning"><i class="fa fa-info-circle"></i> 请注意:表单修改目前只能修改基础属性</span>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />