提交 61a57e31 编写于 作者: chengxiang.li's avatar chengxiang.li

敏感数据新增部分逻辑

上级 dac7766b
...@@ -128,6 +128,18 @@ ...@@ -128,6 +128,18 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 导出弹窗 -->
<el-dialog
title="提示"
:visible.sync="phoneModalVisible"
width="300px"
center>
<p>请用电脑浏览器进行导出操作</p>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="phoneModalVisible = false">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -145,14 +157,8 @@ ...@@ -145,14 +157,8 @@
} }
} }
}, },
methods: {
handleClick(row) {
console.log(row);
},
},
created() { created() {
vm = this; vm = this;
// url的?后面有参数,则可调接口获取手机号及审批单号; // url的?后面有参数,则可调接口获取手机号及审批单号;
let params = window.location.href.split('?'); let params = window.location.href.split('?');
if(params && params.length > 1){ if(params && params.length > 1){
...@@ -202,7 +208,8 @@ ...@@ -202,7 +208,8 @@
checkExportData: { checkExportData: {
dataExportTotal: 0, // 总的 dataExportTotal: 0, // 总的
dataExportCount: 0, // 剩余的 dataExportCount: 0, // 剩余的
} },
phoneModalVisible: false,
} }
}, },
...@@ -513,6 +520,11 @@ ...@@ -513,6 +520,11 @@
}, },
// 确定导出 // 确定导出
handleExport() { handleExport() {
let phoneStatus = vm.isCellphone();
if( phoneStatus ) {
vm.phoneModalVisible = true;
return;
}
let data = { let data = {
parame: vm.afterParam, parame: vm.afterParam,
}; };
...@@ -529,6 +541,13 @@ ...@@ -529,6 +541,13 @@
}; };
vm.sendRequest( 'post', `/sensitive/dataSearch/exportWeb`, data, callback ); vm.sendRequest( 'post', `/sensitive/dataSearch/exportWeb`, data, callback );
}, },
isCellphone() {
let ua = window.navigator.userAgent.toLowerCase();
let ios = /(iphone|ipad|ipod|ios)/i.test(ua);
let android = /(android)/i.test(ua);
return ios || android;
},
downloadFile(base64, fileName) { 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;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册