From f26e4602edc8ef6f65dd6fb04716aa0823449ffd Mon Sep 17 00:00:00 2001 From: duxp Date: Fri, 25 Aug 2023 16:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BC=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/base/affairs/affairs.html | 20 +++++- .../resources/templates/base/affairs/day.html | 19 +++++- .../templates/base/affairs/partystyle.html | 19 +++++- .../templates/base/affairs/upload.html | 67 +++++++++++++++++++ .../templates/base/affairs/year.html | 19 +++++- .../resources/templates/demo/form/upload.html | 6 +- .../src/main/resources/templates/main.html | 5 +- 7 files changed, 146 insertions(+), 9 deletions(-) create mode 100644 cyx-admin/src/main/resources/templates/base/affairs/upload.html 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 @@