This commit is contained in:
刘旋 2023-04-23 17:35:28 +08:00
parent 71db5daf80
commit cf31fe552c
4 changed files with 24 additions and 24 deletions

View File

@ -8,12 +8,12 @@
<el-form> <el-form>
<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="User name"><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 style="max-width: 180px"
placeholder="Replied"> placeholder="Replied">
@ -22,13 +22,13 @@
<el-option label="Observed" :value="2"></el-option> <el-option label="Observed" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-button size="default" type="primary" class="ml15" style="margin-top: 4px ;" <el-button size="default" type="primary" class="ml15" style="margin-top: 4px ;"
@click="initTableData"> @click="initTableData">
<el-icon> <el-icon>
<ele-Search /> <ele-Search />
</el-icon> </el-icon>
search Search
</el-button> </el-button>
</el-row> </el-row>
@ -39,14 +39,14 @@
</div> </div>
<el-table :data="state.tableData.data" style="width: 100%" v-loading="state.tableData.loading" <el-table :data="state.tableData.data" style="width: 100%" v-loading="state.tableData.loading"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column prop="userName" label="userName"> </el-table-column> <el-table-column prop="userName" label="User name"> </el-table-column>
<el-table-column prop="email" label="email"> </el-table-column> <el-table-column prop="email" label="Email"> </el-table-column>
<el-table-column prop="organization" label="organization"> </el-table-column> <el-table-column prop="organization" label="Organization"> </el-table-column>
<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"

View File

@ -8,8 +8,8 @@
highlight-current-row @row-click="tableClick"> highlight-current-row @row-click="tableClick">
<el-table-column type="index" label="ID" width="50" /> <el-table-column type="index" label="ID" width="50" />
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column> <el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column> <el-table-column prop="disasterCountry" label="Disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column> <el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
@ -26,14 +26,14 @@
<el-icon> <el-icon>
<ele-EditPen /> <ele-EditPen />
</el-icon> </el-icon>
batch audit Batch operation
</el-button> </el-button>
</div> </div>
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" <el-table :data="state.tableData.data" 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" label="ID" width="50" /> <el-table-column type="index" label="ID" width="50" />
<el-table-column prop="uploaderName" label="uploader Name" show-overflow-tooltip></el-table-column> <el-table-column prop="uploaderName" label="Uploader name" show-overflow-tooltip></el-table-column>
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column> <el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
<el-table-column prop="title" label="Professional title" show-overflow-tooltip <el-table-column prop="title" label="Professional title" show-overflow-tooltip
width="150"></el-table-column> width="150"></el-table-column>

View File

@ -14,11 +14,11 @@
</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="review status" style="margin-left: 10px;">
<el-select size="default" v-model="state.query.checked" clearable <el-select size="default" v-model="state.query.checked" clearable
placeholder="Please select"> placeholder="Please select">
<el-option label="checked" value="0"></el-option> <el-option label="Reviewed" value="0"></el-option>
<el-option label="unchecked" value="1"></el-option> <el-option label="Not reviewed" value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -27,7 +27,7 @@
<el-icon> <el-icon>
<ele-Search /> <ele-Search />
</el-icon> </el-icon>
search Search
</el-button> </el-button>
</el-row> </el-row>
@ -48,9 +48,9 @@
<a :href="scope.row.link" target="_blank">{{ scope.row.toolName }}</a> <a :href="scope.row.link" target="_blank">{{ scope.row.toolName }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="label" label="label" width="140"> </el-table-column> <el-table-column prop="label" label="Label" width="140"> </el-table-column>
<el-table-column prop="introduction" label="introduction"> </el-table-column> <el-table-column prop="introduction" label="Introduction"> </el-table-column>
<el-table-column prop="showName" label="Show Name"></el-table-column> <el-table-column prop="showName" label="Uploader name"></el-table-column>
<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">

View File

@ -3,7 +3,7 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px"> <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
<el-tab-pane label="unchecked" name="first"> <el-tab-pane label="Not reviewed" name="first">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%"> <el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
<el-table-column type="index" label="ID" width="50" /> <el-table-column type="index" label="ID" width="50" />
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column> <el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
@ -28,7 +28,7 @@
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip> <el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-tag type="info" v-if="scope.row.respondStatus === 0">Not reviewed</el-tag> <el-tag type="info" v-if="scope.row.respondStatus === 0">Not reviewed</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 1">Failed</el-tag> <el-tag type="info" v-if="scope.row.respondStatus === 1">Reviewed failed</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip> <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
@ -62,7 +62,7 @@
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="checked" name="second"> <el-tab-pane label="Reviewed" name="second">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%"> <el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
<el-table-column type="index" label="ID" width="50" /> <el-table-column type="index" label="ID" width="50" />
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column> <el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>