...
|
...
|
@@ -5,14 +5,14 @@ |
|
|
<el-row style="margin: -2px">
|
|
|
<el-col :span="6">
|
|
|
<el-row class="bt">
|
|
|
<span>选择消息发送端</span>
|
|
|
<span>选择消息发送者</span>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-tree
|
|
|
:data="send"
|
|
|
:data="sndr"
|
|
|
show-checkbox
|
|
|
node-key="id"
|
|
|
:props="defaultProps">
|
|
|
:props="userProps">
|
|
|
</el-tree>
|
|
|
</el-row>
|
|
|
</el-col>
|
...
|
...
|
@@ -22,7 +22,7 @@ |
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-tree
|
|
|
:data="ready"
|
|
|
:data="message_type"
|
|
|
show-checkbox
|
|
|
node-key="id"
|
|
|
:props="defaultProps">
|
...
|
...
|
@@ -31,14 +31,14 @@ |
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-row class="bt">
|
|
|
<span>选择消息接收端</span>
|
|
|
<span>选择消息接收者</span>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-tree
|
|
|
:data="send"
|
|
|
:data="rcvr"
|
|
|
show-checkbox
|
|
|
node-key="id"
|
|
|
:props="defaultProps">
|
|
|
:props="userProps">
|
|
|
</el-tree>
|
|
|
</el-row>
|
|
|
</el-col>
|
...
|
...
|
@@ -47,7 +47,7 @@ |
|
|
<span>消息路由配置其他属性</span>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-form :inline="true" :rules="rules" :model="formInline" class="demo-form-inline" align="center" style="border:3px solid #6F8294;height: 800px;padding-top: 15px">
|
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline" align="center" style="border:3px solid #6F8294;height: 800px;padding-top: 15px">
|
|
|
<el-form-item label="路由状态:">
|
|
|
<el-select v-model="formInline.state" placeholder="请选择" style="width: 150px" size="mini">
|
|
|
<el-option label="启用" value="01"></el-option>
|
...
|
...
|
@@ -73,6 +73,7 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {getAlltype} from "../../api/message_bus";
|
|
|
export default {
|
|
|
name: "Configure",
|
|
|
|
...
|
...
|
@@ -80,10 +81,10 @@ |
|
|
return {
|
|
|
formInline: {
|
|
|
state: '',
|
|
|
purpose:'',
|
|
|
describe:''
|
|
|
purpose: '',
|
|
|
describe: ''
|
|
|
},
|
|
|
send: [{
|
|
|
sndr: [{
|
|
|
id: 1,
|
|
|
label: '代理人系统接收账号(AGTR)',
|
|
|
}, {
|
...
|
...
|
@@ -93,51 +94,71 @@ |
|
|
id: 3,
|
|
|
label: '【测试】舱单自动化解析系统(AMDB)',
|
|
|
}],
|
|
|
ready: [{
|
|
|
rcvr: [{
|
|
|
id: 1,
|
|
|
label: '航班动态(1)',
|
|
|
label: '代理人系统接收账号(AGTR)',
|
|
|
}, {
|
|
|
id: 2,
|
|
|
label: '代理人接收中外运预配(AGTZ)',
|
|
|
}, {
|
|
|
id: 3,
|
|
|
label: '【测试】舱单自动化解析系统(AMDB)',
|
|
|
}],
|
|
|
queryInfo:{
|
|
|
pageNum:1,
|
|
|
pageSize:10,
|
|
|
name:"",
|
|
|
type:"",
|
|
|
},
|
|
|
message_type: [{
|
|
|
id: 1,
|
|
|
nameAndDes: '航班动态(1)',
|
|
|
children: [{
|
|
|
id: 7,
|
|
|
label: '',
|
|
|
nameAndDes: '',
|
|
|
children: [{
|
|
|
id: 8,
|
|
|
label: ''
|
|
|
nameAndDes: ''
|
|
|
}, {
|
|
|
id: 9,
|
|
|
label: ''
|
|
|
nameAndDes: ''
|
|
|
}]
|
|
|
}]
|
|
|
}, {
|
|
|
id: 2,
|
|
|
label: '航班历史(2)',
|
|
|
nameAndDes: '航班历史(2)',
|
|
|
children: [{
|
|
|
id: 7,
|
|
|
label: '',
|
|
|
nameAndDes: '',
|
|
|
children: [{
|
|
|
id: 8,
|
|
|
label: ''
|
|
|
nameAndDes: ''
|
|
|
}, {
|
|
|
id: 9,
|
|
|
label: ''
|
|
|
nameAndDes: ''
|
|
|
}]
|
|
|
}]
|
|
|
}, {
|
|
|
id: 3,
|
|
|
label: '卡口业务交换信息(80)',
|
|
|
nameAndDes: '卡口业务交换信息(80)',
|
|
|
children: [{
|
|
|
id: 4,
|
|
|
label: '卡口业务数据(KAKO)',
|
|
|
nameAndDes: '卡口业务数据(KAKO)',
|
|
|
children: [{
|
|
|
id: 5,
|
|
|
label: 'ALL'
|
|
|
nameAndDes: 'ALL'
|
|
|
}, {
|
|
|
id: 6,
|
|
|
label: '卡口车单绑定关系数据(CARB)'
|
|
|
nameAndDes: '卡口车单绑定关系数据(CARB)'
|
|
|
}]
|
|
|
}]
|
|
|
}],
|
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
|
label: 'nameAndDes'
|
|
|
},
|
|
|
userProps: {
|
|
|
children: 'children',
|
|
|
label: 'label'
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -145,8 +166,28 @@ |
|
|
methods: {
|
|
|
onSubmit() {
|
|
|
console.log('submit!');
|
|
|
},
|
|
|
getAllType() {
|
|
|
let _this =this;
|
|
|
getAlltype().then((response) => {
|
|
|
let res = response.data;
|
|
|
if (res.code !== '200') {
|
|
|
return _this.$message.error('获取消息记录,失败!');
|
|
|
}
|
|
|
// 获取列表数据
|
|
|
_this.message_type = res.data;
|
|
|
// 关闭加载
|
|
|
_this.$message.success('获取消息收发记录,成功!');
|
|
|
}).catch(error => {
|
|
|
// 关闭加载
|
|
|
_this.$message.error(error.toString());
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getAllType();
|
|
|
},
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
|
...
|
...
|
|