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
1c24f3f9
authored
2020-12-07 11:04:21 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(fjcl):增加附件删除
1 parent
6a5d2671
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
48 deletions
src/api/common.js
src/views/panel/change/fg/index.vue
src/views/panel/change/hb/index.vue
src/views/zd/fjcl/fjcl.vue
src/api/common.js
View file @
1c24f3f
...
...
@@ -175,6 +175,18 @@ export function loadFile(url) {
}
})
}
/**
* 删除文件
*/
export
function
deleteFile
(
id
)
{
return
request
({
url
:
"/file/delete"
,
method
:
'delete'
,
params
:{
id
}
})
}
/**
* 多个宗地代码获取树的数据信息
...
...
src/views/panel/change/fg/index.vue
View file @
1c24f3f
...
...
@@ -22,8 +22,8 @@
<span>
多幢信息(
{{
zdZxx
.
dzList
.
length
}}
个)
</span>
</div>
<ul>
<li
v-for=
"(item,index) in zdZxx.dzList"
:key=
"index"
:class=
"[
{'
border':'((index+1)%2) == 0'},{'no
search':!zdDzList.includes(item)}]"
<li
v-for=
"(item,index) in zdZxx.dzList"
:key=
"index"
@
mouseenter=
"mouseenter"
@
mouseleave=
"mouseleave"
:class=
"[
{'search':!zdDzList.includes(item)}]"
>
{{
item
.
displays
}}
</li>
</ul>
</div>
...
...
@@ -33,7 +33,7 @@
</div>
<ul>
<li
v-for=
"(item,index) in zdZxx.zrzList"
:key=
"index"
:class=
"[
{'
border':'((index+1)%2) == 0'},{'no
search':!zdZrzList.includes(item)}]">
{{
item
.
displays
}}
:class=
"[
{'
oddborder':((index+1)%2) === 1},{'
search':!zdZrzList.includes(item)}]">
{{
item
.
displays
}}
</li>
</ul>
</div>
...
...
@@ -50,7 +50,7 @@
<th
class=
"syqlx"
>
所有权类型
</th>
<th
class=
"tdtzm"
>
土地特征码
</th>
<th
class=
"xmmc"
>
项目名称
</th>
<th
class=
"zxx"
>
幢信息
</th>
<th
class=
"
xz
zxx"
>
幢信息
</th>
<th
class=
""
>
选择
</th>
</tr>
<tr
v-for=
"(item,index) in zdFghData.newZdlist"
:key=
"index"
>
...
...
@@ -116,7 +116,7 @@
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"item.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<td
class=
"
xz
zxx"
>
<span>
多幢:
</span>
<ul>
<li
v-for=
"(dzItem,dzIndex) in item.dz"
:key=
"dzIndex"
>
{{
dzItem
}}
</li>
...
...
@@ -196,7 +196,7 @@
<div
class=
"zxx"
>
<div
class=
"dz"
>
<div
class=
"title"
>
<span
class=
"title"
>
多幢信息(
{{
zdZxx
.
zrzList
.
length
}}
个)
</span>
<span>
多幢信息(
{{
zdZxx
.
zrzList
.
length
}}
个)
</span>
</div>
<ul>
<li
v-for=
"(item,index) in zdZxx.zrzList"
:key=
"index"
>
{{
item
.
xmmc
}}
</li>
...
...
@@ -204,11 +204,11 @@
</div>
<div
class=
"zrz"
>
<div
class=
"title"
>
<span
class=
"
title
"
>
自然幢信息(
{{
zdZxx
.
dzList
.
length
}}
个)
</span>
<span
class=
""
>
自然幢信息(
{{
zdZxx
.
dzList
.
length
}}
个)
</span>
</div>
<ul>
<li
v-for=
"(item,index) in zdZxx.dzList"
:key=
"index"
:class=
"(index+1)%2==0?'':'border'"
>
{{
item
.
xmmc
}}
:class=
"(index+1)%2==0?'':'
odd
border'"
>
{{
item
.
xmmc
}}
</li>
</ul>
</div>
...
...
@@ -225,7 +225,6 @@
<th
class=
"syqlx"
>
所有权类型
</th>
<th
class=
"tdtzm"
>
土地特征码
</th>
<th
class=
"xmmc"
>
项目名称
</th>
<th
class=
"zxx"
>
幢信息
</th>
</tr>
<tr
v-for=
"(item,index) in dzFghData.newZdlist"
:key=
"index"
>
<td
class=
"cz"
>
...
...
@@ -290,9 +289,6 @@
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"item.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<span
@
click=
"xzzrz(index)"
class=
"xz"
>
选择
</span>
</td>
</tr>
<tr>
<td>
...
...
@@ -309,7 +305,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
...
...
@@ -328,12 +323,12 @@
<div
class=
"fgq"
>
<div
class=
"data"
>
<ul>
<li><span>
宗地代码:
</span>
{{
zd
FgqData
.
zddm
}}
</li>
<li><span>
不动产单元号:
</span>
{{
zd
FgqData
.
bdcdyh
}}
</li>
<li><span>
项目名称:
</span>
{{
zd
FgqData
.
xmmc
}}
</li>
<li><span>
不动产权证号:
</span>
{{
zd
FgqData
.
bdcqzh
}}
</li>
<li><span>
权利人:
</span>
{{
zd
FgqData
.
qlr
}}
</li>
<li><span>
坐落:
</span>
{{
zd
FgqData
.
zl
}}
</li>
<li><span>
宗地代码:
</span>
{{
h
FgqData
.
zddm
}}
</li>
<li><span>
不动产单元号:
</span>
{{
h
FgqData
.
bdcdyh
}}
</li>
<li><span>
项目名称:
</span>
{{
h
FgqData
.
xmmc
}}
</li>
<li><span>
不动产权证号:
</span>
{{
h
FgqData
.
bdcqzh
}}
</li>
<li><span>
权利人:
</span>
{{
h
FgqData
.
qlr
}}
</li>
<li><span>
坐落:
</span>
{{
h
FgqData
.
zl
}}
</li>
</ul>
</div>
<div
class=
"zxx"
>
...
...
@@ -351,7 +346,7 @@
</div>
<ul>
<li
v-for=
"(item,index) in zdZxx.dzList"
:key=
"index"
:class=
"(index+1)%2==0?'':'border'"
>
{{
item
.
xmmc
}}
:class=
"(index+1)%2==0?'':'
odd
border'"
>
{{
item
.
xmmc
}}
</li>
</ul>
</div>
...
...
@@ -368,7 +363,6 @@
<th
class=
"syqlx"
>
所有权类型
</th>
<th
class=
"tdtzm"
>
土地特征码
</th>
<th
class=
"xmmc"
>
项目名称
</th>
<th
class=
"zxx"
>
幢信息
</th>
</tr>
<tr
v-for=
"(item,index) in hFghData.newZdlist"
:key=
"index"
>
...
...
@@ -434,10 +428,6 @@
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"item.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<!--
{{
item
.
fwlist
.
zbsm
}}
-->
<span
@
click=
"xzzrz(index)"
class=
"xz"
>
选择
</span>
</td>
</tr>
<tr>
<td>
...
...
@@ -454,7 +444,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
...
...
@@ -558,6 +547,12 @@
})
},
methods
:
{
mouseenter
(){
console
.
log
(
"鼠标进入...."
)
},
mouseleave
(){
console
.
log
(
"鼠标移出..."
)
},
// 重置数据
result
(){
switch
(
this
.
tabName
)
{
...
...
@@ -966,6 +961,7 @@
.title
{
color
:
red
;
text-align
:
center
;
padding
:
5px
0
;
}
.dz
{
width
:
33%
;
...
...
@@ -997,7 +993,7 @@
}
}
.border
{
.
odd
border
{
border-right
:
1px
solid
#000
;
}
...
...
@@ -1109,7 +1105,13 @@
background-color
:
rgba
(
0
,
202
,
205
,
.8
);
border-color
:
rgba
(
0
,
202
,
205
,
.8
);
}
.xzzxx
{
ul{
li{
display
:
inline-block
;
}
}
}
.cz
,
.xh
{
width
:
100px
;
}
...
...
@@ -1117,7 +1119,7 @@
.xzq
,
.djq
,
.djzq
{
width
:
150px
;
}
.
no
search
{
.search
{
color
:
#BBB
!important
;
}
</
style
>
...
...
src/views/panel/change/hb/index.vue
View file @
1c24f3f
...
...
@@ -18,7 +18,7 @@
<td>
操作
</td>
</tr>
<tr
v-if=
"zdhbqData.length==0"
>
<td
colspan=
"
7
"
>
<td
colspan=
"
8
"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
...
...
@@ -134,9 +134,10 @@
<td
class=
"bdcqzh"
>
不动产权证号
</td>
<td
class=
"qlr"
>
权利人
</td>
<td
class=
"zl"
>
坐落
</td>
<td
class=
""
>
操作
</td>
</tr>
<tr
v-if=
"dzhbqData.length==0"
>
<td
colspan=
"
7
"
>
<td
colspan=
"
8
"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
...
...
@@ -154,6 +155,7 @@
readonly=
"readonly"
/></td>
<td
class=
"zl"
><input
type=
"text"
class=
"formInput"
v-model=
"item.zl"
readonly=
"readonly"
/></td>
<td
class=
"cz"
@
click=
"deleteData(index)"
><span>
删除
</span></td>
</tr>
</table>
</div>
...
...
@@ -250,9 +252,10 @@
<td
class=
"bdcqzh"
>
不动产权证号
</td>
<td
class=
"qlr"
>
权利人
</td>
<td
class=
"zl"
>
坐落
</td>
<td
class=
""
>
操作
</td>
</tr>
<tr
v-if=
"hhbqData.length==0"
>
<td
colspan=
"
7
"
>
<td
colspan=
"
8
"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
...
...
@@ -270,6 +273,7 @@
readonly=
"readonly"
/></td>
<td
class=
"zl"
><input
type=
"text"
class=
"formInput"
v-model=
"item.zl"
readonly=
"readonly"
/></td>
<td
class=
"cz"
@
click=
"deleteData(index)"
><span>
删除
</span></td>
</tr>
</table>
</div>
...
...
src/views/zd/fjcl/fjcl.vue
View file @
1c24f3f
...
...
@@ -33,7 +33,10 @@
<td
class=
"lx"
>
{{
item
.
filepostfix
}}
</td>
<td
class=
"cz"
>
<span
@
click=
"downloadFile(item.fileurl)"
>
下载
</span>
<span>
/
</span>
<span
@
click=
"loadFile(item.fileurl)"
>
预览
</span>
<span>
/
</span>
<span
@
click=
"deleteFile(item.bsm)"
>
删除
</span>
</td>
</tr>
</table>
...
...
@@ -41,7 +44,7 @@
</
template
>
<
script
>
import
{
insertFile
,
getFileLis
,
downloadFile
,
loadFile
}
from
"./../../../api/common"
import
{
insertFile
,
getFileLis
,
downloadFile
,
loadFile
,
deleteFile
}
from
"./../../../api/common"
import
{
Message
}
from
"element-ui"
export
default
{
...
...
@@ -69,21 +72,29 @@
}
},
mounted
()
{
switch
(
this
.
$route
.
name
)
{
case
"宗地"
:
this
.
filesData
.
dylx
=
'zd'
;
this
.
filesData
.
glbsm
=
this
.
$store
.
state
.
zdbsm
break
;
case
"自然幢"
:
this
.
filesData
.
dylx
=
'zrz'
;
this
.
filesData
.
glbsm
=
this
.
$store
.
state
.
zrzbsm
break
default
:
break
}
this
.
getFileList
(
this
.
filesData
.
glbsm
)
this
.
getFileList
()
},
methods
:
{
deleteFile
(
bsm
){
this
.
$confirm
(
'将删除该文件, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
deleteFile
(
bsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
getFileList
();
}
else
{
this
.
$message
.
error
(
"删除失败"
)
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
loadFile
(
url
){
loadFile
(
url
).
then
(
res
=>
{
if
(
res
.
success
)
{
...
...
@@ -94,8 +105,20 @@
downloadFile
(
url
)
{
window
.
open
(
`/api/file/download?url=`
+
url
);
},
getFileList
(
bsm
)
{
getFileLis
(
bsm
).
then
(
res
=>
{
getFileList
()
{
switch
(
this
.
$route
.
name
)
{
case
"宗地"
:
this
.
filesData
.
dylx
=
'zd'
;
this
.
filesData
.
glbsm
=
this
.
$store
.
state
.
zdbsm
break
;
case
"自然幢"
:
this
.
filesData
.
dylx
=
'zrz'
;
this
.
filesData
.
glbsm
=
this
.
$store
.
state
.
zrzbsm
break
default
:
break
}
getFileLis
(
this
.
filesData
.
glbsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
list
=
res
.
result
;
}
else
{
...
...
Please
register
or
sign in
to post a comment