cgform_jsEnhanceTemplate.ftl 802 B

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