Browse Source

CustomerWindowResource/uniqueByNo 优化。

YangZhiJie 1 năm trước cách đây
mục cha
commit
05d3a263a1
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  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 &&