Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
4b917cbf
Commit
4b917cbf
authored
Jun 14, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
78cc0705
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
115 deletions
+1
-115
src/main/resources/public/index.html
src/main/resources/public/index.html
+1
-1
src/main/resources/public/pages/timesheet/app.js
src/main/resources/public/pages/timesheet/app.js
+0
-114
No files found.
src/main/resources/public/index.html
View file @
4b917cbf
...
...
@@ -26,7 +26,7 @@
<script
src=
"pages/project/projectController.js"
></script>
<script
src=
"pages/testlayout/testlayoutController.js"
></script>
<script
src=
"pages/timesheet/time
S
heetController.js"
></script>
<script
src=
"pages/timesheet/time
s
heetController.js"
></script>
<script
src=
"pages/leaveform/leaveFormController.js"
></script>
<script
src=
"pages/leaveform/leaveFormDetailController.js"
></script>
<script
src=
"pages/timesheet/timeSheetDetailController.js"
></script>
...
...
src/main/resources/public/pages/timesheet/app.js
deleted
100644 → 0
View file @
78cc0705
// /**
// *
// */
// angular.module("myApp", ["ui.router"]).config(function($stateProvider, $urlRouterProvider,$locationProvider) {
//
// $locationProvider.hashPrefix('');
// $urlRouterProvider.otherwise("/index");
//
// $stateProvider
//
// //index layout riêng
// .state("index", {
// url: "/index",
// views:{
// "index":{
// templateUrl: "pages/index/index.htm",
// controller: "indexController"
// },
// "banner":{
// templateUrl: "pages/index/banner.htm"
// }
// }
// })
//
// // State chứa layout chung cho các trang
// .state('app', {
// abstract: true,
// views: {
// 'main_layout': {
// templateUrl: 'main_layout.html',
// }
// }
// })
//
// // Các state bên dưới kế thừa state app
//
// .state("tintuc", { // Khai báo một state
// parent: 'app',
// url: "/tintuc", // URL hiển thị
// views:{
// "content":{
// templateUrl: "pages/tintuc/tintuc.htm",
// controller: "tintucController" // khai báo controller
// }
// }
// })
//
// .state("tuyendung", {
// parent: 'app',
// url: "/tuyendung",
// views:{
// "content":{
// templateUrl: "pages/tuyendung/tuyendung.htm",
// controller: "tuyendungController"
// }
// }
// })
//
// // .state("lienhe", {
// // parent: 'app',
// // url: "/lienhe",
// // views:{
// // "content":{
// // templateUrl: "pages/lienhe/lienhe.htm",
// // controller: "lienheController"
// // }
// // }
// // })
//
// .state("gioithieu", {
// parent: 'app',
// url: "/gioithieu",
// views:{
// "content":{
// templateUrl: "pages/gioithieu/gioithieu.htm",
// controller: "gioithieuController"
// }
// }
// })
//
// });
//
//--------------------Phi--------------------------------
const
report
=
angular
.
module
(
'
quantrivanphong
'
,
[
'
ngRoute
'
]);
report
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'
/timesheet
'
,
{
templateUrl
:
'
timesheet.html
'
,
controller
:
'
showTimeSheetController
'
})
});
report
.
controller
(
'
showTimeSheetController
'
,
function
(
$scope
,
$http
)
{
$scope
.
timesheet
=
{
"
id
"
:
""
,
"
title
"
:
""
,
"
content
"
:
""
,
"
note
"
:
""
,
"
eproject
"
:
""
,
"
createdAt
"
:
""
};
$http
({
method
:
'
GET
'
,
url
:
"
http://localhost:8080/eproject/timesheet/show
"
,
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$scope
.
timesheets
=
response
.
data
;
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment