|
@@ -320,7 +320,7 @@
|
|
<input id="projectFilingbatchRelations${index.index}_projectName" type="text" value="${project.projectName}" readonly="readonly" style="text-align: center" class="form-control"/>
|
|
<input id="projectFilingbatchRelations${index.index}_projectName" type="text" value="${project.projectName}" readonly="readonly" style="text-align: center" class="form-control"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="text" value="${project.projectReportNumber}" readonly="readonly" style="text-align: center" class="form-control"/>
|
|
|
|
|
|
+ <input type="text" value="${project.projectReportNumber}" readonly="readonly" onclick="check('${project.projectFilingBatchesId}')" style="text-align: center" class="form-control"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
<input id="projectFilingbatchRelations${index.index}_boxNum" placeholder="请输入案卷号" name="projectFilingbatchRelations[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control layui-input"/>
|
|
<input id="projectFilingbatchRelations${index.index}_boxNum" placeholder="请输入案卷号" name="projectFilingbatchRelations[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control layui-input"/>
|
|
@@ -435,6 +435,7 @@
|
|
|
|
|
|
layui.use(['form', 'layer'], function () {
|
|
layui.use(['form', 'layer'], function () {
|
|
var form = layui.form;
|
|
var form = layui.form;
|
|
|
|
+ var table = layui.table;
|
|
//下拉框监听器
|
|
//下拉框监听器
|
|
layui.form.on('select(cc)', function(data){
|
|
layui.form.on('select(cc)', function(data){
|
|
console.log(data.value);
|
|
console.log(data.value);
|
|
@@ -442,7 +443,42 @@
|
|
var a =dataId.substring(0,dataId.indexOf("_")+1);
|
|
var a =dataId.substring(0,dataId.indexOf("_")+1);
|
|
$("#"+a +"status").val(data.value)
|
|
$("#"+a +"status").val(data.value)
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ //监听单元格事件
|
|
|
|
+ layui.form.on('tool(demoEvent)', function(obj){
|
|
|
|
+ alert(11111);
|
|
|
|
+
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ function check(obj) {
|
|
|
|
+ console.log(obj)
|
|
|
|
+ openDialogView("查看项目","${ctx}/ruralProject/ruralProjectView/view?id=" + obj +"","95%","95%");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //打开对话框(查看)
|
|
|
|
+ function openDialogView(title,url,width,height){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ skin: 'one-btn',
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['关闭'],
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|