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
fcdf9269
Commit
fcdf9269
authored
Dec 28, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹框双击选择selectEty方法修改,增加请求地址有()下标时的处理
parent
732a3add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
commonProcess.js
src/mixin/commonProcess.js
+16
-4
No files found.
src/mixin/commonProcess.js
View file @
fcdf9269
...
...
@@ -354,10 +354,22 @@ export default {
* @param {String} rulePath 路径
*/
selectEty
(
val
,
rulePath
)
{
const
props
=
rulePath
.
replaceAll
(
"."
,
"_"
)
const
obj
=
{}
obj
[
props
]
=
val
;
Utils
.
copyValueFromVO
(
this
.
model
,
obj
);
// const props = rulePath.replaceAll(".", "_")
// const obj = {}
// obj[props] = val;
// Utils.copyValueFromVO(this.model, obj);
if
(
rulePath
.
indexOf
(
"("
)
>
0
)
{
//请求地址有"()"下标时,如setmod.setglg.setgll(2).setgrp.snd756.pts.extkey
let
tempRulePath
=
rulePath
let
rulePath
=
""
const
reg
=
/
\((\d
+
)\)
/
while
(
reg
.
test
(
tempRulePath
))
{
const
match
=
tempRulePath
.
match
(
reg
)
rulePath
+=
tempRulePath
.
substring
(
0
,
match
.
index
)
+
"["
+
(
parseInt
(
match
[
1
])
-
1
)
+
"]"
tempRulePath
=
tempRulePath
.
substring
(
match
.
index
+
match
[
0
].
length
)
}
rulePath
+=
tempRulePath
}
_
.
set
(
this
.
model
,
rulePath
,
val
)
this
.
executeRule
(
rulePath
,
{
"selectStatus"
:
1
,
'EventType'
:
1
}).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
...
...
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