54
54
<div class =" mydiv" >
55
55
<v-row class =" pa-0 ma-0" >
56
56
<v-col cols =" 12" class =" pa-0 ma-0" >
57
- <!-- <v-row mt-0>s
57
+ <!-- <v-row mt-0>s
58
58
<v-col><span class="text-caption">tab data= {{ directory }}</span></v-col>
59
59
<v-col><span class="text-caption">curr tab = {{ tmpDebgug }}</span></v-col>
60
- </v-row>-->
60
+ </v-row> -->
61
61
<!-- <v-row mt-0><v-col><span class="text-caption">debug value = {{ printerMode }}</span></v-col></v-row> -->
62
62
<v-row >
63
63
<v-tabs class =" elevation-2 pa-0 ma-0 mytabs-default" v-model =" getCurrTabIndex" >
@@ -971,9 +971,10 @@ export default {
971
971
bSBCCInstalled: false ,
972
972
showSBCCEdit: false ,
973
973
tmpSBCCDef: {},
974
- btnCmdVersion: ' 01.03.03' ,
974
+ lastLayoutTabID: null ,
975
+ btnCmdVersion: ' 01.03.04' ,
975
976
btnCmd : {
976
- btnCmdVersion: ' 01.03.03 ' ,
977
+ btnCmdVersion: ' 01.03.04 ' ,
977
978
btnCmdIDUpdateRun: true ,
978
979
systemSettings: {
979
980
lastID: 1 ,
@@ -1650,6 +1651,7 @@ export default {
1650
1651
async editModeToggle (){
1651
1652
this .setActionResponse (' ' );
1652
1653
var tmpCurrTabID = this .currTab
1654
+ // this.tmpDebgug = this.currTab
1653
1655
this .editMode = ! this .editMode ;
1654
1656
if (this .editMode ){
1655
1657
await this .$nextTick ()
@@ -1662,6 +1664,7 @@ export default {
1662
1664
createModeToggle (){
1663
1665
this .setActionResponse (' ' );
1664
1666
this .createMode = ! this .createMode ;
1667
+ this .lastLayoutTabID = this .currTab ;
1665
1668
if (this .createMode ){
1666
1669
var tmpArr = this .btnCmd .tabs .filter (item => item .embedTab === true );
1667
1670
if (tmpArr .length >= 1 ){
@@ -1676,8 +1679,10 @@ export default {
1676
1679
this .saveSettings ();
1677
1680
await this .$nextTick ();
1678
1681
var tmpCurrTabID = this .currTab ;
1682
+
1679
1683
if (this .createMode ){
1680
1684
this .createMode = false
1685
+ tmpCurrTabID = this .lastLayoutTabID ;
1681
1686
}
1682
1687
if (this .editMode ){
1683
1688
this .editMode = false
@@ -1692,7 +1697,10 @@ export default {
1692
1697
var tmpCurrTabID = this .currTab ;
1693
1698
this .loadSettings ();
1694
1699
await this .$nextTick ();
1695
- if (this .createMode ){this .createMode = false }
1700
+ if (this .createMode ){
1701
+ this .createMode = false
1702
+ tmpCurrTabID = this .lastLayoutTabID ;
1703
+ }
1696
1704
if (this .editMode ){this .editMode = false }
1697
1705
await this .$nextTick ()
1698
1706
this .onChangeTab (tmpCurrTabID);
@@ -1707,7 +1715,9 @@ export default {
1707
1715
}
1708
1716
},
1709
1717
onChangeTab (tmpTabID ){
1718
+ // console.log("Changing Tab to: ", tmpTabID)
1710
1719
this .currTab = tmpTabID;
1720
+ // this.tmpDebgug = this.currTab
1711
1721
this .getCurrTabIndex = " tab-" + tmpTabID;
1712
1722
var tmpTabObj = this .btnCmd .tabs .filter (item => item .tabID == tmpTabID);
1713
1723
this .currTabObj = tmpTabObj[0 ];
0 commit comments