Commit c05407e6 by liyuhang19990520

1

parent 9dbe99c4
/*
* @Author: your name
* @Date: 2021-10-15 10:55:07
* @LastEditTime: 2021-10-15 10:55:08
* @Date: 2021-10-15 10:55:14
* @LastEditTime: 2021-10-15 15:32:03
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\zczl\zczl.js
* @FilePath: \founder_vue\src\api\zczl\xxgl.js
*/
import { get, post, postform, postdown } from "@/utils/http.js";
import base from "@/api/base";
//导出侦查指令统计Excel
export const exportZczlExcel = params =>
postdown(`${base.alyIP}/zczl/exportZczlExcel`, params);
//人像比对详情
// export const rxdbDetail = params =>
// post(`${base.alyIP}/rxbz/queryByXxzjbh`, params);
......@@ -268,7 +268,8 @@
pageBs != 'glbsh' &&
pageBs != 'txl' &&
pageBs != 'gzzkyxs' &&
pageBs != 'llygl'
pageBs != 'llygl' &&
pageBs != 'zczltj'
"
>
<i class="el-icon-plus"></i> 新增
......@@ -276,6 +277,13 @@
<el-button
type="primary"
size="mini"
v-if="pageBs == 'zczltj'"
@click="$emit('zczltjExport', formData)"
>导出</el-button
>
<el-button
type="primary"
size="mini"
v-if="pageBs == 'zdxxgl'"
@click="$emit('drzjhd')"
>excel导入交易活动</el-button
......
......@@ -12,7 +12,12 @@
<script>
import formCompontent from "@c/form.vue";
import { insertGzry, updateGzry, selectGzryById,selectgzryZp } from "@/api/xxtk/gzry.js";
import {
insertGzry,
updateGzry,
selectGzryById,
selectgzryZp,
} from "@/api/xxtk/gzry.js";
import { xydx } from "@/utils/params.js";
export default {
name: "addGzry",
......@@ -25,7 +30,7 @@ export default {
propFormField: [
//基本信息
{
title: "关注人员",
title: "",
id: 1,
objStr: "",
index: 0,
......@@ -124,9 +129,9 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
// selectgzryZp({
// glxxXxzjbh: this.$route.query.xxzjbh
// }).then((res) => {});
selectgzryZp({
glxxXxzjbh: this.$route.query.xxzjbh
}).then((res) => {});
selectGzryById({
xxzjbh: this.$route.query.xxzjbh,
}).then((res) => {
......
......@@ -11,6 +11,7 @@
@edit="edit"
@dele="dele"
@toInfor="toInfor"
@zczltjExport="zczltjExport"
ref="rightContent"
></right-content>
</div>
......@@ -18,7 +19,7 @@
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxsxx } from "@/api/rlqbxs.js";
import { exportZczlExcel } from "@/api/zczl/zczl.js";
export default {
name: "rlqbxsxx",
components: {
......@@ -29,15 +30,10 @@ export default {
header: "侦察指令统计",
pageBs: "zczltj",
cxFormData: {
zlwh: "",
ywlx: "",
fbsj_s: "",
fbsj_e: "",
ywbh: "",
zljsdwdm: "",
zlsy: "",
spsftg: "",
isFirst: "",
isZjdw: "",
searchDwdm: "",
limit: 10,
page: 1,
},
......@@ -154,6 +150,21 @@ export default {
query: { xxzjbh: scope.row.xxzjbh },
});
},
zczltjExport(data) {
let params = new FormData();
params.append("fbsj_s", data.fbsj_s);
params.append("fbsj_e", data.fbsj_e);
exportZczlExcel(params).then((res) => {
let blob = new Blob([res], {
type: "application/vnd.ms-excel",
});
let objUrl = URL.createObjectURL(blob);
let a = document.createElement("a");
a.setAttribute("href", objUrl);
a.setAttribute("download", "xxx.xls");
a.click();
});
},
dele(scope) {
console.log(scope);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment