创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
@@ -0,0 +1,82 @@
<div class="panel">
<form method="post" action="{{url()}}" id="myform" name="myform">
<table class="table table-form m-b-none">
<tr>
<td align="right" width="10%">流程名称 <span style="color:red;">*</span></td>
<td><input type="text" id="title" name="title" value="{{$row['title']}}" class="form-control input-sm"></td>
</tr>
<tr>
<td align="right">发起权限 <span style="color:red;">*</span></td>
<td>
{{App\Support\Dialog::search($row, 'id=auth_id&name=auth_name&multi=1')}}
</td>
</tr>
<tr>
<td align="right">查询权限 <span style="color:red;">*</span></td>
<td>
{{App\Support\Dialog::search($row, 'id=query_id&name=query_name&multi=1')}}
</td>
</tr>
<tr>
<td align="right">流程类型 <span style="color:red;">*</span></td>
<td>
<label class="radio-inline"><input type="radio" name="type" value="1" @if($row['id'] > 0) disabled @endif @if($row['type']==1) checked @endif>固定流程</label>
<label class="radio-inline"><input type="radio" name="type" value="2" @if($row['id'] > 0) disabled @endif @if($row['type']==2) checked @endif>自由流程</label>
</td>
</tr>
<tr>
<td align="right">使用状态 <span style="color:red;">*</span></td>
<td>
<label class="radio-inline" title="所有用户都可以在前台新建工作里看到该流程,但无权限用户不能点击">
<input name="state" value="1" type="radio" checked="checked">
可见
</label>
<label class="radio-inline" title="只有拥有权限的用户才能在前台新建工作中看到,并可点击">
<input name="state" value="2" type="radio">
不可见
</label>
<label class="radio-inline" title="无论用户有无权限,都不会在前台新建工作中显示">
<input name="state" value="3" type="radio">
锁定
</label>
</td>
</tr>
<tr>
<td align="right">所属类别 <span style="color:red;">*</span></td>
<td align="left">
<select class="form-control input-sm" name="category_id" id="category_id">
<option value=""> - </option>
@if($category)
@foreach($category as $k => $v)
<option value="{{$v['id']}}" @if($row['category_id']==$v['id']) selected @endif >{{$v['title']}}</option>
@endforeach
@endif
</select>
</td>
</tr>
<tr>
<td align="right">流程备注</td>
<td><textarea id="remark" name="remark" class="form-control input-sm">{{$row['remark']}}</textarea></td>
</tr>
<tr>
<td align="right"></td>
<td>
<input type="hidden" name="id" value="{{$row['id']}}">
<button type="submit" class="btn btn-success"><i class="fa fa-check-circle"></i> 提交</button>
<button type="button" onclick="history.back();" class="btn btn-default">返回</button>
</td>
</tr>
</table>
</form>
</div>
@@ -0,0 +1,51 @@
<div class="panel">
<div class="wrapper">
@include('design/query')
</div>
<div class="table-responsive">
<table class="table table-hover b-t">
<thead>
<tr>
<th align="left">名称</th>
<th align="center" width="140">类别</th>
<th align="center" width="120">类型</th>
<th align="center" width="80">数量</th>
<th align="center" width="60">编号</th>
<th align="center" width="300"></th>
</tr>
</thead>
<tbody>
@if($rows)
@foreach($rows as $row)
<tr>
<td align="left">{{$row['title']}}</td>
<td align="center">{{$categorys[$row->category_id]->title}}</td>
<td align="center"> @if($row['type']==1) 固定 @else 自由 @endif 流程</td>
<td align="center"><span class="badge bg-info">{{(int)$counts[$row->id]}}</span></td>
<td align="center">{{$row['id']}}</td>
<td align="center">
<a class="option" href="{{url('form/index',['work_id'=>$row['id']])}}">表单设计</a>
<a class="option" href="{{url('step/index',['work_id'=>$row['id']])}}">流程设计</a>
<a class="option" href="{{url('form/view',['id'=>$row['id']])}}">预览</a>
<a class="option" href="{{url('add',['id'=>$row['id']])}}">编辑</a>
<a class="option" href="javascript:app.confirm('{{url('delete',['id'=>$row['id']])}}','确定要删除吗?');">删除</a>
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<footer class="panel-footer">
<div class="row">
<div class="col-sm-1 hidden-xs">
</div>
<div class="col-sm-11 text-right text-center-xs">
{{$rows->render()}}
</div>
</div>
</footer>
</div>
@@ -0,0 +1,27 @@
<form id="search-form" class="form-inline" name="mysearch" action="{{url()}}" method="get">
@if(isset($access['add']))
<a href="{{url('add')}}" class="btn btn-sm btn-info"><i class="icon icon-plus"></i> 新建</a>
@endif
@include('searchForm')
</form>
<script type="text/javascript">
$(function() {
$('#search-form').searchForm({
data:{{json_encode($search['forms'])}},
init:function(e) {
var self = this;
e.category = function(i) {
var rows = [];
var categorys = {{json_encode($categorys)}};
$.map(categorys, function(category) {
rows.push({id:category.id,name:category.title});
});
self._select(rows, i);
}
}
});
});
</script>