Skip to content

Commit

Permalink
Merge pull request #539 from mrjiashuo/master
Browse files Browse the repository at this point in the history
实验七
  • Loading branch information
zengsn committed Jan 16, 2016
2 parents 353cafc + dbcafdd commit a6cb638
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 18 deletions.
1 change: 1 addition & 0 deletions works/1314080901217/aboutMe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13计师2班 <br>姓名:贾硕 <br>学号:1314080901217
1 change: 1 addition & 0 deletions works/1314080901217/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
404页面
29 changes: 29 additions & 0 deletions works/1314080901217/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<div style="margin-bottom:7px;">
<div style="width:80px;display:inline-block;text-align:right;">
开始日期:
</div>
<div style="display:inline-block;">
<starttime></starttime>
</div>

结束日期:<endtime></endtime>
操作员:<opera></opera>
</div>
<div style="margin-bottom:7px;">
<div style="width:80px;display:inline-block;text-align:right;">
备注:
</div>
<notes></notes>
</div>
<div>
<div style="display:inline-block;margin-left:83px;">
<input type="button" value="新建" style="width:100px;height:40px;">
</div>
<div style="display:inline-block;margin-left:100px;">
<input type="button" value="保存" ng-click="baocun();" style="width:100px;height:40px;">
</div>
<div style="display:inline-block;margin-left:100px;">
<input type="button" value="完成" style="width:100px;height:40px;">
</div>
</div>
32 changes: 16 additions & 16 deletions works/1314080901217/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<<<<<<< HEAD

<!DOCTYPE html>
<html ng-app="cangkuxinjianModule>
<html ng-app="cangkuxinjianModule">
<head lang="en">
=======
<!DOCTYPE html>
<html lang="zh-CN">
<head>
Expand All @@ -15,14 +14,8 @@
};
$scope.data = someData;
} </script>
>>>>>>> parent of 17098ed... 实验四
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>仓库-盘点-新建盘点清单 1314080901217</title>
<script src="../../lib/angular-1.4.5/angular.min.js"></script>
<script src="cangkuxinjianModule.js"></script>


<link rel="shortcut icon" href="icons/favicon.ico" />

<!-- Bootstrap -->
Expand All @@ -37,10 +30,14 @@
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="../lib/angular-1.4.5/angular.min.js"></script>
<script src="js/cangkuxinjianmodule.js"></script>


<script src="../../lib/angular-1.4.5/angular.min.js"></script>
<script src="../../lib/angular-1.4.5/angular-route.min.js"></script>

<script src="js/cangkuxinjianModule.js"></script>
</head>
<body>
<body >
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
Expand All @@ -54,8 +51,8 @@
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li class="active"><a href="#home">Home</a></li>
<li><a href="#aboutMe">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
Expand All @@ -69,6 +66,9 @@ <h1>Bootstrap starter template</h1>
<p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
</div>

<div id="myForm" class="myForm" style="margin-left:100px;">
<div ng-view ></div>
</div>
</div><!-- /.container -->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
Expand Down
70 changes: 68 additions & 2 deletions works/1314080901217/js/cangkuxinjianModule.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,86 @@
// create a new module called 'myAppModule' and save
// a reference to it in a variable called myAppModule
var myAppModule = angular.module('cangkuxinjianModule', []);

var myAppModule = angular.module('cangkuxinjianModule', ["ngRoute"]);
function myRoute($routeProvider)
{
$routeProvider.
when("/",{
templateUrl:"home.html",
controller:"MyFilterDemoCtrl"
})
.when("/home",{
templateUrl:"home.html",
controller:"MyFilterDemoCtrl"
})
.when("/aboutMe",{
templateUrl:"aboutMe.html"
})
.otherwise({
templateUrl:"error.html"
})
}
myAppModule.config(myRoute);
// use the myAppModule variable to
// configure the module with a controller
myAppModule.controller('MyFilterDemoCtrl', function ($scope) {
myAppModule.controller('MyFilterDemoCtrl', function ($scope,$http) {
// controller code would go here
var someData = {
Name: '仓库-盘点-新建盘点清单',
interface: '表单',
dateJoined: new Date(2015, 10, 20)
};
$scope.baocun=function(){
var promise=$http({
url:"jsonData/mydata.json",
method:"get"
});
promise.success(function(data,status){
alert(data["status"]);
});
}

$scope.data = someData;

}
);
//开始日期
myAppModule.directive("starttime",function(){
return{
restrict:"AEC",
template:"<input id='startTime' type='text'>",
transclude:true

}
});
//结束日期
myAppModule.directive("endtime",function(){
return{
restrict:"AEC",
template:"<input type='text'>",
transclude:true

}
});
//操作员
myAppModule.directive("opera",function(){
return{
restrict:"AEC",
template:"<input type='text'>",
transclude:true

}
});
//备注
myAppModule.directive("notes",function(){
return{
restrict:"AEC",
template:"<input type='text' style='width:500px;''>",
transclude:true

}
});

// use the myAppModule variable to
// configure the module with a filter
myAppModule.filter('stripDashes', function() {
Expand Down
3 changes: 3 additions & 0 deletions works/1314080901217/jsonData/mydata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"status": "保存成功"
}

0 comments on commit a6cb638

Please sign in to comment.