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
406a5855
authored
2023-08-16 14:11:33 +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
5626fa9e
c65d3597
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
src/utils/dictionary.js
src/views/registerBook/ldsyq.vue
src/views/ywbl/ywsq/components/selectSllm.vue
src/utils/dictionary.js
View file @
406a585
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
7-03 08:59:06
* @LastEditTime: 2023-0
8-16 11:30:45
*/
import
store
from
'@/store'
...
...
@@ -27,12 +27,18 @@ export function getSjlx (level) {
*/
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
''
function
findNode
(
tree
,
func
)
{
for
(
const
node
of
tree
)
{
if
(
func
(
node
))
return
node
if
(
node
.
children
)
{
const
res
=
findNode
(
node
.
children
,
func
)
if
(
res
)
return
res
}
}
return
{
dname
:
""
}
}
let
data
=
findNode
(
resultMap
,
(
node
)
=>
{
return
node
.
dcode
===
level
})
return
data
.
dname
}
\ No newline at end of file
...
...
src/views/registerBook/ldsyq.vue
View file @
406a585
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-1
1 15:33:53
* @LastEditTime: 2023-08-1
6 11:29:20
-->
<
template
>
<div
class=
"djxxTable"
>
...
...
@@ -59,7 +59,7 @@
<
script
>
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getSjlx
,
getDictLeabel
}
from
"@/utils/dictionary.js"
;
import
{
getLqList
}
from
"@/api/djbDetail.js"
;
export
default
{
data
()
{
...
...
@@ -101,6 +101,9 @@ export default {
this
.
tableData
=
res
.
result
;
this
.
tableData
.
forEach
((
item
)
=>
{
item
.
sjlx
=
getSjlx
(
item
.
sjlx
);
item
.
ldsyqxz
=
getDictLeabel
(
item
.
ldsyqxz
,
'A45'
)
item
.
lz
=
getDictLeabel
(
item
.
lz
,
'A26'
)
item
.
qy
=
getDictLeabel
(
item
.
qy
,
'A52'
)
});
if
(
this
.
tableData
.
length
<
datas
.
columns
().
emptycolNum
)
{
this
.
emptycolNum
=
...
...
src/views/ywbl/ywsq/components/selectSllm.vue
View file @
406a585
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-15 14:
01:37
* @LastEditTime: 2023-08-15 14:
36:06
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -110,10 +110,8 @@
}
this
.
loading
=
true
startBusinessFlow
({
bsmSqyw
:
this
.
bsmSqyw
,
bsmSqyw
:
this
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
this
.
bdcdysz
,
djqxbm
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodecode
:
""
,
djqxmc
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodename
:
""
,
}).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
...
...
Please
register
or
sign in
to post a comment