|
@@ -421,18 +421,28 @@ export default {
|
|
|
execute: function (tabButton) {
|
|
execute: function (tabButton) {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
if (tabButton.customerWindowNo != undefined && tabButton.customerWindowNo != '') {
|
|
if (tabButton.customerWindowNo != undefined && tabButton.customerWindowNo != '') {
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), successData.errorMessage, true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
CustomerWindowResource.uniqueByNo(tabButton.customerWindowNo).then(
|
|
CustomerWindowResource.uniqueByNo(tabButton.customerWindowNo).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- tabButton.customerWindowRouteUrl = successData.routeUrl;
|
|
|
|
|
- if(tabButton.customerWindowNo == '20221101_151823'){
|
|
|
|
|
- localStorage.setItem('AssetInstance_ComplexFilterParams',JSON.stringify(_self.complexFilterParams));
|
|
|
|
|
- localStorage.setItem('AssetInstance_SimpleFilterParams', _self.simpleFilterParams);
|
|
|
|
|
- }
|
|
|
|
|
- //跳转到tabButton.routeUrl
|
|
|
|
|
- if (this.viewType == 'Form' || this.viewType == 'EditForm') {
|
|
|
|
|
- this.switchFormRoute(tabButton);
|
|
|
|
|
- } else if (this.viewType == 'Grid') {
|
|
|
|
|
- this.switchFormRoute(tabButton);
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
|
|
+ tabButton.customerWindowRouteUrl = successData.data.routeUrl;
|
|
|
|
|
+ if(tabButton.customerWindowNo == '20221101_151823'){
|
|
|
|
|
+ localStorage.setItem('AssetInstance_ComplexFilterParams',JSON.stringify(_self.complexFilterParams));
|
|
|
|
|
+ localStorage.setItem('AssetInstance_SimpleFilterParams', _self.simpleFilterParams);
|
|
|
|
|
+ }
|
|
|
|
|
+ //跳转到tabButton.routeUrl
|
|
|
|
|
+ if (this.viewType == 'Form' || this.viewType == 'EditForm') {
|
|
|
|
|
+ this.switchFormRoute(tabButton);
|
|
|
|
|
+ } else if (this.viewType == 'Grid') {
|
|
|
|
|
+ this.switchFormRoute(tabButton);
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), successData.errorMessage, true);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|