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
d1a1eecf
authored
2023-07-03 09:02:05 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登记薄查询字典转换
1 parent
f3bbb514
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
20 deletions
src/utils/dictionary.js
src/views/djbworkflow/djbBook/qlxxFormData.js
src/views/registerBook/diyaq.vue
src/utils/dictionary.js
View file @
d1a1eec
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-03 08:59:06
*/
import
store
from
'@/store'
export
function
getSjlx
(
level
)
{
const
resultMap
=
{
1
:
'系统数据'
,
...
...
@@ -5,4 +11,16 @@ export function getSjlx (level) {
3
:
'补录数据'
,
}
return
resultMap
[
level
]
||
resultMap
.
default
;
}
export
function
getDictLeabel
(
level
,
code
)
{
const
resultMap
=
store
.
getters
.
dictData
[
code
]
const
desiredObject
=
resultMap
.
find
(
obj
=>
obj
.
dcode
===
level
);
if
(
desiredObject
)
{
const
desiredName
=
desiredObject
.
dname
;
return
desiredName
}
else
{
return
''
}
}
\ No newline at end of file
...
...
src/views/djbworkflow/djbBook/qlxxFormData.js
View file @
d1a1eec
...
...
@@ -4,7 +4,7 @@ class data extends filter {
constructor
()
{
super
()
}
columns
()
{
columns
()
{
return
{
//空列值个数
emptycolNum
:
3
,
...
...
@@ -26,9 +26,10 @@ class data extends filter {
],
JSYDSYQ
:
[
{
prop
:
"cz"
,
label
:
"操作"
,
render
:
(
h
,
scope
)
=>
{
{
prop
:
"cz"
,
label
:
"操作"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
icon
=
"el-icon-edit-outline"
onClick
=
{()
=>
{
vm
.
openDialog
(
scope
.
row
)
}}
>
登记薄
<
/el-button
>
...
...
@@ -144,8 +145,9 @@ class data extends filter {
],
FDCQ2
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -283,8 +285,9 @@ class data extends filter {
],
NYDSYQ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -412,9 +415,9 @@ class data extends filter {
},
],
DYAQ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -423,6 +426,19 @@ class data extends filter {
{
prop
:
"dybdclx"
,
label
:
"抵押不动产类型"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'1'
}
>
土地
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'2'
}
>
土地和房屋
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'3'
}
>
林地和林木
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'4'
}
>
土地和在建建筑物
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'5'
}
>
海域
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'6'
}
>
海域和构筑物
<
/span
>
<
span
v
-
show
=
{
scope
.
row
.
dybdclx
==
'7'
}
>
其它
<
/span
>
<
/div
>
)
}
},
{
prop
:
"djlxmc"
,
...
...
@@ -572,8 +588,9 @@ class data extends filter {
],
DYIQ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -666,8 +683,9 @@ class data extends filter {
],
YGDJ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -792,8 +810,9 @@ class data extends filter {
],
CFDJ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
@@ -903,8 +922,9 @@ class data extends filter {
],
YYDJ
:
[
{
prop
:
"cz"
,
label
:
"操作"
{
prop
:
"cz"
,
label
:
"操作"
},
{
prop
:
"qszt"
,
...
...
src/views/registerBook/diyaq.vue
View file @
d1a1eec
...
...
@@ -59,7 +59,7 @@
<
script
>
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getSjlx
,
getDictLeabel
}
from
"@/utils/dictionary.js"
;
import
{
getDiyaqList
}
from
"@/api/registerBook.js"
;
export
default
{
data
()
{
...
...
@@ -94,6 +94,7 @@
this
.
tableData
=
res
.
result
;
this
.
tableData
.
forEach
((
item
)
=>
{
item
.
sjlx
=
getSjlx
(
item
.
sjlx
);
item
.
dybdclx
=
getDictLeabel
(
item
.
dybdclx
,
'A27'
)
});
if
(
this
.
tableData
.
length
<
datas
.
columns
().
emptycolNum
)
{
this
.
emptycolNum
=
...
...
Please
register
or
sign in
to post a comment