Commit 91428f6e by xue_wengang

统计查询单位、时间修改

parent 6576f2cc
......@@ -47,6 +47,24 @@ export default {
showJump: true
},
{
label: '侦查脑图',
prop: 'ntCount',
align: 'center',
showJump: true
},
{
label: '画像工厂',
prop: 'hxgcCount',
align: 'center',
showJump: true
},
{
label: '资源查询',
prop: 'zycxCount',
align: 'center',
showJump: true
},
{
label: '案件侦办',
prop: 'ajzbCount',
align: 'center',
......
......@@ -287,7 +287,7 @@ export default {
if (this.dwData.codeOptions.length == 0) {
requestCode.axiosCode("CODE_UNIT").then((response) => {
if (response.success === true) {
self.$set(this.dwData, "codeOptions", response.data.list);
this.$set(this.dwData, "codeOptions", response.data.list);
}
});
}
......
......@@ -30,6 +30,7 @@
<el-form-item label="操作日期">
<el-date-picker
v-model="formData.daterange"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
......@@ -197,7 +198,7 @@ export default {
if (this.dwData.codeOptions.length == 0) {
requestCode.axiosCode("CODE_UNIT").then((response) => {
if (response.success === true) {
self.$set(this.dwData, "codeOptions", response.data.list);
this.$set(this.dwData, "codeOptions", response.data.list);
}
});
}
......
......@@ -30,6 +30,7 @@
<el-form-item label="操作日期">
<el-date-picker
v-model="formData.daterange"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
......@@ -156,9 +157,9 @@ export default {
formData: {
unitcode: "",
yymc: "",
djsjKssj: this.$moment().subtract(3, "month").format("YYYY-MM-DD"),
djsjJssj: this.$moment().format("YYYY-MM-DD"),
daterange: [],
djsjKssj: '',
djsjJssj: '',
daterange: [this.$moment().subtract(3, "month").format("YYYY-MM-DD"),this.$moment().format("YYYY-MM-DD")],
page: 1,
limit: 10,
},
......@@ -196,7 +197,7 @@ export default {
if (this.dwData.codeOptions.length == 0) {
requestCode.axiosCode("CODE_UNIT").then((response) => {
if (response.success === true) {
self.$set(this.dwData, "codeOptions", response.data.list);
this.$set(this.dwData, "codeOptions", response.data.list);
}
});
}
......@@ -249,6 +250,14 @@ export default {
},
initDate() {
let self = this;
let dataRange = this.formData.daterange;
if (dataRange && dataRange.length > 0) {
this.formData.djsjKssj = dataRange[0];
this.formData.djsjJssj = dataRange[1];
} else {
this.formData.djsjKssj = this.formData.djsjKssj;
this.formData.djsjJssj = this.formData.djsjJssj;
}
this.tableLoading = true;
let url = "/ywsjTj/queryRycczyxx";
this.qeruestPost(this.formData, url).then((res) => {
......@@ -276,47 +285,47 @@ export default {
this.formData.djsjKssj = "";
this.formData.unitcode = "";
},
query() {
let dataRange = this.formData.daterange;
if (dataRange && dataRange.length > 0) {
this.formData.djsjKssj = dataRange[0];
this.formData.djsjJssj = dataRange[1];
} else {
this.formData.djsjKssj = "";
this.formData.djsjJssj = "";
}
this.tableLoading = true;
// query() {
// let dataRange = this.formData.daterange;
// if (dataRange && dataRange.length > 0) {
// this.formData.djsjKssj = dataRange[0];
// this.formData.djsjJssj = dataRange[1];
// } else {
// this.formData.djsjKssj = "";
// this.formData.djsjJssj = "";
// }
// this.tableLoading = true;
if (this.formData.type == "1") {
request({
url: url.BaseURL + "/ywsjTj/queryDwdlTj",
params: {
djsjKssj: this.formData.djsjKssj,
djsjJssj: this.formData.djsjJssj,
unitcode: this.formData.unitcode,
},
method: "get",
}).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows;
this.page.dataCount = res.data.total;
} else {
this.$message.error(res.msg);
}
});
}
// else if (this.formData.type == '2') {
// if (this.formData.type == "1") {
// request({
// url: url.BaseURL + "/ywsjTj/queryDwdlTj",
// params: {
// djsjKssj: this.formData.djsjKssj,
// djsjJssj: this.formData.djsjJssj,
// unitcode: this.formData.unitcode,
// },
// method: "get",
// }).then((res) => {
// if (res.code == 200) {
// this.tableData = res.data.rows;
// this.page.dataCount = res.data.total;
// } else {
// this.$message.error(res.msg);
// }
// });
// }
// // else if (this.formData.type == '2') {
// } else if (this.formData.type == '3') {
// // } else if (this.formData.type == '3') {
// } else if (this.formData.type == '4') {
// // } else if (this.formData.type == '4') {
// }
// // }
this.tableLoading = false;
this.formData.djsjJssj = "";
this.formData.djsjKssj = "";
},
// this.tableLoading = false;
// this.formData.djsjJssj = "";
// this.formData.djsjKssj = "";
// },
handleSizeChange(val) {
this.formData.limit = val;
this.initDate();
......
......@@ -238,7 +238,7 @@ export default {
if (this.dwData.codeOptions.length == 0) {
requestCode.axiosCode("CODE_UNIT").then((response) => {
if (response.success === true) {
self.$set(this.dwData, "codeOptions", response.data.list);
this.$set(this.dwData, "codeOptions", response.data.list);
}
});
}
......
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