字典添加名称筛选

This commit is contained in:
weicw
2022-02-07 18:22:41 +08:00
parent b62b755d21
commit 531657cd6a
3 changed files with 987 additions and 964 deletions

View File

@@ -17,10 +17,16 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="测点名称:">
<a-input v-model:value="where.placeName" placeholder="请输入测点名称" allow-clear/>
</a-form-item>
</a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置
</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -145,7 +151,8 @@
> >
<a-button>导入</a-button> <a-button>导入</a-button>
</a-upload> </a-upload>
<a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出
</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -155,7 +162,8 @@
type="primary" type="primary"
shape="round" shape="round"
size="small" size="small"
>修改</a-button >修改
</a-button
> >
<a-popconfirm <a-popconfirm
:title="`确认删除这条数据吗?`" :title="`确认删除这条数据吗?`"
@@ -164,7 +172,8 @@
@confirm="remove(record)" @confirm="remove(record)"
> >
<a-button type="primary" danger shape="round" size="small" <a-button type="primary" danger shape="round" size="small"
>删除</a-button >删除
</a-button
> >
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>

View File

@@ -17,6 +17,12 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="测点名称:">
<a-input v-model:value="where.placeName" placeholder="请输入测点名称" allow-clear/>
</a-form-item>
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
@@ -93,7 +99,8 @@
</a-form-item> </a-form-item>
<a-form-item label="修正位置" name="correctLocation"> <a-form-item label="修正位置" name="correctLocation">
<a-input-search @search="showRoadMap(form)" <a-input-search @search="showRoadMap(form)"
:value="`[${form.correctLng},${form.correctLat}]`" placeholder="`[${form.placeLng},${form.placeLat}]`" allow-clear> :value="`[${form.correctLng},${form.correctLat}]`"
placeholder="`[${form.placeLng},${form.placeLat}]`" allow-clear>
<template #enterButton> <template #enterButton>
<a-button>选择位置</a-button> <a-button>选择位置</a-button>
</template> </template>

View File

@@ -17,10 +17,16 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="测点名称:">
<a-input v-model:value="where.placeName" placeholder="请输入测点名称" allow-clear/>
</a-form-item>
</a-col>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置
</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -232,7 +238,8 @@ export default {
sorter: true, sorter: true,
}, },
{title: "点位等级", dataIndex: "regionLevel", sorter: true,}, {title: "点位等级", dataIndex: "regionLevel", sorter: true,},
{title: "操作",key: "action",width: 150,align: "center", {
title: "操作", key: "action", width: 150, align: "center",
fixed: "right", fixed: "right",
slots: { slots: {
customRender: "action", customRender: "action",