代码提交,分页转右侧
This commit is contained in:
parent
1a82c09598
commit
ac02974a87
|
@ -380,7 +380,7 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -278,7 +278,7 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -291,8 +291,8 @@ onMounted(() => {
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.demo-tabs>.el-tabs__content {
|
.demo-tabs>.el-tabs__content {
|
||||||
|
|
|
@ -641,7 +641,7 @@ const searchDisasterDate = () => {
|
||||||
padding-left: 1%;
|
padding-left: 1%;
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -49,7 +49,7 @@
|
||||||
@selection-change="handleSelectionChange" style="width: 100%">
|
@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="time" label="time" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="date" label="date" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="word" label="word" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="word" label="word" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
|
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
|
||||||
|
@ -367,7 +367,7 @@ onMounted(() => {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -9,14 +9,15 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="UserName"><el-input size="default" style="max-width: 180px"
|
<el-form-item label="UserName"><el-input size="default" style="max-width: 180px"
|
||||||
v-model="state.query.userName" clearable placeholder="Please enter the UserName">
|
v-model="state.query.userName" clearable
|
||||||
|
placeholder="Please enter the UserName">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="checked" style="margin-left: 10px;">
|
<el-form-item label="checked" style="margin-left: 10px;">
|
||||||
<el-select size="default" v-model="state.query.status" clearable style="max-width: 180px"
|
<el-select size="default" v-model="state.query.status" clearable
|
||||||
placeholder="Replied">
|
style="max-width: 180px" placeholder="Replied">
|
||||||
<el-option label="UnReplied" :value="0"></el-option>
|
<el-option label="UnReplied" :value="0"></el-option>
|
||||||
<el-option label="Replied" :value="1"></el-option>
|
<el-option label="Replied" :value="1"></el-option>
|
||||||
<el-option label="Observed" :value="2"></el-option>
|
<el-option label="Observed" :value="2"></el-option>
|
||||||
|
@ -45,21 +46,25 @@
|
||||||
<el-table-column prop="message" label="message"> </el-table-column>
|
<el-table-column prop="message" label="message"> </el-table-column>
|
||||||
<el-table-column label="Operate" width="180">
|
<el-table-column label="Operate" width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status != 2 " text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
||||||
|
v-if="scope.row.status != 2" text type="primary"
|
||||||
@click="onObserved(scope.row)">Observed</el-button>
|
@click="onObserved(scope.row)">Observed</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status != 1 " text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
||||||
|
v-if="scope.row.status != 1" text type="primary"
|
||||||
@click="onOpenEdit(scope.row)">Reply e-mail</el-button>
|
@click="onOpenEdit(scope.row)">Reply e-mail</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status == 1 " text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
||||||
|
v-if="scope.row.status == 1" text type="primary"
|
||||||
@click="onOpenEdit(scope.row)">Reply Info</el-button>
|
@click="onOpenEdit(scope.row)">Reply Info</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
||||||
@click="onRowDel(scope.row)">Delete</el-button>
|
@click="onRowDel(scope.row)">Delete</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange"
|
||||||
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
background v-model:page-size="state.tableData.param.pageSize"
|
v-model:current-page="state.tableData.param.pageNum" background
|
||||||
layout="total, sizes, prev, pager, next" :total="state.tableData.total">
|
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -70,14 +75,8 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="Content:" > -->
|
<!-- <el-form-item label="Content:" > -->
|
||||||
|
|
||||||
<QuillEditor ref="myQuillEditor"
|
<QuillEditor ref="myQuillEditor" theme="snow" v-model:content="state.email.text" :options="state.options"
|
||||||
theme="snow"
|
contentType="html" @update:content="setValue()" style="height:500px ;" />
|
||||||
v-model:content="state.email.text"
|
|
||||||
:options="state.options"
|
|
||||||
contentType="html"
|
|
||||||
@update:content="setValue()"
|
|
||||||
style="height:500px ;"
|
|
||||||
/>
|
|
||||||
<!-- </el-form-item> -->
|
<!-- </el-form-item> -->
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
|
@ -218,9 +217,8 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -224,7 +224,7 @@ onMounted(() => {
|
||||||
getTableData();
|
getTableData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style scoped lang="scss">
|
||||||
.demo-tabs>.el-tabs__content {
|
.demo-tabs>.el-tabs__content {
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
color: #6b778c;
|
color: #6b778c;
|
||||||
|
@ -242,7 +242,7 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div class="system-user-container" style="width:calc(100% - 10px) !important ;">
|
<div class="system-user-container" style="width:calc(100% - 10px) !important ;">
|
||||||
<el-config-provider :locale="en">
|
<el-config-provider :locale="en">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
|
@ -54,8 +53,8 @@
|
||||||
<el-table-column prop="reviewTime" label="Review Time"></el-table-column>
|
<el-table-column prop="reviewTime" label="Review Time"></el-table-column>
|
||||||
<el-table-column label="Operate" width="140">
|
<el-table-column label="Operate" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button :style='scope.row.reviewTime?"display:none;":"" ' size="small" text type="primary"
|
<el-button :style='scope.row.reviewTime ? "display:none;" : ""' size="small" text
|
||||||
@click="onOpenEdit(scope.row)">Review</el-button>
|
type="primary" @click="onOpenEdit(scope.row)">Review</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
||||||
@click="onRowDel(scope.row)">Delete</el-button>
|
@click="onRowDel(scope.row)">Delete</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -64,15 +63,14 @@
|
||||||
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange"
|
||||||
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
v-model:current-page="state.tableData.param.pageNum" background
|
v-model:current-page="state.tableData.param.pageNum" background
|
||||||
v-model:page-size="state.tableData.param.pageSize"
|
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
layout="total, sizes, prev, pager, next" :total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="systemUser">
|
<script setup name="systemUser">
|
||||||
|
@ -172,9 +170,8 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -12,15 +12,16 @@
|
||||||
search
|
search
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%" @selection-change = "selectionChange">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%"
|
||||||
|
@selection-change="selectionChange">
|
||||||
<el-table-column type="selection" width="60" @select="selectRow" />
|
<el-table-column type="selection" width="60" @select="selectRow" />
|
||||||
<el-table-column prop="name" label="Name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="name" label="Name" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
||||||
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
|
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
|
||||||
background v-model:page-size="state.tableData.param.pageSize"
|
background v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
layout="total, sizes, prev, pager, next" :total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-card>
|
</el-card>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -133,7 +134,7 @@ defineExpose({
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -118,8 +118,6 @@
|
||||||
<el-input placeholder="请输入内容" style="height:35px;"></el-input>
|
<el-input placeholder="请输入内容" style="height:35px;"></el-input>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
||||||
<Map style="height:350px ; width:100% ;margin-bottom: 10px;" ref="map"></Map>
|
|
||||||
|
|
||||||
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;" ref="mapRef"></MapPage>
|
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;" ref="mapRef"></MapPage>
|
||||||
|
|
||||||
<el-form-item label="Disaster Time">
|
<el-form-item label="Disaster Time">
|
||||||
|
@ -386,7 +384,7 @@ const getValue = (key) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,89 +2,50 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<div class="system-user-search mb15">
|
<div class="system-user-search mb15">
|
||||||
<el-input v-model="state.tableData.param.search"
|
<el-input v-model="state.tableData.param.search" size="default" placeholder="请输入角色名称" style="max-width: 180px">
|
||||||
size="default"
|
</el-input>
|
||||||
placeholder="请输入角色名称"
|
<el-button size="default" type="primary" class="ml10">
|
||||||
style="max-width: 180px"> </el-input>
|
|
||||||
<el-button size="default"
|
|
||||||
type="primary"
|
|
||||||
class="ml10">
|
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
查询
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default"
|
<el-button size="default" type="success" class="ml10" @click="onOpenAddRole('add')">
|
||||||
type="success"
|
|
||||||
class="ml10"
|
|
||||||
@click="onOpenAddRole('add')">
|
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-FolderAdd />
|
<ele-FolderAdd />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
新增角色
|
新增角色
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data"
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
v-loading="state.tableData.loading"
|
<el-table-column type="index" label="序号" width="60" />
|
||||||
style="width: 100%">
|
<el-table-column prop="roleName" label="角色名称" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column type="index"
|
<el-table-column prop="roleSign" label="角色标识" show-overflow-tooltip></el-table-column>
|
||||||
label="序号"
|
<el-table-column prop="sort" label="排序" show-overflow-tooltip></el-table-column>
|
||||||
width="60" />
|
<el-table-column prop="status" label="角色状态" show-overflow-tooltip>
|
||||||
<el-table-column prop="roleName"
|
|
||||||
label="角色名称"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="roleSign"
|
|
||||||
label="角色标识"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="sort"
|
|
||||||
label="排序"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="status"
|
|
||||||
label="角色状态"
|
|
||||||
show-overflow-tooltip>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="success"
|
<el-tag type="success" v-if="scope.row.status">启用</el-tag>
|
||||||
v-if="scope.row.status">启用</el-tag>
|
<el-tag type="info" v-else>禁用</el-tag>
|
||||||
<el-tag type="info"
|
|
||||||
v-else>禁用</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="describe"
|
<el-table-column prop="describe" label="角色描述" show-overflow-tooltip></el-table-column>
|
||||||
label="角色描述"
|
<el-table-column prop="createTime" label="创建时间" show-overflow-tooltip></el-table-column>
|
||||||
show-overflow-tooltip></el-table-column>
|
<el-table-column label="操作" width="100">
|
||||||
<el-table-column prop="createTime"
|
|
||||||
label="创建时间"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column label="操作"
|
|
||||||
width="100">
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button :disabled="scope.row.roleName === '超级管理员'"
|
<el-button :disabled="scope.row.roleName === '超级管理员'" size="small" text type="primary"
|
||||||
size="small"
|
|
||||||
text
|
|
||||||
type="primary"
|
|
||||||
@click="onOpenEditRole('edit', scope.row)">修改</el-button>
|
@click="onOpenEditRole('edit', scope.row)">修改</el-button>
|
||||||
<el-button :disabled="scope.row.roleName === '超级管理员'"
|
<el-button :disabled="scope.row.roleName === '超级管理员'" size="small" text type="primary"
|
||||||
size="small"
|
|
||||||
text
|
|
||||||
type="primary"
|
|
||||||
@click="onRowDel(scope.row)">删除</el-button>
|
@click="onRowDel(scope.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
||||||
@current-change="onHandleCurrentChange"
|
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
:pager-count="3"
|
|
||||||
:page-sizes="[10, 20, 30]"
|
|
||||||
v-model:current-page="state.tableData.param.pageNum"
|
|
||||||
background
|
|
||||||
v-model:page-size="state.tableData.param.pageSize"
|
|
||||||
layout="total, sizes, prev, pager, next"
|
|
||||||
:total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<RoleDialog ref="roleDialogRef"
|
<RoleDialog ref="roleDialogRef" @refresh="getTableData()" />
|
||||||
@refresh="getTableData()" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -170,13 +131,15 @@ onMounted(() => {
|
||||||
.system-role-container {
|
.system-role-container {
|
||||||
.system-role-padding {
|
.system-role-padding {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
||||||
.el-table {
|
.el-table {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -149,7 +149,7 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,8 +3,13 @@
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-config-provider :locale="en">
|
<el-config-provider :locale="en">
|
||||||
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
||||||
<el-input size="default" placeholder="please enter manager name" style="max-width: 200px" v-model="state.searchName"
|
<el-input size="default" placeholder="please enter manager name" style="max-width: 200px"
|
||||||
clearable></el-input>
|
v-model="state.searchName" clearable></el-input>
|
||||||
|
<el-select v-model="state.status" placeholder="please select data type" style="max-width: 200px"
|
||||||
|
size="default" clearable>
|
||||||
|
<el-option value= "0" label="Unclaimed"></el-option>
|
||||||
|
<el-option value= "1" label="Claimed"></el-option>
|
||||||
|
</el-select>
|
||||||
<el-button size="default" type="primary" class="ml10" @click="getTableData">
|
<el-button size="default" type="primary" class="ml10" @click="getTableData">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
|
@ -18,59 +23,34 @@
|
||||||
batch audit
|
batch audit
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data"
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
|
||||||
v-loading="state.tableData.loading"
|
@selection-change="handleSelectionChange" style="width: 100%">
|
||||||
@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"
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
label="ID"
|
<el-table-column prop="disasterType" label="DisasterType" show-overflow-tooltip></el-table-column>
|
||||||
width="50" />
|
<el-table-column prop="disasterCountry" label="DisasterCountry" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="disasterType"
|
<el-table-column prop="disasterKeyword" label="DisasterKeyword" show-overflow-tooltip></el-table-column>
|
||||||
label="DisasterType"
|
<el-table-column prop="managerName" label="ManagerName" show-overflow-tooltip></el-table-column>
|
||||||
show-overflow-tooltip></el-table-column>
|
<el-table-column prop="sponsorOrganization" label="SponsorOrganization" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="disasterCountry"
|
<el-table-column prop="researchField" label="ResearchField" show-overflow-tooltip></el-table-column>
|
||||||
label="DisasterCountry"
|
<el-table-column prop="occupation" label="occupation" show-overflow-tooltip></el-table-column>
|
||||||
show-overflow-tooltip></el-table-column>
|
<el-table-column prop="applyTime" label="applyTime" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="disasterKeyword"
|
<el-table-column v-if="state.status == '1'" prop="reviewTime" label="reviewTime" show-overflow-tooltip></el-table-column>
|
||||||
label="DisasterKeyword"
|
<el-table-column v-if="state.status == '0'" prop="Operate" label="Operate" show-overflow-tooltip>
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="managerName"
|
|
||||||
label="ManagerName"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="sponsorOrganization"
|
|
||||||
label="SponsorOrganization"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="researchField"
|
|
||||||
label="ResearchField"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="occupation"
|
|
||||||
label="occupation"
|
|
||||||
show-overflow-tooltip></el-table-column>
|
|
||||||
<el-table-column prop="Operate"
|
|
||||||
label="Operate"
|
|
||||||
show-overflow-tooltip>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- <el-button link type="primary" size="small" @click="handleClick">Detail</el-button>-->
|
<!-- <el-button link type="primary" size="small" @click="handleClick">Detail</el-button>-->
|
||||||
<el-button link type="primary" size="small" @click="auditManager(scope.row)">Audit</el-button>
|
<el-button link type="primary" size="small" @click="auditManager(scope.row)">Audit</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
||||||
@current-change="onHandleCurrentChange"
|
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
:pager-count="3"
|
|
||||||
:page-sizes="[10, 20, 30]"
|
|
||||||
v-model:current-page="state.tableData.param.pageNum"
|
|
||||||
background
|
|
||||||
v-model:page-size="state.tableData.param.pageSize"
|
|
||||||
layout="total, sizes, prev, pager, next"
|
|
||||||
:total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</div>
|
</div>
|
||||||
<RoleDialog ref="roleDialogRef"
|
<RoleDialog ref="roleDialogRef" @refresh="getTableData()" />
|
||||||
@refresh="getTableData()" />
|
|
||||||
<Audit ref="auditRef" @callback="getTableData" />
|
<Audit ref="auditRef" @callback="getTableData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -95,6 +75,7 @@ const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialo
|
||||||
// 定义变量内容
|
// 定义变量内容
|
||||||
const roleDialogRef = ref();
|
const roleDialogRef = ref();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
status:"0",
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
searchName: '',
|
searchName: '',
|
||||||
tableData: {
|
tableData: {
|
||||||
|
@ -130,7 +111,7 @@ const auditManager = (row) => {
|
||||||
// 初始化表格数据
|
// 初始化表格数据
|
||||||
const getTableData = () => {
|
const getTableData = () => {
|
||||||
state.tableData.loading = true;
|
state.tableData.loading = true;
|
||||||
getAdminManagerPage(state.tableData.param.pageNum,state.tableData.param.pageSize,{"managerName":state.searchName}).then(res=>{
|
getAdminManagerPage(state.tableData.param.pageNum, state.tableData.param.pageSize, { "managerName": state.searchName,"status": state.status}).then(res => {
|
||||||
state.tableData.data = res.records;
|
state.tableData.data = res.records;
|
||||||
state.tableData.total = res.total;
|
state.tableData.total = res.total;
|
||||||
})
|
})
|
||||||
|
@ -185,7 +166,12 @@ onMounted(() => {
|
||||||
getTableData();
|
getTableData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style scoped lang="scss">
|
||||||
|
.mt15 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: end;
|
||||||
|
}
|
||||||
|
|
||||||
.demo-tabs>.el-tabs__content {
|
.demo-tabs>.el-tabs__content {
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
color: #6b778c;
|
color: #6b778c;
|
||||||
|
@ -196,13 +182,10 @@ onMounted(() => {
|
||||||
.system-role-container {
|
.system-role-container {
|
||||||
.system-role-padding {
|
.system-role-padding {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
||||||
.el-table {
|
.el-table {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
|
||||||
float: right;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -126,7 +126,7 @@ defineExpose({
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -1,14 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<el-config-provider :locale="en">
|
<el-config-provider :locale="en">
|
||||||
<el-drawer
|
<el-drawer v-model="state.table" title="Management Disaster" direction="rtl" size="50%">
|
||||||
v-model="state.table"
|
|
||||||
title="Management Disaster"
|
|
||||||
direction="rtl"
|
|
||||||
size="50%"
|
|
||||||
>
|
|
||||||
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
||||||
<el-input size="default" placeholder="please enter disaster type" style="max-width: 190px" v-model="state.searchName"
|
<el-input size="default" placeholder="please enter disaster type" style="max-width: 190px"
|
||||||
clearable></el-input>
|
v-model="state.searchName" clearable></el-input>
|
||||||
<el-button size="default" type="primary" class="ml10" @click="getTableData">
|
<el-button size="default" type="primary" class="ml10" @click="getTableData">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
|
@ -33,23 +28,15 @@
|
||||||
<el-table-column property="dictValue" label="DisasterType" width="150" />
|
<el-table-column property="dictValue" label="DisasterType" width="150" />
|
||||||
<el-table-column property="disasterCountry" label="DisasterCountry" width="200" />
|
<el-table-column property="disasterCountry" label="DisasterCountry" width="200" />
|
||||||
<el-table-column property="disasterTime" label="DisasterTime" />
|
<el-table-column property="disasterTime" label="DisasterTime" />
|
||||||
<el-table-column prop="Operate"
|
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
|
||||||
label="Operate"
|
|
||||||
show-overflow-tooltip>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" size="small" @click="deleteDisaster(scope.row)">Delete</el-button>
|
<el-button link type="primary" size="small" @click="deleteDisaster(scope.row)">Delete</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange"
|
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
||||||
@current-change="onHandleCurrentChange"
|
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
|
||||||
:pager-count="3"
|
|
||||||
:page-sizes="[10, 20, 30]"
|
|
||||||
v-model:current-page="state.tableData.param.pageNum"
|
|
||||||
background
|
|
||||||
v-model:page-size="state.tableData.param.pageSize"
|
|
||||||
layout="total, sizes, prev, pager, next"
|
|
||||||
:total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
<DisasterInfo ref="disasterInfoRef" @callback="getTableData" />
|
<DisasterInfo ref="disasterInfoRef" @callback="getTableData" />
|
||||||
|
@ -155,7 +142,7 @@ defineExpose({
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -235,7 +235,7 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt15 {
|
.mt15 {
|
||||||
float: right;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue