Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
7570616f
Commit
7570616f
authored
Mar 15, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根节点新增
parent
f33e9c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.html
gavel/src/main/resources/templates/views/bom/bom/index.html
+11
-2
No files found.
gavel/src/main/resources/templates/views/bom/bom/index.html
View file @
7570616f
...
@@ -39,6 +39,9 @@
...
@@ -39,6 +39,9 @@
<script>
<script>
$
(
function
()
{
$
(
function
()
{
/*js初始化*/
/*js初始化*/
var
opentype
=
"add"
;
var
$add
=
$
(
".toolbar-add"
)
var
$edit
=
$
(
".toolbar-edit"
)
var
$div
=
$
(
'#bomBom'
);
var
$div
=
$
(
'#bomBom'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$edtBomid
=
$div
.
find
(
'input[name="bomid"]'
);
var
$edtBomid
=
$div
.
find
(
'input[name="bomid"]'
);
...
@@ -182,14 +185,14 @@ $(function () {
...
@@ -182,14 +185,14 @@ $(function () {
})
})
}
}
},
},
messager
:
function
()
{
messager
:
function
(
e
)
{
var
selectedRow
=
$datagrid
.
treegrid
(
"getSelected"
);
var
selectedRow
=
$datagrid
.
treegrid
(
"getSelected"
);
if
(
!
selectedRow
){
if
(
!
selectedRow
){
gas
.
showWarning
(
"请选择一条数据!"
);
gas
.
showWarning
(
"请选择一条数据!"
);
return
true
return
true
}
}
console
.
log
(
selectedRow
)
console
.
log
(
selectedRow
)
if
(
selectedRow
.
bomid
==
"root"
){
if
(
selectedRow
.
bomid
==
"root"
&&
opentype
==
"edit"
){
gas
.
showWarning
(
"无法操作根节点!"
);
gas
.
showWarning
(
"无法操作根节点!"
);
return
true
return
true
}
else
{
}
else
{
...
@@ -205,6 +208,12 @@ $(function () {
...
@@ -205,6 +208,12 @@ $(function () {
}
}
}
}
};
};
$edit
.
click
(
function
(){
opentype
=
"edit"
})
$add
.
click
(
function
(){
opentype
=
"add"
})
$div
.
Holder
(
options
);
$div
.
Holder
(
options
);
Auxiliary
.
box
(
$edtBomid
,{
code
:
'WLID'
,
callback
:
function
(
res
)
{
Auxiliary
.
box
(
$edtBomid
,{
code
:
'WLID'
,
callback
:
function
(
res
)
{
$edtBomid
.
textbox
(
"setValue"
,
res
.
id
);
$edtBomid
.
textbox
(
"setValue"
,
res
.
id
);
...
...
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