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
39794136
Commit
39794136
authored
Sep 13, 2021
by
liupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了列表页的上传附件
parent
c9eaf4ba
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
103 deletions
+52
-103
src/components/form.vue
+1
-0
src/components/ptCxForm_components.vue
+2
-3
src/utils/http.js
+2
-2
src/views/xsjsdb/queryRwbd.vue
+30
-53
src/views/xsjsdb/queryRwbdjs.vue
+17
-45
No files found.
src/components/form.vue
View file @
39794136
...
...
@@ -1482,6 +1482,7 @@ export default {
});
});
for
(
var
fileItem
in
self
.
fileLists
)
{
debugger
;
for
(
var
i
=
0
;
i
<
self
.
fileLists
[
fileItem
].
length
;
i
++
)
{
if
(
self
.
fileLists
[
fileItem
][
i
].
raw
)
{
params
.
append
(
fileItem
,
self
.
fileLists
[
fileItem
][
i
].
raw
);
...
...
src/components/ptCxForm_components.vue
View file @
39794136
...
...
@@ -484,8 +484,7 @@
pageBs == 'gnsyrz' ||
pageBs == 'jdcxsGl' ||
pageBs == 'hmxsGl' ||
pageBs == 'ryxsGl' ||
pageBs == 'rwbd'
pageBs == 'ryxsGl'
)
"
>
...
...
@@ -541,7 +540,7 @@
>
签收
</span
>
<span
v-if=
"pageBs == 'rwbdjs' && scope.row.rwztdm == '04'"
@
click=
"addFeedBack(scope)"
class=
"edit"
style=
"margin-right: 16px"
...
...
src/utils/http.js
View file @
39794136
...
...
@@ -14,7 +14,7 @@ arr.forEach((item) => {
appToken
=
item
.
split
(
"appToken"
)[
1
];
}
});
debugger
//
debugger
axios
.
defaults
.
timeout
=
0
;
axios
.
defaults
.
headers
=
{
"X-Requested-With"
:
"XMLHttpRequest"
,
...
...
@@ -318,7 +318,7 @@ export function postdown(url, data) {
* @returns {Promise}
*/
export
function
postJson
(
url
,
data
)
{
debugger
//
debugger
return
new
Promise
((
resolve
,
reject
)
=>
{
json
.
post
(
url
,
JSON
.
parse
(
data
)).
then
(
response
=>
{
resolve
(
response
);
...
...
src/views/xsjsdb/queryRwbd.vue
View file @
39794136
...
...
@@ -28,7 +28,7 @@
width=
"30%"
center
>
<el-form
:inline=
"true"
:model=
"feedbackInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"feedbackInfo"
class=
"demo-form-inline"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"20"
:offset=
"4"
style=
"margin-top: 20px"
>
<el-form-item
label=
"反馈结果概要"
style=
"width:100%;"
>
...
...
@@ -62,11 +62,12 @@
}
"
multiple
:limit="3"
:limit="4"
:httpRequest="httpRequest"
:on-exceed="handleExceed"
:file-list="feedbackInfo.files"
:auto-upload="false"
v-model="f
eedbackInfo.files
"
v-model="f
ile
"
>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选取文件
</el-button
...
...
@@ -75,36 +76,7 @@
上传文件不能超过100M
</div>
</el-upload>
<!--
<el-upload
class=
"upload-demo"
action=
"#"
:on-change=
"
(flie, fileList) =>
{
handleChange(flie, fileList, item);
}
"
:on-remove="
(flie, fileList) => {
handleRemove(flie, fileList, item);
}
"
:before-remove="
(flie, fileList) => {
handleBeforeRemove(flie, fileList, item);
}
"
:on-preview="
(flie, fileList) => {
handlerPreview(flie, fileList, item);
}
"
:auto-upload="false"
:http-request="httpRequest"
:file-list="fileLists[item.fileId || item.id]"
v-model="formLabelAlign[item.id]"
>
<el-button
size=
"small"
type=
"primary"
>
选择上传
</el-button>
</el-upload>
-->
</el-form-item>
</el-col>
</el-row>
...
...
@@ -156,7 +128,7 @@ export default {
id
:
"rwlxdm"
,
type
:
"codeTree"
,
codeTree
:
"CODE_XSJSBD_RWLXDM"
,
props
:
[]
,
props
:
""
,
codeOptions
:
[],
value
:
""
,
placeholder
:
""
,
...
...
@@ -186,7 +158,7 @@ export default {
id
:
"ajlbdm"
,
type
:
"codeTree"
,
codeTree
:
"CODE_AJLB"
,
props
:
[],
codeOptions
:
[],
value
:
""
,
placeholder
:
""
,
...
...
@@ -268,12 +240,13 @@ export default {
fkjgJyqk
:
""
,
files
:
[],
},
file
:
""
,
};
},
created
()
{},
methods
:
{
add
()
{
this
.
$router
.
push
(
'addRwbd'
)
this
.
$router
.
push
(
"addRwbd"
);
},
signFor
(
data
)
{
let
params
=
new
FormData
();
...
...
@@ -283,8 +256,7 @@ export default {
this
.
$alert
(
"签收成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
},
callback
:
()
=>
{},
});
}
else
{
this
.
$message
.
error
(
"签收失败"
);
...
...
@@ -296,31 +268,34 @@ export default {
this
.
dialogVisible
=
true
;
this
.
feedbackInfo
.
bdrwbh
=
data
;
console
.
log
(
this
.
feedbackInfo
.
bdrwbh
);
},
httpRequest
()
{},
submitFeedback
()
{
console
.
log
(
this
.
feedbackInfo
,
this
.
file
);
let
params
=
new
FormData
();
console
.
log
(
this
.
feedbackInfo
.
files
);
params
.
append
(
'bdrwbh'
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
'fkjgJyqk'
,
this
.
feedbackInfo
.
fkjgJyqk
);
params
.
append
(
'files'
,
this
.
feedbackInfo
.
files
);
params
.
append
(
"bdrwbh"
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
"fkjgJyqk"
,
this
.
feedbackInfo
.
fkjgJyqk
);
for
(
let
i
=
0
;
i
<
this
.
feedbackInfo
.
files
.
length
;
i
++
){
params
.
append
(
"files"
,
this
.
feedbackInfo
.
files
[
i
].
raw
);
}
insertFkxx
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"新增反馈信息成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
},
callback
:
()
=>
{},
});
}
else
{
this
.
$message
.
error
(
"新增反馈信息失败"
);
}
});
this
.
dialogVisible
=
false
},
//upload组件相关方法
handleChange
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
this
.
feedbackInfo
.
files
=
fileList
this
.
feedbackInfo
.
files
=
fileList
;
// var self = this;
// let isLt1M = "";
// isLt1M = file.raw.size / 1024 / 1024
<
101
;
...
...
@@ -374,18 +349,17 @@ export default {
},
handleRemove
(
file
,
fileList
)
{
fileList
.
forEach
((
item
,
index
)
=>
{
if
(
file
.
uid
==
item
.
uid
)
{
fileList
.
splice
(
index
,
1
);
}
});
if
(
file
.
uid
==
item
.
uid
)
{
fileList
.
splice
(
index
,
1
);
}
});
},
handlePreview
(
file
)
{
console
.
log
(
file
);
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择
3
个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
this
.
feedbackInfo
.
files
.
length
}
个文件`
`当前限制选择
4
个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
this
.
feedbackInfo
.
files
.
length
}
个文件`
);
},
beforeRemove
(
file
,
fileList
)
{
...
...
@@ -393,8 +367,11 @@ export default {
},
toInfor
(
data
)
{
console
.
log
(
123
);
this
.
$router
.
push
({
path
:
'/detailRwbd'
,
query
:{
'xxzjbh'
:
data
.
xxzjbh
}})
this
.
$router
.
push
({
path
:
"/detailRwbd"
,
query
:
{
xxzjbh
:
data
.
xxzjbh
},
});
},
},
};
...
...
src/views/xsjsdb/queryRwbdjs.vue
View file @
39794136
...
...
@@ -27,7 +27,7 @@
width=
"30%"
center
>
<el-form
:inline=
"true"
:model=
"feedbackInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"feedbackInfo"
class=
"demo-form-inline"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"20"
:offset=
"4"
style=
"margin-top: 20px"
>
<el-form-item
label=
"反馈结果概要"
style=
"width:100%;"
>
...
...
@@ -62,10 +62,11 @@
"
multiple
:limit="3"
:httpRequest="httpRequest"
:on-exceed="handleExceed"
:file-list="feedbackInfo.files"
:auto-upload="false"
v-model="f
eedbackInfo.files
"
v-model="f
ile
"
>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选取文件
</el-button
...
...
@@ -74,36 +75,7 @@
上传文件不能超过100M
</div>
</el-upload>
<!--
<el-upload
class=
"upload-demo"
action=
"#"
:on-change=
"
(flie, fileList) =>
{
handleChange(flie, fileList, item);
}
"
:on-remove="
(flie, fileList) => {
handleRemove(flie, fileList, item);
}
"
:before-remove="
(flie, fileList) => {
handleBeforeRemove(flie, fileList, item);
}
"
:on-preview="
(flie, fileList) => {
handlerPreview(flie, fileList, item);
}
"
:auto-upload="false"
:http-request="httpRequest"
:file-list="fileLists[item.fileId || item.id]"
v-model="formLabelAlign[item.id]"
>
<el-button
size=
"small"
type=
"primary"
>
选择上传
</el-button>
</el-upload>
-->
</el-form-item>
</el-col>
</el-row>
...
...
@@ -155,7 +127,7 @@ export default {
id
:
"rwlxdm"
,
type
:
"codeTree"
,
codeTree
:
"CODE_XSJSBD_RWLXDM"
,
props
:
[]
,
props
:
""
,
codeOptions
:
[],
value
:
""
,
placeholder
:
""
,
...
...
@@ -185,7 +157,6 @@ export default {
id
:
"ajlbdm"
,
type
:
"codeTree"
,
codeTree
:
"CODE_AJLB"
,
props
:
[],
codeOptions
:
[],
value
:
""
,
placeholder
:
""
,
...
...
@@ -267,6 +238,7 @@ export default {
fkjgJyqk
:
""
,
files
:
[],
},
file
:
""
,
};
},
created
()
{},
...
...
@@ -297,8 +269,7 @@ export default {
this
.
$alert
(
"签收成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
},
callback
:
()
=>
{},
});
}
else
{
this
.
$message
.
error
(
"签收失败"
);
...
...
@@ -310,31 +281,33 @@ export default {
this
.
dialogVisible
=
true
;
this
.
feedbackInfo
.
bdrwbh
=
data
;
console
.
log
(
this
.
feedbackInfo
.
bdrwbh
);
},
httpRequest
()
{},
submitFeedback
()
{
let
params
=
new
FormData
();
console
.
log
(
this
.
feedbackInfo
.
files
);
params
.
append
(
'bdrwbh'
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
'fkjgJyqk'
,
this
.
feedbackInfo
.
fkjgJyqk
);
params
.
append
(
'files'
,
this
.
feedbackInfo
.
files
);
params
.
append
(
"bdrwbh"
,
this
.
feedbackInfo
.
bdrwbh
);
params
.
append
(
"fkjgJyqk"
,
this
.
feedbackInfo
.
fkjgJyqk
);
for
(
let
i
=
0
;
i
<
this
.
feedbackInfo
.
files
.
length
;
i
++
){
params
.
append
(
"files"
,
this
.
feedbackInfo
.
files
[
i
].
raw
);
}
insertFkxx
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"新增反馈信息成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
},
callback
:
()
=>
{},
});
}
else
{
this
.
$message
.
error
(
"新增反馈信息失败"
);
}
});
this
.
dialogVisible
=
false
},
//upload组件相关方法
handleChange
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
this
.
feedbackInfo
.
files
=
fileList
this
.
feedbackInfo
.
files
=
fileList
;
// var self = this;
// let isLt1M = "";
// isLt1M = file.raw.size / 1024 / 1024
<
101
;
...
...
@@ -395,11 +368,10 @@ export default {
},
handlePreview
(
file
)
{
console
.
log
(
file
);
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择
3
个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
this
.
feedbackInfo
.
files
.
length
}
个文件`
`当前限制选择
4
个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
this
.
feedbackInfo
.
files
.
length
}
个文件`
);
},
beforeRemove
(
file
,
fileList
)
{
...
...
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