Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-sensitive-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.foundation.frontend
pica-sensitive-admin
提交
eb88e0ae
提交
eb88e0ae
编写于
2月 17, 2020
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
两个数据查看页面接口调试
上级
4cc19694
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
12 行删除
+14
-12
data-view-message.vue
src/views/sensitive-control/data-view-message.vue
+8
-6
data-view.vue
src/views/sensitive-control/data-view.vue
+6
-6
未找到文件。
src/views/sensitive-control/data-view-message.vue
浏览文件 @
eb88e0ae
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<template
v-if=
"searchTableVisible"
>
<template
v-if=
"searchTableVisible"
>
<el-row
class=
"button-wrap"
>
<el-row
class=
"button-wrap"
>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"hadnleSearch"
>
查询
</el-button>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"hadnleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"showExportModal"
v-if=
"showExportBtn"
>
导出
</el-button>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"showExportModal"
v-if=
"showExportBtn"
>
导出
</el-button>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"showAddConditionModal(true)"
>
添加筛选条件
</el-button>
<el-button
class=
"each-button"
type=
"primary"
@
click=
"showAddConditionModal(true)"
>
添加筛选条件
</el-button>
</el-row>
</el-row>
...
@@ -431,7 +431,9 @@
...
@@ -431,7 +431,9 @@
vm
.
smsCode
=
''
;
vm
.
smsCode
=
''
;
vm
.
tableDataList
=
res
.
data
;
vm
.
tableDataList
=
res
.
data
;
if
(
typeof
res
.
data
.
dataExportCount
!=
'undefined'
&&
res
.
data
.
dataExportCount
>
0
)
{
vm
.
showExportBtn
=
true
;
}
vm
.
$nextTick
(()
=>
{
vm
.
$nextTick
(()
=>
{
if
(
vm
.
afterParam
){
if
(
vm
.
afterParam
){
...
@@ -519,19 +521,19 @@
...
@@ -519,19 +521,19 @@
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
console
.
log
(
'正式导出》》》》 '
,
res
)
console
.
log
(
'正式导出》》》》 '
,
res
)
// 执行下载excel
// 执行下载excel
// vm.downloadFile(res.data
)
vm
.
downloadFile
(
res
.
data
.
path
,
res
.
data
.
fileName
)
//
vm.exportModalVisible = false;
vm
.
exportModalVisible
=
false
;
}
else
{
}
else
{
vm
.
$message
.
error
(
res
.
message
);
vm
.
$message
.
error
(
res
.
message
);
}
}
};
};
vm
.
sendRequest
(
'post'
,
`/sensitive/dataSearch/exportWeb`
,
data
,
callback
);
vm
.
sendRequest
(
'post'
,
`/sensitive/dataSearch/exportWeb`
,
data
,
callback
);
},
},
downloadFile
(
base64
)
{
downloadFile
(
base64
,
fileName
)
{
let
a
=
document
.
createElement
(
'a'
);
let
a
=
document
.
createElement
(
'a'
);
let
uploadHref
=
'data:application/xls;base64,'
+
base64
;
let
uploadHref
=
'data:application/xls;base64,'
+
base64
;
a
.
setAttribute
(
'href'
,
uploadHref
);
a
.
setAttribute
(
'href'
,
uploadHref
);
let
exportFileName
=
'待定xxx'
+
'.xlsx'
;
let
exportFileName
=
fileName
;
a
.
setAttribute
(
'download'
,
exportFileName
);
a
.
setAttribute
(
'download'
,
exportFileName
);
a
.
click
();
a
.
click
();
},
},
...
...
src/views/sensitive-control/data-view.vue
浏览文件 @
eb88e0ae
...
@@ -453,20 +453,20 @@ export default {
...
@@ -453,20 +453,20 @@ export default {
let
callback
=
(
res
)
=>
{
let
callback
=
(
res
)
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
console
.
log
(
'正式导出》》》》 '
,
res
)
console
.
log
(
'正式导出》》》》 '
,
res
)
//
vm.checkExportData.dataExportTotal = res.data.dataExportTotal;
//
执行下载excel
// vm.checkExportData.dataExportCount = res.data.dataExportCount;
vm
.
downloadFile
(
res
.
data
.
path
,
res
.
data
.
fileName
)
// vm.exportModalVisible = tru
e;
vm
.
exportModalVisible
=
fals
e
;
}
else
{
}
else
{
vm
.
$message
.
error
(
res
.
message
);
vm
.
$message
.
error
(
res
.
message
);
}
}
};
};
vm
.
sendRequest
(
'post'
,
`/sensitive/dataSearch/export`
,
data
,
callback
);
vm
.
sendRequest
(
'post'
,
`/sensitive/dataSearch/export`
,
data
,
callback
);
},
},
downloadFile
(
base64
)
{
downloadFile
(
base64
,
fileName
)
{
let
a
=
document
.
createElement
(
'a'
);
let
a
=
document
.
createElement
(
'a'
);
let
uploadHref
=
'data:application/xls;base64,'
+
base64
;
let
uploadHref
=
'data:application/xls;base64,'
+
base64
;
a
.
setAttribute
(
'href'
,
uploadHref
);
a
.
setAttribute
(
'href'
,
uploadHref
);
let
exportFileName
=
'待定xxx'
+
'.xlsx'
;
let
exportFileName
=
fileName
;
a
.
setAttribute
(
'download'
,
exportFileName
);
a
.
setAttribute
(
'download'
,
exportFileName
);
a
.
click
();
a
.
click
();
},
},
...
@@ -515,7 +515,7 @@ export default {
...
@@ -515,7 +515,7 @@ export default {
if
(
typeof
res
.
data
.
dataRole
!=
'undefined'
&&
res
.
data
.
dataRole
==
1
){
if
(
typeof
res
.
data
.
dataRole
!=
'undefined'
&&
res
.
data
.
dataRole
==
1
){
vm
.
showSendBtn
=
true
;
vm
.
showSendBtn
=
true
;
};
};
if
(
typeof
res
.
data
.
data
Role
!=
'undefined'
&&
res
.
data
.
dataExportCount
>
0
)
{
if
(
typeof
res
.
data
.
data
ExportCount
!=
'undefined'
&&
res
.
data
.
dataExportCount
>
0
)
{
vm
.
showExportBtn
=
true
;
vm
.
showExportBtn
=
true
;
}
}
}
else
{
}
else
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录