state.js 2.5 KB
Newer Older
L
ligang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import localStore from '@/module/util/localStorage'

// Get the name of the item currently clicked
21
const projectName = localStore.getItem('projectName')
L
ligang 已提交
22 23 24 25

export default {
  // name
  name: '',
B
break60 已提交
26 27
  // description
  description: '',
L
ligang 已提交
28 29 30 31
  // Node global parameter
  globalParams: [],
  // Node information
  tasks: [],
32 33
  // Node cache information, cache the previous input
  cacheTasks: {},
G
gongzijian 已提交
34 35
  // Timeout alarm
  timeout: 0,
36
  // tenant id
37
  tenantId: -1,
L
ligang 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51
  // Node location information
  locations: {},
  // Node-to-node connection
  connects: [],
  // Running sign
  runFlag: '',
  // Whether to edit
  isEditDag: false,
  // Current project
  projectName: projectName || '',
  // Whether to update the process definition
  syncDefine: true,
  // tasks processList
  processListS: [],
52 53
  // projectList
  projectListS: [],
L
ligang 已提交
54 55
  // tasks resourcesList
  resourcesListS: [],
B
break60 已提交
56 57
  // tasks resourcesListJar
  resourcesListJar: [],
L
ligang 已提交
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
  // tasks datasource Type
  dsTypeListS: [
    {
      id: 0,
      code: 'MYSQL',
      disabled: false
    },
    {
      id: 1,
      code: 'POSTGRESQL',
      disabled: false
    },
    {
      id: 2,
      code: 'HIVE',
      disabled: false
    },
    {
      id: 3,
      code: 'SPARK',
      disabled: false
B
Baoqi 已提交
79 80 81 82 83
    },
    {
      id: 4,
      code: 'CLICKHOUSE',
      disabled: false
B
Baoqi 已提交
84 85 86 87 88
    },
    {
      id: 5,
      code: 'ORACLE',
      disabled: false
B
Baoqi 已提交
89 90 91 92 93
    },
    {
      id: 6,
      code: 'SQLSERVER',
      disabled: false
B
bao liang 已提交
94 95 96 97 98
    },
    {
      id: 7,
      code: 'DB2',
      disabled: false
99 100 101 102 103
    },
    {
      id: 8,
      code: 'PRESTO',
      disabled: false
L
ligang 已提交
104 105 106 107 108 109 110
    }
  ],
  // Alarm interface
  notifyGroupListS: [],
  // Process instance list{ view a single record }
  instanceListS: [],
  // Operating state
H
huyuanming 已提交
111 112 113 114
  isDetails: false,
  startup: {

  }
L
ligang 已提交
115
}