This commit is contained in:
刘旋 2023-04-23 20:54:54 +08:00
parent c35e8635d6
commit f99d0ce5f4
5 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@
<el-sub-menu :index="val.path" v-if="val.children && val.children.length > 0" :key="val.path">
<template #title>
<SvgIcon :name="val.meta.icon" />
<span v-text="useTranslateStore.translate_control===1?val.meta.title :val.meta.zh"></span>
<span v-text="val.meta.title"></span>
</template>
<SubItem :chil="val.children" />
</el-sub-menu>
@ -20,7 +20,7 @@
<el-menu-item :index="val.path" :key="val.path">
<SvgIcon :name="val.meta.icon" />
<template #title v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
<span v-text="useTranslateStore.translate_control===1?val.meta.title :val.meta.zh"></span>
<span v-text="val.meta.title "></span>
</template>
<template #title v-else>
<a class="w100" @click.prevent="onALinkClick(val)">{{ val.meta.title }}</a>

View File

@ -280,7 +280,7 @@ export const dynamicRoutes = [
name: 'systemDic',
component: () => import('/@/views/system/dic/index.vue'),
meta: {
title: '字典管理',
title: 'Dictionary management',
isLink: '',
isHide: false,
isKeepAlive: true,

View File

@ -43,9 +43,9 @@
<el-form-item label=" Review status" label-width="100px">
<el-select v-model=" state.srarchType " placeholder="Please select data type" style="max-width: 200px"
size="default" clearable>
<el-option value="0" label="Not Reviewed"></el-option>
<el-option value="1" label="Reviewed"></el-option>
<el-option value="2" label="Review failed"></el-option>
<el-option value="0" label="Awaiting approval"></el-option>
<el-option value="1" label="Approved"></el-option>
<el-option value="2" label="Rejected"></el-option>
</el-select>
</el-form-item>
<el-form-item label="Title" label-width="100px" v-if=" state.searchName == '1' ">
@ -96,11 +96,11 @@
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default=" scope ">
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
@click=" openDialog(scope.row, true) ">review</el-button>
@click=" openDialog(scope.row, true) ">Awaiting approval</el-button>
<el-button size="small" text type="success" v-if=" scope.row.status == 1 "
@click=" openDialog(scope.row, false) ">review</el-button>
@click=" openDialog(scope.row, false) ">Approved</el-button>
<el-button size="small" text type="danger" v-if=" scope.row.status == 2 "
@click=" openDialog(scope.row, false) ">review</el-button>
@click=" openDialog(scope.row, false) ">Rejected</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -16,8 +16,8 @@
<el-form-item label="review status" style="margin-left: 10px;">
<el-select size="default" v-model="state.query.checked" clearable
placeholder="Please select">
<el-option label="Reviewed" value="0"></el-option>
<el-option label="Not reviewed" value="1"></el-option>
<el-option label="Approved" value="0"></el-option>
<el-option label="Awaiting approval" value="1"></el-option>
</el-select>
</el-form-item>
</el-col>
@ -54,9 +54,9 @@
<el-table-column label="Operate" width="140">
<template #default="scope">
<el-button :style='scope.row.reviewTime ? "display:none;" : ""' size="small" text
type="primary" @click="onOpenEdit(scope.row)">Review</el-button>
type="primary" @click="onOpenEdit(scope.row)">Approve</el-button>
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
@click="onRowDel(scope.row)">Delete</el-button>
@click="onRowDel(scope.row)">Reject</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -3,7 +3,7 @@
<el-config-provider :locale="en">
<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-tab-pane label="Awaiting approval" name="first">
<el-tab-pane label="Unapproved" name="first">
<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 prop="username" label="User name" show-overflow-tooltip></el-table-column>
@ -27,7 +27,7 @@
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
<template #default="scope">
<el-tag type="info" v-if="scope.row.respondStatus === 0">Unapproved</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 0">Awaiting approval</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 1">Rejected</el-tag>
</template>
</el-table-column>