diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index 750ce3df..eadc6f65 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -21,7 +21,9 @@ jobs: run: npm i pnpm -g - name: 安装依赖 - run: pnpm install + run: | + git config --global url."https://".insteadOf git:// + pnpm install continue-on-error: false # 依赖安装失败则终止工作流 - name: 构建项目 diff --git a/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricTrend/index.vue b/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricTrend/index.vue index ff63dbd5..c78babc1 100644 --- a/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricTrend/index.vue +++ b/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricTrend/index.vue @@ -248,7 +248,9 @@ onMounted(() => { }); }); -const trendData = ref({}); +const hourTotal = ref(); +const dayTotal = ref(); +const monthTotal = ref(); async function handleSelectFloor(selectedKeys, info) { let data = { day: currentDay.value.format('YYYY-MM-DD'), @@ -269,6 +271,7 @@ async function handleSelectFloor(selectedKeys, info) { // 更新日数据图表 if (chartInstances.value.day && trend.hour) { + hourTotal.value = trend.hour.total; chartInstances.value.day.setOption({ xAxis: { data: trend.hour.categories || [], @@ -284,6 +287,7 @@ async function handleSelectFloor(selectedKeys, info) { // 更新月数据图表 if (chartInstances.value.month && trend.day) { + dayTotal.value = trend.day.total; chartInstances.value.month.setOption({ xAxis: { data: trend.day.categories || [], @@ -299,6 +303,7 @@ async function handleSelectFloor(selectedKeys, info) { // 更新年数据图表 if (chartInstances.value.year && trend.month) { + monthTotal.value = trend.month.total; chartInstances.value.year.setOption({ xAxis: { data: trend.month.categories || [], @@ -332,7 +337,8 @@ async function handleSelectFloor(selectedKeys, info) { 当日能耗总值:125.04KW.h + /> + 当日能耗总值:{{ hourTotal }}KW.h
@@ -352,7 +358,8 @@ async function handleSelectFloor(selectedKeys, info) { v-model:value="currentMonth" :disabled-date="disabledMonth" picker="month" - />当月能耗总值:125.04KW.h + /> + 当日能耗总值:{{ dayTotal }}KW.h
@@ -372,7 +379,8 @@ async function handleSelectFloor(selectedKeys, info) { v-model:value="currentYear" :disabled-date="disabledYear" picker="year" - />当年能耗总值:125.04KW.h + /> + 当日能耗总值:{{ monthTotal }}KW.h
diff --git a/apps/web-antd/src/views/property/resident/personPassRecordManagement/index.vue b/apps/web-antd/src/views/property/resident/personPassRecordManagement/index.vue index 95bd5498..c3438c5b 100644 --- a/apps/web-antd/src/views/property/resident/personPassRecordManagement/index.vue +++ b/apps/web-antd/src/views/property/resident/personPassRecordManagement/index.vue @@ -37,8 +37,8 @@ const gridOptions: VxeGridProps = { return await getVisitorList({ pageNum: page.currentPage, pageSize: page.pageSize, - begTime: typeof formValues.dateRange === 'undefined' ? '' : formValues.dateRange[0], - endTime: typeof formValues.dateRange === 'undefined' ? '' : formValues.dateRange[1], + begTime: typeof formValues.dateRange === 'undefined' ? '' : formValues.dateRange[0].format('YYYY-MM-DD'), + endTime: typeof formValues.dateRange === 'undefined' ? '' : formValues.dateRange[1].format('YYYY-MM-DD'), personName: typeof formValues.personName === 'undefined' ? '' : formValues.personName, recordType: typeof formValues.recordType === 'undefined' ? '' : formValues.recordType, }); diff --git a/apps/web-antd/src/views/screen/monitor/map/Map.vue b/apps/web-antd/src/views/screen/monitor/map/Map.vue index f56abc0f..347dac12 100644 --- a/apps/web-antd/src/views/screen/monitor/map/Map.vue +++ b/apps/web-antd/src/views/screen/monitor/map/Map.vue @@ -11,10 +11,7 @@ import { deviceManageList } from '#/api/sis/deviceManage/index.js'; import { deviceChannelList } from '#/api/sis/deviceChannel/index.js'; import mpegts from 'mpegts.js'; import { message } from 'ant-design-vue'; -import { - addFFmpegMediaStreamProxy, - addMediaStreamProxy, -} from '#/api/sis/stream/index.js'; +import { addMediaStreamProxy } from '#/api/sis/stream/index.js'; import { checkHEVCSupport } from '#/utils/video.js'; // 地图全局对象 @@ -114,7 +111,8 @@ function loadCameraData() { function doPlayer(nodeData) { if (mpegts.isSupported()) { streamProxy(nodeData, (res) => { - const url = res.flv; + const host = window.location.host; + const url = `http://${host}/${res.app}/${res.streamId}.live.flv`; // 将url 绑定到 nodeData nodeData.url = url; closeVideo(currentPlayer); @@ -152,8 +150,8 @@ function streamProxy(params, cb) { if (isSupportH265) { addMediaStreamProxy(params).then((res) => cb(res)); } else { - // addMediaStreamProxy(params).then((res) => cb(res)); - addFFmpegMediaStreamProxy(params).then((res) => cb(res)); + addMediaStreamProxy(params).then((res) => cb(res)); + // addFFmpegMediaStreamProxy(params).then((res) => cb(res)); } } diff --git a/apps/web-antd/src/views/sis/acAdmin/index.vue b/apps/web-antd/src/views/sis/acAdmin/index.vue index 8957c42a..f8da3d60 100644 --- a/apps/web-antd/src/views/sis/acAdmin/index.vue +++ b/apps/web-antd/src/views/sis/acAdmin/index.vue @@ -1,7 +1,7 @@