|
@@ -5,14 +5,14 @@ |
|
@@ -5,14 +5,14 @@ |
5
|
<el-row style="margin: -2px">
|
5
|
<el-row style="margin: -2px">
|
6
|
<el-col :span="6">
|
6
|
<el-col :span="6">
|
7
|
<el-row class="bt">
|
7
|
<el-row class="bt">
|
8
|
- <span>选择消息发送端</span>
|
8
|
+ <span>选择消息发送者</span>
|
9
|
</el-row>
|
9
|
</el-row>
|
10
|
<el-row>
|
10
|
<el-row>
|
11
|
<el-tree
|
11
|
<el-tree
|
12
|
- :data="send"
|
12
|
+ :data="sndr"
|
13
|
show-checkbox
|
13
|
show-checkbox
|
14
|
node-key="id"
|
14
|
node-key="id"
|
15
|
- :props="defaultProps">
|
15
|
+ :props="userProps">
|
16
|
</el-tree>
|
16
|
</el-tree>
|
17
|
</el-row>
|
17
|
</el-row>
|
18
|
</el-col>
|
18
|
</el-col>
|
|
@@ -22,7 +22,7 @@ |
|
@@ -22,7 +22,7 @@ |
22
|
</el-row>
|
22
|
</el-row>
|
23
|
<el-row>
|
23
|
<el-row>
|
24
|
<el-tree
|
24
|
<el-tree
|
25
|
- :data="ready"
|
25
|
+ :data="message_type"
|
26
|
show-checkbox
|
26
|
show-checkbox
|
27
|
node-key="id"
|
27
|
node-key="id"
|
28
|
:props="defaultProps">
|
28
|
:props="defaultProps">
|
|
@@ -31,14 +31,14 @@ |
|
@@ -31,14 +31,14 @@ |
31
|
</el-col>
|
31
|
</el-col>
|
32
|
<el-col :span="6">
|
32
|
<el-col :span="6">
|
33
|
<el-row class="bt">
|
33
|
<el-row class="bt">
|
34
|
- <span>选择消息接收端</span>
|
34
|
+ <span>选择消息接收者</span>
|
35
|
</el-row>
|
35
|
</el-row>
|
36
|
<el-row>
|
36
|
<el-row>
|
37
|
<el-tree
|
37
|
<el-tree
|
38
|
- :data="send"
|
38
|
+ :data="rcvr"
|
39
|
show-checkbox
|
39
|
show-checkbox
|
40
|
node-key="id"
|
40
|
node-key="id"
|
41
|
- :props="defaultProps">
|
41
|
+ :props="userProps">
|
42
|
</el-tree>
|
42
|
</el-tree>
|
43
|
</el-row>
|
43
|
</el-row>
|
44
|
</el-col>
|
44
|
</el-col>
|
|
@@ -47,7 +47,7 @@ |
|
@@ -47,7 +47,7 @@ |
47
|
<span>消息路由配置其他属性</span>
|
47
|
<span>消息路由配置其他属性</span>
|
48
|
</el-row>
|
48
|
</el-row>
|
49
|
<el-row>
|
49
|
<el-row>
|
50
|
- <el-form :inline="true" :rules="rules" :model="formInline" class="demo-form-inline" align="center" style="border:3px solid #6F8294;height: 800px;padding-top: 15px">
|
50
|
+ <el-form :inline="true" :model="formInline" class="demo-form-inline" align="center" style="border:3px solid #6F8294;height: 800px;padding-top: 15px">
|
51
|
<el-form-item label="路由状态:">
|
51
|
<el-form-item label="路由状态:">
|
52
|
<el-select v-model="formInline.state" placeholder="请选择" style="width: 150px" size="mini">
|
52
|
<el-select v-model="formInline.state" placeholder="请选择" style="width: 150px" size="mini">
|
53
|
<el-option label="启用" value="01"></el-option>
|
53
|
<el-option label="启用" value="01"></el-option>
|
|
@@ -73,6 +73,7 @@ |
|
@@ -73,6 +73,7 @@ |
73
|
</template>
|
73
|
</template>
|
74
|
|
74
|
|
75
|
<script>
|
75
|
<script>
|
|
|
76
|
+ import {getAlltype} from "../../api/message_bus";
|
76
|
export default {
|
77
|
export default {
|
77
|
name: "Configure",
|
78
|
name: "Configure",
|
78
|
|
79
|
|
|
@@ -80,10 +81,10 @@ |
|
@@ -80,10 +81,10 @@ |
80
|
return {
|
81
|
return {
|
81
|
formInline: {
|
82
|
formInline: {
|
82
|
state: '',
|
83
|
state: '',
|
83
|
- purpose:'',
|
|
|
84
|
- describe:''
|
84
|
+ purpose: '',
|
|
|
85
|
+ describe: ''
|
85
|
},
|
86
|
},
|
86
|
- send: [{
|
87
|
+ sndr: [{
|
87
|
id: 1,
|
88
|
id: 1,
|
88
|
label: '代理人系统接收账号(AGTR)',
|
89
|
label: '代理人系统接收账号(AGTR)',
|
89
|
}, {
|
90
|
}, {
|
|
@@ -93,51 +94,71 @@ |
|
@@ -93,51 +94,71 @@ |
93
|
id: 3,
|
94
|
id: 3,
|
94
|
label: '【测试】舱单自动化解析系统(AMDB)',
|
95
|
label: '【测试】舱单自动化解析系统(AMDB)',
|
95
|
}],
|
96
|
}],
|
96
|
- ready: [{
|
97
|
+ rcvr: [{
|
97
|
id: 1,
|
98
|
id: 1,
|
98
|
- label: '航班动态(1)',
|
99
|
+ label: '代理人系统接收账号(AGTR)',
|
|
|
100
|
+ }, {
|
|
|
101
|
+ id: 2,
|
|
|
102
|
+ label: '代理人接收中外运预配(AGTZ)',
|
|
|
103
|
+ }, {
|
|
|
104
|
+ id: 3,
|
|
|
105
|
+ label: '【测试】舱单自动化解析系统(AMDB)',
|
|
|
106
|
+ }],
|
|
|
107
|
+ queryInfo:{
|
|
|
108
|
+ pageNum:1,
|
|
|
109
|
+ pageSize:10,
|
|
|
110
|
+ name:"",
|
|
|
111
|
+ type:"",
|
|
|
112
|
+ },
|
|
|
113
|
+ message_type: [{
|
|
|
114
|
+ id: 1,
|
|
|
115
|
+ nameAndDes: '航班动态(1)',
|
99
|
children: [{
|
116
|
children: [{
|
100
|
id: 7,
|
117
|
id: 7,
|
101
|
- label: '',
|
118
|
+ nameAndDes: '',
|
102
|
children: [{
|
119
|
children: [{
|
103
|
id: 8,
|
120
|
id: 8,
|
104
|
- label: ''
|
121
|
+ nameAndDes: ''
|
105
|
}, {
|
122
|
}, {
|
106
|
id: 9,
|
123
|
id: 9,
|
107
|
- label: ''
|
124
|
+ nameAndDes: ''
|
108
|
}]
|
125
|
}]
|
109
|
}]
|
126
|
}]
|
110
|
}, {
|
127
|
}, {
|
111
|
id: 2,
|
128
|
id: 2,
|
112
|
- label: '航班历史(2)',
|
129
|
+ nameAndDes: '航班历史(2)',
|
113
|
children: [{
|
130
|
children: [{
|
114
|
id: 7,
|
131
|
id: 7,
|
115
|
- label: '',
|
132
|
+ nameAndDes: '',
|
116
|
children: [{
|
133
|
children: [{
|
117
|
id: 8,
|
134
|
id: 8,
|
118
|
- label: ''
|
135
|
+ nameAndDes: ''
|
119
|
}, {
|
136
|
}, {
|
120
|
id: 9,
|
137
|
id: 9,
|
121
|
- label: ''
|
138
|
+ nameAndDes: ''
|
122
|
}]
|
139
|
}]
|
123
|
}]
|
140
|
}]
|
124
|
}, {
|
141
|
}, {
|
125
|
id: 3,
|
142
|
id: 3,
|
126
|
- label: '卡口业务交换信息(80)',
|
143
|
+ nameAndDes: '卡口业务交换信息(80)',
|
127
|
children: [{
|
144
|
children: [{
|
128
|
id: 4,
|
145
|
id: 4,
|
129
|
- label: '卡口业务数据(KAKO)',
|
146
|
+ nameAndDes: '卡口业务数据(KAKO)',
|
130
|
children: [{
|
147
|
children: [{
|
131
|
id: 5,
|
148
|
id: 5,
|
132
|
- label: 'ALL'
|
149
|
+ nameAndDes: 'ALL'
|
133
|
}, {
|
150
|
}, {
|
134
|
id: 6,
|
151
|
id: 6,
|
135
|
- label: '卡口车单绑定关系数据(CARB)'
|
152
|
+ nameAndDes: '卡口车单绑定关系数据(CARB)'
|
136
|
}]
|
153
|
}]
|
137
|
}]
|
154
|
}]
|
138
|
}],
|
155
|
}],
|
139
|
defaultProps: {
|
156
|
defaultProps: {
|
140
|
children: 'children',
|
157
|
children: 'children',
|
|
|
158
|
+ label: 'nameAndDes'
|
|
|
159
|
+ },
|
|
|
160
|
+ userProps: {
|
|
|
161
|
+ children: 'children',
|
141
|
label: 'label'
|
162
|
label: 'label'
|
142
|
}
|
163
|
}
|
143
|
}
|
164
|
}
|
|
@@ -145,8 +166,28 @@ |
|
@@ -145,8 +166,28 @@ |
145
|
methods: {
|
166
|
methods: {
|
146
|
onSubmit() {
|
167
|
onSubmit() {
|
147
|
console.log('submit!');
|
168
|
console.log('submit!');
|
|
|
169
|
+ },
|
|
|
170
|
+ getAllType() {
|
|
|
171
|
+ let _this =this;
|
|
|
172
|
+ getAlltype().then((response) => {
|
|
|
173
|
+ let res = response.data;
|
|
|
174
|
+ if (res.code !== '200') {
|
|
|
175
|
+ return _this.$message.error('获取消息记录,失败!');
|
|
|
176
|
+ }
|
|
|
177
|
+ // 获取列表数据
|
|
|
178
|
+ _this.message_type = res.data;
|
|
|
179
|
+ // 关闭加载
|
|
|
180
|
+ _this.$message.success('获取消息收发记录,成功!');
|
|
|
181
|
+ }).catch(error => {
|
|
|
182
|
+ // 关闭加载
|
|
|
183
|
+ _this.$message.error(error.toString());
|
|
|
184
|
+ });
|
148
|
}
|
185
|
}
|
149
|
- }
|
186
|
+ },
|
|
|
187
|
+ mounted() {
|
|
|
188
|
+ this.getAllType();
|
|
|
189
|
+ },
|
|
|
190
|
+
|
150
|
}
|
191
|
}
|
151
|
</script>
|
192
|
</script>
|
152
|
|
193
|
|