Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
Backend Management
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
967
Star
5.3K
Fork
1.7K
GVP
smallwei
/
Avue
Code
Issues
8
Pull Requests
0
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
附件上传组件的删除事件无法返回文件信息?
Done
#I1A1XN
超级小白
Opened this issue
2020-02-23 12:00
一、该问题的重现步骤是什么? 1. 参考https://avuejs.com/doc/form/form-upload,使用avue的附件上传组件。 2. 前端代码 ``` export default { data() { return { visible: false, form: { fileList: [] }, option: { size: 'mini', emptyBtn: false, submitBtn: false, column: [ { prop: 'fileList', type: 'upload', loadText: '附件上传中,请稍等', propsHttp: { url: 'link', name: 'originalName', res: 'data' }, props: { label: 'originalName', value: 'link' }, action: '' } ] } } }, methods: { show(id, name, description) { this.visible = true; this.option.column[0].action = '/api/blade-resource/file/uploadAndSave?objName=' + name + '&objId=' + id + '&description=' + description; //附件列表回显 showFileList(name, id).then(res => { const data = res.data; if (data.success) { this.form.fileList = data.data; } }) }, uploadDelete(column) { console.log(column); return this.$confirm(`这里是自定义的,是否确定移除该选项?`); } } } ``` 二、你期待的结果是什么?实际看到的又是什么?  期待结果:希望点击删除后,能够返回对应的文件信息。 实际上看到的是: 得到的数据仅仅是把前端写的column抄一遍。 如果在前端的uploadDelete方法里再多写一个参数,返回的只能多一个"undefined"。
一、该问题的重现步骤是什么? 1. 参考https://avuejs.com/doc/form/form-upload,使用avue的附件上传组件。 2. 前端代码 ``` export default { data() { return { visible: false, form: { fileList: [] }, option: { size: 'mini', emptyBtn: false, submitBtn: false, column: [ { prop: 'fileList', type: 'upload', loadText: '附件上传中,请稍等', propsHttp: { url: 'link', name: 'originalName', res: 'data' }, props: { label: 'originalName', value: 'link' }, action: '' } ] } } }, methods: { show(id, name, description) { this.visible = true; this.option.column[0].action = '/api/blade-resource/file/uploadAndSave?objName=' + name + '&objId=' + id + '&description=' + description; //附件列表回显 showFileList(name, id).then(res => { const data = res.data; if (data.success) { this.form.fileList = data.data; } }) }, uploadDelete(column) { console.log(column); return this.$confirm(`这里是自定义的,是否确定移除该选项?`); } } } ``` 二、你期待的结果是什么?实际看到的又是什么?  期待结果:希望点击删除后,能够返回对应的文件信息。 实际上看到的是: 得到的数据仅仅是把前端写的column抄一遍。 如果在前端的uploadDelete方法里再多写一个参数,返回的只能多一个"undefined"。
Comments (
0
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
v2.4.1
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (6)
Tags (225)
master
dev
2.x
2.x-dev
2.8.0
1.x
v3.7.2
v3.7.1
v3.7.0
v3.6.5
v3.6.4
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.5.6
v2.13.2
v3.5.5
v3.5.4
v3.5.3
v2.13.1
v3.5.2
v3.5.1
v3.5.0
v2.13.0
v3.4.9
v2.12.8
v3.4.8
v2.12.7
v3.4.7
v2.12.6
v2.12.5
v3.4.6
v3.4.5
v3.4.4
v2.12.4
v2.12.3
v3.4.3
v2.12.2
v3.4.2
v2.12.1
v3.4.1
v3.4.0
v2.12.0
v3.3.4
v3.3.3
v3.3.2
v2.11.2
v2.11.1
v3.3.1
v3.3.0
v2.11.0
v3.2.23
v3.2.22
v2.10.18
v3.2.21
v2.10.17
v3.2.20
v2.10.16
v3.2.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4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.0.4
1.0.3
1.0.2
1.0.1
1.0
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
JavaScript
1
https://gitee.com/smallweigit/avue.git
git@gitee.com:smallweigit/avue.git
smallweigit
avue
Avue
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register