地质所 沉降监测网建设项目
zmk
2024-07-18 280001d476b92bf2d14052518e6f69bee9dee43d
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/project/project.html
@@ -1,7 +1,7 @@
<!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('项目列表')" />
    <th:block th:include="include :: header('场地列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
@@ -12,8 +12,19 @@
                        <ul>
       
                            <li>
                                <p>项目名称:</p>
                                <p>场地名称:</p>
                                <input type="text" name="fullName"/>
                            </li>
                            <li>
                                <p>场地编号:</p>
                                <input type="text" name="code"/>
                            </li>
                            <li>
                                <p>项目状态:</p>
                                <select name="status" th:with="type=${@dict.getType('project_status')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
@@ -25,9 +36,9 @@
            </div>
            <div class="btn-group-sm" id="toolbar" role="group">
<!--                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:project:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:project:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="geo:project:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
@@ -44,6 +55,7 @@
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('geo:project:edit')}]];
        var removeFlag = [[${@permission.hasPermi('geo:project:remove')}]];
        var statusDatas = [[${@dict.getType('project_status')}]];
        var prefix = ctx + "geo/project";
        $(function() {
@@ -53,101 +65,52 @@
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "项目",
                modalName: "场地",
                pageSize:50,
                columns: [{
                    checkbox: true
                },
                    {
                        field : 'ids',
                        title : '主键',
                        visible: false
                    },
                {
                        field : 'code',
                        title : '场地编号',
                        sortable:true
                },
                {
                    field : 'fullName', 
                    title : '项目名称',
                    title : '场地名称',
                    formatter: function(value, row, index) {
                      return '<a onclick="navigate(\'' + row.ids + '\')">'+row.fullName+'</a>'
                        var id = row.ids;
                        var code = row.code;
                        var str = id + "," + code;
                      return '<a onclick="navigate(\'' + str + '\')">'+row.fullName+'</a>'
                   },           
                   sortable:true           
                },
                {
                    field : 'companyName',
                    title : '勘察单位'
                },
                {
                    field : 'laborUnit', 
                    title : '劳务单位'
                    title : '劳务单位',
                    visible: false
                },
                {
                    field : 'district',
                    title : '区县',
                    formatter: function(value, row, index) {
                        if(row.district === 1){
                            return "东城区";
                        }else if(row.district === 17){
                            return "密云县";
                        }else if(row.district === 16){
                            return "平谷区";
                        }else if(row.district === 15){
                            return "怀柔区";
                        }else if(row.district === 14){
                            return "大兴区";
                        }else if(row.district === 13){
                            return "昌平区";
                        }else if(row.district === 12){
                            return "顺义区";
                        }else if(row.district === 11){
                            return "通州区";
                        }else if(row.district === 10){
                            return "房山区";
                        }else if(row.district === 9){
                            return "门头沟区";
                        }else if(row.district === 8){
                            return "海淀区";
                        }else if(row.district === 7){
                            return "石景山区";
                        }else if(row.district === 6){
                            return "丰台区";
                        }else if(row.district === 5){
                            return "朝阳区";
                        }else if(row.district === 4){
                            return "宣武区";
                        }else if(row.district === 3){
                            return "崇文区";
                        }else if(row.district === 2){
                            return "西城区";
                        }else if(row.district === 18){
                            return "延庆县";
                        }else if(row.district === 99){
                            return "外埠";
                        }else {
                            return "";
                },
                {
                    field : 'leader',
                    title : '场地负责人'
                },
                    {
                        field : 'status',
                        title : '场地状态',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(statusDatas, value);
                        }
                    }
                },
                {
                    field : 'owner',
                    title : '业主名称'
                },
                {
                    field : 'leaderName',
                    title : '项目负责人'
                },
                {
                    field : 'createTime',
                    title : '创建时间'
                },
                {
                    field : 'status',
                    title : '项目状态',
                    formatter: function(value, row, index) {
                       if(row.status =='0'){
                           return "未验收";
                       }else{
                           return "验收";
                       }
                    }
                },
                {
                    field : 'dataSource',
                    title : '数据来源'
                },
                    },
                {
                    title: '操作',
                    align: 'center',
@@ -163,9 +126,11 @@
        });
        
        
       function navigate(id){
            $.modal.openTab("项目导航",ctx+"/geo/project/navigate?ids="+id);
       function navigate(idcode){
            var strs = idcode.split(",");
            var id =strs[0];
            var code = strs[1];
            $.modal.openTab(code + " 场地导航",ctx+"/geo/project/navigate?ids="+id);
        }
    </script>
</body>