Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
a33d9599
Commit
a33d9599
authored
Jul 30, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e823ca26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
costCheck.js
public/resource/js/costCheck.js
+24
-20
No files found.
public/resource/js/costCheck.js
View file @
a33d9599
...
@@ -15,43 +15,47 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -15,43 +15,47 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
//判断权限 总监
财务一审
//判断权限 总监
if
(
check_auth
(
'index/
checkCostThree/2
'
)){
if
(
check_auth
(
'index/
getCostListTwo/1
'
)){
$
(
'.choose_btn1'
).
show
();
$
(
'.choose_btn1'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn1'
).
hide
();
$
(
'.choose_btn1'
).
hide
();
};
};
//判断权限 财务一级
财务二审
//判断权限 财务一级
if
(
check_auth
(
'index/
checkCostFour/3
'
)){
if
(
check_auth
(
'index/
getCostListThree/2
'
)){
$
(
'.choose_btn2'
).
show
();
$
(
'.choose_btn2'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn2'
).
hide
();
$
(
'.choose_btn2'
).
hide
();
};
};
//判断权限 财务二级
财务三审
//判断权限 财务二级
if
(
check_auth
(
'index/
checkCostFive/4
'
)){
if
(
check_auth
(
'index/
getCostListFour/3
'
)){
$
(
'.choose_btn3'
).
show
();
$
(
'.choose_btn3'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn3'
).
hide
();
$
(
'.choose_btn3'
).
hide
();
};
};
//判断权限 财务三级
//判断权限 财务三级
//
if(check_auth('index/getCostListFive/4')){
if
(
check_auth
(
'index/getCostListFive/4'
)){
//
$('.choose_btn4').show();
$
(
'.choose_btn4'
).
show
();
//
}else{
}
else
{
//
$('.choose_btn4').hide();
$
(
'.choose_btn4'
).
hide
();
//
};
};
//判断权限 未审核
总监审核
//判断权限 未审核
if
(
check_auth
(
'index/
checkCostTwo/1
'
)){
if
(
check_auth
(
'index/
getCostListOne/0
'
)){
$
(
'.choose_btn5'
).
show
();
$
(
'.choose_btn5'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn5'
).
hide
();
$
(
'.choose_btn5'
).
hide
();
};
};
//判断权限 全部
//判断权限 全部
// if(check_auth('index/getCostList')){
if
(
check_auth
(
'index/getCostList'
)){
// $('.choose_btn6').show();
$
(
'.choose_btn6'
).
show
();
// }else{
}
else
{
// $('.choose_btn6').hide();
$
(
'.choose_btn6'
).
hide
();
// };
};
cost
.
url
=
$
(
'.btn-group .choose_btn:nth-of-type(1)'
).
attr
(
'data-value'
);
cost
.
url
=
$
(
'.btn-group .choose_btn:nth-of-type(1)'
).
attr
(
'data-value'
);
cost
.
getList
(
1
);
cost
.
getList
(
1
);
cost
.
event
();
cost
.
event
();
...
...
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