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
eaf00331
authored
2020-10-28 17:22:24 +0800
by
cheliming
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加宗地删除
1 parent
04b57908
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
5 deletions
.env
src/api/zd.js
src/components/lineTree/lineItem.vue
src/components/lineTree/lineTree.vue
vue.config.js
.env
View file @
eaf0033
VUE_APP_api = 'http://192.168.2.
108:8000
'
VUE_APP_api1 = 'http://1
92.168.2.76:8000
'
VUE_APP_api2 = 'http://192.168.2.
108
:8006'
VUE_APP_api = 'http://192.168.2.
48:8006
'
VUE_APP_api1 = 'http://1
27.0.0.1:8006
'
VUE_APP_api2 = 'http://192.168.2.
9
:8006'
VUE_APP_name = '开发环境'
NODE_ENV="development"
VUE_APP_VERSION = 'psh'
\ No newline at end of file
...
...
src/api/zd.js
View file @
eaf0033
...
...
@@ -141,4 +141,15 @@ export function jzxsbatchModify(data) {
})
}
/**x
*根据宗地Bsm删除宗地信息
*/
export
function
deleteZdInfoByBsm
(
data
){
return
request
({
url
:
'/zd/qjZdjbxx/deleteZdjbxxByBsm'
,
method
:
'delete'
,
data
:
data
})
}
...
...
src/components/lineTree/lineItem.vue
View file @
eaf0033
...
...
@@ -98,6 +98,7 @@ export default {
this
.
$emit
(
"changeTop"
,
y
);
this
.
$emit
(
"changeLeft"
,
x
);
this
.
$emit
(
"changeVisible"
,
true
);
this
.
$emit
(
"changeZdData"
,
item
);
}
else
if
(
item
.
zrzbsm
)
{
var
x
=
e
.
pageX
;
var
y
=
e
.
pageY
;
...
...
src/components/lineTree/lineTree.vue
View file @
eaf0033
...
...
@@ -35,6 +35,7 @@
v-if=
"item.expand && item.children.length > 0"
v-on=
"$listeners"
@
changeTop=
"changeTop"
@
changeZdData=
"changeZdData"
@
changeLeft=
"changeLeft"
@
changeVisible=
"changeVisible"
@
changeIsZD=
"changeIsZD"
...
...
@@ -56,11 +57,13 @@
<li
v-show=
"!isZD"
>
导入楼盘
</li>
<li>
重叠分析
</li>
<li
v-show=
"isZD"
>
添加定着物
</li>
<li
@
click=
"deleteByBsm()"
>
删除
</li>
</ul>
</div>
</
template
>
<
script
>
import
lineItem
from
"./lineItem.vue"
;
import
{
deleteZdInfoByBsm
}
from
"../../api/zd"
;
export
default
{
inheritAttrs
:
false
,
props
:
{
...
...
@@ -80,6 +83,7 @@ export default {
top
:
0
,
left
:
0
,
isZD
:
true
,
zdData
:{}
};
},
watch
:
{
...
...
@@ -99,6 +103,9 @@ export default {
changeVisible
(
data
)
{
this
.
visible
=
data
;
},
changeZdData
(
data
)
{
this
.
zdData
=
data
},
changeTop
(
data
)
{
this
.
top
=
data
;
},
...
...
@@ -151,6 +158,26 @@ export default {
this
.
selectedDetail
=
data
;
this
.
$emit
(
"detailDoubleClick"
,
data
);
},
deleteByBsm
(){
var
zdBsm
=
this
.
zdData
.
zdbsm
;
console
.
log
(
zdBsm
);
deleteZdInfoByBsm
(
zdBsm
)
.
then
((
res
)
=>
{
if
(
res
.
code
=
200
){
this
.
$message
({
message
:
res
.
message
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
},
},
};
</
script
>
...
...
vue.config.js
View file @
eaf0033
...
...
@@ -44,12 +44,13 @@ module.exports = {
},
devServer
:
{
host
:
"127.0.0.1"
,
port
:
800
6
,
port
:
800
8
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
"/api"
:
{
target
:
process
.
env
.
VUE_APP_api2
,
//target: process.env.VUE_APP_api, //巍巍
target
:
process
.
env
.
VUE_APP_api1
,
//本地
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/"
,
...
...
Please
register
or
sign in
to post a comment