Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
149f78d7
Commit
149f78d7
authored
Feb 22, 2019
by
乾坤平台
Committed by
季圣华
Feb 22, 2019
Browse files
!29 修改几个弹窗样式
Merge pull request !29 from 乾坤平台/master
parents
bc49df9d
f08a5c08
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/roleApp.html
View file @
149f78d7
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
角色对应应用
</title>
<title>
角色对应应用
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
</head>
</head>
<body>
<body>
<!-- 数据显示table -->
<!-- 数据显示table -->
<div
style=
"padding-bottom: 10px;"
>
<div
style=
"padding-bottom: 10px;"
>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
</div>
</div>
<div>
<div>
<ul
id=
"tt"
></ul>
<ul
id=
"tt"
></ul>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(角色id)
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(角色id)
var
type
=
"
RoleAPP
"
;
var
type
=
"
RoleAPP
"
;
var
url
;
//定义链接地址
var
url
;
//定义链接地址
function
GetNode
(
ctype
)
{
function
GetNode
(
ctype
)
{
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
cnodes
=
''
;
var
cnodes
=
''
;
var
pnodes
=
''
;
var
pnodes
=
''
;
var
prevNode
=
''
;
//保存上一步所选父节点
var
prevNode
=
''
;
//保存上一步所选父节点
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
{
{
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
prevNode
=
pnode
.
id
;
//保存当前节点
prevNode
=
pnode
.
id
;
//保存当前节点
}
}
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
{
return
pnodes
return
pnodes
}
}
;
;
};
};
$
(
function
()
{
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
$
(
'
#tt
'
).
tree
({
url
:
'
/app/findRoleAPP?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/app/findRoleAPP?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
animate
:
true
,
checkbox
:
true
checkbox
:
true
});
});
$
(
"
#btnOK
"
).
click
(
$
(
"
#btnOK
"
).
click
(
function
()
{
function
()
{
var
id
=
checkRoleAPP
();
var
id
=
checkRoleAPP
();
if
(
!
id
)
{
if
(
!
id
)
{
url
=
'
/userBusiness/add
'
;
url
=
'
/userBusiness/add
'
;
}
}
else
{
else
{
url
=
'
/userBusiness/update?id=
'
+
id
;
url
=
'
/userBusiness/update?id=
'
+
id
;
}
}
$
.
messager
.
confirm
(
"
提示
"
,
"
您确定要保存吗?
"
,
function
(
data
){
if
(
confirm
(
"
您确定要保存吗?
"
))
{
$
.
ajax
({
url
:
url
,
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
data
:
{
type
:
"
post
"
,
info
:
JSON
.
stringify
({
data
:
{
type
:
type
,
info
:
JSON
.
stringify
({
keyid
:
url_id
,
type
:
type
,
value
:
GetNode
(
'
child
'
)
keyid
:
url_id
,
})
value
:
GetNode
(
'
child
'
)
},
})
dataType
:
"
json
"
,
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
async
:
false
,
if
(
res
&&
res
.
code
===
200
)
{
success
:
function
(
res
)
{
self
.
parent
.
$
.
colorbox
.
close
();
if
(
res
&&
res
.
code
===
200
)
{
$
.
messager
.
alert
(
'
提示
'
,
"
操作成功!
"
,
"
info
"
);
self
.
parent
.
$
.
colorbox
.
close
();
}
alert
(
"
操作成功!
"
);
else
{
}
$
.
messager
.
alert
(
'
提示
'
,
"
操作失败!
"
,
"
error
"
);
else
{
}
alert
(
"
操作失败!
"
);
}
}
});
}
});
});
}
}
);
}
);
});
});
//检查记录是否存在
function
checkRoleAPP
()
{
//检查记录是否存在
//表示是否存在 0 = 不存在,存在就返回id
function
checkRoleAPP
()
{
var
flag
=
0
;
//表示是否存在 0 = 不存在,存在就返回id
//开始ajax名称检验,是否存在
var
flag
=
0
;
$
.
ajax
({
//开始ajax名称检验,是否存在
type
:
"
get
"
,
$
.
ajax
({
url
:
"
/userBusiness/checkIsValueExist
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
async
:
false
,
dataType
:
"
json
"
,
data
:
({
async
:
false
,
type
:
type
,
data
:
({
keyId
:
url_id
type
:
type
,
}),
keyId
:
url_id
success
:
function
(
res
)
{
}),
if
(
res
.
data
&&
res
.
data
.
id
)
{
success
:
function
(
res
)
{
flag
=
res
.
data
.
id
;
if
(
res
.
data
&&
res
.
data
.
id
)
{
}
flag
=
res
.
data
.
id
;
},
}
//此处添加错误处理
},
error
:
function
()
{
//此处添加错误处理
$
.
messager
.
alert
(
'
提示
'
,
'
检查角色对应应用是否存在异常,请稍后再试!
'
,
'
error
'
);
error
:
function
()
{
return
;
$
.
messager
.
alert
(
'
提示
'
,
'
检查角色对应应用是否存在异常,请稍后再试!
'
,
'
error
'
);
}
return
;
});
}
return
flag
;
});
}
return
flag
;
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
erp_web/pages/manage/roleFunctions.html
View file @
149f78d7
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
角色对应应用
</title>
<title>
角色对应应用
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
</head>
</head>
<body>
<body>
<!-- 数据显示table -->
<!-- 数据显示table -->
<div
style=
"padding-bottom: 10px;"
>
<div
style=
"padding-bottom: 10px;"
>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
</div>
</div>
<div>
<div>
<ul
id=
"tt"
></ul>
<ul
id=
"tt"
></ul>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(角色id)
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(角色id)
var
type
=
"
RoleFunctions
"
;
var
type
=
"
RoleFunctions
"
;
var
url
;
//定义链接地址
var
url
;
//定义链接地址
function
GetNode
(
ctype
)
{
function
GetNode
(
ctype
)
{
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
cnodes
=
''
;
var
cnodes
=
''
;
var
pnodes
=
''
;
var
pnodes
=
''
;
var
prevNode
=
''
;
//保存上一步所选父节点
var
prevNode
=
''
;
//保存上一步所选父节点
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
{
{
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
prevNode
=
pnode
.
id
;
//保存当前节点
prevNode
=
pnode
.
id
;
//保存当前节点
}
}
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
{
return
pnodes
return
pnodes
}
}
;
;
};
};
$
(
function
()
{
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
$
(
'
#tt
'
).
tree
({
url
:
'
/functions/findRoleFunctions?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/functions/findRoleFunctions?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
animate
:
true
,
checkbox
:
true
checkbox
:
true
});
});
$
(
"
#btnOK
"
).
click
(
$
(
"
#btnOK
"
).
click
(
function
()
{
function
()
{
var
id
=
checkRoleFunctions
();
var
id
=
checkRoleFunctions
();
if
(
!
id
)
{
if
(
!
id
)
{
url
=
'
/userBusiness/add
'
;
url
=
'
/userBusiness/add
'
;
}
}
else
{
else
{
url
=
'
/userBusiness/update?id=
'
+
id
;
url
=
'
/userBusiness/update?id=
'
+
id
;
}
}
$
.
messager
.
confirm
(
"
提示
"
,
"
您确定要保存吗?
"
,
function
(
data
){
if
(
confirm
(
"
您确定要保存吗?
"
))
{
$
.
ajax
({
url
:
url
,
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
data
:
{
type
:
"
post
"
,
info
:
JSON
.
stringify
({
data
:
{
type
:
type
,
info
:
JSON
.
stringify
({
keyid
:
url_id
,
type
:
type
,
value
:
GetNode
(
'
child
'
)
keyid
:
url_id
,
})
value
:
GetNode
(
'
child
'
)
},
})
dataType
:
"
json
"
,
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
async
:
false
,
if
(
res
&&
res
.
code
===
200
)
{
success
:
function
(
res
)
{
self
.
parent
.
$
.
colorbox
.
close
();
if
(
res
&&
res
.
code
===
200
)
{
$
.
messager
.
alert
(
'
提示
'
,
"
操作成功!
"
,
"
info
"
);
self
.
parent
.
$
.
colorbox
.
close
();
}
alert
(
"
操作成功!
"
);
else
{
}
$
.
messager
.
alert
(
'
提示
'
,
"
操作失败!
"
,
"
error
"
);
else
{
}
alert
(
"
操作失败!
"
);
}
}
});
}
});
});
}
}
}
);
);
});
});
//检查记录是否存在
//检查记录是否存在
function
checkRoleFunctions
()
{
function
checkRoleFunctions
()
{
//表示是否存在 0 = 不存在,存在就返回id
//表示是否存在 0 = 不存在,存在就返回id
var
flag
=
0
;
var
flag
=
0
;
//开始ajax名称检验,是否存在
//开始ajax名称检验,是否存在
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
dataType
:
"
json
"
,
dataType
:
"
json
"
,
async
:
false
,
async
:
false
,
data
:
({
data
:
({
type
:
type
,
type
:
type
,
keyId
:
url_id
keyId
:
url_id
}),
}),
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
id
)
{
if
(
res
.
data
&&
res
.
data
.
id
)
{
flag
=
res
.
data
.
id
;
flag
=
res
.
data
.
id
;
}
}
},
},
//此处添加错误处理
//此处添加错误处理
error
:
function
()
{
error
:
function
()
{
$
.
messager
.
alert
(
'
提示
'
,
'
检查角色对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
'
检查角色对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
return
;
return
;
}
}
});
});
return
flag
;
return
flag
;
}
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
erp_web/pages/manage/rolePushBtn.html
View file @
149f78d7
This diff is collapsed.
Click to expand it.
erp_web/pages/user/userCustomer.html
View file @
149f78d7
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
用户对应客户
</title>
<title>
用户对应客户
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
</head>
</head>
<body>
<body>
<!-- 数据显示table -->
<!-- 数据显示table -->
<div
style=
"padding-bottom: 10px;"
>
<div
style=
"padding-bottom: 10px;"
>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
</div>
</div>
<div>
<div>
<ul
id=
"tt"
></ul>
<ul
id=
"tt"
></ul>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
type
=
"
UserCustomer
"
;
var
type
=
"
UserCustomer
"
;
var
url
;
//定义链接地址
var
url
;
//定义链接地址
function
GetNode
(
ctype
)
{
function
GetNode
(
ctype
)
{
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
cnodes
=
''
;
var
cnodes
=
''
;
var
pnodes
=
''
;
var
pnodes
=
''
;
var
prevNode
=
''
;
//保存上一步所选父节点
var
prevNode
=
''
;
//保存上一步所选父节点
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
{
{
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
prevNode
=
pnode
.
id
;
//保存当前节点
prevNode
=
pnode
.
id
;
//保存当前节点
}
}
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
{
return
pnodes
return
pnodes
}
}
;
;
};
};
$
(
function
()
{
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
$
(
'
#tt
'
).
tree
({
url
:
'
/supplier/findUserCustomer?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/supplier/findUserCustomer?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
animate
:
true
,
checkbox
:
true
checkbox
:
true
});
});
$
(
"
#btnOK
"
).
click
(
$
(
"
#btnOK
"
).
click
(
function
()
{
function
()
{
var
id
=
checkUserDepot
();
var
id
=
checkUserDepot
();
if
(
!
id
)
{
if
(
!
id
)
{
url
=
'
/userBusiness/add
'
;
url
=
'
/userBusiness/add
'
;
}
}
else
{
else
{
url
=
'
/userBusiness/update?id=
'
+
id
;
url
=
'
/userBusiness/update?id=
'
+
id
;
}
}
$
.
messager
.
confirm
(
"
提示
"
,
"
您确定要保存吗?
"
,
function
(
data
){
if
(
confirm
(
"
您确定要保存吗?
"
))
{
$
.
ajax
({
url
:
url
,
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
data
:
{
type
:
"
post
"
,
info
:
JSON
.
stringify
({
data
:
{
type
:
type
,
info
:
JSON
.
stringify
({
keyid
:
url_id
,
type
:
type
,
value
:
GetNode
(
'
child
'
)
keyid
:
url_id
,
})
value
:
GetNode
(
'
child
'
)
},
})
dataType
:
"
json
"
,
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
async
:
false
,
if
(
res
&&
res
.
code
===
200
)
{
success
:
function
(
res
)
{
self
.
parent
.
$
.
colorbox
.
close
();
if
(
res
&&
res
.
code
===
200
)
{
$
.
messager
.
alert
(
'
提示
'
,
"
操作成功!
"
,
"
info
"
);
self
.
parent
.
$
.
colorbox
.
close
();
}
alert
(
"
操作成功!
"
);
else
{
}
$
.
messager
.
alert
(
'
提示
'
,
"
操作失败!
"
,
"
error
"
);
else
{
}
alert
(
"
操作失败!
"
);
}
}
});
}
});
});
}
}
}
);
);
});
});
//检查记录是否存在
//检查记录是否存在
function
checkUserDepot
()
{
function
checkUserDepot
()
{
//表示是否存在 0 = 不存在,存在就返回id
//表示是否存在 0 = 不存在,存在就返回id
var
flag
=
0
;
var
flag
=
0
;
//开始ajax名称检验,是否存在
//开始ajax名称检验,是否存在
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
dataType
:
"
json
"
,
dataType
:
"
json
"
,
async
:
false
,
async
:
false
,
data
:
({
data
:
({
type
:
type
,
type
:
type
,
keyId
:
url_id
keyId
:
url_id
}),
}),
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
id
)
{
if
(
res
.
data
&&
res
.
data
.
id
)
{
flag
=
res
.
data
.
id
;
flag
=
res
.
data
.
id
;
}
}
},
},
//此处添加错误处理
//此处添加错误处理
error
:
function
()
{
error
:
function
()
{
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
return
;
return
;
}
}
});
});
return
flag
;
return
flag
;
}
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
erp_web/pages/user/userDepot.html
View file @
149f78d7
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
用户对应部门
</title>
<title>
用户对应部门
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
</head>
</head>
<body>
<body>
<!-- 数据显示table -->
<!-- 数据显示table -->
<div
style=
"padding-bottom: 10px;"
>
<div
style=
"padding-bottom: 10px;"
>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
</div>
</div>
<div>
<div>
<ul
id=
"tt"
></ul>
<ul
id=
"tt"
></ul>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
type
=
"
UserDepot
"
;
var
type
=
"
UserDepot
"
;
var
url
;
//定义链接地址
var
url
;
//定义链接地址
function
GetNode
(
ctype
)
{
function
GetNode
(
ctype
)
{
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
cnodes
=
''
;
var
cnodes
=
''
;
var
pnodes
=
''
;
var
pnodes
=
''
;
var
prevNode
=
''
;
//保存上一步所选父节点
var
prevNode
=
''
;
//保存上一步所选父节点
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
{
{
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
prevNode
=
pnode
.
id
;
//保存当前节点
prevNode
=
pnode
.
id
;
//保存当前节点
}
}
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
{
return
pnodes
return
pnodes
}
}
;
;
};
};
$
(
function
()
{
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
$
(
'
#tt
'
).
tree
({
url
:
'
/depot/findUserDepot?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/depot/findUserDepot?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
animate
:
true
,
checkbox
:
true
checkbox
:
true
});
});
$
(
"
#btnOK
"
).
click
(
$
(
"
#btnOK
"
).
click
(
function
()
{
function
()
{
var
id
=
checkUserDepot
();
var
id
=
checkUserDepot
();
if
(
!
id
)
{
if
(
!
id
)
{
url
=
'
/userBusiness/add
'
;
url
=
'
/userBusiness/add
'
;
}
}
else
{
else
{
url
=
'
/userBusiness/update?id=
'
+
id
;
url
=
'
/userBusiness/update?id=
'
+
id
;
}
}
$
.
messager
.
confirm
(
"
提示
"
,
"
您确定要保存吗?
"
,
function
(
data
){
if
(
confirm
(
"
您确定要保存吗?
"
))
{
$
.
ajax
({
url
:
url
,
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
data
:
{
type
:
"
post
"
,
info
:
JSON
.
stringify
({
data
:
{
type
:
type
,
info
:
JSON
.
stringify
({
keyid
:
url_id
,
type
:
type
,
value
:
GetNode
(
'
child
'
)
keyid
:
url_id
,
})
value
:
GetNode
(
'
child
'
)
},
})
dataType
:
"
json
"
,
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
async
:
false
,
if
(
res
&&
res
.
code
===
200
)
{
success
:
function
(
res
)
{
self
.
parent
.
$
.
colorbox
.
close
();
if
(
res
&&
res
.
code
===
200
)
{
$
.
messager
.
alert
(
'
提示
'
,
"
操作成功!
"
,
"
info
"
);
self
.
parent
.
$
.
colorbox
.
close
();
}
alert
(
"
操作成功!
"
);
else
{
}
$
.
messager
.
alert
(
'
提示
'
,
"
操作失败!
"
,
"
error
"
);
else
{
}
alert
(
"
操作失败!
"
);
}
}
});
}
});
});
}
}
);
}
);
});
});
//检查记录是否存在
function
checkUserDepot
()
{
//检查记录是否存在
//表示是否存在 0 = 不存在,存在就返回id
function
checkUserDepot
()
{
var
flag
=
0
;
//表示是否存在 0 = 不存在,存在就返回id
//开始ajax名称检验,是否存在
var
flag
=
0
;
$
.
ajax
({
//开始ajax名称检验,是否存在
type
:
"
get
"
,
$
.
ajax
({
url
:
"
/userBusiness/checkIsValueExist
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
async
:
false
,
dataType
:
"
json
"
,
data
:
({
async
:
false
,
type
:
type
,
data
:
({
keyId
:
url_id
type
:
type
,
}),
keyId
:
url_id
success
:
function
(
res
)
{
}),
if
(
res
.
data
&&
res
.
data
.
id
)
{
success
:
function
(
res
)
{
flag
=
res
.
data
.
id
;
if
(
res
.
data
&&
res
.
data
.
id
)
{
}
flag
=
res
.
data
.
id
;
},
}
//此处添加错误处理
},
error
:
function
()
{
//此处添加错误处理
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
error
:
function
()
{
return
;
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
}
return
;
});
}
return
flag
;
});
}
return
flag
;
</script>
}
</body>
</script>
</body>
</html>
</html>
\ No newline at end of file
erp_web/pages/user/userRole.html
View file @
149f78d7
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
用户对应角色
</title>
<title>
用户对应角色
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/common.css"
/>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
</head>
</head>
<body>
<body>
<!-- 数据显示table -->
<!-- 数据显示table -->
<div
style=
"padding-bottom: 10px;"
>
<div
style=
"padding-bottom: 10px;"
>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
id=
"btnOK"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
</div>
</div>
<div>
<div>
<ul
id=
"tt"
></ul>
<ul
id=
"tt"
></ul>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
url_id
=
getUrlParam
(
'
id
'
);
//获取传值id(用户id)
var
type
=
"
UserRole
"
;
var
type
=
"
UserRole
"
;
var
url
;
//定义链接地址
var
url
;
//定义链接地址
function
GetNode
(
ctype
)
{
function
GetNode
(
ctype
)
{
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
node
=
$
(
'
#tt
'
).
tree
(
'
getChecked
'
);
var
cnodes
=
''
;
var
cnodes
=
''
;
var
pnodes
=
''
;
var
pnodes
=
''
;
var
prevNode
=
''
;
//保存上一步所选父节点
var
prevNode
=
''
;
//保存上一步所选父节点
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
node
.
length
;
i
++
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
node
[
i
].
target
))
{
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
cnodes
+=
'
[
'
+
node
[
i
].
id
+
'
]
'
;
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
var
pnode
=
$
(
'
#tt
'
).
tree
(
'
getParent
'
,
node
[
i
].
target
);
//获取当前节点的父节点
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
if
(
prevNode
!=
pnode
.
id
)
//保证当前父节点与上一次父节点不同
{
{
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
pnodes
+=
'
[
'
+
pnode
.
id
+
'
]
'
;
prevNode
=
pnode
.
id
;
//保存当前节点
prevNode
=
pnode
.
id
;
//保存当前节点
}
}
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
{
return
pnodes
return
pnodes
}
}
;
;
};
};
$
(
function
()
{
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
$
(
'
#tt
'
).
tree
({
url
:
'
/role/findUserRole?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/role/findUserRole?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
animate
:
true
,
checkbox
:
true
checkbox
:
true
});
});
$
(
"
#btnOK
"
).
click
(
$
(
"
#btnOK
"
).
click
(
function
()
{
function
()
{
var
id
=
checkUserRole
();
var
id
=
checkUserRole
();
if
(
!
id
)
{
if
(
!
id
)
{
url
=
'
/userBusiness/add
'
;
url
=
'
/userBusiness/add
'
;
}
}
else
{
else
{
url
=
'
/userBusiness/update?id=
'
+
id
;
url
=
'
/userBusiness/update?id=
'
+
id
;
}
}
$
.
messager
.
confirm
(
"
提示
"
,
"
您确定要保存吗?
"
,
function
(
data
){
if
(
confirm
(
"
您确定要保存吗?
"
))
{
$
.
ajax
({
url
:
url
,
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
data
:
{
type
:
"
post
"
,
info
:
JSON
.
stringify
({
data
:
{
type
:
type
,
info
:
JSON
.
stringify
({
keyid
:
url_id
,
type
:
type
,
value
:
GetNode
(
'
child
'
)
keyid
:
url_id
,
})
value
:
GetNode
(
'
child
'
)
},
})
dataType
:
"
json
"
,
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
async
:
false
,
if
(
res
&&
res
.
code
===
200
)
{
success
:
function
(
res
)
{
self
.
parent
.
$
.
colorbox
.
close
();
if
(
res
&&
res
.
code
===
200
)
{
$
.
messager
.
alert
(
'
提示
'
,
"
操作成功!
"
,
"
info
"
);
self
.
parent
.
$
.
colorbox
.
close
();
}
alert
(
"
操作成功!
"
);
else
{
}
$
.
messager
.
alert
(
'
提示
'
,
"
操作失败!
"
,
"
error
"
);
else
{
}
alert
(
"
操作失败!
"
);
}
}
});
}
});
});
}
}
);
}
);
});
});
//检查记录是否存在
function
checkUserRole
()
{
//检查记录是否存在
//表示是否存在 0 = 不存在,存在就返回id
function
checkUserRole
()
{
var
flag
=
0
;
//表示是否存在 0 = 不存在,存在就返回id
//开始ajax名称检验,是否存在
var
flag
=
0
;
$
.
ajax
({
//开始ajax名称检验,是否存在
type
:
"
get
"
,
$
.
ajax
({
url
:
"
/userBusiness/checkIsValueExist
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
url
:
"
/userBusiness/checkIsValueExist
"
,
async
:
false
,
dataType
:
"
json
"
,
data
:
({
async
:
false
,
type
:
type
,
data
:
({
keyId
:
url_id
type
:
type
,
}),
keyId
:
url_id
success
:
function
(
res
)
{
}),
if
(
res
.
data
&&
res
.
data
.
id
)
{
success
:
function
(
res
)
{
flag
=
res
.
data
.
id
;
if
(
res
.
data
&&
res
.
data
.
id
)
{
}
flag
=
res
.
data
.
id
;
},
}
//此处添加错误处理
},
error
:
function
()
{
//此处添加错误处理
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
error
:
function
()
{
return
;
$
.
messager
.
alert
(
'
提示
'
,
'
检查用户对应功能是否存在异常,请稍后再试!
'
,
'
error
'
);
}
return
;
});
}
return
flag
;
});
}
return
flag
;
</script>
}
</body>
</script>
</body>
</html>
</html>
\ No newline at end of file
src/main/resources/application.properties
View file @
149f78d7
...
@@ -2,7 +2,7 @@ server.port=8080
...
@@ -2,7 +2,7 @@ server.port=8080
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/jsh_erp?useUnicode=true&characterEncoding=utf8&useCursorFetch=true&defaultFetchSize=500&allowMultiQueries=true&rewriteBatchedStatements=true&useSSL=false
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/jsh_erp?useUnicode=true&characterEncoding=utf8&useCursorFetch=true&defaultFetchSize=500&allowMultiQueries=true&rewriteBatchedStatements=true&useSSL=false
spring.datasource.driverClassName
=
com.mysql.jdbc.Driver
spring.datasource.driverClassName
=
com.mysql.jdbc.Driver
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
1234
spring.datasource.password
=
1234
56
#generatorConfig专用属性
#generatorConfig专用属性
project
=
src/main/java
project
=
src/main/java
resource
=
src/main/resources
resource
=
src/main/resources
...
...
src/main/resources/logback-spring.xml
View file @
149f78d7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<contextName>
logback
</contextName>
<contextName>
logback
</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<property
name=
"log.path"
value=
"logs/jshERP"
/>
<property
name=
"log.path"
value=
"
../
logs/jshERP"
/>
<!-- 彩色日志 -->
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<!-- 彩色日志依赖的渲染类 -->
...
...
Write
Preview
Supports
Markdown
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