瀏覽代碼

考勤fix

shudonghui 1 年之前
父節點
當前提交
2c0bdd4d0e
共有 3 個文件被更改,包括 8 次插入2 次删除
  1. 3 1
      src/pages/ding/ding-abnormal.vue
  2. 3 1
      src/pages/ding/ding-statistics.vue
  3. 2 0
      src/pages/ding/ding.vue

+ 3 - 1
src/pages/ding/ding-abnormal.vue

@@ -91,11 +91,12 @@ export default {
       })
     })
     this.params=this.$Route.query;
-    if(this.params.sopNo) this.getList(this.params.sopNo);
+    if(this.params.sopNo&&this.params.sopNo!=='undefined') this.getList(this.params.sopNo);
   },
 
   methods: {
     getSopList(serviceId) {
+      if(serviceId)
         dingFindAllSop({serviceUnitId: serviceId}).then((res) => {
         this.sopList = (res || []).map((item) => {
           return {
@@ -106,6 +107,7 @@ export default {
       })
     },
     getList(sopNo) {
+      if(sopNo)
       dingStatistic({ sopNo:sopNo}).then((res) => {
         this.statistic=res;
       })

+ 3 - 1
src/pages/ding/ding-statistics.vue

@@ -98,11 +98,12 @@ export default {
       })
     })
     this.params=this.$Route.query;
-    if(this.params.sopNo) this.getList(this.params.sopNo);
+    if(this.params.sopNo&&this.params.sopNo!=='undefined') this.getList(this.params.sopNo);
   },
 
   methods: {
     getSopList(serviceId) {
+      if(serviceId)
         dingFindAllSop({serviceUnitId: serviceId}).then((res) => {
         this.sopList = (res || []).map((item) => {
           return {
@@ -113,6 +114,7 @@ export default {
       })
     },
     getList(sopNo) {
+      if(sopNo)
       dingStatistic({ sopNo:sopNo}).then((res) => {
         this.statistic=res;
       })

+ 2 - 0
src/pages/ding/ding.vue

@@ -135,6 +135,7 @@ export default {
   },
   methods: {
     getSopList(serviceId) {
+      if(serviceId)
       dingFindRunningSop({serviceUnitId: serviceId}).then((res) => {
         this.sopList = (res || []).map((item) => {
           return {
@@ -145,6 +146,7 @@ export default {
       })
     },
     getDingInfo(sopNo) {
+      if(sopNo)
       getDingInfo({sopNo: sopNo}).then((res) => {
         this.dingInfo = res;
         if (this.dingInfo.signInTimeScope) {