Compare commits

..

No commits in common. "9a7923953eb341ca4d53a8d6fa5cb35f74e6f07b" and "ee96424f17da3f492520f474c18d5ed162ab1b4e" have entirely different histories.

8 changed files with 577 additions and 702 deletions

View File

@ -2,7 +2,7 @@ import axios from "axios";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import tools from "@/utils/tools"; import tools from "@/utils/tools";
import router from "../router"; import router from "../router";
// axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
axios.defaults.timeout = 120000; axios.defaults.timeout = 120000;
// HTTP request 拦截器 // HTTP request 拦截器

View File

@ -3,27 +3,27 @@
</template> </template>
<script setup> <script setup>
import { onMounted, reactive, ref, onBeforeMount, onBeforeUnmount,watch } from "vue"; import { onMounted, reactive, ref, onBeforeMount, onBeforeUnmount } from "vue";
// echarts // echarts
import * as echarts from "echarts"; import * as echarts from "echarts";
const props = defineProps({ const props = defineProps({
list: { list: {
type: String, type: Array,
default: () => { default: () => {
return ''; return {};
}, },
}, },
}); });
const data = reactive({ const data = reactive({
option: {}, option: {},
dataValue: 86,
}); });
let angle = 0; // let angle = 0; //
let dataValue = 86;
const chart = ref(); // DOM const chart = ref(); // DOM
const getOption = () => { const getOption = () => {
data.option = { data.option = {
title: { title: {
text: `{v|${data.dataValue}}{unit|%}`, text: `{v|${dataValue}}{unit|%}`,
x: "center", x: "center",
y: "center", y: "center",
textStyle: { textStyle: {
@ -224,14 +224,14 @@ const getOption = () => {
animation: false, // animation: false, //
data: [ data: [
{ {
value: data.dataValue, value: dataValue,
itemStyle: { itemStyle: {
color: "RGBA(0, 225, 248, 1)", color: "RGBA(0, 225, 248, 1)",
}, },
}, },
{ {
name: "未完成", name: "未完成",
value: 100 - data.dataValue, value: 100 - dataValue,
label: { label: {
show: false, show: false,
}, },
@ -287,7 +287,6 @@ onBeforeUnmount(() => {
// 使 // 使
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.dataValue=props.list;
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -3,14 +3,7 @@
</template> </template>
<script setup> <script setup>
import { import { onMounted, reactive, ref, onBeforeMount, defineProps,watch } from "vue";
onMounted,
reactive,
ref,
onBeforeMount,
defineProps,
watch,
} from "vue";
// echarts // echarts
import * as echarts from "echarts"; import * as echarts from "echarts";
const props = defineProps({ const props = defineProps({
@ -26,27 +19,35 @@ const data = reactive({
// //
var rich = { var rich = {
white: { name: {
color: "#65FDFD", color: "#666666",
align: "center", fontSize: 14,
fontSize: 18, padding: [8, 30, 0, 30],
// padding: [21, 0], fontWeight: "400",
align: "left",
}, },
yellow: { value: {
color: "#ffc20e", color: "#333",
fontSize: 18, fontSize: 15,
padding: [5, 4], padding: [0, 30, 8, 30],
align: "center", fontWeight: "500",
align: "left",
}, },
total: { percent: {
color: "#ffc20e", color: "#FFF",
fontSize: 18, align: "right",
align: "center", fontSize: 15,
fontWeight: "500",
//padding: [0, 5]
}, },
blue: { hr: {
color: "#49dff0", borderColor: "#DFDFDF",
fontSize: 16, width: "100%",
align: "center", borderWidth: 1,
height: 0,
},
cir: {
fontSize: 26,
}, },
}; };
var colorList = ["#3BAEFF", "#41EDD5", "#FFC371", "#797AFF"]; var colorList = ["#3BAEFF", "#41EDD5", "#FFC371", "#797AFF"];
@ -94,15 +95,10 @@ const getOption = () => {
color: "white", // color: "white", //
fontSize: 18, // fontSize: 18, //
}, },
normal: { formatter: "{b}:{c}" + "个\n\n",
formatter: function (param) {
return "{white|" + param.name + "}\n{yellow|" + param.value + "}";
},
borderWidth: 20, borderWidth: 20,
borderRadius: 4, borderRadius: 4,
padding: [0, -50], padding: [0, -100],
rich: rich,
},
}, },
labelLine: { labelLine: {
normal: { normal: {
@ -155,17 +151,14 @@ const setChart = () => {
// 使 // 使
myChart.setOption(data.option); myChart.setOption(data.option);
}; };
watch( watch(()=>props.list,()=>{
() => props.list, data.list=props.list
() => {
data.list = props.list;
getOption(); getOption();
setChart(); setChart();
} })
);
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.list = props.list; data.list=props.list
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -8,25 +8,7 @@ import { onMounted, onBeforeMount, reactive, ref } from "vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
const emit = defineEmits(["shuju"]); const emit = defineEmits(["shuju"]);
const props = defineProps({ const props = defineProps({
list1: { list: {
type: Array,
default: () => {
return [];
},
},
list2: {
type: Array,
default: () => {
return [];
},
},
list3: {
type: Array,
default: () => {
return [];
},
},
year: {
type: Array, type: Array,
default: () => { default: () => {
return []; return [];
@ -61,11 +43,13 @@ const colors = [
]; ];
// const valueList = [20, 53, 47, 65, 29, 11, 10]; // const valueList = [20, 53, 47, 65, 29, 11, 10];
const data = reactive({ const data = reactive({
list: [],
option: {}, option: {},
Max: 20000,
valueList: [4504, 16086, 6130, 2844, 4967, 179, 1685, 5010], valueList: [4504, 16086, 6130, 2844, 4967, 179, 1685, 5010],
valueList2: [1181, 2177, 3720, 3711, 4642, 1654, 3395, 5552], valueList2: [1181, 2177, 3720, 3711, 4642, 1654, 3395, 5552],
valueList3: [1181, 2177, 3720, 3711, 4642, 1654, 3395, 5552], valueList3: [1181, 2177, 3720, 3711, 4642, 1654, 3395, 5552],
year: [], xxname: ["1月", "2月", "3月", "4月","5月"],
}); });
// 5: // 5:
//c0:c1,c2:c3 //c0:c1,c2:c3
@ -419,7 +403,7 @@ const getOption = () => {
xAxis: [ xAxis: [
{ {
type: "category", type: "category",
data: data.year, data: data.xxname,
axisLine: { axisLine: {
show: false, show: false,
}, },
@ -433,13 +417,13 @@ const getOption = () => {
color: "#fff", color: "#fff",
fontSize: 16, fontSize: 16,
formatter: function (value) { formatter: function (value) {
return value.length > 4 ? value.slice(0, 3) + "..." : value; return value.length > 3 ? value.slice(0, 2) + "..." : value;
}, },
}, },
}, },
{ {
type: "category", type: "category",
data: data.year, data: data.xxname,
axisLine: { axisLine: {
show: false, show: false,
}, },
@ -457,7 +441,7 @@ const getOption = () => {
], ],
yAxis: { yAxis: {
min: 0, min: 0,
max: data.Max,
// interval: 100, // interval: 100,
type: "value", type: "value",
axisLine: { axisLine: {
@ -772,12 +756,31 @@ const setChart = () => {
emit("shuju", params.name, params.seriesIndex); emit("shuju", params.name, params.seriesIndex);
}); });
}; };
const getMaxCeilingValue = (arr) => {
let max = Math.max(...arr); //
return Math.ceil(max / 100) * 100; // 100
};
const setChart1 = () => {
data.valueList = [];
data.xxname = [];
if (data.list.length !== 0) {
data.list.forEach((item) => {
data.xxname.push(item.name); //
data.valueList.push(item.num); //
});
}
};
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.year=props.year; data.xxname.forEach((item, index) => {
data.valueList=props.list1; props.list.forEach((itemm, indexx) => {
data.valueList2=props.list2; if (item == itemm.xzjd) {
data.valueList3=props.list3; data.valueList[index] = itemm.qrrs;
data.valueList2[index] = itemm.qcrs;
}
});
});
getOption(); getOption();
setChart(); setChart();
}, 800); }, 800);

View File

@ -8,22 +8,22 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
const props = defineProps({ const props = defineProps({
list: { list: {
type: String, type: Array,
default: () => { default: () => {
return ''; return {};
}, },
}, },
}); });
const data = reactive({ const data = reactive({
option: {}, option: {},
dataValue: 0,
}); });
let angle = 0; // let angle = 0; //
let dataValue = 86;
const chart = ref(); // DOM const chart = ref(); // DOM
const getOption = () => { const getOption = () => {
data.option = { data.option = {
title: { title: {
text: `{v|${data.dataValue}}{unit|次}`, text: `{v|${dataValue}}{unit|%}`,
x: "center", x: "center",
y: "center", y: "center",
textStyle: { textStyle: {
@ -224,14 +224,14 @@
animation: false, // animation: false, //
data: [ data: [
{ {
value: data.dataValue, value: dataValue,
itemStyle: { itemStyle: {
color: "RGBA(0, 139, 255, 1)", color: "RGBA(0, 139, 255, 1)",
}, },
}, },
{ {
name: "未完成", name: "未完成",
value: 100 - data.dataValue, value: 100 - dataValue,
label: { label: {
show: false, show: false,
}, },
@ -287,7 +287,6 @@
// 使 // 使
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.dataValue=props.list
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -40,6 +40,34 @@ const data1 = ref([
const getOption = () => { const getOption = () => {
data.option = { data.option = {
// legend: {
// selectedMode: false,
// itemWidth: 10,
// itemHeight: 10,
// itemGap: 10,
// icon: "circle",
// data: ["2.0", "", ""],
// bottom: "3%",
// width: 380,
// textStyle: {
// color: "#ffffff", //
// },
// formatter: function (params) {
// var num = "";
// for (let i = 0; i < data.dataList.length; i++) {
// if (data.dataList[i].name == params) {
// num = data.dataList[i].value;
// }
// }
// if(params == ""){
// return params + " " +num;
// }else{
// return params + " " +num;
// }
// },
// },
title: [ title: [
{ {
text: `${data.percent}%`, text: `${data.percent}%`,

View File

@ -98,11 +98,8 @@
<div <div
class="content_item" class="content_item"
v-for="(item, index) in tsbqTotal" v-for="(item, index) in tsbqTotal"
:class="{ :class="{ choose: item.id == choose.person }"
choose: item.id == choose.person, @click="buten2(item)"
Tsactive: !item.click,
}"
@click="item.click ? buten2(item) : ''"
:key="index" :key="index"
> >
<div class="content_item_name">{{ item.name }}</div> <div class="content_item_name">{{ item.name }}</div>
@ -123,9 +120,8 @@
:class="{ :class="{
choose: yaosuList.includes(item.name), choose: yaosuList.includes(item.name),
wz: item.wz == true, wz: item.wz == true,
Tsactive: !item.click,
}" }"
@click="item.click ? changeys(item.name) : ''" @click="changeys(item.name)"
:key="index" :key="index"
> >
<img :src="item.img" class="zyys_content_item_left" /> <img :src="item.img" class="zyys_content_item_left" />
@ -783,13 +779,6 @@ const PopulationRatio = ref([
]); ]);
// //
const tsbqTotal = ref([]); const tsbqTotal = ref([]);
const lingshibiaoqian = reactive([
{
id: "临时标签",
name: "临时标签",
tagId: "555",
},
]);
const data = reactive({ const data = reactive({
serviceCircleList: [], serviceCircleList: [],
fwqCoordinates: [], // fwqCoordinates: [], //
@ -828,8 +817,8 @@ const yaosuTotal = ref([
name: "体育场所", name: "体育场所",
img: j0, img: j0,
wz: false, wz: false,
click: true,
}, },
{ {
id: 1, id: 1,
name: "幼儿园", name: "幼儿园",
@ -838,7 +827,6 @@ const yaosuTotal = ref([
wz: false, wz: false,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=幼儿园", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=幼儿园",
click: true,
}, },
{ {
id: 2, id: 2,
@ -848,7 +836,6 @@ const yaosuTotal = ref([
wz: false, wz: false,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=小学", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=小学",
click: true,
}, },
{ {
id: 3, id: 3,
@ -858,7 +845,6 @@ const yaosuTotal = ref([
wz: false, wz: false,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=初中", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=初中",
click: true,
}, },
{ {
id: 4, id: 4,
@ -868,7 +854,6 @@ const yaosuTotal = ref([
wz: false, wz: false,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=高中", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=高中",
click: true,
}, },
{ {
id: 5, id: 5,
@ -878,14 +863,12 @@ const yaosuTotal = ref([
wz: false, wz: false,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=医院", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=医院",
click: true,
}, },
{ {
id: 6, id: 6,
name: "南孔书院", name: "南孔书院",
img: j6, img: j6,
wz: false, wz: false,
click: true,
}, },
{ {
id: 7, id: 7,
@ -894,14 +877,12 @@ const yaosuTotal = ref([
img_map: j7_map, img_map: j7_map,
wz: false, wz: false,
tooltip: "name", tooltip: "name",
click: true,
}, },
{ {
id: 8, id: 8,
name: "汽车充电桩", name: "汽车充电桩",
img: j8, img: j8,
wz: true, wz: true,
click: true,
}, },
{ {
id: 9, id: 9,
@ -911,7 +892,6 @@ const yaosuTotal = ref([
wz: true, wz: true,
tooltip: "zyysmc", tooltip: "zyysmc",
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=卫生服务中心", url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=卫生服务中心",
click: true,
}, },
{ {
id: 10, id: 10,
@ -921,133 +901,15 @@ const yaosuTotal = ref([
wz: true, wz: true,
url: "/api/ggfwyth/ysyzt/getAeds", url: "/api/ggfwyth/ysyzt/getAeds",
tooltip: "siteAddress", tooltip: "siteAddress",
click: true,
}, },
{ {
id: 11, id: 11,
name: "摄像头", name: "摄像头",
img: j11, img: j11,
img_map: j11_map, img_map: j11_map,
wz: true, wz: false,
url: "/api/ggfwyth/ysyzt/getJashsxt", url: "/api/ggfwyth/ysyzt/getJashsxt",
tooltip: "sbmc", tooltip: "sbmc",
click: true,
},
{
id: 25,
name: "菜市场",
img: j0,
wz: true,
click: false,
},
{
id: 26,
name: "停车场",
img: j0,
wz: true,
click: false,
},
{
id: 21,
name: "党群服务中心",
img: j0,
wz: true,
click: false,
},
{
id: 22,
name: "残疾人之家",
img: j0,
wz: true,
click: false,
},
{
id: 23,
name: "百姓健身房",
img: j0,
wz: true,
click: false,
},
{
id: 31,
name: "绿色跑道",
img: j0,
wz: true,
click: false,
},
{
id: 24,
name: "便民服务中心",
img: j0,
wz: true,
click: false,
},
{
id: 27,
name: "老年活动室",
img: j0,
wz: true,
click: false,
},
{
id: 28,
name: "篮球场",
img: j0,
wz: false,
click: false,
},
{
id: 29,
name: "足球场",
img: j0,
wz: false,
click: false,
},
{
id: 30,
name: "文化广场",
img: j0,
wz: false,
click: false,
},
{
id: 32,
name: "公厕",
img: j0,
wz: false,
click: false,
},
{
id: 33,
name: "文化礼堂",
img: j0,
wz: false,
click: false,
},
{
id: 34,
name: "农家书屋",
img: j0,
wz: false,
click: false,
},
{
id: 20,
name: "助餐点",
img: j0,
wz: false,
click: false,
},
{
id: 35,
name: "乡贤馆",
img: j0,
wz: false,
click: false,
}, },
]); ]);
// //
@ -1319,6 +1181,7 @@ const getCssj = async () => {
if (res.code == 200) { if (res.code == 200) {
cssj = JSON.parse(res.data); cssj = JSON.parse(res.data);
console.log(1111111111,cssj); console.log(1111111111,cssj);
} }
}); });
}; };
@ -2630,7 +2493,6 @@ const getDataBq = async (jd, cs) => {
name: itemm.bq, name: itemm.bq,
rksl: itemm.rs || 0, rksl: itemm.rs || 0,
tagId: itemm.tagId, tagId: itemm.tagId,
click: true,
}); });
b = 1; b = 1;
} }
@ -2641,20 +2503,9 @@ const getDataBq = async (jd, cs) => {
name: item.name, name: item.name,
rksl: 0, rksl: 0,
tagId: item.tagId, tagId: item.tagId,
click: true,
}); });
} }
}); });
//
lingshibiaoqian.forEach((item, index) => {
tsbqTotal.value.push({
id: item.name,
name: item.name,
rksl: 0,
tagId: item.tagId,
click: false,
});
});
} }
}); });
}; };
@ -2676,17 +2527,6 @@ const getDataBqFirst = async () => {
name: item.bq, name: item.bq,
rksl: item.rs || 0, rksl: item.rs || 0,
tagId: item.tagId, tagId: item.tagId,
click: true,
});
});
//
lingshibiaoqian.forEach((item, index) => {
tsbqTotal.value.push({
id: item.name,
name: item.name,
rksl: 0,
tagId: item.tagId,
click: false,
}); });
}); });
} }
@ -2937,12 +2777,9 @@ const zyys_choose_cs = ref("");
const changeys = (name) => { const changeys = (name) => {
if (yaosuList.value.includes(name)) { if (yaosuList.value.includes(name)) {
yaosuList.value = yaosuList.value.filter((ch) => ch !== name); yaosuList.value = yaosuList.value.filter((ch) => ch !== name);
if (yaosuIcon.value[name]) {
yaosuIcon.value[name].sj.forEach((item, index) => { yaosuIcon.value[name].sj.forEach((item, index) => {
map.removeOverlay(yaosuIcon.value[name].sj[index].overlay); map.removeOverlay(yaosuIcon.value[name].sj[index].overlay);
}); });
}
if (name == zyys_choose_cs.value) { if (name == zyys_choose_cs.value) {
zyys_dk.value.forEach((item, index) => { zyys_dk.value.forEach((item, index) => {
map.removeOverlay(item); map.removeOverlay(item);
@ -2981,10 +2818,9 @@ const changeys = (name) => {
name == "卫生服务中心" name == "卫生服务中心"
) { ) {
getZyys(url, name, img, img_map, tooltip); getZyys(url, name, img, img_map, tooltip);
} else if (name == "养老机构") { }
if (name == "养老机构") {
getZyys2(name, img, img_map, tooltip); getZyys2(name, img, img_map, tooltip);
} else {
loadingss.value = false;
} }
} }
}; };
@ -3184,57 +3020,11 @@ const get_dk_zyys = async (sj, xd, ssly) => {
zyys_jd.forEach((item) => { zyys_jd.forEach((item) => {
loadCs_zyys(item); loadCs_zyys(item);
}); });
// zyysDk.forEach((dk) => {
// let pdK = true; //sj0
// sj.forEach((item, index) => {
// if (item.committee == dk.name) {
// pdK = false;
// let a = {
// ...dk,
// zt: item.zt,
// };
// zyys_data.value.point.push(a);
// }
// });
// if (pdK) {
// let a = {
// ...dk,
// zt: 0,
// };
// zyys_data.value.point.push(a);
// }
// });
// zyysCenter.forEach((center) => {
// let pdK = true; //sj0
// sj.forEach((item, index) => {
// if (item.committee == center.name) {
// pdK = false;
// let b = {
// ...center,
// num: item.num,
// town: item.town,
// committee: item.committee,
// ssly: ssly,
// xd: xd,
// };
// zyys_data.value.center.push(b);
// }
// });
// if (pdK) {
// let b = {
// ...center,
// num: '',
// town: center.jdname,
// committee: center.name,
// ssly: ssly,
// xd: xd,
// };
// zyys_data.value.center.push(b);
// }
// });
sj.forEach((item, index) => {
zyysDk.forEach((dk) => { zyysDk.forEach((dk) => {
let pdK = true; //sj0
sj.forEach((item, index) => {
if (item.committee == dk.name) { if (item.committee == dk.name) {
pdK = false;
let a = { let a = {
...dk, ...dk,
zt: item.zt, zt: item.zt,
@ -3242,8 +3032,19 @@ const get_dk_zyys = async (sj, xd, ssly) => {
zyys_data.value.point.push(a); zyys_data.value.point.push(a);
} }
}); });
if (pdK) {
let a = {
...dk,
zt: 0,
};
zyys_data.value.point.push(a);
}
});
zyysCenter.forEach((center) => { zyysCenter.forEach((center) => {
let pdK = true; //sj0
sj.forEach((item, index) => {
if (item.committee == center.name) { if (item.committee == center.name) {
pdK = false;
let b = { let b = {
...center, ...center,
num: item.num, num: item.num,
@ -3255,7 +3056,42 @@ const get_dk_zyys = async (sj, xd, ssly) => {
zyys_data.value.center.push(b); zyys_data.value.center.push(b);
} }
}); });
if (pdK) {
let b = {
...center,
num: 0,
town: center.jdname,
committee: center.name,
ssly: ssly,
xd: xd,
};
zyys_data.value.center.push(b);
}
}); });
// sj.forEach((item, index) => {
// zyysDk.forEach((dk) => {
// if (item.committee == dk.name) {
// let a = {
// ...dk,
// zt: item.zt,
// };
// zyys_data.value.point.push(a);
// }
// });
// zyysCenter.forEach((center) => {
// if (item.committee == center.name) {
// let b = {
// ...center,
// num: item.num,
// town: item.town,
// committee: item.committee,
// ssly: ssly,
// xd: xd,
// };
// zyys_data.value.center.push(b);
// }
// });
// });
}; };
//() //()
const xr_dk_center_zyys = async () => { const xr_dk_center_zyys = async () => {
@ -5169,9 +5005,7 @@ onMounted(async () => {
font-size: 18px; font-size: 18px;
border-radius: 5px; border-radius: 5px;
} }
.Tsactive {
cursor: not-allowed;
}
// .content_item:last-child { // .content_item:last-child {
// box-sizing: border-box; // box-sizing: border-box;
// display: flex; // display: flex;
@ -5366,9 +5200,7 @@ onMounted(async () => {
font-size: 16px; font-size: 16px;
} }
} }
.Tsactive {
cursor: not-allowed;
}
.wz { .wz {
width: 150px; width: 150px;
} }
@ -5758,10 +5590,6 @@ onMounted(async () => {
.detail { .detail {
z-index: 998; z-index: 998;
} }
//
.Tsactive {
cursor: not-allowed;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
// //

View File

@ -9,10 +9,7 @@
</div> </div>
</div> </div>
<eP3 <eP3
:list1="data.gzf.fwsl" :list="data.jsbgl"
:list2="data.gzf.rzsl"
:list3="data.gzf.bzxzlzf"
:year="data.gzf.year"
v-if="showEchart" v-if="showEchart"
style="width: 95%; margin-top: 10px" style="width: 95%; margin-top: 10px"
@shuju="jsSj" @shuju="jsSj"
@ -37,7 +34,7 @@
{{ item }} {{ item }}
</div> </div>
</div> </div>
<eP2 :list="data.wfjw.list" v-if="showEchart"></eP2> <eP2 :list="data.wfjw.list"></eP2>
</div> </div>
</div> </div>
</div> </div>
@ -53,13 +50,13 @@
<div class="shang_item"> <div class="shang_item">
<div class="title" @click="openTable('物业小区')">物业小区</div> <div class="title" @click="openTable('物业小区')">物业小区</div>
<div class="i"> <div class="i">
<zwfw1 :list="data.fgl.wyxqsl" v-if="showEchart" /> <zwfw1 :list="data.fgl.list1" v-if="showEchart" />
</div> </div>
</div> </div>
<div class="shang_item"> <div class="shang_item">
<div class="title" @click="openTable('专业物业')">专业物业</div> <div class="title" @click="openTable('专业物业')">专业物业</div>
<div class="i"> <div class="i">
<zwfw2 :list="data.fgl.wyfgl" v-if="showEchart" /> <zwfw2 :list="data.fgl.list2" v-if="showEchart" />
</div> </div>
</div> </div>
</div> </div>
@ -74,20 +71,24 @@
</div> </div>
<div class="wlsq"> <div class="wlsq">
<el-table <el-table
:data="data.wlsq" :data="data.tableData1"
style="width: 100%; height: 550px" style="width: 100%; height: 550px"
class="table_border" class="table_border"
:row-style="rowState" :row-style="rowState"
:header-cell-style="tableHeaderColor" :header-cell-style="tableHeaderColor"
> >
<el-table-column <el-table-column
prop="sqmc" prop="name"
label="社区名称" label="社区名称"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column prop="dz" label="社区位置" show-overflow-tooltip />
<el-table-column <el-table-column
prop="fgfw" prop="address"
label="社区位置"
show-overflow-tooltip
/>
<el-table-column
prop="text"
label="社区材料" label="社区材料"
show-overflow-tooltip show-overflow-tooltip
/> />
@ -106,11 +107,11 @@
</div> </div>
<div class="zzgc"> <div class="zzgc">
<div class="zzgc_item"> <div class="zzgc_item">
<eP1 :list="data.zzzlts.bjl"></eP1> <eP1></eP1>
<div class="zzgc_item_title">按期办结率</div> <div class="zzgc_item_title">按期办结率</div>
</div> </div>
<div class="zzgc_item"> <div class="zzgc_item">
<eP4 :list="data.zzzlts.jccs"></eP4> <eP4></eP4>
<div class="zzgc_item_title">专项检查次数</div> <div class="zzgc_item_title">专项检查次数</div>
</div> </div>
</div> </div>
@ -126,50 +127,44 @@
<div class="phqgz"> <div class="phqgz">
<div class="phqgz_title"> <div class="phqgz_title">
<img src="@/assets/images/jz/sjx.png" alt="" /> <img src="@/assets/images/jz/sjx.png" alt="" />
<div class="phqgz_title_text">已改造{{ data.phq.ygz }}</div> <div class="phqgz_title_text">已改造3300</div>
</div> </div>
<el-table <el-table
:data="data.phq.phqgzs" :data="data.tableData2"
style="width: 100%; height: 480px" style="width: 100%; height: 480px"
class="table-style" class="table-style"
:row-style="rowState" :row-style="rowState"
:header-cell-style="tableHeaderColor" :header-cell-style="tableHeaderColor"
> >
<el-table-column <el-table-column
prop="kgsj" prop="starttime"
label="开始时间" label="开始时间"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="jgsj" prop="endtime"
label="结束时间" label="结束时间"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="xmdz" prop="address"
label="地点" label="地点"
width="132" width="132"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="xmmc" prop="title"
label="名称" label="名称"
width="132" width="132"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column prop="finish" label="详情" width="120" fixed="right">
prop="finish"
label="详情"
width="120"
fixed="right"
>
<template #default="scope"> <template #default="scope">
<div @click="goDetail(scope.row)" style="cursor: pointer"> <div @click="goDetail(scope.row)" style="cursor: pointer;">查看详情</div>
查看详情
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -213,50 +208,85 @@ import Dialog from "../dialog/dialog.vue";
import DialogEcTy from "../dialog/dialogEcTy.vue"; import DialogEcTy from "../dialog/dialogEcTy.vue";
import dialog_bzxzf from "../echarts_jz/dialog_bzxzf.vue"; import dialog_bzxzf from "../echarts_jz/dialog_bzxzf.vue";
const data = reactive({ const data = reactive({
gzf:{ wfjw: {
yaer:[], list: [],
list1:[],
list2:[],
list3:[],
}, },
//
fgl: { fgl: {
wyfgl: { list1: {
finish: 0, finish: 60,
total: 100, total: 100,
percent: 0, percent: 60,
}, },
wyxqsl: { list2: {
finish: 0, finish: "40",
total: 100, total: "100",
percent: 0, percent: "40",
}, },
}, //
tableData1: [
{
name: "金隅智慧园",
address: "金隅智慧园",
text: "金隅智慧园疫情防控演练",
}, },
// {
zzzlts: { name: "金隅智慧园",
bjl: 0, address: "金隅智慧园",
jccs: 0, text: "金隅智慧园疫情防控演练",
}, },
// {
wlsq: [], name: "金隅智慧园",
// address: "金隅智慧园",
phq: { text: "金隅智慧园疫情防控演练",
ygz: 0,
phqgzs: [],
}, },
{
name: "金隅智慧园",
address: "金隅智慧园",
text: "金隅智慧园疫情防控演练",
},
],
tableData2: [
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
{
starttime: "2023-11-01",
endtime: "2023-11-30",
address: "金隅智慧园",
title: "金隅智慧园疫情防控演练",
},
],
// //
wfjw: { wfjw: {
chooselist: ["城镇", "农村"], chooselist: ["城镇", "农村"],
choose: "城镇", choose: "城镇",
城镇: [
{ name: "已解危数", value: 0 },
{ name: "已腾空解危数", value: 0 },
],
农村: [
{ name: "已解危数", value: 0 },
{ name: "已腾空解危数", value: 0 },
],
list: [],
}, },
// //
@ -278,6 +308,14 @@ const data = reactive({
{ name: "大街乡", num: 15 }, { name: "大街乡", num: 15 },
], ],
}); });
const wfjwsj_cz = [
{ name: "已解危数", value: 150 },
{ name: "已腾空解危数", value: 100 },
];
const wfjwsj_nc = [
{ name: "已解危数", value: 250 },
{ name: "已腾空解危数", value: 100 },
];
// //
const tableHeaderColor = (arg) => { const tableHeaderColor = (arg) => {
return { return {
@ -387,44 +425,31 @@ const jsSj = (name, index) => {
const showEchart = ref(false); const showEchart = ref(false);
const chooseWfjw = (val) => { const chooseWfjw = (val) => {
data.wfjw.choose = val; data.wfjw.choose = val;
data.wfjw.list=data.wfjw[val]; if (val == "城镇") {
console.log(data.wfjw.list); data.wfjw.list = wfjwsj_cz;
} else if (val == "农村") {
data.wfjw.list = wfjwsj_nc;
}
}; };
// //
const goDetail = () => {}; const goDetail = () => {};
//
const getData = async () => { const getData = async () => {
await http.get("/api/ggfwyth/zysjOverview").then((res) => {
if (res.code == 200) {
//
data.gzf.year=res.data.gzf.year;
data.gzf.fwsl=res.data.gzf.fwsl;
data.gzf.rzsl=res.data.gzf.rzsl;
data.gzf.bzxzlzf=res.data.gzf.bzxzlzf;
//
data.wfjw["城镇"][0].value = res.data.wfjw.cz.yjws;
data.wfjw["城镇"][1].value = res.data.wfjw.cz.tkjws;
data.wfjw["农村"][0].value = res.data.wfjw.nc.yjws;
data.wfjw["农村"][1].value = res.data.wfjw.nc.tkjws;
data.wfjw.list=data.wfjw["城镇"];
//
data.fgl.wyfgl.finish = res.data.fgl.wyfgl;
data.fgl.wyfgl.percent = res.data.fgl.wyfgl;
data.fgl.wyxqsl.finish = res.data.fgl.wyxqsl;
data.fgl.wyxqsl.percent = res.data.fgl.wyxqsl;
//
data.wlsq = res.data.wlsq;
//
data.zzzlts.bjl = res.data.zzzlts.bjl;
data.zzzlts.jccs = res.data.zzzlts.jccs;
//
data.phq.ygz = res.data.phq.ygz;
data.phq.phqgzs = res.data.phq.phqgzs;
//
showEchart.value = true; showEchart.value = true;
} data.wfjw.list = wfjwsj_cz;
}); // await http.get("/api/ggfwyth/health").then((res) => {
// if (res.code == 200) {
// data.medicalInsurance = res.data.medicalInsurance;
// data.lmb = res.data.lmb;
// data.mz = res.data.mz;
// // data.jkda = res.data.jkda;
// data.jsbgl = res.data.jsbgl;
// data.fyglrs = res.data.fyglrs;
// data.jktj = res.data.jktj;
// data.jkhd = res.data.jkhd;
// data.lxbx = res.data.lxbx;
// }
// });
}; };
onBeforeMount(async () => { onBeforeMount(async () => {