diff --git a/src/api/RegistVisitApi/RegistVisitApi.js b/src/api/RegistVisitApi/RegistVisitApi.js index dc2aaf1..802084b 100644 --- a/src/api/RegistVisitApi/RegistVisitApi.js +++ b/src/api/RegistVisitApi/RegistVisitApi.js @@ -104,4 +104,32 @@ export const getVisitTrendStatistics = (data) => { year: data } }) +} + +// 获取本月综合统计 +export const getVisitComprehensiveStatistics = () => { + return request({ + method: 'get', + url: '/visiting/visit/stat', + }) +} + +// 根据身份证获取历史访问次数 +export const getVisitHistoryCount = (data) => { + return request({ + method: 'post', + url: '/visiting/visit/stat_history', + data, + isEncrypt: false + }) +} + +// 获取合并的历史访问记录 +export const getIdCardVisitHistory = (data) => { + return request({ + method: 'post', + url: '/visiting/visit/list_history', + data, + isEncrypt: false + }) } \ No newline at end of file diff --git a/src/components/ChangePassword/ChangePasswordDialog.vue b/src/components/ChangePassword/ChangePasswordDialog.vue deleted file mode 100644 index bb0009a..0000000 --- a/src/components/ChangePassword/ChangePasswordDialog.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/components/ChangePassword/resetPwd.vue b/src/components/ChangePassword/resetPwd.vue deleted file mode 100644 index a86f5e3..0000000 --- a/src/components/ChangePassword/resetPwd.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/EasyPlayer/EasyPlayer.vue b/src/components/EasyPlayer/EasyPlayer.vue deleted file mode 100644 index dee8c26..0000000 --- a/src/components/EasyPlayer/EasyPlayer.vue +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/components/EasyPlayer/EasyWasmPlayer.vue b/src/components/EasyPlayer/EasyWasmPlayer.vue deleted file mode 100644 index 4f96647..0000000 --- a/src/components/EasyPlayer/EasyWasmPlayer.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/src/components/PageHeader/index.vue b/src/components/PageHeader/index.vue deleted file mode 100644 index 2393371..0000000 --- a/src/components/PageHeader/index.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue b/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue index e712715..b33aa01 100644 --- a/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue +++ b/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue @@ -29,14 +29,13 @@ label-position="left" require-asterisk-position="right" :rules="rules" - :disabled="isView" v-if="showRegistration" > - + @@ -47,17 +46,26 @@ placeholder="请选择上访时间" value-format="YYYY-MM-DD hh:mm:ss" :disabled-date="disableDate" + :disabled="isView" /> - + - + @@ -65,6 +73,7 @@ - + - + - + @@ -110,6 +130,7 @@ - + - + - + - 异地历史信访 + 异地访问: {{ queryParams.otherPlaces }} 次, 本地访问: {{ queryParams.locals }} 次 @@ -158,6 +185,7 @@ @@ -186,6 +215,7 @@ type="textarea" v-model="queryParams.reply" :autosize="{ minRows: 3, maxRows: 9999 }" + :disabled="isView" /> @@ -194,6 +224,7 @@ - + import {getCurrentInstance, useTemplateRef} from 'vue'; -import {addVisit, getRegisterList, getVisitInfo, updateVisit} from '@/api/RegistVisitApi/RegistVisitApi.js'; +import { + addVisit, + getRegisterList, + getVisitHistoryCount, + getVisitInfo, + updateVisit +} from '@/api/RegistVisitApi/RegistVisitApi.js'; import dayjs from 'dayjs'; import DividerHeader from '@/components/DividerHeader/DividerHeader.vue'; import {ArrowRight} from '@element-plus/icons-vue'; @@ -297,8 +336,8 @@ const isShow = ref(false) const isEdit = ref(false) const isView = ref(false) const isCreate = ref(false) -const showRegistrationList = ref(true) -const showRegistration = ref(false) +const showRegistrationList = ref(false) +const showRegistration = ref(true) // 控制查看历史数据按钮状态 const viewHistoryDisable = ref(true) @@ -341,7 +380,11 @@ const defaultParams = { // 接待人 receptionist: '', // 接待人类型 - receptionistType: '' + receptionistType: '', + // 本地访问次数 + locals: 0, + // 异地访问次数 + otherPlaces: 0 } const queryParams = ref({...defaultParams}) const registerList = ref([]) @@ -450,8 +493,18 @@ const updateHandle = async (elForm) => { } // 身份证输入框失去焦点后的事件 -const idCardChangeHandle = (value) => { - viewHistoryDisable.value = !value; +const idCardChangeHandle = async (value) => { + if (value) { + const res = await getVisitHistoryCount({ + idCard: value, + endTime: dayjs().format('YYYY-MM-DD hh:mm:ss') + }) + queryParams.value.otherPlaces = res.data.otherPlaces + queryParams.value.locals = res.data.locals + viewHistoryDisable.value = false; + } else { + viewHistoryDisable.value = true; + } } // 禁止今日之前的时间选择