diff --git a/cyx-admin/src/main/resources/templates/base/affairs/affairs.html b/cyx-admin/src/main/resources/templates/base/affairs/affairs.html index beca1bf..4256be2 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/affairs.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/affairs.html @@ -177,7 +177,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('编辑 '); @@ -187,7 +187,25 @@ }] }; $.table.init(options); + $("#bootstrap-table").on('click','.openUpload',function () { + let _id = $(this)[0].dataset.id; + layer.open({ + title:'上传附件', + area:['80%','80%'], + type:2, + content:'/base/affairs/upload', + success(res,index){ + //传值 + parent.closeIndex = index; + parent.a_upload_id = _id; + }, + end(){ + $.table.search() + } + }) + }) }); + \ No newline at end of file diff --git a/cyx-admin/src/main/resources/templates/base/affairs/day.html b/cyx-admin/src/main/resources/templates/base/affairs/day.html index 8460bb9..be33023 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/day.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/day.html @@ -185,7 +185,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('编辑 '); @@ -195,6 +195,23 @@ }] }; $.table.init(options); + $("#bootstrap-table").on('click','.openUpload',function () { + let _id = $(this)[0].dataset.id; + layer.open({ + title:'上传附件', + area:['80%','80%'], + type:2, + content:'/base/affairs/upload', + success(res,index){ + //传值 + parent.closeIndex = index; + parent.a_upload_id = _id; + }, + end(){ + $.table.search() + } + }) + }) }); diff --git a/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html b/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html index 9e25a10..af9bca3 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html @@ -177,7 +177,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('编辑 '); @@ -187,6 +187,23 @@ }] }; $.table.init(options); + $("#bootstrap-table").on('click','.openUpload',function () { + let _id = $(this)[0].dataset.id; + layer.open({ + title:'上传附件', + area:['80%','80%'], + type:2, + content:'/base/affairs/upload', + success(res,index){ + //传值 + parent.closeIndex = index; + parent.a_upload_id = _id; + }, + end(){ + $.table.search() + } + }) + }) }); diff --git a/cyx-admin/src/main/resources/templates/base/affairs/upload.html b/cyx-admin/src/main/resources/templates/base/affairs/upload.html new file mode 100644 index 0000000..d089f00 --- /dev/null +++ b/cyx-admin/src/main/resources/templates/base/affairs/upload.html @@ -0,0 +1,67 @@ + + + + + + + +
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ + + + + diff --git a/cyx-admin/src/main/resources/templates/base/affairs/year.html b/cyx-admin/src/main/resources/templates/base/affairs/year.html index 1b4def5..c37ce74 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/year.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/year.html @@ -161,7 +161,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('编辑 '); @@ -171,6 +171,23 @@ }] }; $.table.init(options); + $("#bootstrap-table").on('click','.openUpload',function () { + let _id = $(this)[0].dataset.id; + layer.open({ + title:'上传附件', + area:['80%','80%'], + type:2, + content:'/base/affairs/upload', + success(res,index){ + //传值 + parent.closeIndex = index; + parent.a_upload_id = _id; + }, + end(){ + $.table.search() + } + }) + }) }); diff --git a/cyx-admin/src/main/resources/templates/demo/form/upload.html b/cyx-admin/src/main/resources/templates/demo/form/upload.html index 9b8b4a2..d0c41d7 100644 --- a/cyx-admin/src/main/resources/templates/demo/form/upload.html +++ b/cyx-admin/src/main/resources/templates/demo/form/upload.html @@ -19,7 +19,7 @@ - +
@@ -39,7 +39,7 @@