diff --git a/public/imgs/police.jpeg b/public/imgs/police.jpeg new file mode 100644 index 0000000..fe8bdd0 Binary files /dev/null and b/public/imgs/police.jpeg differ diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 031bef4..10c6388 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -23,7 +23,6 @@ size="large" /> - @@ -181,13 +180,16 @@ function getData() { watch(time, () => { getData(); -}) +}); onMounted(() => { getData(); }); const zfbaPieOption = computed(() => { return { + tooltip: { + trigger: "item", + }, series: [ { type: "pie", @@ -203,6 +205,9 @@ const zfbaPieOption = computed(() => { const fwglPieOption = computed(() => { return { + tooltip: { + trigger: "item", + }, series: [ { type: "pie", @@ -218,6 +223,9 @@ const fwglPieOption = computed(() => { const jjjgPieOption = computed(() => { return { + tooltip: { + trigger: "item", + }, series: [ { type: "pie", @@ -233,6 +241,9 @@ const jjjgPieOption = computed(() => { const ajlyPieOption = computed(() => { return { + tooltip: { + trigger: "item", + }, series: [ { type: "pie", @@ -351,6 +362,9 @@ const option1 = ref({ }); const option4 = { + tooltip: { + trigger: "item", + }, series: [ { type: "pie", diff --git a/src/views/sensitivePerception/DepartNegative.vue b/src/views/sensitivePerception/DepartNegative.vue index 278959f..3dd3fe8 100644 --- a/src/views/sensitivePerception/DepartNegative.vue +++ b/src/views/sensitivePerception/DepartNegative.vue @@ -1,108 +1,115 @@ - + + + @@ -124,7 +130,9 @@
民警基本情况
- + + +
@@ -272,7 +280,12 @@ /> @@ -304,13 +317,23 @@ import { listPoliceNegative, getPoliceProfile, listNegativeByPoliceIdCode, - listNegativeMonthly + listNegativeMonthly, } from "@/api/sensitivePerception/profilePolice"; import { InspectCase } from "@/enums/dictEnums"; +import { getDictLable } from "@/utils/util"; +import moment from "moment"; + +import useCatchStore from "@/stores/modules/catch"; +const catchStore = useCatchStore(); +const dict = catchStore.getDicts(["personType"]); const query = ref({ current: 1, size: 10, + crtTime: [ + moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), + moment().format("YYYY-MM-DD HH:mm:ss"), + ], }); const list = ref([]); const total = ref(0); @@ -326,6 +349,10 @@ function reset() { query.value = { current: 1, size: 10, + crtTime: [ + moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), + moment().format("YYYY-MM-DD HH:mm:ss"), + ], }; getList(); } @@ -391,14 +418,20 @@ const barOption = ref({ async function handleShowProfile(row) { activeRow.value = row; show.value = true; - time.value = [] - await getProfileData(); - listNegativeMonthly(row.idCode).then(data => { - barOption.value.xAxis.data = data.months - barOption.value.series[0].data = data.values - }) } +watch(activeRow, async () => { + time.value = [ + moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), + moment().format("YYYY-MM-DD HH:mm:ss"), + ]; + await getProfileData(); + listNegativeMonthly(row.idCode).then((data) => { + barOption.value.xAxis.data = data.months; + barOption.value.series[0].data = data.values; + }); +}) + const time = ref([]); async function getProfileData() { loading.value = true; @@ -422,12 +455,13 @@ function getNegativeList() { negativeQuery.value.beginTime = time.value[0]; negativeQuery.value.endTime = time.value[1]; } - listNegativeByPoliceIdCode(activeRow.value.idCode, negativeQuery.value).then( - (data) => { - negativeList.value = data.records; - negativeTotal.value = data.total; - } - ); + listNegativeByPoliceIdCode( + activeRow.value.idCode, + negativeQuery.value + ).then((data) => { + negativeList.value = data.records; + negativeTotal.value = data.total; + }); } const radarOption = { @@ -455,12 +489,10 @@ const radarOption = { ], }; - - function getGenderFromIdCode(idCode) { // 检查身份证号码是否有效(长度为18位) if (!idCode || idCode.length !== 18) { - return ''; + return ""; } // 获取第17位数字 @@ -468,14 +500,14 @@ function getGenderFromIdCode(idCode) { // 检查是否为数字 if (isNaN(genderCode)) { - return ''; + return ""; } // 根据第17位数字判断性别 return genderCode % 2 === 0 ? "女" : "男"; } -const negativeShow = ref(false) -const activeNegativeId = ref('') +const negativeShow = ref(false); +const activeNegativeId = ref(""); function handleAction(row) { negativeShow.value = true; activeNegativeId.value = row.id; diff --git a/src/views/work/Fav.vue b/src/views/work/Fav.vue index e9ba7c0..d6a966a 100644 --- a/src/views/work/Fav.vue +++ b/src/views/work/Fav.vue @@ -5,27 +5,44 @@ - + - + - + - + @@ -36,12 +53,16 @@ - + - + @@ -89,7 +110,7 @@
- {{ }} + {{}}
@@ -103,7 +124,7 @@
- {{ }} + {{}}
@@ -120,18 +141,36 @@ - - - - - - + + + + + + + + @@ -154,51 +193,56 @@ \ No newline at end of file