Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_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
常超
founder_vue
Commits
e3d26b2c
Commit
e3d26b2c
authored
Sep 11, 2021
by
liupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了上传文件
parent
10ab3777
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
src/views/xsjsdb/queryRwbd.vue
+26
-2
No files found.
src/views/xsjsdb/queryRwbd.vue
View file @
e3d26b2c
...
@@ -273,7 +273,7 @@ export default {
...
@@ -273,7 +273,7 @@ export default {
created
()
{},
created
()
{},
methods
:
{
methods
:
{
add
()
{
add
()
{
console
.
log
(
123
);
this
.
$router
.
push
(
'addRwbd'
)
},
},
signFor
(
data
)
{
signFor
(
data
)
{
let
params
=
new
FormData
();
let
params
=
new
FormData
();
...
@@ -300,6 +300,7 @@ export default {
...
@@ -300,6 +300,7 @@ export default {
},
},
submitFeedback
()
{
submitFeedback
()
{
let
params
=
new
FormData
();
let
params
=
new
FormData
();
console
.
log
(
this
.
feedbackInfo
.
files
);
params
.
append
(
'bdrwbh'
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
'bdrwbh'
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
'fkjgJyqk'
,
this
.
feedbackInfo
.
fkjgJyqk
);
params
.
append
(
'fkjgJyqk'
,
this
.
feedbackInfo
.
fkjgJyqk
);
params
.
append
(
'files'
,
this
.
feedbackInfo
.
files
);
params
.
append
(
'files'
,
this
.
feedbackInfo
.
files
);
...
@@ -309,7 +310,6 @@ export default {
...
@@ -309,7 +310,6 @@ export default {
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
type
:
"success"
,
type
:
"success"
,
callback
:
()
=>
{
callback
:
()
=>
{
loading
.
close
();
},
},
});
});
}
else
{
}
else
{
...
@@ -320,6 +320,30 @@ export default {
...
@@ -320,6 +320,30 @@ export default {
//upload组件相关方法
//upload组件相关方法
handleChange
(
file
,
fileList
)
{
handleChange
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
console
.
log
(
file
,
fileList
);
this
.
feedbackInfo
.
files
=
fileList
// var self = this;
// let isLt1M = "";
// isLt1M = file.raw.size / 1024 / 1024
<
101
;
// if (self.fileLists[item.id].length == 0) {
// self.$set(self.fileLists, item.id, []);
// }
// if (isLt1M) {
// this.fileLists[item.id].push(file);
// this.$refs.formLabelAlign.clearValidate();
// } else {
// this.$confirm("上传文件不能超过100M", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// }).then(() => {
// fileList.forEach((item, index) => {
// if (file.raw.uid == item.uid) {
// debugger;
// fileList.splice(index, 1);
// }
// });
// });
// }
},
},
handleExceed
(
file
,
fileList
)
{
handleExceed
(
file
,
fileList
)
{
this
.
$confirm
(
"上传文件不能超过100M"
,
"提示"
,
{
this
.
$confirm
(
"上传文件不能超过100M"
,
"提示"
,
{
...
...
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