update: 首页样式调整
This commit is contained in:
parent
085a2d711a
commit
a9f57ac414
|
@ -87,6 +87,11 @@ export default [
|
|||
path: '/link/accessConfig/detail/add',
|
||||
component: () => import('@/views/link/AccessConfig/Detail/index.vue')
|
||||
},
|
||||
// system 系统管理
|
||||
{
|
||||
path:'/system/api',
|
||||
components: ()=>import('@/views/system/apiPage/index')
|
||||
},
|
||||
// 初始化
|
||||
{
|
||||
path: '/init-home',
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
:open-number="openAccess"
|
||||
@confirm="againJumpPage"
|
||||
/>
|
||||
<FuncTestDialog
|
||||
:open-number="openFunc"
|
||||
@confirm="againJumpPage"
|
||||
/>
|
||||
</div>
|
||||
</a-card>
|
||||
</template>
|
||||
|
@ -35,6 +39,7 @@ import { QuestionCircleOutlined } from '@ant-design/icons-vue';
|
|||
import { message } from 'ant-design-vue';
|
||||
|
||||
import AccessMethodDialog from './dialogs/AccessMethodDialog.vue';
|
||||
import FuncTestDialog from './dialogs/FuncTestDialog.vue';
|
||||
|
||||
import { recommendList } from '../index';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<a-modal
|
||||
v-model:visible="visible"
|
||||
title="选择产品"
|
||||
style="width: 700px"
|
||||
style="width: 1000px"
|
||||
@ok="handleOk"
|
||||
:getContainer="getContainer"
|
||||
:maskClosable="false"
|
||||
|
@ -11,34 +11,31 @@
|
|||
<div class="search">
|
||||
<a-select
|
||||
v-model:value="form.key"
|
||||
style="width: 100%"
|
||||
style="width: 100px;margin-right: 20px;"
|
||||
:options="productList"
|
||||
/>
|
||||
<a-select
|
||||
v-model:value="form.relation"
|
||||
style="width: 100%"
|
||||
style="width: 100px;margin-right: 20px;"
|
||||
:options="productList"
|
||||
/>
|
||||
<a-input v-model:value="form.keyValue" allow-clear />
|
||||
<a-input v-model:value="form.keyValue" allow-clear style="width: 230px;margin-right: 50px;" />
|
||||
|
||||
<a-button type="primary" @click="clickSearch">
|
||||
<a-button type="primary" @click="clickSearch" style="margin-right: 10px;">
|
||||
<template #icon><SearchOutlined /></template>
|
||||
搜索
|
||||
</a-button>
|
||||
<a-button type="primary" @click="clickReset">
|
||||
<a-button @click="clickReset">
|
||||
<template #icon><reload-outlined /></template>
|
||||
重置
|
||||
</a-button>
|
||||
</div>
|
||||
<JTable :columns="columns">
|
||||
|
||||
</JTable>
|
||||
<JTable :columns="columns" model="TABLE"> </JTable>
|
||||
|
||||
<template #footer>
|
||||
<a-button key="back" @click="visible = false">取消</a-button>
|
||||
<a-button key="submit" type="primary" @click="handleOk"
|
||||
>确认</a-button
|
||||
>
|
||||
<a-button key="back" @click="visible = false
|
||||
">取消</a-button>
|
||||
<a-button key="submit" type="primary" @click="handleOk">确认</a-button>
|
||||
</template>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
@ -65,10 +62,10 @@ const handleOk = () => {
|
|||
watch(
|
||||
() => props.openNumber,
|
||||
() => {
|
||||
visible.value = true;
|
||||
clickReset();
|
||||
getOptions();
|
||||
clickSearch();
|
||||
visible.value = true;
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -122,4 +119,11 @@ const selectItem: deviceInfo | {} = {};
|
|||
const getList = () => {};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style lang="less" scoped>
|
||||
.func-test-dialog-container {
|
||||
.search {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
<!-- <InitHome /> -->
|
||||
<!-- <DeviceHome /> -->
|
||||
<!-- <DevOpsHome /> -->
|
||||
<!-- <ComprehensiveHome /> -->
|
||||
<ApiPage />
|
||||
<ComprehensiveHome />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -17,7 +16,6 @@ import InitHome from './components/InitHome/index.vue';
|
|||
import DeviceHome from './components/DeviceHome/index.vue';
|
||||
import DevOpsHome from './components/DevOpsHome/index.vue';
|
||||
import ComprehensiveHome from './components/ComprehensiveHome/index.vue';
|
||||
import ApiPage from '@/views/system/apiPage/index.vue'
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
model="TABLE"
|
||||
>
|
||||
<template #required="slotProps">
|
||||
<span>{{ slotProps.row.required + '' }}</span>
|
||||
<span>{{ Boolean(slotProps.row.required) + '' }}</span>
|
||||
</template>
|
||||
<template #type="slotProps">
|
||||
<span>{{ slotProps.row.schema.type }}</span>
|
||||
|
@ -178,7 +178,7 @@ const respParamsCard = reactive<tableCardType>({
|
|||
columns: [
|
||||
{
|
||||
title: '参数名称',
|
||||
dataIndex: 'name',
|
||||
dataIndex: 'paramsName',
|
||||
},
|
||||
{
|
||||
title: '参数说明',
|
||||
|
@ -186,7 +186,7 @@ const respParamsCard = reactive<tableCardType>({
|
|||
},
|
||||
{
|
||||
title: '类型',
|
||||
dataIndex: 'type',
|
||||
dataIndex: 'paramsType',
|
||||
},
|
||||
],
|
||||
tableData: [],
|
||||
|
@ -201,11 +201,9 @@ const respParamsCard = reactive<tableCardType>({
|
|||
const schemaName = responseStatusCard.tableData.find(
|
||||
(item: any) => item.code === code,
|
||||
).schema;
|
||||
console.log(1212, schemaName);
|
||||
const schemas = toRaw(props.schemas);
|
||||
function findData(schemaName: string) {
|
||||
if (!schemaName || schemas[schemaName]) {
|
||||
console.log(schemaName, schemas);
|
||||
if (!schemaName || !schemas[schemaName]) {
|
||||
return [];
|
||||
}
|
||||
const result: schemaObjType[] = [];
|
||||
|
|
Loading…
Reference in New Issue