Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
182bd1c3
Commit
182bd1c3
authored
Sep 15, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: innerEditList zhCN lang
parent
5077398a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
PageView.vue
src/components/layout/PageView.vue
+1
-1
ExceptionPage.vue
src/views/exception/ExceptionPage.vue
+2
-2
TableInnerEditList.vue
src/views/list/TableInnerEditList.vue
+12
-5
No files found.
src/components/layout/PageView.vue
View file @
182bd1c3
...
...
@@ -44,7 +44,7 @@
// eslint-disable-next-line
this
.
title
=
this
.
$route
.
meta
.
title
// 因为套用了一层 route-view 所以要取 ref 对象下的子节点的第一个对象
const
content
=
this
.
$refs
.
content
.
$children
[
0
]
const
content
=
this
.
$refs
.
content
&&
this
.
$refs
.
content
.
$children
[
0
]
if
(
content
)
{
this
.
description
=
content
.
description
this
.
linkList
=
content
.
linkList
...
...
src/views/exception/ExceptionPage.vue
View file @
182bd1c3
...
...
@@ -20,8 +20,8 @@
name
:
"Exception"
,
props
:
{
type
:
{
type
:
Number
,
default
:
404
type
:
String
,
default
:
'404'
}
},
data
()
{
...
...
src/views/list/TableInnerEditList.vue
View file @
182bd1c3
...
...
@@ -100,13 +100,16 @@
<
template
slot=
"action"
slot-scope=
"text, record, index"
>
<div
class=
'editable-row-operations'
>
<span
v-if=
"record.editable"
>
<a
@
click=
"() => save(record)"
style=
"margin-right: 12px"
>
Save
</a>
<a-popconfirm
title=
'Sure to cancel?'
@
confirm=
"() => cancel(record)"
>
<a>
Cancel
</a>
<a
@
click=
"() => save(record)"
>
保存
</a>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
'真的放弃编辑吗?'
@
confirm=
"() => cancel(record)"
>
<a>
取消
</a>
</a-popconfirm>
</span>
<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>
</div>
</
template
>
...
...
@@ -133,7 +136,8 @@
columns
:
[
{
title
:
'规则编号'
,
dataIndex
:
'no'
dataIndex
:
'no'
,
width
:
90
},
{
title
:
'描述'
,
...
...
@@ -143,6 +147,7 @@
{
title
:
'服务调用次数'
,
dataIndex
:
'callNo'
,
width
:
'150px'
,
sorter
:
true
,
needTotal
:
true
,
scopedSlots
:
{
customRender
:
'callNo'
},
...
...
@@ -151,12 +156,14 @@
{
title
:
'状态'
,
dataIndex
:
'status'
,
width
:
'120px'
,
needTotal
:
true
,
scopedSlots
:
{
customRender
:
'status'
},
},
{
title
:
'更新时间'
,
dataIndex
:
'updatedAt'
,
width
:
'180px'
,
sorter
:
true
,
scopedSlots
:
{
customRender
:
'updatedAt'
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment