Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
9
912project
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
CRS
912project
Commits
0f284a8c
提交
0f284a8c
authored
3月 20, 2020
作者:
thy
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'thy' 到 'master'
规则页面修改功能修复 查看合并请求
!93
上级
88dc124d
2ebe5496
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
67 行增加
和
15 行删除
+67
-15
homeDetailcopy.vue
src/components/assessment/homeDetailcopy.vue
+4
-3
evaluationReport.vue
src/components/evaluationReport/evaluationReport.vue
+39
-3
header.vue
src/components/header/header.vue
+1
-1
reportAssess.vue
src/components/reportAssess/reportAssess.vue
+1
-1
addRole.vue
src/components/roleDispose/addRole.vue
+17
-7
mutation.js
src/store/mutation.js
+4
-0
state.js
src/store/state.js
+1
-0
没有找到文件。
src/components/assessment/homeDetailcopy.vue
浏览文件 @
0f284a8c
...
...
@@ -198,12 +198,12 @@
</el-form>
</div>
<!--
<div
class=
"line"
></div>
-->
<div
:class=
"
{'pg-button no':!isLog,'pg-button':isLog}" @click="goPrev">
上次
报告
</div>
<div
:class=
"
{'pg-button no':!isLog,'pg-button':isLog}" @click="goPrev">
对应评估
报告
</div>
<div
:class=
"
{'pg-button':form.cost!=''
&&
form.projectName!='' ,'pg-button no':form.cost==''|| form.projectName=='' }"
@click="goPg2(1)"
>快速评估
</div>
>
保存并
快速评估
</div>
<div
class=
"pg-button"
@
click=
"goBack"
>
关闭
</div>
</div>
</div>
...
...
@@ -1246,7 +1246,7 @@
</div>
<div
class=
"pg-button-box"
>
<div
class=
"pg-button ball"
@
click=
"backTop"
>
回到顶部
</div>
<div
v-show=
"isOpen"
:class=
"
{'pg-button no active':form.cost!=''
&&
form.projectName!=''
&&
(systemStructure.application.deploy != '' || systemStructure.application.operateSystem != '' || systemStructure.application.other != '' || systemStructure.application.edition != '' || systemStructure.database.other != '' || systemStructure.database.deploy != '' || systemStructure.database.operateSystem != '' || systemStructure.database.edition != '' || systemStructure.storage.edition != '' || systemStructure.storage.other != '' || systemStructure.storage.deploy != '' || systemStructure.storage.operateSystem != '' || systemStructure.otherEquipment.operateSystem != '' || systemStructure.otherEquipment.edition != '' || systemStructure.otherEquipment.deploy != '' || systemStructure.otherEquipment.other != '' || systemStructure.slb.operateSystem != '' || systemStructure.slb.edition != '' || systemStructure.slb.deploy != '' || systemStructure.slb.other != '' || systemStructure.otherDemand != '' || systemStructure.loadBalance != '' || systemStructure.disaster != '' || systemStructure.distributed != '' || browser.plugInUnit != '' || browser.compatibleBrowsers != '' || browser.otherBrowser!='' || browser.geography != '' || browser.peripheral != '' || browser.media != '' || browser.animation!= '' || browser.document != '' || browser.threeD != '' || browser.flash != '' || browser.otherDemand != '' || middleware.middlewareEnums != '' || middleware.otherMiddleware != '' || middleware.web!='' || middleware.jndi != '' || middleware.jms != '' || middleware.route != '' || database.databaseType != '' || database.othertype != '' || database.view !='' || database.storage != '' || database.function != '' || database.dbLink != '' || database.sequence != '' || database.timeTask != '' || database.trigger != '' || database.disasterTolerance != ''|| database.separate != '' || database.safe != '' || database.performance != ''|| database.otherContent != '' || strategy != '' || apply.reason != '' || apply.cost != '') ,'pg-button no':true}" @click="goPg2(2)">详细评估
</div>
<div
v-show=
"isOpen"
:class=
"
{'pg-button no active':form.cost!=''
&&
form.projectName!=''
&&
(systemStructure.application.deploy != '' || systemStructure.application.operateSystem != '' || systemStructure.application.other != '' || systemStructure.application.edition != '' || systemStructure.database.other != '' || systemStructure.database.deploy != '' || systemStructure.database.operateSystem != '' || systemStructure.database.edition != '' || systemStructure.storage.edition != '' || systemStructure.storage.other != '' || systemStructure.storage.deploy != '' || systemStructure.storage.operateSystem != '' || systemStructure.otherEquipment.operateSystem != '' || systemStructure.otherEquipment.edition != '' || systemStructure.otherEquipment.deploy != '' || systemStructure.otherEquipment.other != '' || systemStructure.slb.operateSystem != '' || systemStructure.slb.edition != '' || systemStructure.slb.deploy != '' || systemStructure.slb.other != '' || systemStructure.otherDemand != '' || systemStructure.loadBalance != '' || systemStructure.disaster != '' || systemStructure.distributed != '' || browser.plugInUnit != '' || browser.compatibleBrowsers != '' || browser.otherBrowser!='' || browser.geography != '' || browser.peripheral != '' || browser.media != '' || browser.animation!= '' || browser.document != '' || browser.threeD != '' || browser.flash != '' || browser.otherDemand != '' || middleware.middlewareEnums != '' || middleware.otherMiddleware != '' || middleware.web!='' || middleware.jndi != '' || middleware.jms != '' || middleware.route != '' || database.databaseType != '' || database.othertype != '' || database.view !='' || database.storage != '' || database.function != '' || database.dbLink != '' || database.sequence != '' || database.timeTask != '' || database.trigger != '' || database.disasterTolerance != ''|| database.separate != '' || database.safe != '' || database.performance != ''|| database.otherContent != '' || strategy != '' || apply.reason != '' || apply.cost != '') ,'pg-button no':true}" @click="goPg2(2)">
保存并
详细评估
</div>
</div>
</div>
...
...
@@ -1556,6 +1556,7 @@ export default {
this
.
$server
.
goPg
(
obj
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
$store
.
commit
(
'changeRoutePg'
,
1
);
this
.
$message
({
message
:
"生成评估报告成功"
,
type
:
"success"
...
...
src/components/evaluationReport/evaluationReport.vue
浏览文件 @
0f284a8c
...
...
@@ -86,6 +86,16 @@ export default {
methods
:
{
add
(){
console
.
log
(
this
.
$store
.
state
.
userData
.
userName
)
// let Logistics= this.$router.resolve({
// path:'/assessmentReport',
// query:{
// username:this.$store.state.userData.userName,
// authority: this.$store.state.userData.type,
// id: null,
// }
// })
// window.open(Logistics.href)
this
.
$router
.
push
({
name
:
"assessmentReport"
,
query
:
{
...
...
@@ -135,8 +145,16 @@ export default {
evaluation
(
row
)
{
console
.
log
(
row
)
console
.
log
(
this
.
$store
.
state
.
userData
)
// return
// // return
// let Logistics= this.$router.resolve({
// path:'/assessmentReport',
// query:{
// username:row.username,
// authority: this.$store.state.userData.type,
// id: row.id,
// }
// })
// window.open(Logistics.href)
this
.
$router
.
push
({
name
:
'assessmentReport'
,
query
:
{
username
:
row
.
username
,
id
:
row
.
id
,
...
...
@@ -146,7 +164,16 @@ export default {
},
// 报告
report
(
row
)
{
console
.
log
(
row
)
// console.log(row)
// let Logistics= this.$router.resolve({
// path:'/reportAssess',
// query:{
// username:row.username,
// authority: this.$store.state.userData.type,
// id: row.id,
// }
// })
// window.open(Logistics.href)
this
.
$router
.
push
({
name
:
'reportAssess'
,
query
:
{
username
:
row
.
username
,
id
:
row
.
id
,
...
...
@@ -197,7 +224,16 @@ export default {
},
components
:
{
},
computed
:
{
listData
()
{
return
this
.
$store
.
state
.
routeClick
;
}
},
watch
:
{
'$store.state.routeClick'
:
function
(
newFlag
,
oldFlag
){
// 需要执行的代码
console
.
log
(
'vuex=========='
,
newFlag
,
oldFlag
)
}
}
}
</
script
>
...
...
src/components/header/header.vue
浏览文件 @
0f284a8c
<
template
>
<div
class=
"headerAll"
>
<div
class=
"headerAll"
v-if=
" $route.name == 'assessmentReport'?false:$route.name == 'reportAssess'?false:true"
>
<div
class=
"header"
>
<span
class=
"left-header"
>
<p
style=
"text-align: center;font-size: 28px;font-weight: bold;color: #fff;line-height: 98px;"
>
XXX
</p>
...
...
src/components/reportAssess/reportAssess.vue
浏览文件 @
0f284a8c
...
...
@@ -1178,7 +1178,7 @@ export default {
background
:
#ebf0f8
;
/*20200318*/
padding
:
0
45px
0
45px
;
color
:
black
;
margin-top
:
30px
;
/* padding-top: 30px; */
}
.scrollbar
{
...
...
src/components/roleDispose/addRole.vue
浏览文件 @
0f284a8c
...
...
@@ -62,11 +62,21 @@ export default {
mounted
()
{
console
.
log
(
this
.
detailData
)
if
(
this
.
modalName
===
'修改规则'
)
{
this
.
oldRule
=
{
target
:
this
.
detailData
.
target
,
suffix
:
this
.
detailData
.
suffix
,
technologyId
:
this
.
detailData
.
technologyId
}
let
row
=
JSON
.
stringify
(
this
.
detailData
);
//克隆影响原数据需要处理一下
this
.
oldRule
=
JSON
.
parse
(
row
);
this
.
form
=
{
target
:
this
.
detailData
.
target
,
suffix
:
this
.
detailData
.
suffix
,
technologyId
:
this
.
detailData
.
technologyId
,
id
:
this
.
detailData
.
id
}
// this.oldRule = {
// target: this.detailData.target,
// suffix: this.detailData.suffix,
// technologyId: this.detailData.technologyId
// }
}
this
.
getAll
();
},
...
...
@@ -90,10 +100,10 @@ export default {
technologyId
:
this
.
oldRule
.
technologyId
,
technologyName
:
this
.
technologyName
,
id
:
this
.
detailData
.
id
,
oldRule
:
this
.
oldRule
oldRule
:
this
.
form
};
console
.
log
(
this
.
detailData
.
id
)
if
(
this
.
detailData
.
id
!==
-
1
)
{
if
(
this
.
modalName
===
'修改规则'
)
{
this
.
$server
.
editConfigUpdate
(
obj
).
then
(
res
=>
{
this
.
$message
({
message
:
'修改成功'
,
...
...
src/store/mutation.js
浏览文件 @
0f284a8c
...
...
@@ -18,6 +18,10 @@ const mutations = {
changeSession
(
state
,
payload
)
{
state
.
session
=
payload
;
},
changeRoutePg
(
state
,
payload
)
{
state
.
routeClick
=
payload
;
console
.
log
(
'修改了'
,
state
.
routeClick
)
},
};
export
default
mutations
;
src/store/state.js
浏览文件 @
0f284a8c
...
...
@@ -6,6 +6,7 @@ const state = {
nowPath
:
''
,
// 当前页面路径
jumpOther
:
''
,
// 跳转到其他页面,修改顶部子菜单样式
session
:
''
,
// 请求session
routeClick
:
-
1
,
// 请求session
};
export
default
state
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论