Commit 91428f6e by xue_wengang

统计查询单位、时间修改

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