Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
169002c7
Commit
169002c7
authored
Nov 03, 2023
by
yangxiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充对比功能
parent
ac0b7b32
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
4 deletions
+61
-4
index.js
src/business/brtset/event/index.js
+20
-0
index.js
src/business/litdck/event/index.js
+20
-0
index.js
src/business/litopn/event/index.js
+1
-4
index.js
src/business/trtset/event/index.js
+20
-0
No files found.
src/business/brtset/event/index.js
View file @
169002c7
...
...
@@ -50,6 +50,7 @@ export default {
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData
(
model
,
data
)
{
model
.
modifySet
=
[]
let
keysList
=
Object
.
keys
(
model
)
keysList
.
map
((
key
)
=>
{
if
(
data
[
key
])
{
...
...
@@ -142,7 +143,26 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`brtset.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
}
return
value
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
...
...
src/business/litdck/event/index.js
View file @
169002c7
...
...
@@ -54,6 +54,7 @@ export default {
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData
(
model
,
data
)
{
model
.
modifySet
=
[]
let
keysList
=
Object
.
keys
(
model
)
keysList
.
map
((
key
)
=>
{
if
(
data
[
key
])
{
...
...
@@ -146,7 +147,26 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
brdgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`litdck.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
}
return
value
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
...
...
src/business/litopn/event/index.js
View file @
169002c7
...
...
@@ -98,7 +98,6 @@ export default {
},
// 获取弹框表格数据
async
queryGridEtyPromptDialogData
(
type
,
ptytyp
)
{
console
.
log
(
"type=>"
,
type
)
let
params
=
{
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
ptytyp
:
ptytyp
,
...
...
@@ -118,7 +117,6 @@ export default {
...
row
,
};
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
lidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
...
...
@@ -129,8 +127,7 @@ export default {
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
...
...
src/business/trtset/event/index.js
View file @
169002c7
...
...
@@ -50,6 +50,7 @@ export default {
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData
(
model
,
data
)
{
model
.
modifySet
=
[]
let
keysList
=
Object
.
keys
(
model
)
keysList
.
map
((
key
)
=>
{
if
(
data
[
key
])
{
...
...
@@ -142,8 +143,27 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`trtset.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
}
return
value
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
this
.
handleChangeForm
(
key
,
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment