Introducing new features. 新增 enter 事件

This commit is contained in:
aeizzz 2023-02-24 09:44:35 +08:00
parent 62296e732b
commit f161b33270
7 changed files with 41 additions and 29 deletions

View File

@ -2,7 +2,7 @@
<div class="layout-padding">
<el-card class="layout-padding-auto">
<el-row v-show="showSearch" class="mb8">
<el-form :model="state.queryForm" ref="queryRef" :inline="true">
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item :label="$t('client.clientId')" prop="clientId">
<el-input :placeholder="$t('client.clientId')" v-model="state.queryForm.clientId" style="max-width: 180px" />
</el-form-item>

View File

@ -2,21 +2,27 @@
<div class="layout-padding">
<el-card shadow="hover" class="layout-padding-auto">
<div class="mb15">
<el-input :placeholder="$t('sysdept.inputdeptNameTip')" style="max-width: 180px"
v-model="state.queryForm.deptName"> </el-input>
<el-button icon="search" type="primary" class="ml10" @click="getDataList">
{{ $t('common.queryBtn') }}
</el-button>
<el-button icon="folder-add" type="primary" class="ml10" @click="deptDialogRef.openDialog('add');"
v-auth="'sys_dept_add'">
{{ $t('common.addBtn') }}
</el-button>
<el-button icon="upload-filled" type="primary" class="ml10" @click="excelUploadRef.show()">
{{ $t('common.importBtn') }}
</el-button>
<el-button icon="Download" type="primary" class="ml10" @click="exportExcel">
{{ $t('common.exportBtn') }}
</el-button>
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item prop="deptName">
<el-input :placeholder="$t('sysdept.inputdeptNameTip')" style="max-width: 180px"
v-model="state.queryForm.deptName"> </el-input>
</el-form-item>
<el-form-item class="ml2">
<el-button icon="search" type="primary" class="ml10" @click="getDataList">
{{ $t('common.queryBtn') }}
</el-button>
<el-button icon="folder-add" type="primary" class="ml10" @click="deptDialogRef.openDialog('add');"
v-auth="'sys_dept_add'">
{{ $t('common.addBtn') }}
</el-button>
<el-button icon="upload-filled" type="primary" class="ml10" @click="excelUploadRef.show()">
{{ $t('common.importBtn') }}
</el-button>
<el-button icon="Download" type="primary" class="ml10" @click="exportExcel">
{{ $t('common.exportBtn') }}
</el-button>
</el-form-item>
</el-form>
</div>
<el-table :data="state.dataList" v-loading="state.loading" style="width: 100%" row-key="id"
default-expand-all :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">

View File

@ -2,7 +2,7 @@
<div class="layout-padding">
<el-card shadow="hover" class="layout-padding-auto">
<el-row v-show="showSearch" class="mb8">
<el-form :model="state.queryForm" ref="queryRef" :inline="true">
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item :label="$t('sysdict.dictType')" prop="dictType">
<el-input :placeholder="$t('sysdict.inputDictTypeTip')" v-model="state.queryForm.dictType" style="max-width: 180px" />
</el-form-item>

View File

@ -2,7 +2,7 @@
<div class="layout-padding">
<el-card class="layout-padding-auto">
<el-row v-show="showSearch" class="mb8">
<el-form :model="state.queryForm" ref="queryRef" :inline="true">
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item :label="$t('file.fileName')" prop="original">
<el-input v-model="state.queryForm.original" :placeholder="$t('file.inputoriginalTip')" clearable
style="width: 240px" @keyup.enter="getDataList" />

View File

@ -2,14 +2,20 @@
<div class="layout-padding">
<el-card shadow="hover">
<div class="mb15">
<el-input :placeholder="$t('sysmenu.inputNameTip')" style="max-width: 180px"
v-model="state.queryForm.menuName"> </el-input>
<el-button icon="search" type="primary" class="ml10" @click="getDataList">
{{ $t('common.queryBtn') }}
</el-button>
<el-button icon="folder-add" type="primary" class="ml10" @click="onOpenAddMenu" v-auth="'sys_menu_add'">
{{ $t('common.addBtn') }}
</el-button>
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item :label="$t('sysmenu.name')" prop="menuName" >
<el-input :placeholder="$t('sysmenu.inputNameTip')" style="max-width: 180px"
clearable v-model="state.queryForm.menuName"/>
</el-form-item>
<el-form-item>
<el-button icon="search" type="primary" class="ml10" @click="getDataList">
{{ $t('common.queryBtn') }}
</el-button>
<el-button icon="folder-add" type="primary" class="ml10" @click="onOpenAddMenu" v-auth="'sys_menu_add'">
{{ $t('common.addBtn') }}
</el-button>
</el-form-item>
</el-form>
</div>
<el-table :data="state.dataList" v-loading="state.loading" style="width: 100%" row-key="path"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }">

View File

@ -2,7 +2,7 @@
<div class="layout-padding">
<el-card shadow="hover" class="layout-padding-auto">
<el-row shadow="hover" v-show="showSearch" class="mb8">
<el-form :model="state.queryForm" ref="queryRef" :inline="true">
<el-form :model="state.queryForm" ref="queryRef" :inline="true" @keyup.enter="getDataList">
<el-form-item :label="$t('sysrole.roleName')" prop="roleName">
<el-input :placeholder="$t('sysrole.inputRoleNameTip')" v-model="state.queryForm.roleName"
style="max-width: 180px" />
@ -173,4 +173,4 @@ const handleDelete = (ids: string[]) => {
})
};
</script>
</script>

View File

@ -203,4 +203,4 @@ const handleDelete = (ids: string[]) => {
})
})
};
</script>
</script>