Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
53840214
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1431
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
53840214
编写于
11月 29, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
公司部门编辑,删除完成
上级
e15d9e2c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
40 addition
and
6 deletion
+40
-6
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+3
-0
skyeye-web/src/main/webapp/js/companydepartment/companydepartmentedit.js
...main/webapp/js/companydepartment/companydepartmentedit.js
+25
-5
skyeye-web/src/main/webapp/tpl/companydepartment/companydepartmenteditTemplate.tpl
...p/tpl/companydepartment/companydepartmenteditTemplate.tpl
+12
-1
未找到文件。
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
53840214
...
...
@@ -787,6 +787,9 @@
</url>
<url
id=
"companydepartment005"
path=
"/post/CompanyDepartmentController/editCompanyDepartmentMationById"
val=
"编辑公司部门信息信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"公司部门信息id"
/>
<property
id=
"departmentName"
name=
"departmentName"
ref=
"required"
var=
"部门名称"
/>
<property
id=
"departmentDesc"
name=
"departmentDesc"
ref=
""
var=
"部门简介"
/>
<property
id=
"companyId"
name=
"companyId"
ref=
"required"
var=
"公司id"
/>
</url>
<!-- 公司管理结束 -->
...
...
skyeye-web/src/main/webapp/js/companydepartment/companydepartmentedit.js
浏览文件 @
53840214
...
...
@@ -3,14 +3,15 @@ layui.config({
version
:
skyeyeVersion
}).
define
([
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
var
$
=
layui
.
$
,
form
=
layui
.
form
;
form
=
layui
.
form
,
layedit
=
layui
.
layedit
;
showGrid
({
id
:
"
showForm
"
,
url
:
reqBasePath
"
icon
004
"
,
url
:
reqBasePath
+
"
companydepartment
004
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/companydepartment/companydepartmenteditTemplate.tpl
'
),
...
...
@@ -18,16 +19,35 @@ layui.config({
},
ajaxSendAfter
:
function
(
json
){
layContent
=
layedit
.
build
(
'
content
'
,
{
tool
:
[
'
strong
'
//加粗
,
'
italic
'
//斜体
,
'
underline
'
//下划线
,
'
del
'
//删除线
,
'
|
'
//分割线
,
'
left
'
//左对齐
,
'
center
'
//居中对齐
,
'
right
'
//右对齐
,
'
link
'
//超链接
,
'
unlink
'
//清除链接
,
'
face
'
//表情
]
});
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
departmentName
:
$
(
"
#departmentName
"
).
val
(),
departmentDesc
:
encodeURI
(
layedit
.
getContent
(
layContent
)),
companyId
:
parent
.
companyId
,
rowId
:
parent
.
rowId
,
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
"
icon
005
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
companydepartment
005
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
skyeye-web/src/main/webapp/tpl/companydepartment/companydepartmenteditTemplate.tpl
浏览文件 @
53840214
{{
#
bean
}}
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
部门名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"departmentName"
name=
"departmentName"
win-verify=
"required"
placeholder=
"请输入部门名称"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
departmentName
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
部门简介
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"content"
name=
"content"
style=
"display: none;"
>
{
{
departmentDesc
}
}
</textarea>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录