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
提交
fa173bf1
提交
fa173bf1
编写于
9月 22, 2020
作者:
alex.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
导出弹窗调整
上级
e46a35f6
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
39 行增加
和
14 行删除
+39
-14
data-statistic.vue
src/views/sensitive-control/data-statistic.vue
+39
-14
未找到文件。
src/views/sensitive-control/data-statistic.vue
浏览文件 @
fa173bf1
...
@@ -44,11 +44,13 @@
...
@@ -44,11 +44,13 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"block"
style=
"margin-bottom:20px"
>
<div
class=
"block"
style=
"margin-bottom:20px
;display: flex;
"
>
<el-button
@
click=
"showProjectTag"
>
项目标签设置
</el-button>
<el-button
@
click=
"showProjectTag"
>
项目标签设置
</el-button>
<el-button
@
click=
"showProjectStatus"
>
项目标记状态设置
</el-button>
<el-button
@
click=
"showProjectStatus"
>
项目标记状态设置
</el-button>
<el-button
@
click=
"queryDataListByClick"
>
数据查询
</el-button>
<el-button
@
click=
"queryDataListByClick"
>
数据查询
</el-button>
<el-button
@
click=
"showExportModal"
>
导出
</el-button>
<el-button
@
click=
"showExportModal"
>
导出
</el-button>
<div
style=
"margin-left:20px;margin-top:5px"
>
备注:请使用谷歌浏览器导出
</div>
<a
:href=
"'http://www.google.cn/chrome/'"
class=
"href-link"
>
点击下载
</a>
</div>
</div>
<template>
<template>
<el-table
:data=
"dataList"
style=
"width: 100%"
>
<el-table
:data=
"dataList"
style=
"width: 100%"
>
...
@@ -84,7 +86,8 @@
...
@@ -84,7 +86,8 @@
v-model=
"labelProjectMainId"
v-model=
"labelProjectMainId"
@
change=
"handleLabelchange"
@
change=
"handleLabelchange"
placeholder=
"请选择项目"
placeholder=
"请选择项目"
style=
"margin-left: 110px"
>
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"
>
...
@@ -156,7 +159,12 @@
...
@@ -156,7 +159,12 @@
<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=
"statusProjectMainId"
placeholder=
"请选择项目"
@
change=
"handleStatuschange"
style=
"margin-left: 110px"
>
<el-select
v-model=
"statusProjectMainId"
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>
...
@@ -301,7 +309,9 @@ export default {
...
@@ -301,7 +309,9 @@ export default {
},
},
rules
:
{
rules
:
{
pName
:
[{
required
:
true
,
message
:
"请选择项目名称"
,
trigger
:
"blur"
}],
pName
:
[{
required
:
true
,
message
:
"请选择项目名称"
,
trigger
:
"blur"
}],
labelProjectMainId
:
[{
required
:
true
,
message
:
"请选择项目名称"
,
trigger
:
"blur"
}],
labelProjectMainId
:
[
{
required
:
true
,
message
:
"请选择项目名称"
,
trigger
:
"blur"
},
],
// dingdingNumber: [
// dingdingNumber: [
// {
// {
// required: true,
// required: true,
...
@@ -432,9 +442,11 @@ export default {
...
@@ -432,9 +442,11 @@ export default {
this
.
labelList
=
data
.
data
;
this
.
labelList
=
data
.
data
;
if
(
this
.
labelList
&&
this
.
labelList
.
length
>
0
)
{
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
)
{
for
(
let
item
in
this
.
labelList
)
{
for
(
let
item
in
this
.
labelList
)
{
if
(
item
==
0
)
{
if
(
item
==
0
)
{
this
.
tag01
=
this
.
labelList
[
item
];
this
.
tag01
=
this
.
labelList
[
item
];
}
else
if
(
item
==
1
)
{
}
else
if
(
item
==
1
)
{
...
@@ -499,7 +511,7 @@ export default {
...
@@ -499,7 +511,7 @@ export default {
];
];
let
checkTagValid
=
false
;
let
checkTagValid
=
false
;
for
(
let
item
=
0
;
item
<
this
.
labelList
.
length
;
item
++
)
{
for
(
let
item
=
0
;
item
<
this
.
labelList
.
length
;
item
++
)
{
if
(
this
.
labelList
[
item
]
!=
null
&&
this
.
labelList
[
item
]
!=
""
)
{
if
(
this
.
labelList
[
item
]
!=
null
&&
this
.
labelList
[
item
]
!=
""
)
{
checkTagValid
=
true
;
checkTagValid
=
true
;
break
;
break
;
...
@@ -579,9 +591,11 @@ export default {
...
@@ -579,9 +591,11 @@ export default {
this
.
statusList
=
data
.
data
;
this
.
statusList
=
data
.
data
;
if
(
this
.
statusList
&&
this
.
statusList
.
length
>
0
)
{
if
(
this
.
statusList
&&
this
.
statusList
.
length
>
0
)
{
this
.
statusCount
=
this
.
statusList
.
length
;
this
.
statusCount
=
this
.
statusList
.
length
;
console
.
log
(
"getHistoryStatus() : this.statusCount = "
+
this
.
statusCount
);
console
.
log
(
"getHistoryStatus() : this.statusCount = "
+
this
.
statusCount
);
if
(
this
.
statusCount
>
0
)
{
if
(
this
.
statusCount
>
0
)
{
for
(
let
item
in
this
.
statusList
)
{
for
(
let
item
in
this
.
statusList
)
{
if
(
item
==
0
)
{
if
(
item
==
0
)
{
this
.
status01
=
this
.
statusList
[
item
];
this
.
status01
=
this
.
statusList
[
item
];
}
else
if
(
item
==
1
)
{
}
else
if
(
item
==
1
)
{
...
@@ -633,10 +647,16 @@ export default {
...
@@ -633,10 +647,16 @@ export default {
];
];
let
checkStatusValid
=
false
;
let
checkStatusValid
=
false
;
for
(
let
item
=
0
;
item
<
this
.
statusList
.
length
;
item
++
)
{
for
(
let
item
=
0
;
item
<
this
.
statusList
.
length
;
item
++
)
{
console
.
log
(
"setStatusSave() : this.statusList[item].value = "
+
this
.
statusList
[
item
].
value
);
console
.
log
(
if
(
this
.
statusList
[
item
].
value
!=
null
&&
this
.
statusList
[
item
].
value
!=
""
&&
"setStatusSave() : this.statusList[item].value = "
+
this
.
statusList
[
item
].
value
!=
undefined
)
{
this
.
statusList
[
item
].
value
);
if
(
this
.
statusList
[
item
].
value
!=
null
&&
this
.
statusList
[
item
].
value
!=
""
&&
this
.
statusList
[
item
].
value
!=
undefined
)
{
checkStatusValid
=
true
;
checkStatusValid
=
true
;
break
;
break
;
}
}
...
@@ -668,7 +688,7 @@ export default {
...
@@ -668,7 +688,7 @@ export default {
},
},
queryDataListByClick
()
{
queryDataListByClick
()
{
this
.
currentPage
=
1
;
this
.
currentPage
=
1
;
this
.
queryDataList
();
this
.
queryDataList
();
},
},
...
@@ -870,4 +890,9 @@ export default {
...
@@ -870,4 +890,9 @@ export default {
text-align: center;
text-align: center;
font-size: 18px;
font-size: 18px;
}
}
.href-link {
color: red;
margin-top:5px;
margin-left:10px;
}
</
style
>
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录