问题修改
This commit is contained in:
parent
7a5f8e39d1
commit
caa456f7c6
|
@ -2,7 +2,7 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<el-config-provider :locale="en" style="position: relative">
|
<el-config-provider :locale="en" style="position: relative">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" border v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<el-config-provider :locale="en" style="position: relative">
|
<el-config-provider :locale="en" style="position: relative">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" border v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<el-config-provider :locale="en" style="position: relative">
|
<el-config-provider :locale="en" style="position: relative">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" border v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column prop="vordmId" label="Vordm Id" show-overflow-tooltip width="120"></el-table-column>
|
<el-table-column prop="vordmId" label="Vordm ID" show-overflow-tooltip width="120"></el-table-column>
|
||||||
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<el-config-provider :locale="en" style="position: relative">
|
<el-config-provider :locale="en" style="position: relative">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" border v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column prop="vordmId" label="Vordm Id" show-overflow-tooltip width="120"></el-table-column>
|
<el-table-column prop="vordmId" label="Vordm ID" show-overflow-tooltip width="120"></el-table-column>
|
||||||
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
<el-table-column prop="disasterType" label="Disaster Type" show-overflow-tooltip>
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
batch delete
|
batch delete
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" @selection-change="handleSelectionChange" style="width: 100%">
|
<el-table :data="state.tableData.data" border v-loading="state.tableData.loading" @selection-change="handleSelectionChange" style="width: 100%">
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="name" label="User Name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="name" label="User Name" show-overflow-tooltip></el-table-column>
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
<div class="system-menu-container">
|
<div class="system-menu-container">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<div class="system-menu-search mb15">
|
<div class="system-menu-search mb15">
|
||||||
<span class="label-span">菜单名称:</span><el-input size="default" placeholder="请输入菜单名称" style="max-width: 180px"> </el-input>
|
<span class="label-span">menu name:</span><el-input size="default" placeholder="please enter menuname" style="max-width: 180px" v-model="state.searchName"> </el-input>
|
||||||
<el-button size="default" type="primary" class="ml10" @click="init()">
|
<el-button size="default" type="primary" class="ml10" @click="init()">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search/>
|
<ele-Search/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
查询
|
search
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="success" class="ml10" @click="onOpenAddMenu(null)" >
|
<el-button size="default" type="success" class="ml10" @click="onOpenAddMenu(null)" >
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-FolderAdd />
|
<ele-FolderAdd />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
新增菜单
|
add
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -70,13 +70,16 @@ import {getLazyList ,remove} from '/@/api/system/menu';
|
||||||
|
|
||||||
const addMenuRef = ref();
|
const addMenuRef = ref();
|
||||||
const editMenuRef = ref();
|
const editMenuRef = ref();
|
||||||
|
const state = reactive({
|
||||||
|
searchName: '',
|
||||||
|
});
|
||||||
|
|
||||||
// 获取 pinia 中的路由
|
// 获取 pinia 中的路由
|
||||||
const menuTableData = reactive({
|
const menuTableData = reactive({
|
||||||
data: [],
|
data: [],
|
||||||
})
|
})
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
const res = await getLazyList(0);
|
const res = await getLazyList(0,{name: state.searchName});
|
||||||
menuTableData.data = res;
|
menuTableData.data = res;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="system-role-container">
|
<div class="system-role-container">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<div class="system-user-search mb15">
|
<div class="system-user-search mb15">
|
||||||
<span class="label-span">Role Name:</span><el-input size="default" placeholder="please enter role name" style="max-width: 180px"> </el-input>
|
<span class="label-span">Role Name:</span><el-input size="default" placeholder="please enter role name" style="max-width: 180px" v-model="state.searchName"> </el-input>
|
||||||
<el-button size="default" type="primary" class="ml10" @click="initTableData()">
|
<el-button size="default" type="primary" class="ml10" @click="initTableData()">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search/>
|
<ele-Search/>
|
||||||
|
@ -76,10 +76,11 @@ const state = reactive({
|
||||||
user: '',
|
user: '',
|
||||||
region: '',
|
region: '',
|
||||||
},
|
},
|
||||||
|
searchName: '',
|
||||||
});
|
});
|
||||||
// 初始化表格数据
|
// 初始化表格数据
|
||||||
const initTableData = () => {
|
const initTableData = () => {
|
||||||
getList(null,null,{ascs:"sort"}).then(res => {
|
getList(null,null,{ascs:"sort",roleName_like: state.searchName}).then(res => {
|
||||||
console.log(res,"res.data");
|
console.log(res,"res.data");
|
||||||
state.tableData.data = res;
|
state.tableData.data = res;
|
||||||
state.tableData.total = res.length;
|
state.tableData.total = res.length;
|
||||||
|
|
Loading…
Reference in New Issue