|
@@ -1,155 +1,169 @@
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
|
|
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
- <!DOCTYPE html>
|
|
|
- <html>
|
|
|
-
|
|
|
- <head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <title>注册单位信息</title>
|
|
|
- <jsp:include page="../common/common-meta-include.jsp"></jsp:include>
|
|
|
- <%-- <jsp:include page="../common/common-css-include.jsp"></jsp:include> --%>
|
|
|
- <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.5.5/css/layui.css?version=${version}"
|
|
|
- media="all" />
|
|
|
- <link rel="stylesheet" type="text/css"
|
|
|
- href="${WebSite.asset}/lib/layui-v2.5.5/css/public.css?version=${version}" media="all" />
|
|
|
- <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.6.5/css/layui.css?version=${version}"
|
|
|
- media="all" />
|
|
|
- <link rel="stylesheet" type="text/css" href="${WebSite.asset}/css/style.css?version=${version}" media="all" />
|
|
|
- <style>
|
|
|
- .table_box .pagination-box {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- .layui-table-view .layui-table td >div{
|
|
|
- line-height: 20px !important;
|
|
|
- white-space: normal;
|
|
|
- }
|
|
|
- </style>
|
|
|
- </head>
|
|
|
-
|
|
|
- <body>
|
|
|
- <div id="app">
|
|
|
- <template id="template">
|
|
|
- <div class="layui-layout layui-layout-admin">
|
|
|
- <div class="right_title">
|
|
|
- <span class="txt">项目单位信息</span>
|
|
|
- <div class="layui-collapse">
|
|
|
- <div class="layui-colla-item">
|
|
|
- <%-- <h2 class="layui-colla-title">筛选</h2>--%>
|
|
|
- <div class="layui-colla-content layui-show">
|
|
|
- <form class="layui-form" lay-filter="searchForm">
|
|
|
- <div class="layui-row">
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">单位性质</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <select lay-verify="required" id="unitPropId" name="unitPropId" lay-filter="unitPropId"
|
|
|
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <title>注册单位信息</title>
|
|
|
+ <jsp:include page="../common/common-meta-include.jsp"></jsp:include>
|
|
|
+ <jsp:include page="../common/common-js-include.jsp"></jsp:include>
|
|
|
+ <jsp:include page="../common/common-css-include.jsp"></jsp:include>
|
|
|
+ <%-- <jsp:include page="../common/common-css-include.jsp"></jsp:include> --%>
|
|
|
+ <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.5.5/css/layui.css?version=${version}"
|
|
|
+ media="all" />
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
+ href="${WebSite.asset}/lib/layui-v2.5.5/css/public.css?version=${version}" media="all" />
|
|
|
+ <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.6.5/css/layui.css?version=${version}"
|
|
|
+ media="all" />
|
|
|
+ <%-- <link rel="stylesheet" type="text/css" href="${WebSite.asset}/css/style.css?version=${version}" media="all" />--%>
|
|
|
+ <style>
|
|
|
+ .table_box .pagination-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .layui-table-view .layui-table td >div{
|
|
|
+ line-height: 20px !important;
|
|
|
+ white-space: normal;
|
|
|
+ }
|
|
|
+ .hiddenParam,
|
|
|
+ .hiddenParams {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+
|
|
|
+<body>
|
|
|
+<div id="app">
|
|
|
+ <template id="template">
|
|
|
+ <div class="layui-layout layui-layout-admin pd0">
|
|
|
+ <div class="right_title">
|
|
|
+ <span class="txt">项目单位信息<div class="top-breadcrumb"></div></span>
|
|
|
+ <div class="layui-collapse search_form">
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <%-- <h2 class="layui-colla-title">筛选</h2>--%>
|
|
|
+ <div class="layui-colla-content layui-show">
|
|
|
+ <form class="layui-form" lay-filter="searchForm">
|
|
|
+ <div class="layui-row">
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">单位性质</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <select lay-verify="required" id="unitPropId" name="unitPropId" lay-filter="unitPropId"
|
|
|
v-model="junit.unitPropId">
|
|
|
- <option value="">请选择</option>
|
|
|
- <c:forEach items="${DWXZ }" var="hy">
|
|
|
- <option value="${hy.id }">${hy.title}</option>
|
|
|
- </c:forEach>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">单位类型</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <select lay-verify="required" id="DWLX" name="unitKindId" lay-filter="unitKindId"
|
|
|
+ <option value="">请选择</option>
|
|
|
+ <c:forEach items="${DWXZ }" var="hy">
|
|
|
+ <option value="${hy.id }">${hy.title}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">单位类型</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <select lay-verify="required" id="DWLX" name="unitKindId" lay-filter="unitKindId"
|
|
|
v-model="junit.unitKindId">
|
|
|
- <option value="">请选择</option>
|
|
|
- <c:forEach items="${DWLX }" var="hy">
|
|
|
- <option value="${hy.id }">${hy.title}</option>
|
|
|
- </c:forEach>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">单位名称</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input type="text" name="title" autocomplete="off" id="title" v-model="junit.title"
|
|
|
- class="layui-input">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">状态</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <select lay-verify="required" name="status" lay-filter="status" id="status"
|
|
|
+ <option value="">请选择</option>
|
|
|
+ <c:forEach items="${DWLX }" var="hy">
|
|
|
+ <option value="${hy.id }">${hy.title}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">单位名称</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input type="text" name="title" autocomplete="off" id="title" v-model="junit.title"
|
|
|
+ class="layui-input">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md3 hiddenParam">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">状态</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <select lay-verify="required" name="status" lay-filter="status" id="status"
|
|
|
v-model="junit.status">
|
|
|
- <option value="">所有</option>
|
|
|
- <option value="2">已审核</option>
|
|
|
- <option value="1">待审核</option>
|
|
|
- <option value="0">暂存</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">申报日期</label>
|
|
|
- <div class="layui-input-block" style="width: fit-content;">
|
|
|
- <input type="text" id="startDate" name="startDate" style="float: left;width: 120px"
|
|
|
- placeholder="请选择开始时间" autocomplete="off" class="layui-input" value="${startDate}"> -
|
|
|
- <input type="text" id="endDate" name="endDate" style="float: right;width: 120px"
|
|
|
- placeholder="请选择结束时间" autocomplete="off" class="layui-input" value="${endDate}">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
|
|
|
- <button type="button" class="layui-btn layui-btn-normal" @click="search()">查询</button>
|
|
|
- </div>
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option value="2">已审核</option>
|
|
|
+ <option value="1">待审核</option>
|
|
|
+ <option value="0">暂存</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 hiddenParam">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">申报日期</label>
|
|
|
+ <div class="layui-input-block" style="width: fit-content;">
|
|
|
+ <input type="text" id="startDate" name="startDate" style="float: left;width: 120px"
|
|
|
+ placeholder="请选择开始时间" autocomplete="off" class="layui-input" value="${startDate}"> -
|
|
|
+ <input type="text" id="endDate" name="endDate" style="float: right;width: 120px"
|
|
|
+ placeholder="请选择结束时间" autocomplete="off" class="layui-input" value="${endDate}">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParams">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label"></label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <button type="button" class="layui-btn layui-btn-normal" @click="search()">查询
|
|
|
+ </button>
|
|
|
+ <span class="morePan" @click="showMore"><a v-if="!showMoreFlag">更多 <ion-icon
|
|
|
+ name="chevron-forward-outline"></ion-icon></a><a
|
|
|
+ v-if="showMoreFlag">收起 V</a></span>
|
|
|
</div>
|
|
|
- </form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="table_box" style="padding-top: 0;">
|
|
|
- <div class="table_process">
|
|
|
- <table id="table1" lay-filter="test"></table>
|
|
|
- <div class="pagination-box" id="pagination"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="table_box" style="padding-top: 0;">
|
|
|
+ <div class="table_process">
|
|
|
+ <table id="table1" lay-filter="test"></table>
|
|
|
+ <div class="pagination-box" id="pagination"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <%----%>
|
|
|
- <%-- <script type="text/html" id="currentTableBar1">--%>
|
|
|
- <%-- <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit2">查看</a>--%>
|
|
|
- <%-- </script>--%>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <%----%>
|
|
|
+ <%-- <script type="text/html" id="currentTableBar1">--%>
|
|
|
+ <%-- <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit2">查看</a>--%>
|
|
|
+ <%-- </script>--%>
|
|
|
|
|
|
- </div>
|
|
|
- <script type="text/html" id="currentTableBar">
|
|
|
-<div class="toolBar">
|
|
|
- <span lay-event="edit2">查看</span>
|
|
|
+</div>
|
|
|
+<script type="text/html" id="currentTableBar">
|
|
|
+ <div class="toolBar">
|
|
|
+ <span lay-event="edit2">查看</span>
|
|
|
|
|
|
- {{# if("${currUser.edit}" == 'true') { }}
|
|
|
- <span lay-event="edit">编辑</span>
|
|
|
+ {{# if("${currUser.edit}" == 'true') { }}
|
|
|
+ <span lay-event="edit">编辑</span>
|
|
|
{{#} else { }}
|
|
|
|
|
|
- <c:if test="${editUnit}">
|
|
|
- {{#if(d.status=="待审核"||d.status=="已审核"||d.status=="不通过"){ }}
|
|
|
+ <c:if test="${editUnit}">
|
|
|
+ {{#if(d.status=="待审核"||d.status=="已审核"||d.status=="不通过"){ }}
|
|
|
|
|
|
- {{#}else { }}
|
|
|
- <span lay-event="edit">编辑</span>
|
|
|
- {{#} }}
|
|
|
- </c:if>
|
|
|
+ {{#}else { }}
|
|
|
+ <span lay-event="edit">编辑</span>
|
|
|
+ {{#} }}
|
|
|
+ </c:if>
|
|
|
{{#} }}
|
|
|
-</div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
<!-- <span class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit2">查看</span>
|
|
@@ -170,282 +184,299 @@
|
|
|
|
|
|
|
|
|
</script>
|
|
|
- <jsp:include page="../common/common-js-include.jsp"></jsp:include>
|
|
|
- <script type="text/javascript">
|
|
|
- new Vue({
|
|
|
- el: "#app",
|
|
|
- template: "#template",
|
|
|
- data: {
|
|
|
- winH: 0,
|
|
|
- dataList: [],
|
|
|
- junit: {},
|
|
|
- tableName: 'test',
|
|
|
- pageNo: 1,
|
|
|
- xmselect: {},
|
|
|
- xmselect1: {},
|
|
|
- xmselect2: {},
|
|
|
- pageSize: 10
|
|
|
- },
|
|
|
- mounted: function () {
|
|
|
- this.init();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- init: function () {
|
|
|
- layui.laydate.render({
|
|
|
- elem: '#startDate',
|
|
|
- theme: layDateTheme,
|
|
|
- });
|
|
|
- layui.laydate.render({
|
|
|
- elem: '#endDate',
|
|
|
- theme: layDateTheme,
|
|
|
- });
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- add: function (obj) {
|
|
|
- App.openLayer({
|
|
|
- title: "新增角色",
|
|
|
- content: App.getUrl("/Rolemeun/add"),
|
|
|
- height: "600",
|
|
|
- width: "800"
|
|
|
- });
|
|
|
+<jsp:include page="../common/common-js-include.jsp"></jsp:include>
|
|
|
+<script type="text/javascript">
|
|
|
+ new Vue({
|
|
|
+ el: "#app",
|
|
|
+ template: "#template",
|
|
|
+ data: {
|
|
|
+ winH: 0,
|
|
|
+ dataList: [],
|
|
|
+ junit: {},
|
|
|
+ tableName: 'test',
|
|
|
+ pageNo: 1,
|
|
|
+ xmselect: {},
|
|
|
+ xmselect1: {},
|
|
|
+ xmselect2: {},
|
|
|
+ pageSize: 10,
|
|
|
+ showMoreFlag: false
|
|
|
+ },
|
|
|
+ mounted: function () {
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init: function () {
|
|
|
+ layui.laydate.render({
|
|
|
+ elem: '#startDate',
|
|
|
+ theme: layDateTheme,
|
|
|
+ });
|
|
|
+ layui.laydate.render({
|
|
|
+ elem: '#endDate',
|
|
|
+ theme: layDateTheme,
|
|
|
+ });
|
|
|
+ this.getData();
|
|
|
+ window.addEventListener('message',this.receiveMessage,false);
|
|
|
+ window.parent.postMessage('init loaded');
|
|
|
+ $(".hiddenParams").show();
|
|
|
+ },
|
|
|
+ receiveMessage(e){
|
|
|
+ if(e.data.topBreadcrumb){
|
|
|
+ $('.top-breadcrumb').html(e.data.topBreadcrumb);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ showMore: function () {
|
|
|
+ this.showMoreFlag = !this.showMoreFlag;
|
|
|
+ if (this.showMoreFlag) {
|
|
|
+ $(".hiddenParam").show();
|
|
|
+ } else {
|
|
|
+ $(".hiddenParam").hide();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ add: function (obj) {
|
|
|
+ App.openLayer({
|
|
|
+ title: "新增角色",
|
|
|
+ content: App.getUrl("/Rolemenu/add"),
|
|
|
+ height: "600",
|
|
|
+ width: "800"
|
|
|
+ });
|
|
|
+ },
|
|
|
+ edit: function (obj) {
|
|
|
+ window.location.href = App.getUrl("register/editSbdw?id=" + obj.data.id);
|
|
|
+ },
|
|
|
+ edit2: function (obj) {
|
|
|
+ window.location.href = App.getUrl("register/editCkSbdw?id=" + obj.data.id);
|
|
|
+ },
|
|
|
+ del: function (obj) {
|
|
|
+ App.msg.confirm("确定删除该角色吗?", function () {
|
|
|
+ App.postJson("/api/Rolemenu/del", { id: obj.data.id }, function (res) {
|
|
|
+ if (res.success) methods.reload();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loadPage: function (totalCount) {
|
|
|
+ var self = this;
|
|
|
+ layui.laypage.render({
|
|
|
+ elem: 'pagination',
|
|
|
+ count: totalCount,
|
|
|
+ curr: self.pageNo,
|
|
|
+ limit: self.pageSize,
|
|
|
+ layout: ['count', 'prev', 'page', 'next', 'skip'],
|
|
|
+ jump: function (obj, first) {
|
|
|
+ //首次不执行
|
|
|
+ if (!first) {
|
|
|
+ self.pageNo = obj.curr;
|
|
|
+ self.getData();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getData: function () {
|
|
|
+ var self = this;
|
|
|
+ var param = layui.form.getValue("searchForm");
|
|
|
+ param.pageNo = this.pageNo;
|
|
|
+ param.pageSize = this.pageSize;
|
|
|
+ App.postJson("/api/register/list", param, function (res) {
|
|
|
+ self.dataList = res.rows;
|
|
|
+ self.loadPage(res.total);
|
|
|
+
|
|
|
+
|
|
|
+ self.loadTable();
|
|
|
+
|
|
|
+ // if(res.data=="1"){
|
|
|
+ // if (self.dataList[0].status=="待审核"||self.dataList[0].status=="已审核"||self.dataList[0].status=="不通过"){
|
|
|
+ // self.loadTable1();
|
|
|
+ // }else{
|
|
|
+ // self.loadTable();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // self.loadTable1();
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+ search: function () {
|
|
|
+ var param = layui.form.getValue("searchForm");
|
|
|
+ this.pageNo = 1;
|
|
|
+ param.pageNo = this.pageNo;
|
|
|
+ param.pageSize = this.pageSize;
|
|
|
+ var self = this;
|
|
|
+ App.postJson("/api/register/list", param, function (res) {
|
|
|
+ self.dataList = res.rows;
|
|
|
+ self.loadPage(res.total);
|
|
|
+
|
|
|
+
|
|
|
+ self.loadTable();
|
|
|
+
|
|
|
+ // if(res.data=="1"){
|
|
|
+ // if (self.dataList[0].status=="已审核"||self.dataList[0].status=="不同意"){
|
|
|
+ // self.loadTable1();
|
|
|
+ // }else{
|
|
|
+ // self.loadTable();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // self.loadTable1();
|
|
|
+ // }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loadTable: function () {
|
|
|
+ var self = this;
|
|
|
+ layui.table.render({
|
|
|
+ elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ even: true,
|
|
|
+ cols: [[ // 设置表头
|
|
|
+ { type: 'numbers', width: 44,title:'序号' },
|
|
|
+ {
|
|
|
+ field: 'title', title: '单位名称', minWidth: 200, templet: function (row) {
|
|
|
+ if (row.title != null) {
|
|
|
+ return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- edit: function (obj) {
|
|
|
- window.location.href = App.getUrl("register/editSbdw?id=" + obj.data.id);
|
|
|
+ { field: 'status', title: '状态', minWidth: 80 },
|
|
|
+ {
|
|
|
+ field: 'area', title: '所在区县', minWidth: 80, templet: function (row) {
|
|
|
+ if (row.area != null) {
|
|
|
+ return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- edit2: function (obj) {
|
|
|
- window.location.href = App.getUrl("register/editCkSbdw?id=" + obj.data.id);
|
|
|
+ { field: 'dateFound', title: '成立日期', minWidth: 80 },
|
|
|
+ { field: 'amt', title: '注册资金', minWidth: 80 },
|
|
|
+ { field: 'unitPropName', title: '单位性质', minWidth: 80 },
|
|
|
+ { field: 'unitKindName', title: '单位类型', minWidth: 80},
|
|
|
+ { field: 'nameJur1', title: '法人', minWidth: 80 },
|
|
|
+ { field: 'simCode', title: '联系电话', minWidth: 120 },
|
|
|
+ {
|
|
|
+ field: 'reason', title: '退回原因', minWidth: 100, templet: function (row) {
|
|
|
+ if (row.reason != null) {
|
|
|
+ return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
},
|
|
|
- del: function (obj) {
|
|
|
- App.msg.confirm("确定删除该角色吗?", function () {
|
|
|
- App.postJson("/api/Rolemeun/del", { id: obj.data.id }, function (res) {
|
|
|
- if (res.success) methods.reload();
|
|
|
- });
|
|
|
- });
|
|
|
+ { title: '操作', width: 100, align: 'center', toolbar: '#currentTableBar', fixed: 'right' }
|
|
|
+ ]],
|
|
|
+ data: self.dataList,
|
|
|
+ done:function(res, curr, count) {
|
|
|
+ $('tr').css({ 'border': 'none' })
|
|
|
+ $(".layui-table-main tr").each(function (index, val) {
|
|
|
+ $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
|
|
|
+ $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
+ var event = obj.event;
|
|
|
+ self[event].call(this, obj);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loadTable_1: function () {
|
|
|
+ var self = this;
|
|
|
+ layui.table.render({
|
|
|
+ elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ even: true,
|
|
|
+ cols: [[ // 设置表头
|
|
|
+ { type: 'numbers', fixed: 'left', align: '5%',title:'序号' , width: 44},
|
|
|
+ {
|
|
|
+ field: 'title', title: '单位名称', width: '15%', templet: function (row) {
|
|
|
+ if (row.title != null) {
|
|
|
+ return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- loadPage: function (totalCount) {
|
|
|
- var self = this;
|
|
|
- layui.laypage.render({
|
|
|
- elem: 'pagination',
|
|
|
- count: totalCount,
|
|
|
- curr: self.pageNo,
|
|
|
- limit: self.pageSize,
|
|
|
- layout: ['count', 'prev', 'page', 'next', 'skip'],
|
|
|
- jump: function (obj, first) {
|
|
|
- //首次不执行
|
|
|
- if (!first) {
|
|
|
- self.pageNo = obj.curr;
|
|
|
- self.getData();
|
|
|
- }
|
|
|
+ { field: 'status', title: '状态', width: '7%' },
|
|
|
+ {
|
|
|
+ field: 'area', title: '所在区县', width: '8%', templet: function (row) {
|
|
|
+ if (row.area != null) {
|
|
|
+ return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
}
|
|
|
- });
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- getData: function () {
|
|
|
- var self = this;
|
|
|
- var param = layui.form.getValue("searchForm");
|
|
|
- param.pageNo = this.pageNo;
|
|
|
- param.pageSize = this.pageSize;
|
|
|
- App.postJson("/api/register/list", param, function (res) {
|
|
|
- self.dataList = res.rows;
|
|
|
- self.loadPage(res.total);
|
|
|
-
|
|
|
-
|
|
|
- self.loadTable();
|
|
|
-
|
|
|
- // if(res.data=="1"){
|
|
|
- // if (self.dataList[0].status=="待审核"||self.dataList[0].status=="已审核"||self.dataList[0].status=="不通过"){
|
|
|
- // self.loadTable1();
|
|
|
- // }else{
|
|
|
- // self.loadTable();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // else{
|
|
|
- // self.loadTable1();
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
- });
|
|
|
+ { field: 'dateFound', title: '成立日期', width: '9%' },
|
|
|
+ { field: 'amt', title: '注册资金', width: '8%' },
|
|
|
+ { field: 'unitPropName', title: '单位性质', width: '8%' },
|
|
|
+ { field: 'unitKindName', title: '单位类型', width: '8%' },
|
|
|
+ { field: 'nameJur1', title: '法人', width: '7%' },
|
|
|
+ { field: 'simCode', title: '联系电话', width: '10%' },
|
|
|
+ {
|
|
|
+ field: 'reason', title: '退回原因', width: '10%', templet: function (row) {
|
|
|
+ if (row.reason != null) {
|
|
|
+ return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
},
|
|
|
- search: function () {
|
|
|
- var param = layui.form.getValue("searchForm");
|
|
|
- this.pageNo = 1;
|
|
|
- param.pageNo = this.pageNo;
|
|
|
- param.pageSize = this.pageSize;
|
|
|
- var self = this;
|
|
|
- App.postJson("/api/register/list", param, function (res) {
|
|
|
- self.dataList = res.rows;
|
|
|
- self.loadPage(res.total);
|
|
|
-
|
|
|
-
|
|
|
- self.loadTable();
|
|
|
-
|
|
|
- // if(res.data=="1"){
|
|
|
- // if (self.dataList[0].status=="已审核"||self.dataList[0].status=="不同意"){
|
|
|
- // self.loadTable1();
|
|
|
- // }else{
|
|
|
- // self.loadTable();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // else{
|
|
|
- // self.loadTable1();
|
|
|
- // }
|
|
|
- });
|
|
|
+ { title: '操作', width: '6%', align: 'center', toolbar: '#currentTableBar2' }
|
|
|
+ ]],
|
|
|
+ data: self.dataList,
|
|
|
+ /* done:function (res,curr,count){
|
|
|
+ $('tr').css({'background-color':'#ECEDFF','border':'none'})
|
|
|
+ } */
|
|
|
+ });
|
|
|
+ layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
+ var event = obj.event;
|
|
|
+ self[event].call(this, obj);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loadTable1: function () {
|
|
|
+ var self = this;
|
|
|
+ layui.table.render({
|
|
|
+ elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ even: true,
|
|
|
+ cols: [[ // 设置表头
|
|
|
+ { type: 'numbers', fixed: 'left', align: '5%',title:'序号' , width: 44},
|
|
|
+ {
|
|
|
+ field: 'title', title: '单位名称', width: '15%', templet: function (row) {
|
|
|
+ if (row.title != null) {
|
|
|
+ return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- loadTable: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- { type: 'numbers', width: 44,title:'序号' },
|
|
|
- {
|
|
|
- field: 'title', title: '单位名称', minWidth: 200, templet: function (row) {
|
|
|
- if (row.title != null) {
|
|
|
- return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'status', title: '状态', minWidth: 80 },
|
|
|
- {
|
|
|
- field: 'area', title: '所在区县', minWidth: 80, templet: function (row) {
|
|
|
- if (row.area != null) {
|
|
|
- return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'dateFound', title: '成立日期', minWidth: 80 },
|
|
|
- { field: 'amt', title: '注册资金', minWidth: 80 },
|
|
|
- { field: 'unitPropName', title: '单位性质', minWidth: 80 },
|
|
|
- { field: 'unitKindName', title: '单位类型', minWidth: 80},
|
|
|
- { field: 'nameJur1', title: '法人', minWidth: 80 },
|
|
|
- { field: 'simCode', title: '联系电话', minWidth: 120 },
|
|
|
- {
|
|
|
- field: 'reason', title: '退回原因', minWidth: 100, templet: function (row) {
|
|
|
- if (row.reason != null) {
|
|
|
- return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
- }
|
|
|
- return "";
|
|
|
- }
|
|
|
- },
|
|
|
- { title: '操作', width: 100, align: 'center', toolbar: '#currentTableBar', fixed: 'right' }
|
|
|
- ]],
|
|
|
- data: self.dataList,
|
|
|
- done:function(res, curr, count) {
|
|
|
- $('tr').css({ 'border': 'none' })
|
|
|
- $(".layui-table-main tr").each(function (index, val) {
|
|
|
- $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
|
|
|
- $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
|
|
|
- })
|
|
|
+ { field: 'status', title: '状态', width: '7%' },
|
|
|
+ {
|
|
|
+ field: 'area', title: '所在区县', width: '8%', templet: function (row) {
|
|
|
+ if (row.area != null) {
|
|
|
+ return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
}
|
|
|
- });
|
|
|
- layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
- var event = obj.event;
|
|
|
- self[event].call(this, obj);
|
|
|
- });
|
|
|
+ return ""
|
|
|
+ }
|
|
|
},
|
|
|
- loadTable_1: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- { type: 'numbers', fixed: 'left', align: '5%',title:'序号' , width: 44},
|
|
|
- {
|
|
|
- field: 'title', title: '单位名称', width: '15%', templet: function (row) {
|
|
|
- if (row.title != null) {
|
|
|
- return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'status', title: '状态', width: '7%' },
|
|
|
- {
|
|
|
- field: 'area', title: '所在区县', width: '8%', templet: function (row) {
|
|
|
- if (row.area != null) {
|
|
|
- return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'dateFound', title: '成立日期', width: '9%' },
|
|
|
- { field: 'amt', title: '注册资金', width: '8%' },
|
|
|
- { field: 'unitPropName', title: '单位性质', width: '8%' },
|
|
|
- { field: 'unitKindName', title: '单位类型', width: '8%' },
|
|
|
- { field: 'nameJur1', title: '法人', width: '7%' },
|
|
|
- { field: 'simCode', title: '联系电话', width: '10%' },
|
|
|
- {
|
|
|
- field: 'reason', title: '退回原因', width: '10%', templet: function (row) {
|
|
|
- if (row.reason != null) {
|
|
|
- return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
- }
|
|
|
- return "";
|
|
|
- }
|
|
|
- },
|
|
|
- { title: '操作', width: '6%', align: 'center', toolbar: '#currentTableBar2' }
|
|
|
- ]],
|
|
|
- data: self.dataList,
|
|
|
- /* done:function (res,curr,count){
|
|
|
- $('tr').css({'background-color':'#ECEDFF','border':'none'})
|
|
|
- } */
|
|
|
- });
|
|
|
- layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
- var event = obj.event;
|
|
|
- self[event].call(this, obj);
|
|
|
- });
|
|
|
+ { field: 'dateFound', title: '成立日期', width: '9%' },
|
|
|
+ { field: 'amt', title: '注册资金', width: '8%' },
|
|
|
+ { field: 'unitPropName', title: '单位性质', width: '8%' },
|
|
|
+ { field: 'unitKindName', title: '单位类型', width: '8%' },
|
|
|
+ { field: 'nameJur1', title: '法人', width: '7%' },
|
|
|
+ { field: 'simCode', title: '联系电话', width: '10%' },
|
|
|
+ {
|
|
|
+ field: 'reason', title: '退回原因', width: '10%', templet: function (row) {
|
|
|
+ if (row.reason != null) {
|
|
|
+ return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
},
|
|
|
- loadTable1: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- { type: 'numbers', fixed: 'left', align: '5%',title:'序号' , width: 44},
|
|
|
- {
|
|
|
- field: 'title', title: '单位名称', width: '15%', templet: function (row) {
|
|
|
- if (row.title != null) {
|
|
|
- return '<span title="' + row.title + '">' + row.title + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'status', title: '状态', width: '7%' },
|
|
|
- {
|
|
|
- field: 'area', title: '所在区县', width: '8%', templet: function (row) {
|
|
|
- if (row.area != null) {
|
|
|
- return '<span title="' + row.area + '">' + row.area + '</span>';
|
|
|
- }
|
|
|
- return ""
|
|
|
- }
|
|
|
- },
|
|
|
- { field: 'dateFound', title: '成立日期', width: '9%' },
|
|
|
- { field: 'amt', title: '注册资金', width: '8%' },
|
|
|
- { field: 'unitPropName', title: '单位性质', width: '8%' },
|
|
|
- { field: 'unitKindName', title: '单位类型', width: '8%' },
|
|
|
- { field: 'nameJur1', title: '法人', width: '7%' },
|
|
|
- { field: 'simCode', title: '联系电话', width: '10%' },
|
|
|
- {
|
|
|
- field: 'reason', title: '退回原因', width: '10%', templet: function (row) {
|
|
|
- if (row.reason != null) {
|
|
|
- return '<span title="' + row.reason + '">' + row.reason + '</span>';
|
|
|
- }
|
|
|
- return "";
|
|
|
- }
|
|
|
- },
|
|
|
- { title: '操作', width: '6%', align: 'center', toolbar: '#currentTableBar1' }
|
|
|
- ]],
|
|
|
- data: self.dataList,
|
|
|
- });
|
|
|
- layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
- var event = obj.event;
|
|
|
- self[event].call(this, obj);
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
+ { title: '操作', width: '6%', align: 'center', toolbar: '#currentTableBar1' }
|
|
|
+ ]],
|
|
|
+ data: self.dataList,
|
|
|
+ });
|
|
|
+ layui.table.on('tool(' + this.tableName + ')', function (obj) {
|
|
|
+ var event = obj.event;
|
|
|
+ self[event].call(this, obj);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
- });
|
|
|
- </script>
|
|
|
- </body>
|
|
|
+ });
|
|
|
+</script>
|
|
|
+</body>
|
|
|
|
|
|
- </html>
|
|
|
+</html>
|