Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
df951d37
Commit
df951d37
authored
Mar 15, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
2f945dc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
queryTag.js
.../gms-plugin-billexpand/src/query-actions/util/queryTag.js
+40
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/query-actions/util/queryTag.js
View file @
df951d37
...
@@ -36,6 +36,14 @@ export function setQueryTag(querySet, index, templateName,uuid) {
...
@@ -36,6 +36,14 @@ export function setQueryTag(querySet, index, templateName,uuid) {
//获取查询条件
//获取查询条件
export
function
getQuerySet
()
{
export
function
getQuerySet
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
){
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
}
else
{
curTagId
=
'router'
}
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
].
currentDataQueryConditionSet
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
].
currentDataQueryConditionSet
;
console
.
log
(
'没有获取到查询条件'
);
console
.
log
(
'没有获取到查询条件'
);
}
}
...
@@ -43,6 +51,14 @@ export function getQuerySet() {
...
@@ -43,6 +51,14 @@ export function getQuerySet() {
//获取下标
//获取下标
export
function
getQueryIndex
()
{
export
function
getQueryIndex
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
){
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
}
else
{
curTagId
=
'router'
}
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
].
index
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
].
index
;
console
.
log
(
'没有获取到下标'
);
console
.
log
(
'没有获取到下标'
);
}
}
...
@@ -50,6 +66,14 @@ export function getQueryIndex() {
...
@@ -50,6 +66,14 @@ export function getQueryIndex() {
//给下标赋值
//给下标赋值
export
function
setQueryIndex
(
index
)
{
export
function
setQueryIndex
(
index
)
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
){
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
}
else
{
curTagId
=
'router'
}
if
(
GMS
.
queryObject
){
if
(
GMS
.
queryObject
){
if
(
index
==
"add"
)
{
if
(
index
==
"add"
)
{
GMS
.
queryObject
[
curTagId
].
index
=
getQueryIndex
()
*
1
+
1
;
GMS
.
queryObject
[
curTagId
].
index
=
getQueryIndex
()
*
1
+
1
;
...
@@ -68,6 +92,14 @@ export function setQueryIndex(index) {
...
@@ -68,6 +92,14 @@ export function setQueryIndex(index) {
//如果index为-1的话,设置为0
//如果index为-1的话,设置为0
export
function
initIndexZero
()
{
export
function
initIndexZero
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
){
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
}
else
{
curTagId
=
'router'
}
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
getQueryIndex
()
==
-
1
)
{
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
getQueryIndex
()
==
-
1
)
{
GMS
.
queryObject
[
curTagId
].
index
=
0
;
GMS
.
queryObject
[
curTagId
].
index
=
0
;
}
}
...
@@ -76,6 +108,14 @@ export function initIndexZero() {
...
@@ -76,6 +108,14 @@ export function initIndexZero() {
//下标减一
//下标减一
export
function
minusIndex
()
{
export
function
minusIndex
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
){
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
}
else
{
curTagId
=
'router'
}
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
])
{
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
])
{
GMS
.
queryObject
[
curTagId
].
index
=
getQueryIndex
()
*
1
-
1
;
//上张下张用
GMS
.
queryObject
[
curTagId
].
index
=
getQueryIndex
()
*
1
-
1
;
//上张下张用
}
}
...
...
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