1. 统一化代码

2. 增加 DocAlert 关联文档
This commit is contained in:
YunaiV
2023-04-05 20:13:35 +08:00
parent bb88e3d77c
commit 4404554cfc
111 changed files with 640 additions and 567 deletions

View File

@ -1,13 +1,15 @@
<template>
<doc-alert title="地区 & IP" url="https://doc.iocoder.cn/area-and-ip/" />
<!-- 操作栏 -->
<content-wrap>
<el-button type="primary" plain @click="openModal()">
<ContentWrap>
<el-button type="primary" plain @click="openForm()">
<Icon icon="ep:plus" class="mr-5px" /> IP 查询
</el-button>
</content-wrap>
</ContentWrap>
<!-- 列表 -->
<content-wrap>
<ContentWrap>
<div style="width: 100%; height: 700px">
<!-- AutoResizer 自动调节大小 -->
<el-auto-resizer>
@ -23,14 +25,14 @@
</template>
</el-auto-resizer>
</div>
</content-wrap>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<area-form ref="modalRef" />
<AreaForm ref="formRef" />
</template>
<script setup lang="tsx" name="Area">
import type { Column } from 'element-plus'
import AreaForm from './form.vue'
import AreaForm from './AreaForm.vue'
import * as AreaApi from '@/api/system/area'
// 表格的 column 字段
@ -59,9 +61,9 @@ const getList = async () => {
}
/** 添加/修改操作 */
const modalRef = ref()
const openModal = () => {
modalRef.value.openModal()
const formRef = ref()
const openForm = () => {
formRef.value.open()
}
/** 初始化 **/