当前位置: 首页 > 工具软件 > UAP > 使用案例 >

uap及模块项目代码

雷逸仙
2023-12-01

uap配置--------------------------------------------------------------------------------------------

/uap_exam/WebContent/WEB-INF/configuration/policy.xml----------------------------

<?xml version="1.0" encoding="UTF-8"?>

<platform-dynamic-policy>
<deploy-mode>develop</deploy-mode>
<service-candidate-mode>true</service-candidate-mode>
<default-servlet-extensions>/rest/*</default-servlet-extensions>
<web>
<app-resource-cache maxlength="-1" >-1</app-resource-cache>
<url-first-cache>-1</url-first-cache>
<black-url-cache-mode>false</black-url-cache-mode>
</web>

    <module-repository id="workspace" path="D:\\uapSpace">
        <module>module_exam</module>
<module>mxdemo1.2</module>
<module>team_real</module>
    </module-repository>


</platform-dynamic-policy>


/uap_exam/WebContent/WEB-INF/configuration/config.ini-----------------------------------

dm.server.path=http://127.0.0.1:9000/sguap-server/environment


模块项目配置---------------------------------------------------------------------------------------------

/module_exam/face/ui1/scripts/weblet.js-----------------------------------------------

mx.weblets.WebletManager.register(
{
    id: "ui1",
    name: "ui1",
    requires:["staff","qj","demp_staff_tree","demp"],
    onload: function (e) {
    }, 
    onstart: function (e) {
        var mvc = new ui1.views.mainViewController();
        e.context.rootViewPort.setViewController(mvc);
    }
});

 类似资料: