Complete the text translation of the 'Log Manage' page (#1144)

pull/1145/head
Svamei 3 years ago committed by GitHub
parent 17a5f13ae7
commit 3db4838884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,4 +193,12 @@ export default {
role: 'Role', role: 'Role',
password: 'Password' password: 'Password'
}, },
//日志管理
logManage: {
bizType: 'Biz Type',
bizID: 'Biz ID',
operator: 'Operator',
logContent: 'Log Content',
},
} }

@ -193,4 +193,12 @@ export default {
role: '角色', role: '角色',
password: '密码' password: '密码'
}, },
//日志管理
logManage: {
bizType: '业务类型',
bizID: '业务标识',
operator: '操作人',
logContent: '日志内容',
},
} }

@ -4,21 +4,21 @@
<el-input <el-input
v-model="listQuery.category" v-model="listQuery.category"
clearable clearable
placeholder="业务类型" :placeholder="$t('logManage.bizType')"
style="width: 200px" style="width: 200px"
class="filter-item" class="filter-item"
/> />
<el-input <el-input
v-model="listQuery.bizNo" v-model="listQuery.bizNo"
clearable clearable
placeholder="业务标识" :placeholder="$t('logManage.bizID')"
style="width: 200px" style="width: 200px"
class="filter-item" class="filter-item"
/> />
<el-input <el-input
v-model="listQuery.operator" v-model="listQuery.operator"
clearable clearable
placeholder="操作人" :placeholder="$t('logManage.operator')"
style="width: 200px" style="width: 200px"
class="filter-item" class="filter-item"
/> />
@ -29,7 +29,7 @@
icon="el-icon-search" icon="el-icon-search"
@click="fetchData" @click="fetchData"
> >
搜索 {{ $t('common.query') }}
</el-button> </el-button>
</div> </div>
<el-table <el-table
@ -40,33 +40,33 @@
fit fit
highlight-current-row highlight-current-row
> >
<el-table-column label="序号" fixed width="95"> <el-table-column :label="$t('common.num')" fixed width="95">
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" width="200"> <el-table-column :label="$t('logManage.bizType')" width="200">
<template slot-scope="scope">{{ scope.row.category }}</template> <template slot-scope="scope">{{ scope.row.category }}</template>
</el-table-column> </el-table-column>
<el-table-column label="业务标识" width="380"> <el-table-column :label="$t('logManage.bizID')" width="380">
<template slot-scope="scope">{{ scope.row.bizNo }}</template> <template slot-scope="scope">{{ scope.row.bizNo }}</template>
</el-table-column> </el-table-column>
<el-table-column label="日志内容" width="500"> <el-table-column :label="$t('logManage.logContent')" width="500">
<template slot-scope="scope">{{ scope.row.action | ellipsis }}</template> <template slot-scope="scope">{{ scope.row.action | ellipsis }}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作人" width="140"> <el-table-column :label="$t('logManage.operator')" width="140">
<template slot-scope="scope">{{ scope.row.operator }} </template> <template slot-scope="scope">{{ scope.row.operator }} </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" width="160"> <el-table-column :label="$t('common.createTime')" width="160">
<template slot-scope="scope">{{ scope.row.createTime }}</template> <template slot-scope="scope">{{ scope.row.createTime }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" :label="$t('common.operation')"
fixed="right" fixed="right"
width="90" width="90"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" size="small" @click="handleUpdate(row)"> </el-button> <el-button type="text" size="small" @click="handleUpdate(row)"> {{ $t('common.detail') }} </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -80,45 +80,45 @@
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" width="800px"> <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" width="800px">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="100px"> <el-form ref="dataForm" :model="temp" label-position="left" label-width="100px">
<el-form-item label="业务类型" prop="category"> <el-form-item :label="$t('logManage.bizType')" prop="category">
<el-input <el-input
v-model="temp.category" v-model="temp.category"
:disabled="true" :disabled="true"
placeholder="业务类型" :placeholder="$t('logManage.bizType')"
style="width: 40%" style="width: 40%"
/> />
</el-form-item> </el-form-item>
<el-form-item label="业务标识" prop="bizNo"> <el-form-item :label="$t('logManage.bizID')" prop="bizNo">
<el-input <el-input
v-model="temp.bizNo" v-model="temp.bizNo"
:disabled="true" :disabled="true"
placeholder="业务标识" :placeholder="$t('logManage.bizID')"
style="width: 40%" style="width: 40%"
/> />
</el-form-item> </el-form-item>
<el-form-item label="操作人" prop="operator"> <el-form-item :label="$t('logManage.operator')" prop="operator">
<el-input <el-input
v-model="temp.operator" v-model="temp.operator"
:disabled="true" :disabled="true"
placeholder="操作人" :placeholder="$t('logManage.operator')"
style="width: 40%" style="width: 40%"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="createTime"> <el-form-item :label="$t('common.createTime')" prop="createTime">
<el-input <el-input
v-model="temp.createTime" v-model="temp.createTime"
:disabled="true" :disabled="true"
placeholder="创建时间" :placeholder="$t('common.createTime')"
style="width: 40%" style="width: 40%"
/> />
</el-form-item> </el-form-item>
<el-form-item label="日志内容" prop="action"> <el-form-item :label="$t('logManage.logContent')" prop="action">
<el-input <el-input
v-model="temp.action" v-model="temp.action"
:disabled="true" :disabled="true"
:autosize="{ minRows: 4, maxRows: 10 }" :autosize="{ minRows: 4, maxRows: 10 }"
type="textarea" type="textarea"
placeholder="日志内容" :placeholder="$t('logManage.logContent')"
style="width: 60%" style="width: 60%"
/> />
</el-form-item> </el-form-item>
@ -227,8 +227,8 @@ export default {
this.fetchData(); this.fetchData();
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.$notify({ this.$notify({
title: 'Success', title: this.$t('message.success'),
message: 'Created Successfully', message: this.$t('message.createdSuccess'),
type: 'success', type: 'success',
duration: 2000, duration: 2000,
}); });
@ -252,8 +252,8 @@ export default {
this.fetchData(); this.fetchData();
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.$notify({ this.$notify({
title: 'Success', title: this.$t('message.success'),
message: 'Update Successfully', message: this.$t('message.updateSuccess'),
type: 'success', type: 'success',
duration: 2000, duration: 2000,
}); });
@ -266,8 +266,8 @@ export default {
jobProjectApi.deleted(row.tenantId).then((response) => { jobProjectApi.deleted(row.tenantId).then((response) => {
this.fetchData(); this.fetchData();
this.$notify({ this.$notify({
title: 'Success', title: this.$t('message.success'),
message: 'Delete Successfully', message: this.$t('message.deleteSuccess'),
type: 'success', type: 'success',
duration: 2000, duration: 2000,
}); });

Loading…
Cancel
Save