소스 검색

[update] bo创建默认增加地点字段,首页待办接口请求失败后取消轮询

cfort 2 년 전
부모
커밋
ba31a54003
2개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/views/platform/bo/boDef/constants/index.js
  2. 4 0
      src/views/system/dashboard/components/workbench.vue

+ 9 - 0
src/views/platform/bo/boDef/constants/index.js

@@ -209,6 +209,15 @@ export const defaultAttrs = [
         attrLength: 16,
         precision: 0,
         format: ''
+    }, {
+        id: uuid(),
+        name: '地点',
+        code: 'diDian',
+        fieldName: 'di_dian_',
+        dataType: 'varchar',
+        attrLength: 128,
+        precision: 0,
+        format: ''
     }, {
         id: uuid(),
         name: '编制人',

+ 4 - 0
src/views/system/dashboard/components/workbench.vue

@@ -344,6 +344,10 @@ export default {
                 }
                 this.loading = false
             }).catch(() => {
+                // 请求出错清除轮询
+                if (type === 'wait') {
+                    clearInterval(this.timer)
+                }
                 this.loading = false
             })
         },