projArrangeGeneral.js 762 B

12345678910111213141516171819202122232425262728
  1. //通用弹出式文件上传
  2. function commonUpload(callback){
  3. $.dialog({
  4. content: "url:systemController.do?commonUpload",
  5. lock : true,
  6. title:"文件上传",
  7. zIndex:2100,
  8. width:700,
  9. height: 200,
  10. parent:windowapi,
  11. cache:false,
  12. ok: function(){
  13. var iframe = this.iframe.contentWindow;
  14. iframe.uploadCallback(callback);
  15. return true;
  16. },
  17. cancelVal: '关闭',
  18. cancel: function(){
  19. }
  20. });
  21. }
  22. function decode(value, id) {//value传入值,id接受值
  23. var last = value.lastIndexOf("/");
  24. var filename = value.substring(last + 1, value.length);
  25. $("#" + id).text(decodeURIComponent(filename));
  26. }