| | |
| | | |
| | | @RequiresPermissions("geo:deviceLog:view") |
| | | @GetMapping() |
| | | public String deviceLog() { |
| | | public String deviceLog(String id, ModelMap mmap) { |
| | | mmap.put("projectId", id); |
| | | return prefix + "/deviceLog"; |
| | | } |
| | | |
| | |
| | | * 新增项目人员 |
| | | */ |
| | | @GetMapping("/add") |
| | | public String add() { |
| | | public String add(String projectId, ModelMap mmap) { |
| | | mmap.put("project_Id", projectId); |
| | | return prefix + "/add"; |
| | | } |
| | | |
| | |
| | | <select id="selectDeviceLogList" parameterType="DeviceLog" resultMap="DeviceLogResult"> |
| | | <include refid="selectDeviceLogVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if> |
| | | <if test="code != null and code != ''"> and code = #{code}</if> |
| | | <if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if> |
| | | <if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if> |
| | |
| | | <select id="selectProjectDataList" parameterType="ProjectData" resultMap="ProjectDataResult"> |
| | | <include refid="selectProjectDataVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if> |
| | | <if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if> |
| | |
| | | <select id="selectProjectPersonList" parameterType="ProjectPerson" resultMap="ProjectPersonResult"> |
| | | <include refid="selectProjectPersonVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="type != null and type != ''"> and type = #{type}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | |
| | | var editFlag = [[${@permission.hasPermi('geo:deviceLog:edit')}]]; |
| | | var removeFlag = [[${@permission.hasPermi('geo:deviceLog:remove')}]]; |
| | | var typeDatas = [[${@dict.getType('device_log_type')}]]; |
| | | var projectId=[[${projectId}]]; |
| | | var prefix = ctx + "geo/deviceLog"; |
| | | |
| | | $(function() { |
| | | var options = { |
| | | url: prefix + "/list", |
| | | url: prefix + "/list?projectId="+projectId, |
| | | createUrl: prefix + "/add", |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/deviceLog(id=${project.ids})}" target="mainFrame" onclick="selected(this)">进出库管理</a> |
| | | <i class="glyphicon glyphicon-retweet"></i> <a class="afont" th:href="@{/geo/deviceLog(id=${project.ids})}" target="mainFrame" onclick="selected(this)">进出库管理</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='1')}" target="mainFrame" onclick="selected(this)">质量管理</a> |
| | | <i class="glyphicon glyphicon-object-align-horizontal"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='1')}" target="mainFrame" onclick="selected(this)">质量管理</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='2')}" target="mainFrame" onclick="selected(this)">安全管理</a> |
| | | <i class="glyphicon glyphicon-lock"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='2')}" target="mainFrame" onclick="selected(this)">安全管理</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='3')}" target="mainFrame" onclick="selected(this)">测井</a> |
| | | <i class="glyphicon glyphicon-th-list"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='3')}" target="mainFrame" onclick="selected(this)">测井</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='4')}" target="mainFrame" onclick="selected(this)">斜测</a> |
| | | <i class="glyphicon glyphicon-align-justify"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='4')}" target="mainFrame" onclick="selected(this)">斜测</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='5')}" target="mainFrame" onclick="selected(this)">室内试验</a> |
| | | <i class="glyphicon glyphicon-home"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='5')}" target="mainFrame" onclick="selected(this)">室内试验</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='6')}" target="mainFrame" onclick="selected(this)">工程测绘</a> |
| | | <i class="glyphicon glyphicon-object-align-left"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='6')}" target="mainFrame" onclick="selected(this)">工程测绘</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-modal-window"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='7')}" target="mainFrame" onclick="selected(this)">水质分析</a> |
| | | <i class="glyphicon glyphicon-tint"></i> <a class="afont" th:href="@{/geo/projectData(id=${project.ids},type='7')}" target="mainFrame" onclick="selected(this)">水质分析</a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | var removeFlag = [[${@permission.hasPermi('geo:projectData:remove')}]]; |
| | | var dataTypeDatas = [[${@dict.getType('project_data_type')}]]; |
| | | var fileTypeDatas = [[${@dict.getType('project_data_file_type')}]]; |
| | | var projectId=[[${projectId}]]; |
| | | var type=[[${type}]]; |
| | | var prefix = ctx + "geo/projectData"; |
| | | |
| | | $(function() { |
| | | var options = { |
| | | url: prefix + "/list", |
| | | url: prefix + "/list?projectId="+projectId + "&dataType=" + type, |
| | | createUrl: prefix + "/add", |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | |
| | | <th:block th:include="include :: footer" /> |
| | | <script type="text/javascript"> |
| | | var prefix = ctx + "geo/projectPerson" |
| | | var project_Id = [[${project_Id}]]; |
| | | console.log("projectId",project_Id); |
| | | |
| | | $("#form-projectPerson-add").validate({ |
| | | focusCleanup: true |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | if ($.validate.form()) { |
| | | $.operate.save(prefix + "/add", $('#form-projectPerson-add').serialize()); |
| | | let formData = $('#form-projectPerson-add').serialize(); |
| | | let data = formData + "&projectId=" + project_Id |
| | | console.log("projectId",project_Id); |
| | | console.log("data",data); |
| | | $.operate.save(prefix + "/add", data); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | $(function() { |
| | | var options = { |
| | | url: prefix + "/list?projectId="+projectId, |
| | | createUrl: prefix + "/add", |
| | | createUrl: prefix + "/add?projectId="+projectId, |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |