| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>报表填报</title>
- <style>
- .dateform {
- float: left;
- width: 120px;
- }
- .datelabel {
- float: left;
- width: 120px;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb" th:action="@{/projectFilling/index}" th:method="post">
- <i class="Hui-iconfont"></i>
- 首页
- <span th:unless="${is_label}" class="c-gray en">> 报表填报</span>
- <span th:unless="${is_label}" class="c-gray en">> 列表</span>
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
- href="javascript:location.replace(location.href);" title="刷新">
- <i class="Hui-iconfont"></i>
- </a>
- </nav>
- <form id="myForm" th:action="@{/projectFilling/index}" th:method="post">
- <div class="page-container">
- <div>
- <label class="datelabel" style="width: 80px">填报项:</label>
- <input style="width:200px;" type="text" class="input-text dateform" placeholder="请输入填报项"
- id="projectName" name="projectName" th:value="${projectName}"/>
- <!--<label>项目大类:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" th:name="projectType" id="projectType" placeholder="请选择项目大类">
- <option value="">-- 请选择项目大类 --</option>
- <option th:each="item : ${projectTypeList}" th:value="${item.value}" th:text="${item.name}"
- th:selected="${item.value}==${projectType}">
- </select>
- </span>-->
- <label>项目来源:</label>
- <span class="select-box" style="width:200px; margin-right: 20px;">
- <select class="select" th:name="projectSource" id="projectSource" placeholder="请选择项目来源">
- <option value="">-- 请选择项目来源 --</option>
- <option th:value="1" th:text="国家" th:selected="1==${projectSource}"></option>
- <option th:value="2" th:text="江苏省" th:selected="2==${projectSource}"></option>
- <option th:value="3" th:text="苏州市" th:selected="3==${projectSource}"></option>
- <option th:value="4" th:text="高新区" th:selected="4==${projectSource}"></option>
- </select>
- </span>
- <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <a th:onclick="'javascript:add1(\'新增\',\'/projectFilling/add\',\'1000\',\'500\');'"
- class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- <!-- <a class="btn btn-primary radius activeProject">启用</a>
- <a class="btn btn-primary radius inactiveProject">禁用</a>-->
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">0</strong> 条</span>
- </div>
- <!-- 表格 -->
- <table id="index" class="table table-border table-bordered table-bg table-hover"
- style="table-layout: fixed;width:100%;">
- <thead>
- <tr class="text-c">
- <th style="width:135px;">填报项</th>
- <!--<th style="width:100px;">项目大类</th>
- <th style="width:100px;">服务事项</th>-->
- <th style="width:100px;">项目来源</th>
- <th style="width:100px;">发布日期</th>
- <th style="width:100px;">状态</th>
- <!--<th style="width:100px;">填报情况</th>-->
- <th style="width:200px;">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <td th:text="*{project_name}" class="text-overflow" th:title="*{project_name}"></td>
- <!--<td th:text="*{project_type_name}" class="text-overflow"></td>
- <td th:text="*{project_service_type_name}" class="text-overflow"></td>-->
- <td th:if="*{project_source!='1' && project_source!='2'&& project_source!='3'&& project_source!='4'}"></td>
- <td th:if="*{project_source=='1'}">国家</td>
- <td th:if="*{project_source=='2'}">江苏省</td>
- <td th:if="*{project_source=='3'}">苏州市</td>
- <td th:if="*{project_source=='4'}">高新区</td>
- <td th:text="*{release_date}"></td>
- <!--<td th:if="*{is_forbidden=='0'}">已禁用</td>-->
- <td th:if="*{status=='0'}">待发布</td>
- <td th:if="*{status=='1'}">已发布</td>
- <!--<td th:if="*{project_type!='1' && project_type!='2' }">/</td>
- <td th:if="*{project_type=='1'}" th:text="*{count}"></td>
- <td th:if="*{project_type=='2'}" th:text="*{count+'/'+total}"></td>-->
- <td class="td-manage">
- <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
- th:onclick="'javascript:projectDetail(\'详情\',\'/projectFilling/detail/'+*{id}+'\');'">详情</a>
- <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
- th:onclick="'javascript:editProject(\'编辑\',\'/projectFilling/edit/'+*{id}+'\');'">编辑</a>
- <a title="填报情况" th:if="*{status=='1'}" href="javascript:;"
- class="ml-5" style="text-decoration:none"
- th:onclick="'javascript:notify_detailInfo(\'填报情况\',\'/projectFilling/fillingDetail/'+*{id}+'\',\'800\',\'500\');'">填报情况</a>
- <a title="已推送" th:if="*{status=='1'}" href="javascript:;"
- class="ml-5" style="text-decoration:none"
- th:onclick="'javascript:notify_detailInfo(\'已推送\',\'/projectFilling/pushed/'+*{id}+'\',\'800\',\'500\');'">已推送</a>
- <a title="推送" th:if="*{status=='1'}" href="javascript:;"
- class="ml-5"
- style="text-decoration:none"
- th:onclick="'javascript:notify_addPush(\'推送\',\'/projectFilling/directPush/'+*{id}+'\',\'800\',\'500\');'">推送</a>
- <a title="删除" th:if="*{status=='0'}" href="javascript:;" class="ml-5" style="text-decoration:none"
- th:onclick="'javascript:deleteProject(\''+*{id}+'\');'">删除</a>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- </form>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script th:inline="javascript">
- //添加
- function add1(title, url, w, h) {
- var index = layer_show(title, pagePath + url, w, h);
- layer.full(index);
- }
- /*详情*/
- function projectDetail(title, url, w, h) {
- var index = layer_show(title, pagePath + url, w, h);
- layer.full(index);
- }
- /*编辑*/
- function editProject(title, url, w, h) {
- var index = layer_show(title, pagePath + url, w, h);
- layer.full(index);
- }
- /*删除*/
- function deleteProject(id) {
- layer.confirm('确认要删除吗?', function (index) {
- $.ajax({
- type: "GET",
- dataType: "json",
- url: pagePath + "/projectFilling/delete/" + id,
- success: function (result) {
- if (result.success) {
- smileMessage(result.message)
- setTime();
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- });
- }
- /*
- 参数解释:
- title 标题
- url 请求的url
- id 需要操作的数据id
- w 弹出层宽度(缺省调默认值)
- h 弹出层高度(缺省调默认值)
- */
- /*管理员-*/
- function notify_addPush(title, url, w, h) {
- layer_show(title, pagePath + url, w, h);
- }
- function notify_detailInfo(title, url, w, h) {
- var index = layer_show(title, pagePath + url, w, h);
- layer.full(index);
- }
- $(".activeProject").click(function () {
- var ids = '';
- $("input:checkbox[name='checkbox']:checked").each(function (i) {
- var val = $(this).val();
- ids += val + ',';
- });
- if (ids.length <= 0) {
- errorMessage("请选择数据!");
- return;
- }
- layer.confirm('确认启用吗?', function (index) {
- $.ajax({
- url: pagePath + "/projectFilling/updateForbiddenStateBatch",
- type: "post",
- data: {
- 'ids': ids,
- 'isFrobidden': '1'
- },
- dataType: "json",
- success: function (result) {
- if (result.success) {
- smileMessage(result.message);
- setTime();
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- })
- });
- })
- $(".inactiveProject").click(function () {
- var ids = '';
- $("input:checkbox[name='checkbox']:checked").each(function (i) {
- var val = $(this).val();
- ids += val + ',';
- });
- if (ids.length <= 0) {
- errorMessage("请选择数据!");
- return;
- }
- layer.confirm('确认禁用吗?', function (index) {
- $.ajax({
- url: pagePath + "/projectFilling/updateForbiddenStateBatch",
- type: "post",
- data: {
- 'ids': ids,
- 'isFrobidden': '0'
- },
- dataType: "json",
- success: function (result) {
- if (result.success) {
- smileMessage(result.message);
- setTime();
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- })
- });
- })
- </script>
- </body>
- </html>
|