Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
517e54d1
提交
517e54d1
编写于
7月 04, 2024
作者:
xinglee23
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 系统升级提示
上级
604d9a81
变更
4
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
343 行增加
和
189 行删除
+343
-189
App.vue
src/App.vue
+246
-189
system-upgrade-dialog.vue
src/components/system-upgrade-dialog.vue
+68
-0
createModal.js
src/utils/createModal.js
+13
-0
index.js
src/utils/system/index.js
+16
-0
未找到文件。
src/App.vue
浏览文件 @
517e54d1
此差异已折叠。
点击以展开。
src/components/system-upgrade-dialog.vue
0 → 100644
浏览文件 @
517e54d1
<
template
>
<div
class=
"dialog"
v-if=
"visible"
>
<div
v-if=
"type === 1"
class=
"content"
>
<img
width=
"680"
height=
"705"
src=
"https://files.yunqueyi.com/image/png/common/2024070411381441.png"
/>
<img
class=
"close"
src=
"https://files.yunqueyi.com/image/svg+xml/common/20240704144219420.svg"
@
click=
"close"
/>
</div>
<img
v-if=
"type === 2"
width=
"680"
height=
"474"
src=
"https://files.yunqueyi.com/image/png/common/2024070411371293.png"
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'SysUpgradeDialog'
,
data
:
function
()
{
return
{
type
:
1
,
visible
:
false
,
};
},
methods
:
{
open
(
type
)
{
this
.
visible
=
true
;
this
.
type
=
type
;
},
close
()
{
this
.
visible
=
false
;
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.dialog {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(2, 2, 2, 0.6);
z-index: 999999;
img {
display: block;
}
.content {
display: flex;
flex-direction: column;
align-items: center;
}
.close {
width: 62px;
height: 62px;
margin-top: 32px;
}
}
</
style
>
src/utils/createModal.js
0 → 100644
浏览文件 @
517e54d1
import
Vue
from
'vue'
;
import
MyModal
from
'../components/system-upgrade-dialog.vue'
;
const
modalConstructor
=
Vue
.
extend
(
MyModal
);
const
createModal
=
()
=>
{
const
instance
=
new
modalConstructor
();
instance
.
$mount
();
document
.
body
.
appendChild
(
instance
.
$el
);
return
instance
;
};
export
default
createModal
;
src/utils/system/index.js
0 → 100644
浏览文件 @
517e54d1
import
fetch
from
'../fetch'
;
import
{
getBaseUrl
}
from
'@/utils/index'
let
headers
=
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
token
:
localStorage
.
getItem
(
'storageToken'
),
};
// 获取检测名称列表
export
const
systemUpdateConfig
=
(
data
)
=>
{
return
fetch
({
headers
,
data
:
data
,
url
:
getBaseUrl
(
`api-ws/constant/config/image`
),
method
:
"get"
,
});
};
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录