Sfoglia il codice sorgente

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

cfort 2 anni fa
parent
commit
ba31a54003

+ 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
             })
         },