Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
369d41b4
authored
2020-12-07 16:26:18 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(lpb):选择幢删除幢
1 parent
8bfb8760
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
src/views/panel/change/fg/index.vue
src/views/panel/change/fg/index.vue
View file @
369d41b
...
...
@@ -567,26 +567,38 @@
var
self
=
this
;
document
.
onkeydown
=
function
(
e
){
let
key
=
e
||
window
.
event
||
arguments
.
callee
.
caller
.
arguments
[
0
];
console
.
log
(
key
.
code
,
'keycode'
)
if
(
key
&&
(
key
.
keyCode
==
'8'
||
key
.
code
==
'Delete'
))
{
let
dz
=
{};
let
len
=
self
.
zdFghData
.
newZdlist
[
index
].
fwlist
.
length
-
1
;
switch
(
type
)
{
case
"dz"
:
dz
=
self
.
zdFghData
.
newZdlist
[
index
].
dz
[
dzIndex
];
// 删除数据
self
.
zdFghData
.
newZdlist
[
index
].
dz
.
splice
(
dzIndex
,
1
);
for
(
let
i
=
0
;
i
<
len
;
i
++
){
let
fw
=
self
.
zdFghData
.
newZdlist
[
index
].
fwlist
[
i
];
if
(
fw
.
ztype
==
'dz'
&&
fw
.
zbsm
==
dz
.
bsm
){
self
.
zdFghData
.
newZdlist
[
index
].
fwlist
.
splice
(
i
,
1
);
}
}
// 添加数据
self
.
zdDzList
.
push
(
dz
)
break
;
return
;
case
"zrz"
:
dz
=
self
.
zdFghData
.
newZdlist
[
index
].
zrz
[
dzIndex
];
// 删除数据
self
.
zdFghData
.
newZdlist
[
index
].
zrz
.
splice
(
dzIndex
,
1
);
for
(
let
i
=
0
;
i
<
len
;
i
++
){
let
fw
=
self
.
zdFghData
.
newZdlist
[
index
].
fwlist
[
i
];
if
(
fw
.
ztype
==
'zrz'
&&
fw
.
zbsm
==
dz
.
bsm
){
self
.
zdFghData
.
newZdlist
[
index
].
fwlist
.
splice
(
i
,
1
);
}
}
// 添加数据
self
.
zdZrzList
.
push
(
dz
)
break
;
return
;
default
:
break
;
return
;
}
}
};
...
...
Please
register
or
sign in
to post a comment