Ver Fonte

CustomerWindowResource/uniqueByNo 优化。

YangZhiJie há 1 ano atrás
pai
commit
05d3a263a1
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      packages/info/src/QueryPage.vue

+ 10 - 1
packages/info/src/QueryPage.vue

@@ -667,7 +667,16 @@ export default {
         infoButton.customerWindowNo.length > 0
       ) {
         CustomerWindowResource.uniqueByNo(infoButton.customerWindowNo).then(
-          customerWindowDto => {
+          successData => {
+
+            if (successData.errorCode != 0) {
+              Notify.error(_self.$t('lang.Notify.error'), successData.errorMessage, true);
+              return;
+            }
+
+            const customerWindowDto = successData.data;
+
+
             var customerWindowRouteUrl = customerWindowDto.routeUrl;
             if (
               customerWindowRouteUrl != undefined &&