Commit a2335d68 by qiaoyanqi

上张页码不能无限减小

parent 948b88d9
...@@ -45,8 +45,12 @@ export default { ...@@ -45,8 +45,12 @@ export default {
if (data.data && data.data.id) { if (data.data && data.data.id) {
if (action == "down") { if (action == "down") {
GMS.queryObject.index++; GMS.queryObject.index++;
} else if (action == "upward") { } else if (action == "upward") {//上张不能无限减小
GMS.queryObject.index--; if(GMS.queryObject.index>0){
GMS.queryObject.index--;
}else{
GMS.queryObject.index = 0;
}
} else if (action == "first") { } else if (action == "first") {
GMS.queryObject.index = 0; GMS.queryObject.index = 0;
} else if (action == "last") { } else if (action == "last") {
......
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
}, },
detail(row) { detail(row) {
let billDefineName = this.convertOnlyReadBillDefine(this.bill.curForm.content.billdefine) let billDefineName = this.convertOnlyReadBillDefine(this.bill.curForm.content.billdefine)
let a = `/showDraftBillForm/${billDefineName}_R/${row.id}`; let a = `/showDraftBillForm/${billDefineName}_E/${row.id}`;//草稿查看详情改为_E并且为只读
let routeData = GMS.routerManager.getRouter().resolve({ let routeData = GMS.routerManager.getRouter().resolve({
path: a, path: a,
}); });
......
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