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
提交
7c84d810
提交
7c84d810
编写于
11月 19, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update data-view and date-view-message page
上级
e8693d46
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
538 行增加
和
281 行删除
+538
-281
index.html
index.html
+1
-1
data-view-message.vue
src/views/sensitive-control/data-view-message.vue
+184
-7
data-view.vue
src/views/sensitive-control/data-view.vue
+353
-273
未找到文件。
index.html
浏览文件 @
7c84d810
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
敏感数据查看系统
</title>
<title>
敏感数据查看系统
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
content=
"width=device-width, initial-scale=1.0"
name=
"viewport"
/
>
<meta
name =
"viewport"
content =
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<meta
content=
""
name=
"description"
/>
<meta
content=
""
name=
"description"
/>
<meta
content=
""
name=
"author"
/>
<meta
content=
""
name=
"author"
/>
<link
rel=
"shortcut icon"
href=
"./static/img/index_logoicon.png"
>
<link
rel=
"shortcut icon"
href=
"./static/img/index_logoicon.png"
>
...
...
src/views/sensitive-control/data-view-message.vue
浏览文件 @
7c84d810
<
template
>
<
template
>
<div
class=
"data-view-message-wrap"
>
<div
class=
"data-view-message-wrap"
>
<el-row
class=
"button-wrap"
>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"showAddConditionModal(true)"
>
添加筛选条件
</el-button>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"hadnleSearch"
>
查询
</el-button>
</el-row>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData"
height=
"100%"
border
border
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
...
@@ -41,13 +46,12 @@
...
@@ -41,13 +46,12 @@
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
fixed=
"right"
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
width=
"100"
>
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"handleClick(scope.row)"
type=
"text"
size=
"small"
>
查看
</el-button>
<el-button
@
click=
"handleClick(scope.row)"
type=
"text"
>
查看
</el-button>
<el-button
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
type=
"text"
>
编辑
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -75,6 +79,29 @@
...
@@ -75,6 +79,29 @@
</span>
</span>
</el-dialog>
</el-dialog>
<!-- 添加筛选条件 弹窗 -->
<el-dialog
:show-close=
"false"
@
close=
"showAddConditionModal(false)"
:close-on-click-modal=
"false"
title=
"添加筛选条件"
class=
"condition-dialog-wrap"
:visible=
"addConditioDialogVisible"
width=
"300px"
center
>
<el-form
ref=
"form"
:model=
"conditionForm"
label-width=
"80px"
>
<
template
v-if=
"testDataList && testDataList.columnList"
v-for=
"item in testDataList.columnList"
>
<el-form-item
:label=
"item.value"
style=
"width:400px;"
>
<el-input
v-model=
"conditionForm[item.key]"
size=
"small"
style=
"width: 150px;"
></el-input>
</el-form-item>
</
template
>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"addConditioDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addConditioDialogVisible = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -85,10 +112,64 @@
...
@@ -85,10 +112,64 @@
console
.
log
(
row
);
console
.
log
(
row
);
}
}
},
},
mounted
()
{
},
data
()
{
data
()
{
return
{
return
{
centerDialogVisible
:
true
,
addConditioDialogVisible
:
false
,
// 添加筛选条件
conditionForm
:
{},
testDataList
:
{
outModels
:
[
{
column1
:
"上海市"
,
column5
:
"123423"
,
column4
:
"张三"
,
column3
:
"浦东新区"
,
column2
:
"上海市"
,
contentId
:
1
,
userName
:
"张三,李四"
,
dataUserContentId
:
1
,
status
:
2
},
{
column1
:
"河南省"
,
column5
:
"123424"
,
column4
:
"李四"
,
column3
:
"舞阳县"
,
column2
:
"漯河市"
,
contentId
:
2
,
userName
:
"张三"
,
dataUserContentId
:
4
,
status
:
2
}
],
total
:
2
,
columnList
:
[
{
key
:
"column1"
,
value
:
"省"
},
{
key
:
"column2"
,
value
:
"市"
},
{
key
:
"column3"
,
value
:
"区县"
},
{
key
:
"column4"
,
value
:
"姓名"
},
{
key
:
"column5"
,
value
:
"手机"
}
]
},
centerDialogVisible
:
false
,
// 验证弹窗
tableData
:
[{
tableData
:
[{
date
:
'2016-05-02'
,
date
:
'2016-05-02'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
...
@@ -117,12 +198,73 @@
...
@@ -117,12 +198,73 @@
city
:
'普陀区'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小22'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小虎333'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
},
{
date
:
'2016-05-03'
,
name
:
'王小虎666'
,
province
:
'上海'
,
city
:
'普陀区'
,
address
:
'上海市普陀区金沙江路 1516 弄'
,
zip
:
200333
}],
}],
captchaCode
:
''
,
// 图形验证码
captchaCode
:
''
,
// 图形验证码
smsCode
:
''
,
// 短信验证码
smsCode
:
''
,
// 短信验证码
}
}
}
},
methods
:
{
// handleMaskTouch() {
// console.log('>>>> mask .....')
// let grayMask = document.getElementsByClassName('v-modal')[0];
// grayMask.ontouchmove = function(event){
// console.log(123)
// let ev = event || window.event;
// ev.preventDefault();
// ev.stopPropagation();
// }
// },
showAddConditionModal
(
status
){
this
.
addConditioDialogVisible
=
status
?
true
:
false
;
},
hadnleSearch
()
{
console
.
log
(
'查询。。。'
)
},
},
}
}
</
script
>
</
script
>
...
@@ -131,6 +273,19 @@
...
@@ -131,6 +273,19 @@
.sidebar{ width: 0; overflow: hidden; }
.sidebar{ width: 0; overflow: hidden; }
.content{ left: 0 !important; top: 0 !important; }
.content{ left: 0 !important; top: 0 !important; }
.data-view-message-wrap {
.data-view-message-wrap {
width: 100%;
height: 100%;
overflow: hidden;
.button-wrap{
margin: 20px 0;
.each-button{
float: right;
margin: 0 15px 0 5px;
}
}
.el-table{
-webkit-overflow-scrolling:touch;
}
.check-modal-box{
.check-modal-box{
.el-dialog__header{
.el-dialog__header{
display: none;
display: none;
...
@@ -170,6 +325,28 @@
...
@@ -170,6 +325,28 @@
}
}
}
}
}
}
// 调整弹框样式,使弹窗只占用自身空间,使其不影响给mask加的事件
.condition-dialog-wrap{
overflow: hidden;
bottom: auto !important;
right: auto !important;
left: 50%; margin-left: -150px; top: 2vh;
.el-dialog--center{
margin: 0 !important;
}
.el-dialog__body{
padding: 15px 15px 0 !important;
.el-form{
-webkit-overflow-scrolling:touch;
height: 300px; overflow: hidden; overflow-y: scroll;
}
}
.el-form-item__label{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/sensitive-control/data-view.vue
浏览文件 @
7c84d810
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录