Commit 0fa8667a by qiaoyanqi

没有页签

parent b0a8f7db
......@@ -12,7 +12,7 @@
* @param {string} uuid - 打开单据的uuid
*/
export function setQueryTag(querySet, index, templateName,uuid) {
let curTagId = uuid || 'router';
let curTagId = window.nros.context.getCurrTag()?uuid:'router';
if(!GMS.queryObject){
GMS.queryObject = {};
}
......@@ -27,14 +27,14 @@ export function setQueryTag(querySet, index, templateName,uuid) {
//获取查询条件
export function getQuerySet() {
let curTagId = window.nros.context.getCurrTag() || "router";
return GMS.queryObject && GMS.queryObject[curTagId].currentDataQueryConditionSet;
return GMS.queryObject && GMS.queryObject[curTagId] && GMS.queryObject[curTagId].currentDataQueryConditionSet;
console.log('没有获取到查询条件');
}
//获取下标
export function getQueryIndex() {
let curTagId = window.nros.context.getCurrTag() || "router";
return GMS.queryObject && GMS.queryObject[curTagId].index;
return GMS.queryObject && GMS.queryObject[curTagId] && GMS.queryObject[curTagId].index;
console.log('没有获取到下标');
}
......@@ -59,7 +59,7 @@ export function setQueryIndex(index) {
//如果index为-1的话,设置为0
export function initIndexZero() {
let curTagId = window.nros.context.getCurrTag() || "router";
if (GMS.queryObject && getQueryIndex() == -1) {
if (GMS.queryObject && GMS.queryObject[curTagId] && getQueryIndex() == -1) {
GMS.queryObject[curTagId].index = 0;
}
}
......@@ -67,7 +67,7 @@ export function initIndexZero() {
//下标减一
export function minusIndex() {
let curTagId = window.nros.context.getCurrTag() || "router";
if (GMS.queryObject) {
if (GMS.queryObject && GMS.queryObject[curTagId]) {
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