/
ProjectModel.es6
119 lines (110 loc) · 3.05 KB
/
ProjectModel.es6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import {Model} from 'ea-react-dm-v14'
import {UserEnv} from '../../view/components/utils/util/Index'
@Model('ProjectModel')
export default class ProjectModel {
static rs
static list = []
static suggestion = {}
static searchInfo = {
totalCount: 0,
page: 1,
pageSize: 10,
sort: 'id',
data: { //GenTaskByFreeSqlPojo
dal_group_id: null
}
}
static states = {
editeVisible: false,
checkVisible: false,
addButtonShow: true
}
static columnInfo = {
column: [
{
name: '项目名称',
width: 14,
key: 'name',
sort: true,
popover: {title: '项目名称', maximum: 25}
},
{
name: 'APP ID',
width: 6,
key: 'app_id',
sort: true
},
{
name: '逻辑库',
width: 15,
key: 'dbsetNamees',
popover: {title: '逻辑库', maximum: 30}
},
{
name: '项目负责人',
width: 6,
key: 'projectUsers',
search: false,
popover: {title: '逻辑库', maximum: 15}
},
{
name: '应用场景',
width: 15,
key: 'app_scene',
popover: {title: '逻辑库', maximum: 30}
},
{
name: '备注',
width: 15,
key: 'comment',
popover: {title: '备注', maximum: 30}
},
{
name: '新建时间',
width: 7,
key: 'insert_time',
search: false,
timePicker: {type: 'range'}
},
{
name: '操作人',
width: 5,
key: 'userRealName',
sort: true,
sortKey: 'user_real_name',
search: false
},
{
name: '操作',
width: 17,
key: null,
button: {
add: {display: true, key: 'add'},
editor: {display: true},
sync: {display: true, title: '若' + UserEnv.getConfigCenterName() + '操作失败,可使用此功能同步数据'},
check: {title: '查看' + UserEnv.getConfigCenterName() + '数据的正确性'},
delete: {display: true}
}
}
]
}
static tree = []
static projectinfo = {
name: '',
namespace: 'com.ppdai.platform.das',
dal_group_id: 0,
app_scene: '',
pre_release_time: '',
app_id: '',
dbsetIds: [],
userIds: [],
dbsetNamees: '',
items: [],
users: []
}
static member = {
suggestionMember: {},
user_id: null,
group_id: null
}
}