Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xcLab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
吴旭健
xcLab
Commits
b5452aac
提交
b5452aac
authored
3月 31, 2020
作者:
Your Name
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v1
上级
d359421e
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
74 行增加
和
23 行删除
+74
-23
config.js
config.js
+2
-2
newApply.vue
src/components/dial/newApply.vue
+4
-1
labSystem.vue
src/views/labSystem.vue
+68
-20
没有找到文件。
config.js
浏览文件 @
b5452aac
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
// 服务地址
// 服务地址
// const IP = 'https://www.easy-mock.com/mock/5b70ec93ad23a1570071a34e/Interview'; // easymock
// const IP = 'https://www.easy-mock.com/mock/5b70ec93ad23a1570071a34e/Interview'; // easymock
const
IP
=
'http://192.168.0.11
6
:8077'
;
const
IP
=
'http://192.168.0.11
2
:8077'
;
const
WS
=
'192.168.0.11
6
:8077'
;
const
WS
=
'192.168.0.11
2
:8077'
;
// 请求目标服务器域名配置
// 请求目标服务器域名配置
...
...
src/components/dial/newApply.vue
浏览文件 @
b5452aac
...
@@ -59,8 +59,11 @@ export default {
...
@@ -59,8 +59,11 @@ export default {
techId
:
b
techId
:
b
}
}
this
.
$server
.
postMidify
(
obj
).
then
(
res
=>
{
this
.
$server
.
postMidify
(
obj
).
then
(
res
=>
{
console
.
log
(
'postMidify'
,
res
.
data
);
console
.
log
(
'postMidify'
,
res
);
this
.
$emit
(
'on-close'
);
this
.
$emit
(
'on-close'
);
console
.
log
(
this
.
$parent
)
this
.
$emit
(
'on-project'
);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
this
.
$message
.
error
(
'请求失败'
)
this
.
$message
.
error
(
'请求失败'
)
...
...
src/views/labSystem.vue
浏览文件 @
b5452aac
<!-- XClab系统页面 -->
<!-- XClab系统页面 -->
<
template
>
<
template
>
<div
class=
"labsystem"
>
<div
class=
"labsystem"
>
<div
class=
"labContent"
>
<div
class=
"labContent"
>
...
@@ -14,8 +13,7 @@
...
@@ -14,8 +13,7 @@
<div
class=
"themeOne-context"
>
<div
class=
"themeOne-context"
>
<el-row
:gutter=
"24"
>
<el-row
:gutter=
"24"
>
<el-col
:offset=
"1"
:span=
"11"
>
<el-col
:offset=
"1"
:span=
"11"
>
<div>
项目路径:
<span
class=
"themeOne-pint"
@
click=
"openAnother(path)"
>
<i>
{{
path
}}
</i>
</span></div>
<div>
项目路径:
<span
@
click=
"openAnother(path)"
>
{{
path
}}
</span></div>
</el-col>
</el-col>
<el-col
:offset=
"1"
:span=
"11"
>
<el-col
:offset=
"1"
:span=
"11"
>
<div>
gitlab地址:
<span>
{{
gitPath
}}
</span>
</div>
<div>
gitlab地址:
<span>
{{
gitPath
}}
</span>
</div>
...
@@ -116,15 +114,12 @@
...
@@ -116,15 +114,12 @@
<div
class=
"themeFour-context"
>
<div
class=
"themeFour-context"
>
<!--
<div
v-if=
"logData.length === 0"
class=
"logNone"
>
暂无数据
</div>
-->
<!--
<div
v-if=
"logData.length === 0"
class=
"logNone"
>
暂无数据
</div>
-->
<div
class=
"logData"
>
<div
class=
"logData"
>
<el-scrollbar
ref=
"elscroll"
style=
"height:100%;"
>
<!--
<el-scrollbar
ref=
"myScrollbar"
class=
"myScrollbar"
style=
"height: 38vh"
>
-->
<!--
<div
ref=
"logDiv"
id=
"logDiv"
>
-->
<textarea
ref=
"myScrollbar"
class=
"logTextarea"
>
<!--
<ul
ref=
"logUl"
>
-->
{{
logData
}}
<!--
<li
class=
"logLi"
v-for=
"(item,index) in logData"
:key=
"index"
>
{{
item
}}
</li>
-->
</textarea>
<!--
<li>
{{
logData
}}
</li>
-->
<!--
</el-scrollbar>
-->
<!--
</ul>
-->
<textarea
name=
""
id=
""
cols=
"30"
rows=
"10"
>
{{
logData
}}
</textarea>
<!--
</div>
-->
</el-scrollbar>
</div>
</div>
</div>
</div>
...
@@ -133,7 +128,7 @@
...
@@ -133,7 +128,7 @@
</div>
</div>
<!--重新申请弹窗-->
<!--重新申请弹窗-->
<el-dialog
:visible
.
sync=
"applyModal"
width=
"0%"
>
<el-dialog
:visible
.
sync=
"applyModal"
width=
"0%"
>
<newApply
:val=
"applyMessage"
:applyId=
"applyId"
@
on-close=
"reset()"
></newApply>
<newApply
:val=
"applyMessage"
:applyId=
"applyId"
@
on-project=
"newProject()"
@
on-close=
"reset()"
></newApply>
<img
src=
"../assets/img/close.png"
class=
"closeModel"
@
click=
"reset()"
>
<img
src=
"../assets/img/close.png"
class=
"closeModel"
@
click=
"reset()"
>
</el-dialog>
</el-dialog>
...
@@ -246,8 +241,8 @@ export default {
...
@@ -246,8 +241,8 @@ export default {
},
},
// 打开项目路径链接新页面
// 打开项目路径链接新页面
openAnother
(
val
)
{
openAnother
(
val
)
{
console
.
log
(
val
)
//
console.log(val)
window
.
open
(
this
.
val
,
'_blank'
).
location
;
window
.
open
(
val
,
'_blank'
).
location
;
},
},
// 部署
// 部署
deploy
()
{
deploy
()
{
...
@@ -261,6 +256,7 @@ export default {
...
@@ -261,6 +256,7 @@ export default {
},
},
// websocket
// websocket
copyWebsocket
(
val
)
{
copyWebsocket
(
val
)
{
var
that
=
this
;
// Create WebSocket connection.
// Create WebSocket connection.
// console.log('this.jenkinsName2121',this.jenkinsName)
// console.log('this.jenkinsName2121',this.jenkinsName)
// const socket = new WebSocket('ws://' + baseUrl.WS_CONT + '/webServer/${this.jenkinsName}');
// const socket = new WebSocket('ws://' + baseUrl.WS_CONT + '/webServer/${this.jenkinsName}');
...
@@ -272,10 +268,18 @@ export default {
...
@@ -272,10 +268,18 @@ export default {
// Listen for messages
// Listen for messages
socket
.
addEventListener
(
'message'
,
function
(
event
)
{
socket
.
addEventListener
(
'message'
,
function
(
event
)
{
// console.log('Message from server ', event.data);
// console.log('Message from server ', event.data);
this
.
logData
=
event
.
data
that
.
logData
+=
event
.
data
// logData: event.data
// console.log('this.logData777', that.logData)
console
.
log
(
'this.logData'
,
this
.
logData
)
});
});
},
scrollDown
()
{
// 滚动条置低
// this.$refs['myScrollbar'].wrap.scrollTop = this.$refs['myScrollbar'].wrap.scrollHeight
let
t
=
document
.
getElementsByTagName
(
"textarea"
)[
0
];
t
.
scrollTop
=
t
.
scrollHeight
;
},
newProject
(){
console
.
log
(
1
)
this
.
getProject
();
}
}
},
},
// 监听属性 类似于data概念
// 监听属性 类似于data概念
...
@@ -296,7 +300,9 @@ export default {
...
@@ -296,7 +300,9 @@ export default {
// 生命周期 - 更新之前
// 生命周期 - 更新之前
beforeUpdate
()
{},
beforeUpdate
()
{},
// 生命周期 - 更新之后
// 生命周期 - 更新之后
updated
()
{},
updated
()
{
this
.
scrollDown
()
},
// 生命周期 - 销毁之前
// 生命周期 - 销毁之前
beforeDestroy
()
{},
beforeDestroy
()
{},
// 生命周期 - 销毁完成
// 生命周期 - 销毁完成
...
@@ -316,6 +322,7 @@ export default {
...
@@ -316,6 +322,7 @@ export default {
.labContent
{
.labContent
{
width
:
100%
;
width
:
100%
;
background
:
#fff
;
background
:
#fff
;
height
:
163vh
;
}
}
.labContent-title
p
{
.labContent-title
p
{
font-size
:
24px
;
font-size
:
24px
;
...
@@ -407,6 +414,16 @@ export default {
...
@@ -407,6 +414,16 @@ export default {
content
:
url("../assets/img/refreshh.png")
;
content
:
url("../assets/img/refreshh.png")
;
}
}
/* 二级标题样式可以重复使用 */
/* 二级标题样式可以重复使用 */
.themeOne-pint
{
cursor
:
pointer
;
color
:
blue
!important
;
}
.themeOne-pint
i
{
display
:
inline-block
;
height
:
30px
;
border-bottom
:
1px
solid
blue
;
}
.themeOne
>>>
div
span
{
.themeOne
>>>
div
span
{
color
:
#333
;
color
:
#333
;
display
:
inline-block
;
display
:
inline-block
;
...
@@ -502,8 +519,9 @@ export default {
...
@@ -502,8 +519,9 @@ export default {
color
:
#4877e6
;
color
:
#4877e6
;
}
}
.logData
{
.logData
{
width
:
100%
;
margin
:
0
10px
;
margin
:
0
10px
;
height
:
24
vh
;
height
:
39
vh
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.logLi
{
.logLi
{
...
@@ -514,4 +532,33 @@ export default {
...
@@ -514,4 +532,33 @@ export default {
border-bottom
:
3px
dotted
rgba
(
3
,
110
,
183
,
0.2
);
border-bottom
:
3px
dotted
rgba
(
3
,
110
,
183
,
0.2
);
word-wrap
:
break-word
;
word-wrap
:
break-word
;
}
}
.el-textarea
{
width
:
95%
;
}
.themeFour-context
{
padding
:
8px
2px
0
10px
;
height
:
40vh
;
}
.myScrollbar
{
/*overflow-x: auto;*/
/*width: 98%;*/
}
.el-scrollbar__wrap
{
overflow-x
:
hidden
;}
.myScrollbar
>>>
.el-scrollbar__wrap
{
overflow
:
scroll
;
width
:
101%
;
height
:
120%
;
}
.logTextarea
{
width
:
99%
;
height
:
38vh
;
overflow-x
:
hidden
;
border
:
none
;
resize
:
none
;
}
.logTextarea
:focus
{
outline
:
none
;
}
.logData
>>>
textarea
{
Scrollbar-Arrow-Color
:
red
;
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论