mikecyc / box

通过拖拽的方式动态生成网页或表单,支持生成不同风格的html片断或文件。
GNU General Public License v3.0
4 stars 1 forks source link

关于itsm/request/getFormListEditByUser.spr文件 #1

Open sxyseo opened 7 years ago

sxyseo commented 7 years ago

感谢分享,想请教个问题 在js/config.coffee下有。 config = debug: true boxpath: "boxes/" excsspath: 'css/' exjspath: 'js/'

输出html到用户态的时候使用

outcsspath: '/itsm/static/css/' outjspath: '/itsm/static/js/'

rooturl: "http://localhost:8080"

如何把文件生成到outcsspath和outjspath下,

另外在boxes/DynamicFormPanel.coffee下 bindTestApiBtn: (o)-> loadDom = o.find('.api-loading') btnDom = o.find('.btn-test-api') btnDom.unbind('click') btnDom.click (e) => loadDom.show() apiUrl = o.find('.input-api-url').val() if ''!= $.trim(apiUrl)

$.ajax 'http://10.6.222.62:8080/itsm/request/getFormSerializationByFormIdAndVersion.spr',

      $.getJSON 'http://localhost:8080/itsm/static/json/getMenuList.json',
        type:'GET'
        dataType: 'json',
        error: (jqXHR, textStatus, errorThrown) ->
          loadDom.hide()
          console.log jqXHR
          console.log textStatus
          $('.input-api-url').notify('接口请求失败!','error')
        success: (result) ->
          loadDom.hide()
          if result?
            $('.msg-show').notify('接口请求成功!','success',{position:'right','success'})
            console.log result
          else
            $('.msg-show').notify('接口请求失败!','error')
            console.log "error"

      console.log "test API:"+apiUrl

请问下如何才可以请求到itsm/request/getFormListEditByUser.spr $.ajax 后的地址已经无法访问。 麻烦有空的时候看看,谢谢。

milkboygilr commented 6 years ago

兄弟 那是后台交易吧