Преглед изворни кода

Merge branch 'dev' of xiongzhu/raex_front into master

panhui пре 3 година
родитељ
комит
46859ea089
1 измењених фајлова са 11 додато и 1 уклоњено
  1. 11 1
      src/views/asset/Detail.vue

+ 11 - 1
src/views/asset/Detail.vue

@@ -918,7 +918,11 @@ export default {
             }
             }
             getHolds()
             getHolds()
                 .then(() => {
                 .then(() => {
-                    if (holdDays === 0 && _this.info.source === 'OFFICIAL') {
+                    console.log(_this.info.type === 'PICTURE');
+                    if (
+                        (_this.info.holdDays === 0 || _this.info.holdDays === '0') &&
+                        _this.info.source === 'OFFICIAL'
+                    ) {
                         return _this.$http.get('/sysConfig/get/OFFICIAL_CONSIGNMENT').then(res => {
                         return _this.$http.get('/sysConfig/get/OFFICIAL_CONSIGNMENT').then(res => {
                             holdDays = Number(res.value);
                             holdDays = Number(res.value);
                             return Promise.resolve();
                             return Promise.resolve();
@@ -952,6 +956,12 @@ export default {
                                 });
                                 });
                             }
                             }
                         });
                         });
+                    } else if (_this.info.type === 'PICTURE') {
+                        console.log('3746');
+                        return _this.$http.get('/sysConfig/get/picture_hold_days').then(res => {
+                            holdDays = Number(res.value);
+                            return Promise.resolve();
+                        });
                     } else {
                     } else {
                         return Promise.resolve();
                         return Promise.resolve();
                     }
                     }