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
c4e6187f
authored
2023-03-02 16:18:52 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
79cbd3d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
413 additions
and
385 deletions
src/views/registerBook/tablestyle.scss
src/views/registerBook/zdjbxx.vue
src/views/system/dictionaries/components/editDialog.vue
src/views/registerBook/tablestyle.scss
0 → 100644
View file @
c4e6187
.tablebox
{
overflow-x
:
auto
;
width
:
100%
;
height
:
95%
;
background
:
#fff
;
text-align
:
center
;
padding
:
4px
;
overflow-y
:
scroll
;
padding-top
:
20px
;
padding
:
20px
40px
;
.Table
{
width
:
100%
;
color
:
#333
;
tr
{
td
:nth-child
(
1
)
{
width
:
140px
;
text-align
:
right
;
padding-right
:
15px
;
background-color
:
#f8f8fa
;
color
:
#6b6b6b
;
}
td
:nth-child
(
3
)
{
width
:
140px
;
padding-right
:
15px
;
text-align
:
right
;
background-color
:
#f8f8fa
;
color
:
#6b6b6b
;
}
td
:nth-child
(
2
)
{
text-align
:
left
;
padding-left
:
15px
;
color
:
#4a4a4a
;
}
td
:nth-child
(
4
)
{
text-align
:
left
;
padding-left
:
15px
;
color
:
#4a4a4a
;
}
}
td
{
border
:
1px
solid
#e8e8e8
;
line-height
:
42px
;
padding
:
0
4px
;
font-size
:
14px
;
}
.title
{
line-height
:
68px
;
font-size
:
22px
!
important
;
color
:
#4a4a4a
!
important
;
background-color
:
#eceef2
!
important
;
text-align
:
center
!
important
;
}
.unit
{
text-align
:
right
;
}
.title3
{
width
:
140px
!
important
;
}
.bhqk
{
width
:
140px
;
padding
:
0
!
important
;
.box
{
width
:
745px
;
overflow
:
auto
;
}
.test
{
}
table
{
.bhqkTh
{
width
:
110px
;
line-height
:
38px
;
background-color
:
#f8f8fa
;
border
:
1px
solid
#e8e8e8
;
font-weight
:
bold
;
text-align
:
left
;
}
td
{
width
:
180px
;
}
}
}
}
}
src/views/registerBook/zdjbxx.vue
View file @
c4e6187
<
template
>
<div
class=
"zdxx"
>
<div
class=
"tablebox"
>
<table
cellpadding=
"0"
cellspacing=
"0"
class=
"
zdxx
Table"
>
<table
cellpadding=
"0"
cellspacing=
"0"
class=
"Table"
>
<col
width=
"80"
/>
<col
width=
"60"
/>
<col
width=
"90"
/>
<col
width=
"235"
/>
<col
width=
"150"
/>
<tr>
<td
colspan=
"
6
"
class=
"title"
>
宗地基本信息
</td>
<td
colspan=
"
12
"
class=
"title"
>
宗地基本信息
</td>
</tr>
<tr>
<td
colspan=
"2"
>
不动产类型
:
</td>
<td
colspan=
"
2
"
>
{{
bdclxList
[
zdjbxx
.
bdclx
]
}}
</td>
<td>
单位
:
</td>
<td>
{{
zdjbxx
.
mjdw
}}
</td>
<td
colspan=
"2"
>
不动产类型
</td>
<td
colspan=
"
3
"
>
{{
bdclxList
[
zdjbxx
.
bdclx
]
}}
</td>
<td>
单位
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
mjdw
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
坐落
</td>
<td
colspan=
"
4
"
>
{{
zdjbxx
.
zl
}}
</td>
<td
colspan=
"
10
"
>
{{
zdjbxx
.
zl
}}
</td>
</tr>
<tr>
<td
rowspan=
"8"
class=
"title2"
>
土地状况
</td>
<td
rowspan=
"8"
c
olspan=
"2"
c
lass=
"title2"
>
土地状况
</td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地面积
</td>
<td>
{{
zdjbxx
.
zdmj
}}
</td>
<td>
宗地面积
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
zdmj
}}
</td>
<td>
用途
</td>
<td>
{{
zdjbxx
.
ghytmc
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
等级
</td>
<td>
{{
zdjbxx
.
djmc
}}
</td>
<td>
等级
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
djmc
}}
</td>
<td>
价格
</td>
<td>
{{
zdjbxx
.
jg
}}
</td>
<td
colspan=
"3"
>
{{
zdjbxx
.
jg
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
权利类型
</td>
<td>
{{
zdjbxx
.
qllxmc
}}
</td>
<td>
权利类型
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
qllxmc
}}
</td>
<td>
权利性质
</td>
<td>
{{
zdjbxx
.
qlxzmc
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
权利设定方式
</td>
<td>
{{
zdjbxx
.
qlsdfs
}}
</td>
<td>
权利设定方式
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
qlsdfs
}}
</td>
<td>
容积率
</td>
<td>
{{
zdjbxx
.
rjl
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
建筑密度
</td>
<td>
{{
zdjbxx
.
jzmd
}}
</td>
<td>
建筑密度
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
jzmd
}}
</td>
<td>
建筑限高
</td>
<td>
{{
zdjbxx
.
jzxg
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
图幅号
</td>
<td>
{{
zdjbxx
.
tfh
}}
</td>
<td>
图幅号
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
tfh
}}
</td>
<td>
地籍号
</td>
<td>
{{
zdjbxx
.
djh
}}
</td>
<td
colspan=
"3"
>
{{
zdjbxx
.
djh
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
档案号
</td>
<td>
{{
zdjbxx
.
dah
}}
</td>
<td>
档案号
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
dah
}}
</td>
<td>
地块代码
</td>
<td>
{{
zdjbxx
.
dkdm
}}
</td>
<td
colspan=
"3"
>
{{
zdjbxx
.
dkdm
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地四至-东
</td>
<td
colspan=
"
4
"
>
{{
zdjbxx
.
zdszd
}}
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
zdszd
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地四至-南
</td>
<td
colspan=
"
4
"
>
{{
zdjbxx
.
zdszn
}}
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
zdszn
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地四至-西
</td>
<td
colspan=
"
4
"
>
{{
zdjbxx
.
zdszx
}}
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
zdszx
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
宗地四至-北
</td>
<td
colspan=
"
4
"
>
{{
zdjbxx
.
zdszb
}}
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
zdszb
}}
</td>
</tr>
<tr>
<td
class=
"title2"
height=
"96
"
>
备注
</td>
<td
colspan=
"
5
"
>
{{
zdjbxx
.
bz
}}
</td>
<td
class=
"title2"
colspan=
"2"
height=
"50
"
>
备注
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
bz
}}
</td>
</tr>
<tr>
<td
class=
"title2"
height=
"96
"
>
附记
</td>
<td
colspan=
"
5
"
>
{{
zdjbxx
.
fj
}}
</td>
<td
class=
"title2"
colspan=
"2"
height=
"50
"
>
附记
</td>
<td
colspan=
"
8
"
>
{{
zdjbxx
.
fj
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
状态
</td>
<td
colspan=
"2"
>
{{
zdjbxx
.
zt
}}
</td>
<td>
区县代码
</td>
<td>
{{
zdjbxx
.
qxdm
}}
</td>
<td
colspan=
"4"
>
{{
zdjbxx
.
qxdm
}}
</td>
</tr>
<tr
v-
show
=
"showGroup"
>
<td
c
lass=
"title2
"
>
变化情况
</td>
<td
colspan=
"
5
"
class=
"bhqk"
>
<tr
v-
if
=
"showGroup"
>
<td
c
olspan=
"2"
class=
"title3
"
>
变化情况
</td>
<td
colspan=
"
4
"
class=
"bhqk"
>
<div
class=
"box"
>
<table
cellspacing=
"0"
cellpadding=
"0"
:width=
"bhqkTableWidth"
>
<tr
v-for=
"(item, index) in bhqkColumns"
:key=
"index"
>
<td
class=
"bhqkTh"
>
{{
item
.
label
}}
</td>
<!--
<td
v-for=
"(item2, index2) in zdbhqks"
:key=
"index2"
>
{{
item2
[
item
.
prop
]
}}
</td>
-->
</tr>
</table>
</div>
...
...
@@ -159,7 +156,7 @@
zdjbxx
:
{},
zdbhqks
:
[],
propsParam
:
this
.
$attrs
,
showGroup
:
fals
e
,
showGroup
:
tru
e
,
bdclxList
:
[
''
,
'宗地'
,
'宗海'
,
'自然幢'
,
'多幢'
,
'构筑物'
,
'林权'
,
'户'
]
};
},
...
...
@@ -183,71 +180,11 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"./tablestyle.scss"
;
.zdxx
{
width
:
100%
;
height
:
100%
;
background-color
:
#f5f5f5
;
padding
:
5px
;
}
.tablebox
{
overflow-x
:
auto
;
width
:
100%
;
height
:
100%
;
background
:
#fff
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
text-align
:
center
;
padding
:
4px
;
overflow-y
:
scroll
;
.zdxxTable
{
width
:
100%
;
color
:
#333
;
td
{
border
:
1px
solid
rgb
(
228
,
228
,
228
);
line-height
:
30px
;
padding
:
0
4px
;
}
.title
{
line-height
:
68px
;
font-size
:
20px
;
}
.unit
{
text-align
:
right
;
}
.title2
{
writing-mode
:
vertical-lr
;
letter-spacing
:
6px
;
}
.bhqk
{
padding
:
0
;
.box
{
width
:
745px
;
overflow
:
auto
;
}
.test
{
}
table
{
.bhqkTh
{
width
:
110px
;
line-height
:
40px
;
background-color
:
#f5f5f5
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
font-weight
:
bold
;
}
td
{
width
:
180px
;
}
}
}
}
}
</
style
>
...
...
src/views/system/dictionaries/components/editDialog.vue
View file @
c4e6187
...
...
@@ -23,315 +23,315 @@
</
template
>
<
script
>
import
{
getUuid
,
judgeSort
,
realMove
,
findParents
,
removeTreeListItem
}
from
'@/utils/operation'
import
{
editDictNode
,
getChildDictList
}
from
'@/api/user'
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
details
:
{
type
:
Object
,
default
:
{}
}
},
data
()
{
return
{
key
:
0
,
myValue
:
this
.
value
,
keyList
:
[],
ruleForm
:
{
dcode
:
''
,
dname
:
''
},
column
:
[],
columns
:
[
{
width
:
'70'
,
renderHeader
:
(
h
,
scope
)
=>
{
return
(
<
div
>
{
this
.
details
.
isenable
===
'0'
?
<
span
>
序号
<
/span>
:
<
i
class
=
"el-icon-plus"
onClick
=
{()
=>
{
this
.
handleAdd
()
}}
style
=
"cursor:pointer;color:#409EFF"
><
/i
>
}
<
/div>
)
},
render
:
(
h
,
scope
)
=>
{
return
(
<
span
>
{
scope
.
row
.
index
}
<
/span
>
)
}
import
{
getUuid
,
judgeSort
,
realMove
,
findParents
,
removeTreeListItem
}
from
'@/utils/operation'
import
{
editDictNode
,
getChildDictList
}
from
'@/api/user'
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
details
:
{
type
:
Object
,
default
:
{}
}
},
data
()
{
return
{
key
:
0
,
myValue
:
this
.
value
,
keyList
:
[],
ruleForm
:
{
dcode
:
''
,
dname
:
''
},
{
prop
:
'dcode'
,
width
:
'100'
,
label
:
'字典项编码'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
codeShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
column
:
[],
columns
:
[
{
width
:
'70'
,
renderHeader
:
(
h
,
scope
)
=>
{
return
(
<
div
>
{
this
.
details
.
isenable
===
'0'
?
<
span
>
序号
<
/span>
:
<
i
class
=
"el-icon-plus"
onClick
=
{()
=>
{
this
.
handleAdd
()
}}
style
=
"cursor:pointer;color:#409EFF"
><
/i
>
}
<
/div>
)
},
render
:
(
h
,
scope
)
=>
{
return
(
<
span
>
{
scope
.
row
.
index
}
<
/span
>
)
}
},
{
prop
:
'dcode'
,
width
:
'100'
,
label
:
'字典项编码'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
codeShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
codeShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'dname'
,
label
:
'字典项名称'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
nameShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
nameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
codeShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'dname'
,
label
:
'字典项名称'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"字典项编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
nameShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
nameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
el
-
input
placeholder
=
"字典项名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
nameShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
nameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'normcode'
,
label
:
'部标编码'
,
width
:
'100'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"部标编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
normcodeShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normcodeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
el
-
input
placeholder
=
"字典项名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
nameShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
nameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'normcode'
,
label
:
'部标编码'
,
width
:
'100'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"部标编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
normcodeShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normcodeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
el
-
input
placeholder
=
"部标编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
normcodeShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normcodeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'normname'
,
label
:
'部标名称'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"部标名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
normnameShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normnameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
el
-
input
placeholder
=
"部标编码"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
normcodeShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normcodeShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
maxlength
=
'8'
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'normname'
,
label
:
'部标名称'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
input
placeholder
=
"部标名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
scope
.
row
.
normnameShow
}
v
-
fo
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normnameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
el
-
input
placeholder
=
"部标名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
normnameShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normnameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'isenable'
,
width
:
'160'
,
label
:
'是否禁用'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
radio
-
group
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
model
=
{
scope
.
row
.
isenable
}
>
<
el
-
radio
label
=
"1"
>
启用
<
/el-radio
>
<
el
-
radio
label
=
"0"
>
禁用
<
/el-radio
>
<
/el-radio-group
>
)
<
el
-
input
placeholder
=
"部标名称"
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
show
=
{
!
scope
.
row
.
normnameShow
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onFocus
=
{()
=>
{
this
.
itemShowFalse
();
scope
.
row
.
normnameShow
=
true
;
}}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
this
.
itemShowFalse
();
scope
.
row
.
codeShow
=
true
;
}}
><
/el-input
>
<
/div
>
)
}
},
{
prop
:
'isenable'
,
width
:
'160'
,
label
:
'是否禁用'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
radio
-
group
disabled
=
{
this
.
details
.
isenable
==
2
}
v
-
model
=
{
scope
.
row
.
isenable
}
>
<
el
-
radio
label
=
"1"
>
启用
<
/el-radio
>
<
el
-
radio
label
=
"0"
>
禁用
<
/el-radio
>
<
/el-radio-group
>
)
}
},
{
width
:
'130'
,
label
:
'移动'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
moveUpward
(
scope
.
$index
,
scope
.
row
)
}}
>
上移
<
/el-button
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
moveDown
(
scope
.
$index
,
scope
.
row
)
}}
>
下移
<
/el-button
>
<
/div
>
)
}
},
{
width
:
'150'
,
label
:
'操作'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
style
=
"margin-right:10px"
onClick
=
{()
=>
{
this
.
handleAddSubordinate
(
scope
.
row
)
}}
>
增加下级
<
/el-button
>
<
el
-
button
type
=
"text"
style
=
"margin-left:0"
onClick
=
{()
=>
{
this
.
handleMinus
(
scope
.
$index
,
scope
.
row
)
}}
>
删除
<
/el-button
>
<
/div
>
)
}
}
],
tableData
:
[]
}
},
watch
:
{
value
(
val
)
{
this
.
myValue
=
val
},
'details.bsmDict'
:
{
handler
:
function
(
newValue
)
{
if
(
!
this
.
value
)
return
this
.
$startLoading
();
getChildDictList
(
newValue
).
then
(
res
=>
{
this
.
$endLoading
();
let
{
result
}
=
res
this
.
tableData
=
result
?
result
:
[]
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
item
.
index
=
index
+
1
})
})
},
{
width
:
'130'
,
label
:
'移动'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
moveUpward
(
scope
.
$index
,
scope
.
row
)
}}
>
上移
<
/el-button
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
moveDown
(
scope
.
$index
,
scope
.
row
)
}}
>
下移
<
/el-button
>
<
/div
>
)
immediate
:
true
},
details
:
{
handler
:
function
(
newValue
)
{
if
(
newValue
.
isenable
==
2
)
{
this
.
column
=
this
.
columns
.
slice
(
0
,
6
)
}
else
{
this
.
column
=
this
.
columns
}
this
.
ruleForm
=
newValue
.
rowData
this
.
addIndexes
()
this
.
key
++
},
{
width
:
'150'
,
label
:
'操作'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
style
=
"margin-right:10px"
onClick
=
{()
=>
{
this
.
handleAddSubordinate
(
scope
.
row
)
}}
>
增加下级
<
/el-button
>
<
el
-
button
type
=
"text"
style
=
"margin-left:0"
onClick
=
{()
=>
{
this
.
handleMinus
(
scope
.
$index
,
scope
.
row
)
}}
>
删除
<
/el-button
>
<
/div
>
)
}
}
],
tableData
:
[]
}
},
watch
:
{
value
(
val
)
{
this
.
myValue
=
val
deep
:
true
}
},
'details.bsmDict'
:
{
handler
:
function
(
newValue
)
{
if
(
!
this
.
value
)
return
this
.
$startLoading
();
getChildDictList
(
newValue
).
then
(
res
=>
{
this
.
$endLoading
();
let
{
result
}
=
res
this
.
tableData
=
result
?
result
:
[]
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
methods
:
{
// 添加索引
addIndexes
(
data
=
this
.
tableData
,
isAdd
=
true
)
{
data
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
)
{
item
.
codeShow
=
true
item
.
nameShow
=
false
item
.
normcodeShow
=
false
item
.
normnameShow
=
false
}
else
{
item
.
codeShow
=
false
item
.
nameShow
=
false
item
.
normcodeShow
=
false
item
.
normnameShow
=
false
}
if
(
isAdd
)
{
item
.
index
=
index
+
1
})
}
if
(
item
.
children
)
{
this
.
addIndexes
(
item
.
children
,
false
)
}
})
},
immediate
:
true
},
details
:
{
handler
:
function
(
newValue
)
{
if
(
newValue
.
isenable
==
2
)
{
this
.
column
=
this
.
columns
.
slice
(
0
,
6
)
}
else
{
this
.
column
=
this
.
columns
}
this
.
ruleForm
=
newValue
.
rowData
this
.
addIndexes
()
this
.
key
++
},
deep
:
true
}
},
methods
:
{
// 添加索引
addIndexes
(
data
=
this
.
tableData
,
isAdd
=
true
)
{
data
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
)
{
item
.
codeShow
=
true
item
.
nameShow
=
false
item
.
normcodeShow
=
false
item
.
normnameShow
=
false
}
else
{
itemShowFalse
()
{
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
item
.
codeShow
=
false
item
.
nameShow
=
false
item
.
normcodeShow
=
false
item
.
normnameShow
=
false
}
if
(
isAdd
)
{
item
.
index
=
index
+
1
}
if
(
item
.
children
)
{
this
.
addIndexes
(
item
.
children
,
false
)
}
})
},
itemShowFalse
()
{
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
item
.
codeShow
=
false
item
.
nameShow
=
false
item
.
normcodeShow
=
false
item
.
normnameShow
=
false
})
},
handleMinus
(
index
,
row
)
{
this
.
$confirm
(
'此操作将永久删除, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
removeTreeListItem
(
this
.
tableData
,
row
.
bsmDict
)
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
})
})
},
handleSubmit
()
{
editDictNode
({
bsmDict
:
this
.
details
.
rowData
.
bsmDict
,
typeid
:
this
.
details
.
rowData
.
typeid
,
children
:
this
.
tableData
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
},
handleMinus
(
index
,
row
)
{
this
.
$confirm
(
'此操作将永久删除, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
removeTreeListItem
(
this
.
tableData
,
row
.
bsmDict
)
this
.
$message
({
message
:
'修改成功
'
,
type
:
'success
'
type
:
'success
'
,
message
:
'删除成功!
'
})
this
.
$emit
(
'input'
,
false
)
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
})
})
},
handleSubmit
()
{
editDictNode
({
bsmDict
:
this
.
details
.
rowData
.
bsmDict
,
typeid
:
this
.
details
.
rowData
.
typeid
,
children
:
this
.
tableData
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
})
this
.
$emit
(
'input'
,
false
)
}
})
},
closeDialog
()
{
this
.
$emit
(
'input'
,
false
)
},
// 增加下级
handleAddSubordinate
(
row
)
{
if
(
!
row
.
children
)
{
row
.
children
=
[]
}
})
},
closeDialog
()
{
this
.
$emit
(
'input'
,
false
)
},
// 增加下级
handleAddSubordinate
(
row
)
{
if
(
!
row
.
children
)
{
row
.
children
=
[]
row
.
children
.
push
(
{
dcode
:
''
,
dname
:
''
,
isenable
:
'1'
,
normcode
:
''
,
normname
:
''
,
bsmDict
:
getUuid
(
32
),
typeid
:
row
.
typeid
,
}
)
this
.
keyList
=
[];
this
.
keyList
.
push
(
row
.
bsmDict
)
},
// 增加
handleAdd
()
{
this
.
$nextTick
(()
=>
{
let
container
=
this
.
$el
.
querySelector
(
'.el-table__body-wrapper'
);
container
.
scrollTop
=
container
.
scrollHeight
;
})
this
.
tableData
.
push
(
{
dcode
:
''
,
dname
:
''
,
isenable
:
'1'
,
normcode
:
''
,
normname
:
''
,
bsmDict
:
getUuid
(
32
),
typeid
:
this
.
ruleForm
.
typeid
,
}
)
this
.
addIndexes
()
this
.
key
++
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'UP'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'DOWN'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
}
row
.
children
.
push
(
{
dcode
:
''
,
dname
:
''
,
isenable
:
'1'
,
normcode
:
''
,
normname
:
''
,
bsmDict
:
getUuid
(
32
),
typeid
:
row
.
typeid
,
}
)
this
.
keyList
=
[];
this
.
keyList
.
push
(
row
.
bsmDict
)
},
// 增加
handleAdd
()
{
this
.
$nextTick
(()
=>
{
let
container
=
this
.
$el
.
querySelector
(
'.el-table__body-wrapper'
);
container
.
scrollTop
=
container
.
scrollHeight
;
})
this
.
tableData
.
push
(
{
dcode
:
''
,
dname
:
''
,
isenable
:
'1'
,
normcode
:
''
,
normname
:
''
,
bsmDict
:
getUuid
(
32
),
typeid
:
this
.
ruleForm
.
typeid
,
}
)
this
.
addIndexes
()
this
.
key
++
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'UP'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'DOWN'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
@import
"~@/styles/dialogBoxheader.scss"
;
/
deep
/
.el-radio
{
margin-right
:
5px
!important
;
}
@import
"~@/styles/dialogBoxheader.scss"
;
/
deep
/
.el-radio
{
margin-right
:
5px
!important
;
}
</
style
>
...
...
Please
register
or
sign in
to post a comment