Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
f2140c02
authored
2023-09-18 17:02:19 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
into dev
2 parents
d5cfac56
1dc5ab1f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
369 additions
and
348 deletions
src/views/registerBook/djbFrame.vue
src/views/registerBook/djbFrameData.js
src/views/registerBook/djbFrameall.vue
src/views/workflow/components/szxx.vue
src/views/ywbl/ywsq/components/fwsyq.vue
src/views/ywbl/ywsq/javascript/slectBdcdata.js
src/views/registerBook/djbFrame.vue
View file @
f2140c0
...
...
@@ -14,7 +14,8 @@
:default-expand-all=
"true"
:expand-on-click-node=
"false"
node-key=
"id"
:default-checked-keys=
"[showTab]"
>
:default-checked-keys=
"[showTab]"
>
</el-tree>
<el-collapse
v-model=
"activeName"
accordion
>
<el-collapse-item
...
...
@@ -22,22 +23,27 @@
ref=
"sfq"
v-for=
"(item, index) in sfqdata"
:key=
"index"
:name=
"index"
>
:name=
"index"
>
<template
slot=
"title"
>
<span
class=
"text"
@
click=
"addlist(item)"
>
<span>
{{
item
.
label
}}
</span>
<span
class=
"text"
@
click=
"tap(item, index)"
>
<span>
{{
item
.
label
}}
</span>
</span>
</
template
>
<
el-button
<
p
v-for=
"(item, index) in item.children"
:re=
'item'
:key=
"item.id"
class=
"sfqcontent"
@
click=
"addlist(item, index)"
>
{{ item.label }}
</el-button>
:re=
"item"
:key=
"index"
:class=
"[isActive == index ? activeCls : '', errorCls]"
@
click=
"taplist(item, index)"
>
<span>
{{ item.label }}
</span>
<span>
{{ item.zt }}
</span>
</p>
</el-collapse-item>
</el-collapse>
</div>
...
...
@@ -45,288 +51,298 @@
<component
:is=
"componentTag"
@
getBdcdyh=
"getBdcdyh"
v-bind=
"currentSelectProps"
/>
v-bind=
"currentSelectProps"
/>
</div>
</div>
</template>
<
script
>
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
loadsfqData
,
getNode
}
from
"./djbFrameData.js"
;
export
default
{
data
()
{
return
{
activeName
:
0
,
//接收参数
// propsParam: this.$attrs,
//左侧目录
catalog
:
{},
//选择加载哪一个组件
componentTag
:
""
,
//子组件接收参数
currentSelectProps
:
{},
//左侧树形结构数据
treedata
:
[],
sfqdata
:
[],
keyy
:
""
,
iskey
:
""
,
defaultNode
:
""
,
defaultProps
:
{
value
:
"id"
,
children
:
"children"
,
label
:
"label"
,
},
showTab
:
"bdcqldjml"
,
// 选中状态,根据表格中权利类型判断
};
},
props
:
[
"formData"
],
mounted
()
{
this
.
loadData
(
this
.
formData
.
bdcdyh
);
},
methods
:
{
/**
* @description: getBdcdyh
* @author: miaofang
* 点击不动产单元号事件
*/
getBdcdyh
(
val
)
{
this
.
addloadData
(
val
);
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
loadsfqData
,
getNode
}
from
"./djbFrameData.js"
;
export
default
{
data
()
{
return
{
activeName
:
0
,
//接收参数
// propsParam: this.$attrs,
//左侧目录
catalog
:
{},
//选择加载哪一个组件
componentTag
:
""
,
//子组件接收参数
currentSelectProps
:
{},
//左侧树形结构数据
treedata
:
[],
sfqdata
:
[],
keyy
:
""
,
iskey
:
""
,
defaultNode
:
""
,
isActive
:
""
,
activeCls
:
"select"
,
errorCls
:
"unselected"
,
defaultProps
:
{
value
:
"id"
,
children
:
"children"
,
label
:
"label"
,
},
/**
* @description: addloadData
* @author: miaofang
*/
addloadData
(
val
)
{
getBdcqljqtsx
({
bdcdyid
:
val
.
bdcdyid
,
bdcdyh
:
val
.
bdcdyh
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
this
.
sfqdata
.
some
((
item
)
=>
item
.
bdcdyid
===
val
.
bdcdyid
))
{
let
index
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
val
.
bdcdyid
;
});
this
.
activeName
=
index
this
.
setstyle
(
index
,
0
,
this
.
iskey
);
}
else
{
this
.
sfqdata
.
push
(
loadsfqData
(
res
.
result
,
val
.
bdcdyh
,
val
.
bdcdyid
));
this
.
activeName
=
this
.
sfqdata
.
length
-
1
;
this
.
$nextTick
(()
=>
{
this
.
setstyle
(
this
.
sfqdata
.
length
-
1
,
0
,
this
.
iskey
);
})
}
showTab
:
"bdcqldjml"
,
// 选中状态,根据表格中权利类型判断
};
},
props
:
[
"formData"
],
mounted
()
{
this
.
loadData
(
this
.
formData
.
bdcdyh
);
},
methods
:
{
/**
* @description: getBdcdyh
* @author: miaofang
* 点击不动产单元号事件
*/
getBdcdyh
(
val
)
{
this
.
addloadData
(
val
);
},
/**
* @description: addloadData
* @author: miaofang
*/
addloadData
(
val
)
{
getBdcqljqtsx
({
bdcdyid
:
val
.
bdcdyid
,
bdcdyh
:
val
.
bdcdyh
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
this
.
sfqdata
.
some
((
item
)
=>
item
.
bdcdyid
===
val
.
bdcdyid
))
{
let
index
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
val
.
bdcdyid
;
});
this
.
activeName
=
index
;
// this.setstyle(index, 0, this.iskey);
}
else
{
this
.
sfqdata
.
push
(
loadsfqData
(
res
.
result
,
val
.
bdcdyh
,
val
.
bdcdyid
));
this
.
activeName
=
this
.
sfqdata
.
length
-
1
;
// this.$nextTick(() => {
// this.setstyle(this.sfqdata.length - 1, 0, this.iskey);
// })
}
});
this
.
currentSelectProps
=
{
bdcdyid
:
val
.
bdcdyid
,
bdcdyh
:
val
.
bdcdyh
,
qllx
:
this
.
formData
.
qllx
,
bsmQlxx
:
this
.
formData
.
bsmQlxx
,
}
},
loadData
(
val
)
{
getBdcqljqtsx
({
bdcdyid
:
this
.
formData
.
bdcdyid
,
bdcdyh
:
val
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
treedata
=
loadTreeData
(
val
);
this
.
sfqdata
.
push
(
loadsfqData
(
res
.
result
,
val
,
this
.
formData
.
bdcdyid
)
});
this
.
currentSelectProps
=
{
bdcdyid
:
val
.
bdcdyid
,
bdcdyh
:
val
.
bdcdyh
,
qllx
:
this
.
formData
.
qllx
,
bsmQlxx
:
this
.
formData
.
bsmQlxx
,
};
},
/**
* @description: loadData
* @author: renchao
*/
loadData
(
val
)
{
getBdcqljqtsx
({
bdcdyid
:
this
.
formData
.
bdcdyid
,
bdcdyh
:
val
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
treedata
=
loadTreeData
(
val
);
this
.
sfqdata
.
push
(
loadsfqData
(
res
.
result
,
val
,
this
.
formData
.
bdcdyid
)
);
this
.
$nextTick
(
function
()
{
this
.
defaultNode
=
getNode
(
this
.
formData
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
res
.
result
.
bdcdylx
||
""
);
this
.
$nextTick
(
function
()
{
this
.
defaultNode
=
getNode
(
this
.
formData
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
res
.
result
.
bdcdylx
||
""
);
this
.
sfqdata
[
0
].
children
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
id
==
this
.
defaultNode
.
id
)
{
this
.
iskey
=
index
}
})
this
.
setstyle
(
0
,
0
,
this
.
iskey
);
console
.
log
(
this
.
sfqdata
,
' this.sfqdata'
);
})
}
})
this
.
currentSelectProps
=
{
bdcdyid
:
this
.
formData
.
bdcdyid
,
bdcdyh
:
val
,
qllx
:
this
.
formData
.
qllx
,
bsmQlxx
:
this
.
formData
.
bsmQlxx
,
}
},
/**
* @description: handleNodeClick
* @param {*} data
* @author: renchao
*/
handleNodeClick
(
data
)
{
this
.
loadComponent
(
data
.
form
);
},
setstyle
(
newindex
,
index
,
key
)
{
if
(
key
!=
undefined
||
this
.
keyy
==
index
)
{
if
(
key
!=
undefined
)
{
this
.
keyy
=
key
}
this
.
loadComponent
(
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$attrs
.
re
.
form
);
let
dpme
=
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$el
dpme
.
style
.
backgroundColor
=
"#f5f5f5"
;
dpme
.
style
.
color
=
"#0079fe"
;
dpme
.
style
.
borderRight
=
"4px solid #0079fe"
;
}
else
{
let
dpme
=
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$el
dpme
.
style
.
backgroundColor
=
"#ffffff"
;
dpme
.
style
.
color
=
"black"
;
dpme
.
style
.
border
=
"none"
;
}
},
/**
* @description: addlist
* @param {*} data
* @author: renchao
* 新增列表功能
*/
addlist
(
data
,
index
)
{
if
(
index
!=
undefined
)
{
let
newindex
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
data
.
bdcdyid
;
this
.
sfqdata
[
0
].
children
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
id
==
this
.
defaultNode
.
id
)
{
this
.
loadComponent
(
item
.
form
);
this
.
isActive
=
index
;
}
});
// this.setstyle(0, 0, this.iskey);
});
this
.
setstyle
(
newindex
,
index
);
this
.
currentSelectProps
.
bdcdyid
=
data
.
bdcdyid
;
this
.
loadComponent
(
data
.
form
);
}
else
{
let
newindex
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
data
.
bdcdyid
;
});
this
.
setstyle
(
newindex
,
index
);
this
.
loadComponent
(
data
.
form
);
}
},
/**
* @description: loadComponent
* @param {*} form
* @author: renchao
*/
loadComponent
(
form
)
{
console
.
log
(
form
,
'form'
);
this
.
componentTag
=
(
r
)
=>
require
.
ensure
([],
()
=>
r
(
require
(
"@/views/registerBook/"
+
form
)));
}
}
}
});
this
.
currentSelectProps
=
{
bdcdyid
:
this
.
formData
.
bdcdyid
,
bdcdyh
:
val
,
qllx
:
this
.
formData
.
qllx
,
bsmQlxx
:
this
.
formData
.
bsmQlxx
,
};
},
/**
* @description: handleNodeClick
* @param {*} data
* @author: renchao
*/
handleNodeClick
(
data
)
{
this
.
loadComponent
(
data
.
form
);
},
// setstyle(newindex, index, key) {
// if (key != undefined || this.keyy == index) {
// if (key != undefined) {
// this.keyy = key;
// }
// this.loadComponent(
// this.$refs.sfq[newindex].$children[this.keyy].$attrs.re.form
// );
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el;
// dpme.style.backgroundColor = "#f5f5f5";
// dpme.style.color = "#0079fe";
// dpme.style.borderRight = "4px solid #0079fe";
// } else {
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el;
// dpme.style.backgroundColor = "#ffffff";
// dpme.style.color = "black";
// dpme.style.border = "none";
// }
// },
/**
* @description: addlist
* @param {*} data
* @author: renchao
* 新增列表功能
*/
tap
(
data
,
index
)
{
this
.
loadComponent
(
data
.
form
);
},
taplist
(
data
,
index
)
{
this
.
loadComponent
(
data
.
form
);
this
.
isActive
=
index
;
},
/**
* @description: loadComponent
* @param {*} form
* @author: renchao
*/
loadComponent
(
form
)
{
console
.
log
(
form
,
"form"
);
this
.
componentTag
=
(
r
)
=>
require
.
ensure
([],
()
=>
r
(
require
(
"@/views/registerBook/"
+
form
)));
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
/
deep
/
.rollTable
{
height
:
calc
(
100vh
-
300px
)
!important
;
}
.content
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
/
deep
/
.rollTable
{
height
:
calc
(
100vh
-
300px
)
!important
;
}
.left
{
width
:
256px
;
height
:
704px
;
background-color
:
#f5f5f5
;
color
:
#333
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
overflow-y
:
auto
;
}
.right
{
width
:
calc
(
100%
-
256px
);
height
:
704px
;
//
overflow-y
:
scroll
;
//
overflow
:
auto
;
background-color
:
#f5f5f5
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
}
}
.content
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
visibility
:
hidden
;
.left
{
width
:
256px
;
height
:
704px
;
background-color
:
#f5f5f5
;
color
:
#333
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
overflow-y
:
auto
;
}
/
deep
/
.el-tree-node__content
{
.right
{
width
:
calc
(
100%
-
256px
);
height
:
704px
;
//
overflow-y
:
scroll
;
//
overflow
:
auto
;
background-color
:
#f5f5f5
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
height
:
45px
;
}
}
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
//
background-color
:
#f5f5f5
;
//
color
:
#0079fe
;
//
border-right
:
4px
solid
#0079fe
;
}
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
visibility
:
hidden
;
}
/
deep
/
.el-tree-node
{
white-space
:
pre-wrap
;
}
/
deep
/
.el-tree-node__content
{
border
:
1px
solid
rgb
(
228
,
228
,
228
);
height
:
45px
;
}
/
deep
/
.is-current
>
.el-tree-node__content
{
//
background-color
:
#f5f5f5
;
//
color
:
#0079fe
;
//
border-right
:
4px
solid
#0079fe
;
}
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
//
background-color
:
#f5f5f5
;
//
color
:
#0079fe
;
//
border-right
:
4px
solid
#0079fe
;
}
/
deep
/
.el-tree-node
{
white-space
:
pre-wrap
;
}
/
deep
/
.el-collapse-item__header
{
/
deep
/
.is-current
>
.el-tree-node__content
{
//
background-color
:
#f5f5f5
;
//
color
:
#0079fe
;
//
border-right
:
4px
solid
#0079fe
;
}
/
deep
/
.el-collapse-item__header
{
width
:
100%
;
cursor
:
pointer
;
position
:
relative
;
.el-collapse-item__arrow
{
position
:
absolute
;
top
:
15px
;
right
:
0px
;
}
align-items
:
center
;
.text
{
width
:
100%
;
cursor
:
pointer
;
position
:
relative
;
.el-collapse-item__arrow
{
position
:
absolute
;
top
:
15px
;
right
:
0px
;
}
align-items
:
center
;
.text
{
width
:
100%
;
height
:
45px
;
display
:
inline-block
;
span
{
margin-left
:
60px
;
padding-top
:
10px
;
display
:
inline-block
;
line-height
:
15px
;
}
}
height
:
45px
;
display
:
inline-block
;
line-height
:
45px
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
}
/
deep
/
.el-collapse-item__content
{
padding-bottom
:
5px
;
}
/
deep
/
.sfqcontent
{
white-space
:
wrap
;
border
:
none
;
padding
:
0
;
margin
:
0
;
cursor
:
pointer
;
width
:
100%
;
height
:
100px
;
word-break
:
break-word
;
display
:
inline
;
span
{
font-size
:
13px
;
display
:
block
;
margin-left
:
60px
;
padding-top
:
10px
;
display
:
inline-block
;
line-height
:
15px
;
margin-left
:
70px
;
}
height
:
45px
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
border-right
:
4px
solid
#f5f5f5
;
}
.sfqcontent
:hover
{
background-color
:
#f5f5f5
;
color
:
black
;
height
:
45px
;
display
:
inline-block
;
line-height
:
45px
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
}
/
deep
/
.el-collapse-item__content
{
padding-bottom
:
5px
;
}
/
deep
/
.unselected
{
//
white-space
:
wrap
;
border
:
none
;
cursor
:
pointer
;
width
:
250px
;
height
:
45px
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
border-right
:
4px
solid
#f5f5f5
;
margin
:
auto
;
text-align
:
center
;
align-items
:
center
;
span
{
width
:
100%
;
display
:
inline-block
;
justify-content
:
center
;
align-items
:
center
;
}
.sfqcontent
:focus
{
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
}
.select
{
border
:
none
;
cursor
:
pointer
;
width
:
250px
;
height
:
45px
;
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
margin
:
auto
;
text-align
:
center
;
align-items
:
center
;
span
{
width
:
100%
;
display
:
inline-block
;
justify-content
:
center
;
align-items
:
center
;
}
}
</
style
>
...
...
src/views/registerBook/djbFrameData.js
View file @
f2140c0
/*
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-15 10:52:40
*/
...
...
@@ -89,12 +89,12 @@ export function getNode (qllx, qlxx, bdcdylx, bdcdyid) {
if
(
qlxxPage
[
i
].
qllx
==
qllx
)
{
if
(
qllx
==
"A04"
||
qllx
==
"A06"
||
qllx
==
"A08"
)
{
if
(
bdcdylx
==
"4"
)
{
node
=
{
bdcdyid
:
bdcdyid
,
id
:
"fdcq1"
,
form
:
"fdcq1.vue"
,
label
:
qlxxPage
[
i
].
label
+
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
node
=
{
bdcdyid
:
bdcdyid
,
id
:
"fdcq1"
,
form
:
"fdcq1.vue"
,
label
:
qlxxPage
[
i
].
label
,
zt
:
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
}
else
{
node
=
{
bdcdyid
:
bdcdyid
,
id
:
"fdcq2"
,
form
:
"fdcq2.vue"
,
label
:
qlxxPage
[
i
].
label
+
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
node
=
{
bdcdyid
:
bdcdyid
,
id
:
"fdcq2"
,
form
:
"fdcq2.vue"
,
label
:
qlxxPage
[
i
].
label
,
zt
:
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
}
}
else
{
node
=
{
bdcdyid
:
bdcdyid
,
id
:
qlxxPage
[
i
].
id
,
form
:
qlxxPage
[
i
].
form
,
label
:
qlxxPage
[
i
].
label
+
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
node
=
{
bdcdyid
:
bdcdyid
,
id
:
qlxxPage
[
i
].
id
,
form
:
qlxxPage
[
i
].
form
,
label
:
qlxxPage
[
i
].
label
,
zt
:
"(临:"
+
qlxx
.
linShi
+
",现:"
+
qlxx
.
xianShi
+
",历:"
+
qlxx
.
liShi
+
")"
};
}
break
;
}
...
...
src/views/registerBook/djbFrameall.vue
View file @
f2140c0
...
...
@@ -26,21 +26,26 @@
:name=
"index"
>
<template
slot=
"title"
>
<span
class=
"text"
@
click=
"
addlist
(item)"
>
<span
class=
"text"
@
click=
"
tap
(item)"
>
<span>
{{
item
.
label
}}
</span>
</span>
</
template
>
<el-button
<p
v-for=
"(item, index) in item.children"
:re=
'item'
:re=
"item"
:key=
"index"
class=
"sfqcontent
"
@
click=
"
add
list(item, index)"
:class=
"[isActive == index ? activeCls : '', errorCls]
"
@
click=
"
tap
list(item, index)"
>
{{ item.label }}
</el-button>
<span>
{{ item.label }}
</span>
<span>
{{ item.zt }}
</span>
</p>
</el-collapse-item>
</el-collapse>
</div>
...
...
@@ -79,6 +84,9 @@ export default {
queryForm
:
{},
defaultNode
:
""
,
isActive
:
""
,
activeCls
:
"select"
,
errorCls
:
"unselected"
,
defaultProps
:
{
value
:
"id"
,
children
:
"children"
,
...
...
@@ -176,13 +184,9 @@ export default {
return
item
.
bdcdyid
==
val
.
bdcdyid
;
});
this
.
activeName
=
index
this
.
setstyle
(
index
,
0
,
this
.
iskey
);
}
else
{
this
.
sfqdata
.
push
(
loadsfqData
(
res
.
result
,
val
.
bdcdyh
,
val
.
bdcdyid
));
this
.
activeName
=
this
.
sfqdata
.
length
-
1
;
this
.
$nextTick
(()
=>
{
this
.
setstyle
(
this
.
sfqdata
.
length
-
1
,
0
,
this
.
iskey
);
})
}
}
});
...
...
@@ -215,13 +219,14 @@ export default {
);
this
.
sfqdata
[
0
].
children
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
id
==
this
.
defaultNode
.
id
)
{
this
.
iskey
=
index
this
.
loadComponent
(
item
.
form
);
this
.
isActive
=
index
;
}
})
// this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点
// this.loadComponent(this.defaultNode.form);
this
.
setstyle
(
0
,
0
,
this
.
iskey
);
//
this.setstyle(0, 0, this.iskey);
});
...
...
@@ -252,50 +257,42 @@ export default {
* @author: renchao
* 设置样式和点击定位到当前功能
*/
setstyle
(
newindex
,
index
,
key
)
{
if
(
key
!=
undefined
||
this
.
keyy
==
index
)
{
if
(
key
!=
undefined
)
{
this
.
keyy
=
key
}
this
.
loadComponent
(
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$attrs
.
re
.
form
);
let
dpme
=
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$el
dpme
.
style
.
backgroundColor
=
"#f5f5f5"
;
dpme
.
style
.
color
=
"#0079fe"
;
dpme
.
style
.
borderRight
=
"4px solid #0079fe"
;
}
else
{
let
dpme
=
this
.
$refs
.
sfq
[
newindex
].
$children
[
this
.
keyy
].
$el
dpme
.
style
.
backgroundColor
=
"#ffffff"
;
dpme
.
style
.
color
=
"black"
;
dpme
.
style
.
border
=
"none"
;
}
},
// setstyle (newindex, index, key) {
// if (key != undefined || this.keyy == index) {
// if (key != undefined) {
// this.keyy = key
// }
// this.loadComponent(this.$refs.sfq[newindex].$children[this.keyy].$attrs.re.form);
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el
// dpme.style.backgroundColor = "#f5f5f5";
// dpme.style.color = "#0079fe";
// dpme.style.borderRight = "4px solid #0079fe";
// } else {
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el
// dpme.style.backgroundColor = "#ffffff";
// dpme.style.color = "black";
// dpme.style.border = "none";
// }
// },
/**
* @description:
addlist
* @description:
tap
* @param {*} data
* @author: renchao
* 新增列表功能
*/
addlist
(
data
,
index
)
{
if
(
index
!=
undefined
)
{
let
newindex
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
data
.
bdcdyid
;
});
this
.
setstyle
(
newindex
,
index
);
this
.
currentSelectProps
.
bdcdyid
=
data
.
bdcdyid
;
this
.
loadComponent
(
data
.
form
);
}
else
{
let
newindex
=
this
.
sfqdata
.
findIndex
((
item
)
=>
{
return
item
.
bdcdyid
==
data
.
bdcdyid
;
});
this
.
setstyle
(
newindex
,
index
,
this
.
iskey
);
this
.
currentSelectProps
.
bdcdyid
=
data
.
bdcdyid
;
}
},
tap
(
data
,
index
)
{
this
.
loadComponent
(
data
.
form
);
},
/**
* @description: taplist
* @param {*} data
* @author: renchao
* 新增列表功能
*/
taplist
(
data
,
index
)
{
this
.
loadComponent
(
data
.
form
);
this
.
isActive
=
index
;
},
/**
* @description: loadComponent
* @param {*} form
...
...
@@ -390,33 +387,41 @@ export default {
/
deep
/
.el-collapse-item__content
{
padding-bottom
:
5px
;
}
/
deep
/
.
sfqcontent
{
white-space
:
wrap
;
/
deep
/
.
unselected
{
//
white-space
:
wrap
;
border
:
none
;
padding
:
0
;
margin
:
0
;
cursor
:
pointer
;
width
:
100%
;
height
:
100px
;
word-break
:
break-word
;
display
:
inline
;
span
{
font-size
:
13px
;
display
:
block
;
line-height
:
15px
;
margin-left
:
70px
;
}
width
:
250px
;
height
:
45px
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
border-right
:
4px
solid
#f5f5f5
;
margin
:
auto
;
text-align
:
center
;
align-items
:
center
;
span
{
width
:
100%
;
display
:
inline-block
;
justify-content
:
center
;
align-items
:
center
;
}
}
.sfqcontent
:hover
{
background-color
:
#f5f5f5
;
color
:
black
;
}
.sfqcontent
:focus
{
.select
{
border
:
none
;
cursor
:
pointer
;
width
:
250px
;
height
:
45px
;
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
margin
:
auto
;
text-align
:
center
;
align-items
:
center
;
span
{
width
:
100%
;
display
:
inline-block
;
justify-content
:
center
;
align-items
:
center
;
}
}
</
style
>
...
...
src/views/workflow/components/szxx.vue
View file @
f2140c0
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-
08 16:38:43
* @LastEditTime: 2023-09-
18 15:24:05
-->
<
template
>
<div
class=
"szxx"
>
...
...
@@ -235,7 +235,7 @@ export default {
color
:
#8b4534
;
}
.szxx_body
{
height
:
280px
;
min-
height
:
280px
;
}
}
.zs-card
{
...
...
src/views/ywbl/ywsq/components/fwsyq.vue
View file @
f2140c0
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
3 11:19:54
* @LastEditTime: 2023-09-1
8 16:22:28
-->
<
template
>
<div
class=
"from-clues"
>
<el-tabs
type=
"card"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
v-if=
"!isJump"
>
<el-tab-pane
label=
"自然幢"
name=
"zrz"
></el-tab-pane>
<el-tab-pane
label=
"多幢"
name=
"dz"
></el-tab-pane>
<el-tab-pane
label=
"多幢"
name=
"dz"
v-if=
"sqywInfo.djywbm !== 'B37100'"
></el-tab-pane>
</el-tabs>
<div
v-show=
"activeName == 'zrz'"
>
<div
class=
"from-clues-header"
>
...
...
@@ -336,8 +336,8 @@
let
refs
=
'table1'
;
if
(
this
.
activeName
==
'dz'
)
{
refs
=
'table'
;
this
.
$refs
[
refs
].
clearSelection
()
}
else
{
}
else
{
this
.
sqywInfo
.
djywbm
!==
'B37100'
&&
this
.
$refs
[
refs
].
clearSelection
()
}
const
bdcdysz
=
this
.
bdcdysz
if
(
bdcdysz
.
length
>
0
)
{
...
...
src/views/ywbl/ywsq/javascript/slectBdcdata.js
View file @
f2140c0
...
...
@@ -40,7 +40,7 @@ export function queueDjywmc (djywbm, djqxbm) {
case
"A04100"
:
//国有建设用地使用权/房屋所有权(首次登记)
case
"A06100"
:
// 宅基地使用权/房屋所有权 || 首次登记
case
"A08100"
:
// 集体建设用地使用权/房屋所有权 || 首次登记
case
"B37100"
:
case
"B37100"
:
// 在建工程抵押权 || 首次登记
vm
=
"fwsyq"
;
break
;
case
"A04200"
:
//国有建设用地使用权/房屋所有权 || 转移登记
...
...
Please
register
or
sign in
to post a comment