index.html 1.21 KB
<!DOCTYPE html>
<html ng-app="myApp">
<head lang="en" >
    <meta charset="UTF-8">
    <title>表单导入</title>
    <link href="../spm_modules/bootstrap-css/1.0.0/bootstrap.css" rel="stylesheet">
    <link href="../demo/base.css" rel="stylesheet">
    <link href="../directive/style.css" rel="stylesheet">

    <script type="text/javascript" src="../spm_modules/jquery/1.7.2/jquery.js"></script>
    <script type="text/javascript" src="../spm_modules/angular-ui/1.0.0/bootstraptpls.js"></script>
    <script type="text/javascript" src="../directive/loading.js"></script>


</head>

<body ng-controller="MyController">
<h3>导入表单数据</h3>
<div  xn-import-line  ng-model="import">导入数据</div>

<script type="text/javascript">
    angular.module("myApp", ["xn.service.common","ui.bootstrap","xn.directive.import"])
            .controller("MyController", ["$scope", function($scope) {
                $scope.import = {
                    title:"导入调整单",
                    uploadMethod:"api.inv.item.adjustment.import",
                    downLoadUrl:"/inventory/api.do",
                    downLoadMethod:"api.inventory.adjustment.output.template"
                };
            }]);
</script>
</body>
</html>