Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-project-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
setup-project-manager-ui
Commits
fdb46f26
Commit
fdb46f26
authored
Oct 31, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加检测是否首次安装
parent
0519eb6f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
27 deletions
+75
-27
admin/src/views/Home.vue
admin/src/views/Home.vue
+35
-1
admin/src/views/setup/project/list.vue
admin/src/views/setup/project/list.vue
+40
-26
No files found.
admin/src/views/Home.vue
View file @
fdb46f26
<
template
>
<div
class=
"page page-home"
style=
"min-height: 100vh;"
>
欢迎你,
{{
userData
}}
<div
v-if=
"!bool"
>
引导页面
</div>
</div>
</
template
>
<
script
>
export
default
{
created
()
{
//检测是否初始安装
this
.
$get
(
"
/setup/project/check
"
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
console
.
log
(
res
)
let
bool
=
res
.
data
if
(
bool
){
}
else
{
//弹框引导页面
}
//this.$message.success("项目部署成功!");
// this.getData();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
computed
:
{
userData
()
{
return
this
.
$store
.
state
.
userData
.
currUserName
;
},
},
data
()
{
return
{
bool
:
false
}
}
};
</
script
>
admin/src/views/setup/project/list.vue
View file @
fdb46f26
...
...
@@ -18,7 +18,45 @@
<drawer-show
ref=
"drawerform"
@
ok=
"getData"
/>
<!-- 设备导入对话框 -->
<!-- 项目导入对话框 -->
<el-dialog
:title=
"upload.title"
:visible.sync=
"upload.open"
width=
"400px"
append-to-body
>
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".zip,.tar.gz"
:headers=
"upload.headers"
:action=
"upload.url"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em>
</div>
<div
class=
"el-upload__tip"
style=
"color: red"
slot=
"tip"
>
提示:仅允许导入“zip”或“.tar.gz”格式压缩文件!
</div>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
class=
"addclass"
@
click=
"submitFileForm"
>
确 定
</el-button
>
<el-button
@
click=
"upload.open = false"
>
取 消
</el-button>
</div>
</el-dialog>
<!-- 项目引导导入对话框 -->
<el-dialog
:title=
"upload.title"
:visible.sync=
"upload.open"
...
...
@@ -65,34 +103,10 @@
name
:
"
SetupProjectList
"
,
components
:
{
drawerShow
},
},
mixins
:
[
table
],
created
()
{
//检测是否初始安装
this
.
$get
(
"
/setup/project/check
"
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
console
.
log
(
res
)
let
bool
=
res
.
data
if
(
bool
){
}
else
{
//弹框引导页面
}
//this.$message.success("项目部署成功!");
// this.getData();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
methods
:
{
/** 导入 */
...
...
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