|
@@ -7,9 +7,9 @@
|
|
|
fit
|
|
fit
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
>
|
|
>
|
|
|
- <el-table-column label="标题" prop="title" />
|
|
|
|
|
- <el-table-column label="方法名" prop="method" width="300" />
|
|
|
|
|
- <el-table-column label="版本号" prop="version" width="150" />
|
|
|
|
|
|
|
+ <el-table-column label="标题" prop="title"/>
|
|
|
|
|
+ <el-table-column label="方法名" prop="method" width="300"/>
|
|
|
|
|
+ <el-table-column label="版本号" prop="version" width="150"/>
|
|
|
<el-table-column label="操作" width="70">
|
|
<el-table-column label="操作" width="70">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click.native="showDetail(scope.row)">详情</el-button>
|
|
<el-button type="text" size="small" @click.native="showDetail(scope.row)">详情</el-button>
|
|
@@ -17,43 +17,43 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
- <el-drawer
|
|
|
|
|
- :title="currentDetail.title+'['+currentDetail.method+':'+currentDetail.version+']'"
|
|
|
|
|
- :visible.sync="showDrawer"
|
|
|
|
|
- direction="ltr"
|
|
|
|
|
- >
|
|
|
|
|
- <el-table
|
|
|
|
|
- v-loading="isLoading"
|
|
|
|
|
- :data="currentDetail.listFields"
|
|
|
|
|
- border
|
|
|
|
|
- fit
|
|
|
|
|
- highlight-current-row
|
|
|
|
|
- >
|
|
|
|
|
- <el-table-column label="参数名" prop="name" width="150" />
|
|
|
|
|
- <el-table-column label="类型" prop="type" width="100" />
|
|
|
|
|
- <el-table-column label="必须">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- {{ scope.row.required ? '是' : '否' }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="说明" prop="describe" />
|
|
|
|
|
- </el-table>
|
|
|
|
|
- </el-drawer>
|
|
|
|
|
|
|
+ <dialog-detail ref="dialogDetail"/>
|
|
|
|
|
+ <!-- <el-drawer-->
|
|
|
|
|
+ <!-- :title="currentDetail.title+'['+currentDetail.method+':'+currentDetail.version+']'"-->
|
|
|
|
|
+ <!-- :visible.sync="showDrawer"-->
|
|
|
|
|
+ <!-- >-->
|
|
|
|
|
+ <!-- <el-table-->
|
|
|
|
|
+ <!-- v-loading="isLoading"-->
|
|
|
|
|
+ <!-- :data="currentDetail.listFields"-->
|
|
|
|
|
+ <!-- border-->
|
|
|
|
|
+ <!-- highlight-current-row-->
|
|
|
|
|
+ <!-- >-->
|
|
|
|
|
+ <!-- <el-table-column label="参数名" prop="name" width="150" />-->
|
|
|
|
|
+ <!-- <el-table-column label="类型" prop="type" width="100" />-->
|
|
|
|
|
+ <!-- <el-table-column label="必须">-->
|
|
|
|
|
+ <!-- <template slot-scope="scope">-->
|
|
|
|
|
+ <!-- {{ scope.row.required ? '是' : '否' }}-->
|
|
|
|
|
+ <!-- </template>-->
|
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
|
+ <!-- <el-table-column label="说明" prop="describe" />-->
|
|
|
|
|
+ <!-- </el-table>-->
|
|
|
|
|
+ <!-- </el-drawer>-->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { getApis } from '@/api/docsApis'
|
|
import { getApis } from '@/api/docsApis'
|
|
|
|
|
+import DialogDetail from '@/views/apidocs/DialogDetail'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Dashboard',
|
|
name: 'Dashboard',
|
|
|
- components: {},
|
|
|
|
|
|
|
+ components: { DialogDetail },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
listData: [],
|
|
listData: [],
|
|
|
- isLoading: false,
|
|
|
|
|
- showDrawer: false,
|
|
|
|
|
- currentDetail: {}
|
|
|
|
|
|
|
+ isLoading: false
|
|
|
|
|
+ // showDrawer: false,
|
|
|
|
|
+ // currentDetail: {}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -66,8 +66,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
showDetail(row) {
|
|
showDetail(row) {
|
|
|
- this.showDrawer = true
|
|
|
|
|
- this.currentDetail = row
|
|
|
|
|
|
|
+ this.$refs.dialogDetail.open(row)
|
|
|
|
|
+ // this.showDrawer = true
|
|
|
|
|
+ // this.currentDetail = row
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|