官方api

master
lml 5 months ago
parent 66a5681ccd
commit f194f86bb0

Binary file not shown.

@ -19,7 +19,7 @@
class="el-menu-vertical-demo"
style="padding: 0;"
:unique-opened="true"
@select="handleSelect"
@select="(key, keyPath) =>handleSelect(key, keyPath,selectedVersion)"
@open="handleOpen"
@close="handleClose">
<el-submenu v-for="(item, index) in menuItems[selectedVersion]" :key="index" :index="`${index+1}`">
@ -55,7 +55,7 @@ export default {
// { value: '3.8', label: '3.8', tag: '' },
// { value: '3.7', label: '3.7', tag: '' },
// { value: '3.6', label: '3.6', tag: '' },
// { value: '3.5', label: '3.5', tag: '' },
{ value: '新智慧1.0', label: '新智慧1.0', tag: '' },
{ value: '1.0', label: '1.0', tag: '' }
],
code: `{
@ -73,13 +73,49 @@ export default {
"1.0": [
{
"订单模块": [
{ title: '下单接口', index: '1' },
{ title: '创建订单', index: '1' },
{ title: '取消订单', index: '2' },
{ title: '根据订单id获取订单详情', index: '3' },
{ title: '获取渠道信息', index: '4' },
{ title: '获取FBA仓库编码', index: '5' },
{ title: '获取订单轨迹', index: '6' },
// { title: '', index: '2' },
// { title: '', index: '3' },
// { title: '', index: '4' },
// { title: '', index: '5' }
]
},
// {
// "hhh": [
// { title: '', index: '1' },
// { title: '', index: '2' },
// { title: '', index: '3' },
// { title: '', index: '4' },
// { title: '', index: '5' }
// ]
// },
// {
// "": [
// { title: '', index: '1' },
// { title: '', index: '2' },
// { title: '', index: '3' },
// { title: '', index: '4' },
// { title: '', index: '5' }
// ]
// }
],
"新智慧1.0": [
{
"运单模块": [
{ title: '创建运单', index: '1' },
// { title: '', index: '2' },
// { title: '', index: '3' },
// { title: '', index: '4' },
// { title: '', index: '5' }
]
},
// {
// "hhh": [
// { title: '', index: '1' },
@ -132,7 +168,8 @@ export default {
};
},
mounted() {
this.$router.push({ name: 'mainComponents', query: { api: '1-0' } });
console.log(this.selectedVersion,'this.selectedVersion')
this.$router.push({ name: 'mainComponents', query: { api: '1-0',selectedVersion:this.selectedVersion } });
},
computed: {
codeLines() {
@ -150,10 +187,10 @@ export default {
handleClose(key, keyPath) {
// console.log(key, keyPath);
},
handleSelect(key, keyPath) {
console.log(key, keyPath, 'select');
handleSelect(key, keyPath,selectType) {
console.log(key, keyPath,selectType, 'select');
this.totalIndex = keyPath[0];
this.$router.push({ name: 'mainComponents', query: { api: key } });
this.$router.push({ name: 'mainComponents', query: { api: key,selectedVersion:selectType } });
},
filteredMenuItems(val) {
this.propList = [];

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save