Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
4c0c0945
Commit
4c0c0945
authored
Feb 25, 2020
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新版上传组件,保存路径问题
parent
2b3e157d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ant-design-vue-jeecg/src/components/jeecg/JEditableTable.vue
+11
-3
ant-design-vue-jeecg/src/components/jeecg/JUpload.vue
+1
-1
No files found.
ant-design-vue-jeecg/src/components/jeecg/JEditableTable.vue
View file @
4c0c0945
...
...
@@ -1268,7 +1268,8 @@
// 同步更改
this
.
rows
=
rows
this
.
$nextTick
(()
=>
{
this
.
updateFormValues
()
this
.
recalcSortNumber
()
this
.
forceUpdateFormValues
()
})
// 触发 insert 事件
this
.
$emit
(
'inserted'
,
{
...
...
@@ -1911,12 +1912,19 @@
sort
(
this
.
rows
)
sort
(
this
.
inputValues
)
// 重置排序字段
this
.
inputValues
.
forEach
((
val
,
idx
)
=>
val
[
this
.
dragSortKey
]
=
(
idx
+
1
))
this
.
recalcSortNumber
()
this
.
forceUpdateFormValues
()
},
/** 重新计算排序字段的数值 */
recalcSortNumber
()
{
if
(
this
.
dragSort
)
{
// 重置排序字段
this
.
inputValues
.
forEach
((
val
,
idx
)
=>
val
[
this
.
dragSortKey
]
=
(
idx
+
1
))
}
},
/** 当前行向上移一位 */
_handleRowMoveUp
(
rowIndex
)
{
if
(
rowIndex
>
0
)
{
...
...
ant-design-vue-jeecg/src/components/jeecg/JUpload.vue
View file @
4c0c0945
...
...
@@ -221,7 +221,7 @@
}).map((file) => {
var fileJson = {
fileName:file.name,
filePath:file.
url
,
filePath:file.
response.message
,
fileSize:file.size
};
this.newFileList.push(fileJson);
...
...
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