Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
4997ebff
Commit
4997ebff
authored
Jan 11, 2021
by
rencs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.11 upload
parent
e7aff3e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
edit.vue
src/views/webSiteManagement/imageLibrary/edit.vue
+7
-0
index.vue
...nt/industryApplication/applicationList/addUpApp/index.vue
+7
-0
No files found.
src/views/webSiteManagement/imageLibrary/edit.vue
View file @
4997ebff
...
@@ -57,9 +57,11 @@
...
@@ -57,9 +57,11 @@
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
:action=
"BASE_API + '/api/datacenter/bg/gtdata/upload'"
:action=
"BASE_API + '/api/datacenter/bg/gtdata/upload'"
:before-upload=
"showLoading"
:on-success=
"handleDataUpSuccess"
:on-success=
"handleDataUpSuccess"
:headers=
"getHeaderWithToken"
:headers=
"getHeaderWithToken"
:show-file-list=
"false"
:show-file-list=
"false"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
...
@@ -290,6 +292,7 @@ export default {
...
@@ -290,6 +292,7 @@ export default {
}
}
};
};
return
{
return
{
fullscreenLoading
:
false
,
BASE_API
:
process
.
env
.
BASE_API
,
BASE_API
:
process
.
env
.
BASE_API
,
//1--影像美图 2--专题图 3--遥感成果图
//1--影像美图 2--专题图 3--遥感成果图
imageTypes
:
{
imageTypes
:
{
...
@@ -404,7 +407,11 @@ export default {
...
@@ -404,7 +407,11 @@ export default {
});
});
});
});
},
},
showLoading
()
{
this
.
fullscreenLoading
=
true
;
},
handleDataUpSuccess
(
res
,
file
)
{
handleDataUpSuccess
(
res
,
file
)
{
this
.
fullscreenLoading
=
false
;
this
.
ruleForm
.
imageInfoRelationList
.
push
({
this
.
ruleForm
.
imageInfoRelationList
.
push
({
url
:
res
.
data
.
path
,
url
:
res
.
data
.
path
,
price
:
0
,
price
:
0
,
...
...
src/views/webSiteManagement/industryApplication/applicationList/addUpApp/index.vue
View file @
4997ebff
...
@@ -160,9 +160,11 @@
...
@@ -160,9 +160,11 @@
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
:action=
"BASE_API + '/api/datacenter/bg/gtdata/upload'"
:action=
"BASE_API + '/api/datacenter/bg/gtdata/upload'"
:before-upload=
"showLoading"
:on-success=
"handleDataUpSuccess"
:on-success=
"handleDataUpSuccess"
:headers=
"getHeaderWithToken"
:headers=
"getHeaderWithToken"
:show-file-list=
"false"
:show-file-list=
"false"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
...
@@ -304,6 +306,7 @@ export default {
...
@@ -304,6 +306,7 @@ export default {
currentFirstType
:
""
,
currentFirstType
:
""
,
secondTypes
:
[],
secondTypes
:
[],
currentSecondType
:
""
,
currentSecondType
:
""
,
fullscreenLoading
:
false
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -365,7 +368,11 @@ export default {
...
@@ -365,7 +368,11 @@ export default {
this
.
$bus
.
$emit
(
"hideThreeRoute"
,
true
);
this
.
$bus
.
$emit
(
"hideThreeRoute"
,
true
);
},
},
methods
:
{
methods
:
{
showLoading
()
{
this
.
fullscreenLoading
=
true
;
},
handleDataUpSuccess
(
res
,
file
)
{
handleDataUpSuccess
(
res
,
file
)
{
this
.
fullscreenLoading
=
false
;
this
.
form
.
sourceFile
=
res
.
data
.
path
;
this
.
form
.
sourceFile
=
res
.
data
.
path
;
},
},
// 获取所有应用类型
// 获取所有应用类型
...
...
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