Commit 22d09c10 by chenqiang

大屏修改

parent a4b29ee1
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-07-11 15:04:34 * @Date: 2021-07-11 15:04:34
* @LastEditTime: 2022-04-01 11:28:21 * @LastEditTime: 2022-03-04 14:01:48
* @LastEditors: Please set LastEditors * @LastEditors: LYS
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\index\kshData.vue * @FilePath: \founder_vue\src\views\index\kshData.vue
--> -->
...@@ -137,20 +137,20 @@ ...@@ -137,20 +137,20 @@
<span <span
:class="{ activeBtn: activeBtn == `1-${fpaLegth1}` }" :class="{ activeBtn: activeBtn == `1-${fpaLegth1}` }"
v-if="fpaLegth1 > 0" v-if="fpaLegth1 > 0"
@click="updateBtn(`1-${fpaLegth1}`, 1, fpaLegth1)" @click="updateBtn(`1-${fpaLegth1}`, 0, fpaLegth1-1)"
>1-{{ fpaLegth1 }}</span >1-{{ fpaLegth1 }}</span
> >
<span <span
:class="{ activeBtn: activeBtn == `13-${fpaLegth2}` }" :class="{ activeBtn: activeBtn == `13-${fpaLegth2}` }"
v-if="fpaLegth2 > 0" v-if="fpaLegth2 > 0"
@click="updateBtn(`13-${fpaLegth2}`, 13, fpaLegth2)" @click="updateBtn(`13-${fpaLegth2}`, 12, fpaLegth2-1)"
>13-{{ fpaLegth2 }}</span >13-{{ fpaLegth2 }}</span
> >
<span <span
:class="{ activeBtn: activeBtn == `26-${fpaLegth3}` }" :class="{ activeBtn: activeBtn == `25-${fpaLegth3}` }"
@click="updateBtn(`26-${fpaLegth3}`, 26, fpaLegth3)" @click="updateBtn(`25-${fpaLegth3}`, 24, fpaLegth3-1)"
v-if="fpaLegth3 > 0" v-if="fpaLegth3 > 0"
>26-{{ fpaLegth3 }}</span >25-{{ fpaLegth3 }}</span
> >
</div> </div>
<div <div
...@@ -313,9 +313,9 @@ export default { ...@@ -313,9 +313,9 @@ export default {
codeTree: "CODE_AJLB", codeTree: "CODE_AJLB",
}, },
{ {
name: "小类案别", name: "小案类别",
id: "gabAjxzlb", id: "gabAjxzlb",
placeholder: "小类案别", placeholder: "小案类别",
type: "codeTreeDialog", type: "codeTreeDialog",
props: [], //字典弹框需要的字段 props: [], //字典弹框需要的字段
value: "", value: "",
...@@ -324,9 +324,9 @@ export default { ...@@ -324,9 +324,9 @@ export default {
codeTree: "CODE_GABAJZLB", codeTree: "CODE_GABAJZLB",
}, },
{ {
name: "细类案别", name: "细案类别",
id: "gabAjxalb", id: "gabAjxalb",
placeholder: "细类案别", placeholder: "细案类别",
type: "codeTreeDialog", type: "codeTreeDialog",
props: [], //字典弹框需要的字段 props: [], //字典弹框需要的字段
value: "", value: "",
...@@ -885,22 +885,18 @@ export default { ...@@ -885,22 +885,18 @@ export default {
let unitcode = JSON.parse( let unitcode = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).unitcode.slice(0, 6); ).unitcode.slice(0, 6);
let unit = unitcode == "010000" ? "" : unitcode; let unit = unitcode == "010000" ? "" : unitcode;
self.$set(self.formData, "asjfsddXzqhdm", unit); self.$set(self.formData, "asjfsddXzqhdm", unit);
self.xzqh = self.xzqh =
unitcode == "010000" ? "china" : self.provinceCodes[unitcode.slice(0, 2)]; unitcode == "010000" ? "china" : self.provinceCodes[unitcode.slice(0, 2)];
debugger
self.propQueryField.forEach((val) => { self.propQueryField.forEach((val) => {
debugger
if (val.type == "code" || val.type == "codeTreeDialog") { if (val.type == "code" || val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) { if (val.codeOptions.length == 0) {
axios axios
.get(`JsonData/${val.codeTree}.json`) .get(`JsonData/${val.codeTree}.json`)
.then((res) => { .then((res) => {
debugger
if(val.codeTree =='CODE_XZQH'){ if(val.codeTree =='CODE_XZQH'){
debugger
let arr1 = res.data.data.rows.filter( let arr1 = res.data.data.rows.filter(
(item) => item.id.slice(0, 2) == unitcode.slice(0, 2) (item) => item.id.slice(0, 2) == unitcode.slice(0, 2)
); );
...@@ -930,7 +926,6 @@ export default { ...@@ -930,7 +926,6 @@ export default {
} }
}else{ }else{
debugger
self.$set(val, "codeOptions", res.data.data.rows); self.$set(val, "codeOptions", res.data.data.rows);
} }
}) })
...@@ -947,7 +942,6 @@ export default { ...@@ -947,7 +942,6 @@ export default {
// spinner: "el-icon-loading", // spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", // background: "rgba(255, 255, 255, 0.7)",
// }); // });
// debugger
this.getEslaTopTenQuery(); this.getEslaTopTenQuery();
this.getEsdyxgwrqTopTenQuery(); this.getEsdyxgwrqTopTenQuery();
this.getEsFpaTsfxQueryAll(0, 11); this.getEsFpaTsfxQueryAll(0, 11);
...@@ -971,7 +965,6 @@ export default { ...@@ -971,7 +965,6 @@ export default {
// spinner: "el-icon-loading", // spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", // background: "rgba(255, 255, 255, 0.7)",
// }); // });
debugger;
let unitcode = JSON.parse( let unitcode = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).unitcode.slice(0, 6); ).unitcode.slice(0, 6);
...@@ -983,7 +976,6 @@ export default { ...@@ -983,7 +976,6 @@ export default {
axios axios
.get(`JsonData/${val.codeTree}.json`) .get(`JsonData/${val.codeTree}.json`)
.then((res) => { .then((res) => {
debugger
if(val.codeTree =='CODE_XZQH'){ if(val.codeTree =='CODE_XZQH'){
let arr1 = res.data.data.rows.filter( let arr1 = res.data.data.rows.filter(
...@@ -1014,7 +1006,6 @@ export default { ...@@ -1014,7 +1006,6 @@ export default {
self.$set(val, "codeOptions", arr4); self.$set(val, "codeOptions", arr4);
} }
}else{ }else{
debugger
self.$set(val, "codeOptions", res.data.rows); self.$set(val, "codeOptions", res.data.rows);
} }
}) })
...@@ -1037,7 +1028,6 @@ export default { ...@@ -1037,7 +1028,6 @@ export default {
this.getEslaXyrTopTenQuery(); this.getEslaXyrTopTenQuery();
}); });
} else { } else {
debugger;
this.$nextTick(() => { this.$nextTick(() => {
this.getEsLatsfxFpaQuery(); this.getEsLatsfxFpaQuery();
// this.setMap("china", this.points); // this.setMap("china", this.points);
...@@ -1060,7 +1050,6 @@ export default { ...@@ -1060,7 +1050,6 @@ export default {
handler(val) { handler(val) {
console.log(val); console.log(val);
if (val == 4) { if (val == 4) {
debugger;
this.Loading.close(); this.Loading.close();
} }
}, },
...@@ -1178,7 +1167,6 @@ export default { ...@@ -1178,7 +1167,6 @@ export default {
*/ */
updateBtn(name, num1, num2) { updateBtn(name, num1, num2) {
this.activeBtn = name; this.activeBtn = name;
debugger;
this.getEsFpaTsfxQuery(num1, num2); this.getEsFpaTsfxQuery(num1, num2);
}, },
//年龄段和性别分布 //年龄段和性别分布
...@@ -1204,7 +1192,7 @@ export default { ...@@ -1204,7 +1192,7 @@ export default {
}); });
self.echartsNum++; self.echartsNum++;
self.setLineDiagram(lineData1, lineData2, nlData,myChart); self.setLineDiagram(lineData1, lineData2, nlData,myChart);
} }
}); });
...@@ -1763,18 +1751,35 @@ export default { ...@@ -1763,18 +1751,35 @@ export default {
if (res.code == 200) { if (res.code == 200) {
debugger debugger
let fpaLegth = res.data.rows.length % 12; let fpaLegth = res.data.rows.length % 12;
let num = parseInt(res.data.rows.length / 12); // let num = parseInt(res.data.rows.length / 12);
this.fpaLegth1 = num == 0 ? fpaLegth : 12; // self.fpaLegth1 = (num == 0 && res.data.rows.length<=12) ? fpaLegth : 12;
this.fpaLegth2 = if( res.data.rows.length > 12 && res.data.rows.length < 24){
num == 1 ? fpaLegth + 12 : this.fpaLegth1 == 12 ? 25 : 0; self.fpaLegth2 = fpaLegth + 12
this.fpaLegth3 = num == 2 ? fpaLegth + 25 : 0; self.fpaLegth3 = 0
self.fpaLegth1 = 0
}else if(res.data.rows.length < 12 || res.data.rows.length === 12){
self.fpaLegth1 = res.data.rows.length
self.fpaLegth2 = 0
self.fpaLegth3 = 0
}else if( res.data.rows.length > 24){
self.fpaLegth1 = 12
self.fpaLegth2 = 24
self.fpaLegth3 = fpaLegth + 24
}else if(res.data.rows.length === 24){
self.fpaLegth3 = 0
self.fpaLegth2 = 24
self.fpaLegth1 = 12
}
// self.fpaLegth2 =
// (num == 1 && res.data.rows.length > 12) ? fpaLegth + 12 : self.fpaLegth1 == 12 ? 25 : 0;
// self.fpaLegth3 = num == 2 ? fpaLegth + 25 : 0;
res.data.rows.forEach((item) => { res.data.rows.forEach((item) => {
self.allData1.push(item.name); self.allData1.push(item.name);
self.allData2.push(item.numFa); self.allData2.push(item.numFa);
self.allData3.push(item.numPa); self.allData3.push(item.numPa);
}); });
self.getEsFpaTsfxQuery(0, 11); self.getEsFpaTsfxQuery(0, 11);
this.activeBtn = `1-${this.fpaLegth1}`; self.activeBtn = `1-${self.fpaLegth1}`;
} }
}); });
}, },
...@@ -1785,7 +1790,7 @@ export default { ...@@ -1785,7 +1790,7 @@ export default {
let areaYData = []; let areaYData = [];
let data4 = []; let data4 = [];
let data5 = []; let data5 = [];
let myChart = this.$echarts.init(this.$refs.aside_solveacase); let myChart = this.$echarts.init(this.$refs.aside_solveacase);
for (let i = num1; i <= num2; i++) { for (let i = num1; i <= num2; i++) {
if (self.allData1[i]) { if (self.allData1[i]) {
...@@ -1813,7 +1818,6 @@ export default { ...@@ -1813,7 +1818,6 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
debugger;
// self.zxqh = self.zxqh ? self.xzqh:'china' // self.zxqh = self.zxqh ? self.xzqh:'china'
self.setMap(self.xzqh, res.data.rows, myChart); self.setMap(self.xzqh, res.data.rows, myChart);
} }
...@@ -1830,7 +1834,7 @@ export default { ...@@ -1830,7 +1834,7 @@ export default {
* @return {*} * @return {*}
*/ */
setAside_solveacase(y, data1, data2, myChart) { setAside_solveacase(y, data1, data2, myChart) {
// let myChart = this.$echarts.init(this.$refs.aside_solveacase); // let myChart = this.$echarts.init(this.$refs.aside_solveacase);
myChart.setOption({ myChart.setOption({
title: { title: {
...@@ -2155,9 +2159,8 @@ export default { ...@@ -2155,9 +2159,8 @@ export default {
// } // }
self.Toploading = true; self.Toploading = true;
// this.$nextTick(() => { // this.$nextTick(() => {
// debugger
// }); // });
EslaTopTenQuery({ EslaTopTenQuery({
asjfsddXzqhdm: self.formData.asjfsddXzqhdm, asjfsddXzqhdm: self.formData.asjfsddXzqhdm,
gabAjxzlb: self.formData.gabAjxzlb, gabAjxzlb: self.formData.gabAjxzlb,
...@@ -2168,7 +2171,6 @@ export default { ...@@ -2168,7 +2171,6 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log('res....',res); console.log('res....',res);
debugger
if (res.code == 200) { if (res.code == 200) {
res.data.rows.forEach((item) => { res.data.rows.forEach((item) => {
ydata.push(item.name); ydata.push(item.name);
...@@ -2192,7 +2194,6 @@ export default { ...@@ -2192,7 +2194,6 @@ export default {
* @return {*} * @return {*}
*/ */
setSuchCaseTop10(ydata, data4, myChart) { setSuchCaseTop10(ydata, data4, myChart) {
debugger
var self = this; var self = this;
this.Toploading = false; this.Toploading = false;
// let myChart = this.$echarts.init(this.$refs.suchCaseTop10); // let myChart = this.$echarts.init(this.$refs.suchCaseTop10);
...@@ -2295,7 +2296,6 @@ export default { ...@@ -2295,7 +2296,6 @@ export default {
// spinner: "el-icon-loading", // spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", // background: "rgba(255, 255, 255, 0.7)",
// }); // });
// debugger;
if (type != "china") { if (type != "china") {
type = self.xzqh; type = self.xzqh;
} }
...@@ -2501,20 +2501,18 @@ export default { ...@@ -2501,20 +2501,18 @@ export default {
let unitcode = JSON.parse( let unitcode = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).unitcode.slice(0, 6); ).unitcode.slice(0, 6);
debugger;
if (!this.formData.asjfsddXzqhdm) { if (!this.formData.asjfsddXzqhdm) {
if (unitcode != "010000") { if (unitcode != "010000") {
this.$message.error("请选择行政单位"); this.$message.error("请选择行政单位");
} else { } else {
this.xzqh = this.xzqh =
this.provinceCodes[this.formData.asjfsddXzqhdm.slice(0, 2)]; this.provinceCodes[this.formData.asjfsddXzqhdm.slice(0, 2)];
// this.Loading = this.$loading({ this.Loading = this.$loading({
// lock: true, lock: true,
// text: "正在查询...", text: "正在查询...",
// spinner: "el-icon-loading", spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
// }); });
debugger;
this.getEsLatsfxFpaQuery(); this.getEsLatsfxFpaQuery();
// this.setMap(this.xzqh, this.points); // this.setMap(this.xzqh, this.points);
this.getEslaTopTenQuery(); this.getEslaTopTenQuery();
...@@ -2537,7 +2535,6 @@ export default { ...@@ -2537,7 +2535,6 @@ export default {
// spinner: "el-icon-loading", // spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", // background: "rgba(255, 255, 255, 0.7)",
// }); // });
debugger;
this.getEsLatsfxFpaQuery(); this.getEsLatsfxFpaQuery();
// this.setMap(this.xzqh, this.points); // this.setMap(this.xzqh, this.points);
this.getEslaTopTenQuery(); this.getEslaTopTenQuery();
...@@ -2579,7 +2576,6 @@ export default { ...@@ -2579,7 +2576,6 @@ export default {
// spinner: "el-icon-loading", // spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", // background: "rgba(255, 255, 255, 0.7)",
// }); // });
debugger;
let unitcode = JSON.parse( let unitcode = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).unitcode.slice(0, 6); ).unitcode.slice(0, 6);
......
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