Admin.UI/src/components/my-search-window/index.vue
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<my-window
title="高级查询"
embed
:visible.sync="currentVisible"
:modal="modal"
:modal-append-to-body="modalAppendToBody"
:custom-class="'my-search-window'"
:close-on-click-modal="closeOnClickModal"
:close-on-press-escape="closeOnPressEscape"
:width="width"
>
<my-search-filter ref="searchFilter" :fields="fields" />
<template #footer>
<div class="dialog-footer">
<my-confirm-button
:placement="'top-end'"
style="margin-left: 0px;float:left;"
@click="onReset"
>
<template #content>
<p>确定要重置吗?</p>
</template>
重置
</my-confirm-button>
<el-button @click.native="onCancel">取消</el-button>
<el-button type="primary" @click="onSearch">查询</el-button>
</div>
</template>
</my-window>
</template>
<script>
/**
* 高级查询窗口
* 使用说明
import MySearchWindow from '@/components/my-search-window'
components: { MySearchWindow }
<!--高级查询窗口-->
<my-search-window
:visible.sync="searchWindowVisible"
:fields="fields"
@click="onSearchFilter"
/>
// 高级查询字段
fields: [
{ value: 'userName', label: '用户名' },
{ value: 'nickName', label: '昵称', type: 'string' },
{ value: 'createdTime', label: '创建时间', type: 'date', config: { type: 'date' }}
],
searchWindowVisible: false,
// 高级查询显示
onsearchWindowVisible() {
this.searchWindowVisible = true
},
// 高级查询
onSearchFilter(dynamicFilter) {
后面还有 95 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
