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()
+ }
+ })
+ })
});
+