Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-risk-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-risk-admin
提交
8966fa14
提交
8966fa14
编写于
9月 18, 2020
作者:
alex.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目标记状态设置
上级
52498f21
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
66 行增加
和
18 行删除
+66
-18
data-statistic.vue
src/views/sensitive-control/data-statistic.vue
+66
-18
未找到文件。
src/views/sensitive-control/data-statistic.vue
浏览文件 @
8966fa14
...
@@ -157,13 +157,13 @@
...
@@ -157,13 +157,13 @@
<el-dialog
:visible
.
sync=
"setStatusVisible"
:close-on-click-modal=
"false"
width=
"500px"
>
<el-dialog
:visible
.
sync=
"setStatusVisible"
:close-on-click-modal=
"false"
width=
"500px"
>
<p
class=
"dialog-title"
>
项目标记状态设置
</p>
<p
class=
"dialog-title"
>
项目标记状态设置
</p>
<el-select
v-model=
"queryParams.projectMainId"
placeholder=
"请选择项目"
style=
"margin-left: 110px"
>
<el-select
v-model=
"queryParams.projectMainId"
placeholder=
"请选择项目"
@
change=
"handleStatuschange"
style=
"margin-left: 110px"
>
<el-option
v-for=
"item in projectList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in projectList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<div
style=
"margin-top: 20px; margin-left: 110px"
>
<div
style=
"margin-top: 20px; margin-left: 110px"
>
<el-input
<el-input
v-model=
"status01"
v-model=
"status01
.value
"
style=
"width:180px;"
style=
"width:180px;"
class=
"input"
class=
"input"
placeholder=
"标记状态"
placeholder=
"标记状态"
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
</div>
</div>
<div
v-if=
"statusCount>1"
style=
"margin-top: 20px; margin-left: 110px"
>
<div
v-if=
"statusCount>1"
style=
"margin-top: 20px; margin-left: 110px"
>
<el-input
<el-input
v-model=
"status02"
v-model=
"status02
.value
"
style=
"width:180px;"
style=
"width:180px;"
class=
"input"
class=
"input"
placeholder=
"标记状态"
placeholder=
"标记状态"
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
</div>
</div>
<div
v-if=
"statusCount>2"
style=
"margin-top: 20px; margin-left: 110px"
>
<div
v-if=
"statusCount>2"
style=
"margin-top: 20px; margin-left: 110px"
>
<el-input
<el-input
v-model=
"status03"
v-model=
"status03
.value
"
style=
"width:180px;"
style=
"width:180px;"
class=
"input"
class=
"input"
placeholder=
"标记状态"
placeholder=
"标记状态"
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
</div>
</div>
<div
v-if=
"statusCount>3"
style=
"margin-top: 20px; margin-left: 110px"
>
<div
v-if=
"statusCount>3"
style=
"margin-top: 20px; margin-left: 110px"
>
<el-input
<el-input
v-model=
"status04"
v-model=
"status04
.value
"
style=
"width:180px;"
style=
"width:180px;"
class=
"input"
class=
"input"
placeholder=
"标记状态"
placeholder=
"标记状态"
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
</div>
</div>
<div
v-if=
"statusCount>4"
style=
"margin-top: 20px; margin-left: 110px"
>
<div
v-if=
"statusCount>4"
style=
"margin-top: 20px; margin-left: 110px"
>
<el-input
<el-input
v-model=
"status05"
v-model=
"status05
.value
"
style=
"width:180px;"
style=
"width:180px;"
class=
"input"
class=
"input"
placeholder=
"标记状态"
placeholder=
"标记状态"
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
<div
slot=
"footer"
style=
"text-align: center"
>
<div
slot=
"footer"
style=
"text-align: center"
>
<el-button
type=
"primary"
@
click=
"setStatusSave"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"setStatusSave"
>
确认
</el-button>
<el-button
@
click=
"setStatusVisible = false"
>
取消
</el-button>
<el-button
@
click=
"setStatusVisible = false
; clearStatusData();
"
>
取消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -265,11 +265,11 @@ export default {
...
@@ -265,11 +265,11 @@ export default {
labelCount
:
1
,
labelCount
:
1
,
labelList
:
[],
labelList
:
[],
allLabelList
:
[],
allLabelList
:
[],
status01
:
""
,
status01
:
{}
,
status02
:
""
,
status02
:
{}
,
status03
:
""
,
status03
:
{}
,
status04
:
""
,
status04
:
{}
,
status05
:
""
,
status05
:
{}
,
statusCount
:
1
,
statusCount
:
1
,
statusList
:
[],
statusList
:
[],
handleType
:
"1"
,
// 表单操作类型,1.新增 2.修改
handleType
:
"1"
,
// 表单操作类型,1.新增 2.修改
...
@@ -425,7 +425,7 @@ export default {
...
@@ -425,7 +425,7 @@ export default {
{},
{},
(
data
)
=>
{
(
data
)
=>
{
this
.
labelList
=
data
.
data
;
this
.
labelList
=
data
.
data
;
if
(
this
.
labelList
)
{
if
(
this
.
labelList
&&
this
.
labelList
.
length
>
0
)
{
this
.
labelCount
=
this
.
labelList
.
length
;
this
.
labelCount
=
this
.
labelList
.
length
;
console
.
log
(
"getHistoryLabel() : this.labelCount = "
+
this
.
labelCount
);
console
.
log
(
"getHistoryLabel() : this.labelCount = "
+
this
.
labelCount
);
if
(
this
.
labelCount
>
0
)
{
if
(
this
.
labelCount
>
0
)
{
...
@@ -443,6 +443,8 @@ export default {
...
@@ -443,6 +443,8 @@ export default {
}
}
}
}
}
}
}
else
{
this
.
labelCount
=
1
;
}
}
}
}
);
);
...
@@ -516,6 +518,7 @@ export default {
...
@@ -516,6 +518,7 @@ export default {
//项目标记状态设置
//项目标记状态设置
showProjectStatus
()
{
showProjectStatus
()
{
this
.
setStatusVisible
=
true
;
this
.
setStatusVisible
=
true
;
this
.
getHistoryStatus
();
},
},
addStatusNew
()
{
addStatusNew
()
{
this
.
statusCount
++
;
this
.
statusCount
++
;
...
@@ -543,6 +546,49 @@ export default {
...
@@ -543,6 +546,49 @@ export default {
this
.
status05
=
""
;
this
.
status05
=
""
;
}
}
},
},
getHistoryStatus
()
{
this
.
getData
(
"get"
,
`/sensitive/dataStatistics/getState?projectMainId=
${
this
.
queryParams
.
projectMainId
}
`
,
{},
(
data
)
=>
{
this
.
statusList
=
data
.
data
;
if
(
this
.
statusList
&&
this
.
statusList
.
length
>
0
)
{
this
.
statusCount
=
this
.
statusList
.
length
;
console
.
log
(
"getHistoryStatus() : this.statusCount = "
+
this
.
statusCount
);
if
(
this
.
statusCount
>
0
)
{
for
(
let
item
in
this
.
statusList
)
{
if
(
item
==
0
)
{
this
.
status01
=
this
.
statusList
[
item
];
}
else
if
(
item
==
1
)
{
this
.
status02
=
this
.
statusList
[
item
];
}
else
if
(
item
==
2
)
{
this
.
status03
=
this
.
statusList
[
item
];
}
else
if
(
item
==
3
)
{
this
.
status04
=
this
.
statusList
[
item
];
}
else
if
(
item
==
4
)
{
this
.
status05
=
this
.
statusList
[
item
];
}
}
}
}
else
{
this
.
statusCount
=
1
;
}
}
);
},
handleStatuschange
()
{
this
.
clearStatusData
();
this
.
getHistoryStatus
();
},
clearStatusData
()
{
this
.
status01
=
{};
this
.
status02
=
{};
this
.
status03
=
{};
this
.
status04
=
{};
this
.
status05
=
{};
this
.
statusList
=
[];
},
setStatusSave
()
{
setStatusSave
()
{
this
.
statusList
=
[
this
.
statusList
=
[
// { id: 0, value: this.status01 },
// { id: 0, value: this.status01 },
...
@@ -550,11 +596,11 @@ export default {
...
@@ -550,11 +596,11 @@ export default {
// { id: 2, value: this.status03 },
// { id: 2, value: this.status03 },
// { id: 3, value: this.status04 },
// { id: 3, value: this.status04 },
// { id: 4, value: this.status05 },
// { id: 4, value: this.status05 },
{
value
:
this
.
status01
},
{
id
:
this
.
status01
.
id
,
value
:
this
.
status01
.
value
},
{
value
:
this
.
status02
},
{
id
:
this
.
status02
.
id
,
value
:
this
.
status02
.
value
},
{
value
:
this
.
status03
},
{
id
:
this
.
status03
.
id
,
value
:
this
.
status03
.
value
},
{
value
:
this
.
status04
},
{
id
:
this
.
status04
.
id
,
value
:
this
.
status04
.
value
},
{
value
:
this
.
status05
},
{
id
:
this
.
status05
.
id
,
value
:
this
.
status05
.
value
},
];
];
let
req
=
{
let
req
=
{
list
:
this
.
statusList
,
list
:
this
.
statusList
,
...
@@ -570,10 +616,12 @@ export default {
...
@@ -570,10 +616,12 @@ export default {
type
:
"success"
,
type
:
"success"
,
message
:
"项目标记状态设置成功"
,
message
:
"项目标记状态设置成功"
,
});
});
this
.
clearStatusData
();
this
.
setStatusVisible
=
false
;
this
.
setStatusVisible
=
false
;
}
}
);
);
},
},
// 数据查询
// 数据查询
queryDataList
()
{
queryDataList
()
{
this
.
getDataList
(
this
.
currentPage
,
this
.
queryParams
);
this
.
getDataList
(
this
.
currentPage
,
this
.
queryParams
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录