Commit df951d37 by qiaoyanqi

提交

parent 2f945dc9
...@@ -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; //上张下张用
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment