|
|
@@ -10,6 +10,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
del_url: 'product/areas/del',
|
|
|
multi_url: 'product/areas/multi',
|
|
|
import_url: 'product/areas/import',
|
|
|
+ exports_url: 'product/areas/exports'+'?ids='+Config.ids,
|
|
|
+ importlog_url: 'ledger/importlog/index'+'?ids='+Config.ids,
|
|
|
table: 'product_area',
|
|
|
}
|
|
|
});
|
|
|
@@ -44,14 +46,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
Table.api.bindevent(table);
|
|
|
$(".btn-add").data("area", ["60%", "50%"]);
|
|
|
$(".btn-importlog").data("area", ["70%", "80%"]);
|
|
|
- //导入地区
|
|
|
+ //导入地区 exports_url
|
|
|
$(document).on("click",".btn-exports",function(){
|
|
|
- Fast.api.open('product/areas/exports&ids='+Config.ids, '导入地区',{
|
|
|
+ Fast.api.open($.fn.bootstrapTable.defaults.extend.exports_url, '导入地区',{
|
|
|
});
|
|
|
})
|
|
|
//导入日志
|
|
|
$(document).on("click",".btn-importlog",function(){
|
|
|
- Fast.api.open('ledger/importlog/index&ids='+Config.ids, '导入日志', {
|
|
|
+ Fast.api.open($.fn.bootstrapTable.defaults.extend.importlog_url, '导入日志', {
|
|
|
area:["70%", "80%"]
|
|
|
});
|
|
|
})
|
|
|
@@ -89,15 +91,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
},
|
|
|
exports: function () {
|
|
|
+
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
importlog: function () {
|
|
|
+ console.log(1111)
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
|
- Form.api.bindevent($("form#cxselectform"));
|
|
|
}
|
|
|
}
|
|
|
};
|