index.html 4.16 KB
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>无标题</title>
    <link href="../directive/style.css" rel="stylesheet">
    <link rel="stylesheet" href="http://xn-static.oss-cn-hangzhou.aliyuncs.com/css/xn-bootstrap/1.0.1/bootstrap.min.css">
    <link rel="stylesheet" href="../spm_modules/xn-style-common/2.0.2/xn-style-common.less">
    <link rel="stylesheet" href="../spm_modules/xn-icon-common/1.0.5/iconfont.css">
    <link rel="stylesheet" href="./../spm_modules/xn-directive-select/1.1.11/directive/style.css">
</head>
<body ng-controller="MyController">

{{xnForwarded}}

    <div class=""  xn-forwarded  ng-model="xnForwarded" data-method="closeForwarded(data)">弹出框</div>

<h3>添加{{bb}}</h3>
<h3>添加{{aaa}}</h3>
   <div  xn-add-approve  ng-model="bb"  ></div>
    <div  xn-add-approve  ng-model="aaa"  max-count="5"  delete-user="deleteUser(data)"  add-user="addUser(data)"></div>
    <div  xn-add-approve  ng-model="aaa"  readonly="true"  >11</div>


    <div  xn-auto-add-approve  ng-model="ccc"  code="wgl.test"  flow-id="flowId"  params="params" >11</div>
    <div  xn-auto-add-approve  ng-model="ddd"  code="test.none"   params="params" >11</div>
    <div  xn-auto-add-approve  ng-model="ff"  code="test.condition"  rule-type="ruleType"   params="params1" >11</div>
    {{ruleType}}


无序:
1、选择时不要主管,不要汇报对象(将发起人的汇报线自动生成审批人)
2、不要箭头
3、全部可以删除


</body>

<script type="text/javascript">
    var xnConfig = {
        wwwUrl: "$config.getWwwUrl('')",
        erpUrl: "$config.getErpUrl('')",
        employeeUrl: "$config.getEmployeeUrl('')",
        authUrl: "$config.getAuthUrl('')",
        serviceUrl: "$config.getServiceUrl('')",
        memberUrl: "$config.getMemberUrl('')",
        openUrl: "$config.getOpenUrl('')",
        customerUrl: "$config.getCustomerUrl('')",
        supplierUrl: "$config.getSupplierUrl('')",
        myUrl: "http://my.xiniunet.com/",
        siteUrl: "$config.getSitewebUrl('')",
        lvUrl: "http://lv.xiniunet.com/"
    };
</script>

<script type="text/javascript" src="./../spm_modules/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript" src="./../spm_modules/xn-angular/1.0.0/angular.js"></script>
<script type="text/javascript" src="./../spm_modules/angular-ui/1.2.2/bootstraptpls.js"></script>
<script type="text/javascript" src="./../spm_modules/xn-service-common/1.0.7/service/commons.js"></script>
<script type="text/javascript" src="./../spm_modules/xn-directive-select/1.1.11/directive/selects.js"></script>
<script type="text/javascript" src="./../directive/approval.js"></script>
<script type="text/javascript">

        angular.module("myApp", ["xn.directive.approval","xn.directive.select","xn.service.common"])
        .value("xnConfig",xnConfig)
        .controller("MyController", ["$scope","$timeout","$sce", function($scope,$timeout,$sce){

            $scope.description= $sce.trustAsHtml("hello,<br><br><b>今天我们去哪里?</b>" );
            $timeout(function () {

            },1000);
            $scope.aaa=[
                {"type":"ROLE","objectName":"1级主管","objectId":1,"objectAvatar":""},
                {"type":"USER","objectName":"安丽娟","objectId":"867578814996291584"},
                {"type":"USER","objectName":"赵星","objectId":"532832510527541248",
                    "objectAvatar":"http://xiniunet.oss.aliyuncs.com/512824102474878976/avatar/555306788044804096.jpg"}]

            $scope.closeForwarded=function (data){
                console.log(1111111111111111111111);
                console.log(data);
            }
            $scope.deleteUser=function (data) {
                console.log("删除");
                console.log(data);

            }
            $scope.addUser=function (data) {
                console.log("添加");
                console.log(data);

            }
            $scope.params={

            };
            $timeout(function(){
             $scope.params1={
                            number:6
                        };
            },1000)


            $scope.flowId="903511167786684416"
            
        }]);

</script>
</html>