Commit 182bd1c3 by Sendya

fix: innerEditList zhCN lang

parent 5077398a
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
// eslint-disable-next-line // eslint-disable-next-line
this.title = this.$route.meta.title this.title = this.$route.meta.title
// 因为套用了一层 route-view 所以要取 ref 对象下的子节点的第一个对象 // 因为套用了一层 route-view 所以要取 ref 对象下的子节点的第一个对象
const content = this.$refs.content.$children[0] const content = this.$refs.content && this.$refs.content.$children[0]
if (content) { if (content) {
this.description = content.description this.description = content.description
this.linkList = content.linkList this.linkList = content.linkList
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
name: "Exception", name: "Exception",
props: { props: {
type: { type: {
type: Number, type: String,
default: 404 default: '404'
} }
}, },
data() { data() {
......
...@@ -100,13 +100,16 @@ ...@@ -100,13 +100,16 @@
<template slot="action" slot-scope="text, record, index"> <template slot="action" slot-scope="text, record, index">
<div class='editable-row-operations'> <div class='editable-row-operations'>
<span v-if="record.editable"> <span v-if="record.editable">
<a @click="() => save(record)" style="margin-right: 12px">Save</a> <a @click="() => save(record)">保存</a>
<a-popconfirm title='Sure to cancel?' @confirm="() => cancel(record)"> <a-divider type="vertical" />
<a>Cancel</a> <a-popconfirm title='真的放弃编辑吗?' @confirm="() => cancel(record)">
<a>取消</a>
</a-popconfirm> </a-popconfirm>
</span> </span>
<span v-else> <span v-else>
<a @click="() => edit(record, index)">Edit</a> <a @click="() => edit(record, index)">修改</a>
<a-divider type="vertical" />
<a @click="() => delete(record, index)">删除</a>
</span> </span>
</div> </div>
</template> </template>
...@@ -133,7 +136,8 @@ ...@@ -133,7 +136,8 @@
columns: [ columns: [
{ {
title: '规则编号', title: '规则编号',
dataIndex: 'no' dataIndex: 'no',
width: 90
}, },
{ {
title: '描述', title: '描述',
...@@ -143,6 +147,7 @@ ...@@ -143,6 +147,7 @@
{ {
title: '服务调用次数', title: '服务调用次数',
dataIndex: 'callNo', dataIndex: 'callNo',
width: '150px',
sorter: true, sorter: true,
needTotal: true, needTotal: true,
scopedSlots: { customRender: 'callNo' }, scopedSlots: { customRender: 'callNo' },
...@@ -151,12 +156,14 @@ ...@@ -151,12 +156,14 @@
{ {
title: '状态', title: '状态',
dataIndex: 'status', dataIndex: 'status',
width: '120px',
needTotal: true, needTotal: true,
scopedSlots: { customRender: 'status' }, scopedSlots: { customRender: 'status' },
}, },
{ {
title: '更新时间', title: '更新时间',
dataIndex: 'updatedAt', dataIndex: 'updatedAt',
width: '180px',
sorter: true, sorter: true,
scopedSlots: { customRender: 'updatedAt' }, scopedSlots: { customRender: 'updatedAt' },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment