Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
school-paper-admin-front
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
1
Merge Requests
1
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
school-paper
school-paper-admin-front
Commits
7eb58bd8
Commit
7eb58bd8
authored
Jul 28, 2023
by
H.wb.wang.peixun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
dccc299a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
src/components/ImageUpload/index.vue
+1
-1
src/views/school-paper/banner/index.vue
+2
-10
vue.config.js
+1
-1
No files found.
src/components/ImageUpload/index.vue
View file @
7eb58bd8
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
// headers: {
// headers: {
// Authorization: "Bearer " + getToken(),
// Authorization: "Bearer " + getToken(),
// },
// },
uploadImgUrl
:
process
.
env
.
VUE_APP_BASE_API
+
'
/
school-paper/banner/uploadFile'
,
uploadImgUrl
:
process
.
env
.
VUE_APP_BASE_API
+
'school-paper/banner/uploadFile'
,
headers
:
{
headers
:
{
Authorization
:
"Bearer "
+
getToken
(),
Authorization
:
"Bearer "
+
getToken
(),
},
},
...
...
src/views/school-paper/banner/index.vue
View file @
7eb58bd8
...
@@ -142,9 +142,6 @@ export default {
...
@@ -142,9 +142,6 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
bannerTitle
:
undefined
,
url
:
undefined
,
status
:
undefined
,
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
...
@@ -189,15 +186,8 @@ export default {
...
@@ -189,15 +186,8 @@ export default {
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
id
:
undefined
,
bannerTitle
:
undefined
,
bannerTitle
:
undefined
,
url
:
undefined
,
url
:
undefined
,
remark
:
undefined
,
status
:
undefined
,
createTime
:
undefined
,
createBy
:
undefined
,
updateTime
:
undefined
,
updateBy
:
undefined
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
...
@@ -237,6 +227,8 @@ export default {
...
@@ -237,6 +227,8 @@ export default {
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
console
.
log
(
this
.
form
,
'this.form,'
)
this
.
form
.
url
=
this
.
form
.
url
[
0
].
url
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
buttonLoading
=
true
;
this
.
buttonLoading
=
true
;
...
...
vue.config.js
View file @
7eb58bd8
...
@@ -35,7 +35,7 @@ module.exports = {
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://farming.nyinhong.com/`
,
target
:
`http://farming.nyinhong.com/
api
`
,
// target: `http://192.168.0.169:8111/`,
// target: `http://192.168.0.169:8111/`,
// target: `http://192.168.0.165:8111/`,
// target: `http://192.168.0.165:8111/`,
changeOrigin
:
true
,
changeOrigin
:
true
,
...
...
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