diff --git a/cyx-admin/src/main/resources/templates/base/advanceddept/advanceddept.html b/cyx-admin/src/main/resources/templates/base/advanceddept/advanceddept.html index 31e1f8d..e2af08b 100644 --- a/cyx-admin/src/main/resources/templates/base/advanceddept/advanceddept.html +++ b/cyx-admin/src/main/resources/templates/base/advanceddept/advanceddept.html @@ -121,7 +121,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('删除'); return actions.join(''); @@ -129,6 +129,24 @@ }] }; $.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.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "2"; + }, + end(){ + $.table.search() + } + }) + }) }); diff --git a/cyx-admin/src/main/resources/templates/base/advancedparty/advancedparty.html b/cyx-admin/src/main/resources/templates/base/advancedparty/advancedparty.html index 738aa5d..13464b1 100644 --- a/cyx-admin/src/main/resources/templates/base/advancedparty/advancedparty.html +++ b/cyx-admin/src/main/resources/templates/base/advancedparty/advancedparty.html @@ -105,7 +105,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('上传附件 '); + actions.push('上传附件 '); actions.push('查看详情 '); // actions.push('编辑 '); @@ -115,6 +115,24 @@ }] }; $.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.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "2"; + }, + end(){ + $.table.search() + } + }) + }) }); 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 4256be2..e4c387c 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/affairs.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/affairs.html @@ -196,8 +196,9 @@ content:'/base/affairs/upload', success(res,index){ //传值 - parent.closeIndex = index; parent.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "1"; }, end(){ $.table.search() 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 be33023..3083fca 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/day.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/day.html @@ -204,8 +204,9 @@ content:'/base/affairs/upload', success(res,index){ //传值 - parent.closeIndex = index; parent.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "1"; }, 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 af9bca3..7ac59d9 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/partystyle.html @@ -196,8 +196,9 @@ content:'/base/affairs/upload', success(res,index){ //传值 - parent.closeIndex = index; parent.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "1"; }, 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 index d089f00..1a8317a 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/upload.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/upload.html @@ -24,8 +24,6 @@ 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 c37ce74..9a3ca90 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/year.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/year.html @@ -180,8 +180,9 @@ content:'/base/affairs/upload', success(res,index){ //传值 - parent.closeIndex = index; parent.a_upload_id = _id; + parent.a_upload_index = index; + parent.a_upload_type = "1"; }, end(){ $.table.search()