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
15a09fff
authored
2020-11-30 14:08:54 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更正:列表点击办理,增加二次提醒:是否确定更正该宗地\自然幢\多幢
1 parent
46e7e7fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
27 deletions
src/views/panel/modify/index.vue
src/views/panel/modify/index.vue
View file @
15a09ff
...
...
@@ -12,7 +12,7 @@
<el-table-column
label=
"操作"
width=
"100"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"handleClick(scope.row)"
type=
"text"
size=
"small"
>
办理
>
更正
</el-button
>
<el-button
type=
"text"
size=
"small"
>
定位
</el-button>
...
...
@@ -116,44 +116,61 @@
},
//点击办理
handleClick
(
row
)
{
console
.
log
(
row
);
let
path
=
""
;
var
type
;
var
id
=
row
.
bsm
;
let
type
;
name
;
switch
(
row
.
dylx
)
{
case
"自然幢"
:
path
=
"/zrz"
;
type
=
"1"
;
this
.
$store
.
state
.
zrzbsm
=
row
.
glbsm
;
break
;
case
"zd"
:
path
=
"/zd"
;
type
=
"0"
;
name
=
'宗地'
;
this
.
$store
.
state
.
zdbsm
=
row
.
glbsm
break
;
case
"户"
:
path
=
"h"
;
this
.
$store
.
state
.
hbsm
=
row
.
glbsm
case
"zrz"
:
type
=
"1"
;
name
=
'自然幢'
;
this
.
$store
.
state
.
zrzbsm
=
row
.
glbsm
;
break
;
case
"h"
:
case
"h0"
:
case
"h1"
:
type
=
"2"
;
name
=
"户"
this
.
$store
.
state
.
hbsm
=
row
.
glbsm
;
case
"dz"
:
type
=
"3"
;
name
=
"多幢"
;
this
.
$store
.
state
.
dzbsm
=
row
.
glbsm
;
default
:
break
;
}
var
data
=
{
"id"
:
id
,
"type"
:
type
};
updateQsztByBsm
(
data
)
.
then
((
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
res
.
message
,
type
:
"success"
,
});
}
else
{
let
data
=
{
"id"
:
row
.
bsm
,
"type"
:
type
};
this
.
$confirm
(
'是否确定更正该'
+
name
+
'?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
updateQsztByBsm
(
data
)
.
then
((
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'更正成功!'
});
this
.
$router
.
push
(
"/"
+
path
);
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})).
catch
(()
=>
{
this
.
$message
({
message
:
res
.
message
,
type
:
"
warning
"
,
type
:
"
error
"
,
});
}
}))
this
.
$router
.
push
(
path
);
});
}).
catch
(()
=>
{
});
},
},
computed
:
{},
...
...
Please
register
or
sign in
to post a comment