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