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
feeace0d
Commit
feeace0d
authored
Jul 12, 2021
by
liu.jiani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
202107121505
parent
7074f7fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
src/api/axiosapi.js
+1
-2
src/views/HeaderOne.vue
+2
-3
src/views/Home.vue
+8
-3
src/views/creatActiveMain.vue
+9
-0
No files found.
src/api/axiosapi.js
View file @
feeace0d
import
{
postFileRequest
}
from
'@/utils/request-gateway'
const
DeviceApi
=
{
uploadFile
:
'/api/tbStLayerData/uploadExcel'
,
// 查询设备树接口
uploadFile
:
'/api/tbStLayerData/uploadExcel'
,
}
// 查询设备树
export
function
uploadFile
(
parameter
)
{
return
postFileRequest
(
DeviceApi
.
uploadFile
,
parameter
)
}
...
...
src/views/HeaderOne.vue
View file @
feeace0d
...
...
@@ -161,7 +161,8 @@ export default {
this
.
curType
=
'upload'
},
changeCurType
(
item
)
{
this
.
curType
=
item
.
type
this
.
curType
=
item
.
type
this
.
$emit
(
'changeCurTypeFunc'
,
this
.
curType
)
},
exceedFile
(
files
,
fileList
)
{
this
.
$message
.
warning
(
...
...
@@ -221,7 +222,6 @@ export default {
this
.
$emit
(
"uploadFileFlagFunc"
,
false
);
this
.
$message
.
warning
(
"请输入图层名称后上传"
);
}
else
{
this
.
fileList
=
[]
this
.
uploadFlag
=
false
;
this
.
imageUrl
=
false
;
...
...
@@ -460,7 +460,6 @@ export default {
}
.downloading
{
width
:
92px
;
width
:
92px
;
margin
:
0
10px
;
cursor
:
pointer
;
font-family
:
"Microsoft YaHei"
;
...
...
src/views/Home.vue
View file @
feeace0d
...
...
@@ -4,10 +4,11 @@
<header-one
:uploadFileFlag=
"uploadFileFlag"
@
uploadFileFlagFunc=
"uploadFileFlagFunc"
@
changeCurTypeFunc=
"changeCurTypeFunc"
></header-one>
</div>
<div
class=
"decision-content"
>
<creat-active-main
:uploadFileFlag=
"uploadFileFlag"
></creat-active-main>
<creat-active-main
:uploadFileFlag=
"uploadFileFlag"
:curType=
"curType"
></creat-active-main>
</div>
<div
class=
"decision-button"
></div>
</div>
...
...
@@ -31,7 +32,8 @@ export default {
},
value
:
""
,
activeName
:
""
,
uploadFileFlag
:
false
uploadFileFlag
:
false
,
curType
:
''
};
},
...
...
@@ -40,7 +42,10 @@ export default {
methods
:
{
uploadFileFlagFunc
(
flag
)
{
this
.
uploadFileFlag
=
flag
;
}
},
changeCurTypeFunc
(
type
)
{
this
.
curType
=
type
;
},
}
};
</
script
>
...
...
src/views/creatActiveMain.vue
View file @
feeace0d
...
...
@@ -103,6 +103,15 @@ export default {
uploadFileFlag
:
{
type
:
Boolean
,
default
:
false
},
curType
:
{
type
:
String
,
default
:
''
},
},
watch
:
{
curType
(
newV
,
oldV
)
{
console
.
log
(
newV
,
oldV
)
}
},
data
()
{
...
...
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