Commit 6b66404d authored by 郭铭瑶's avatar 郭铭瑶 🤘

物业监管接口补全

parent 30241555
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
v-if="addition.value || addition.value === 0" v-if="addition.value || addition.value === 0"
class="count orange-count" class="count orange-count"
:value="addition.value" :value="addition.value"
:decimal="addition.decimal || 0"
/> />
<span v-if="addition.unit">{{ addition.unit }}</span> <span v-if="addition.unit">{{ addition.unit }}</span>
<!-- <img src="@/assets/images/title-dec.png" /> --> <!-- <img src="@/assets/images/title-dec.png" /> -->
...@@ -52,6 +53,7 @@ export interface AdditionProp { ...@@ -52,6 +53,7 @@ export interface AdditionProp {
name?: string name?: string
value?: number value?: number
unit?: string unit?: string
decimal?: number
} }
export default defineComponent({ export default defineComponent({
name: 'MySub', name: 'MySub',
......
...@@ -33,8 +33,9 @@ ...@@ -33,8 +33,9 @@
</div> </div>
</div> </div>
</div> </div>
<m-sub :addition="{ value: 1684, unit: '万元' }"> 维修资金 </m-sub> <m-sub :addition="{ value: capital, unit: '万元', decimal: 2 }">
<!-- <Summary title="续筹分布" :list="list" :avatar="avatar1" /> --> 维修资金
</m-sub>
<div class="warn"> <div class="warn">
<div> <div>
<p>{{ list[0].name }}</p> <p>{{ list[0].name }}</p>
...@@ -71,12 +72,14 @@ const _config = { ...@@ -71,12 +72,14 @@ const _config = {
row: 2, row: 2,
apis: { apis: {
main: '/service-documents-ddd/public/checkOrder/operatingIndex', main: '/service-documents-ddd/public/checkOrder/operatingIndex',
capital: '/service-documents-ddd/public/maintenance/count/amt',
amount: '/service-documents-ddd/public/houseContinuedWarnings',
list: '/service-documents-ddd/public/buildingWarnings/countByStreet',
}, },
} }
export default _config export default _config
</script> </script>
<script lang="ts" setup> <script lang="ts" setup>
import avatar1 from '@/assets/images/avatar1.png'
import Summary from '@/components/summary.vue' import Summary from '@/components/summary.vue'
import { onMounted, ref } from 'vue' import { onMounted, ref } from 'vue'
import { ajax } from '@/ajax' import { ajax } from '@/ajax'
...@@ -98,7 +101,27 @@ onMounted(() => { ...@@ -98,7 +101,27 @@ onMounted(() => {
] ]
info.value = { alreadyCheckCount, rectifyRatio } info.value = { alreadyCheckCount, rectifyRatio }
}) })
ajax.get({ url: _config.apis.capital }).then((res) => {
const { tranAmt = 0 } = res?.data?.content || {}
capital.value = tranAmt / 10000
})
ajax.get({ url: _config.apis.amount }).then((res) => {
const {
yjmpzSum = 0, //门牌幢
yjxqSum = 0, //小区
yjfhSum = 0, //分户
} = res?.data?.content || {}
list.value = [
{ name: '续筹预警', value: yjfhSum },
{ name: '涉及门牌', value: yjmpzSum },
{ name: '涉及小区', value: yjxqSum },
]
})
ajax.get({ url: _config.apis.list }).then((res) => {
barData.value.source = res?.data?.content || []
})
}) })
const capital = ref(0)
const info = ref({ const info = ref({
alreadyCheckCount: 0, alreadyCheckCount: 0,
rectifyRatio: 0, rectifyRatio: 0,
...@@ -109,9 +132,9 @@ const summary = ref([ ...@@ -109,9 +132,9 @@ const summary = ref([
{ name: '物业日查', value: 0 }, { name: '物业日查', value: 0 },
]) ])
const list = ref([ const list = ref([
{ name: '续筹预警', value: 47520 }, { name: '续筹预警', value: 0 },
{ name: '涉及门牌', value: 3960 }, { name: '涉及门牌', value: 0 },
{ name: '涉及小区', value: 45 }, { name: '涉及小区', value: 0 },
]) ])
const partys = [ const partys = [
...@@ -120,22 +143,13 @@ const partys = [ ...@@ -120,22 +143,13 @@ const partys = [
{ name: '物业公司党小组', value: 167 }, { name: '物业公司党小组', value: 167 },
] ]
const barData = { const barData = ref({
dimensions: [ dimensions: [
{ name: 'street', displayName: '街道' }, { name: 'streetName', displayName: '街道' },
{ name: 'value', displayName: '数量' }, { name: 'num', displayName: '数量' },
],
source: [
{ street: '街道1', value: 20 },
{ street: '街道2', value: 20 },
{ street: '街道3', value: 30 },
{ street: '街道4', value: 40 },
{ street: '街道5', value: 50 },
{ street: '街道6', value: 50 },
{ street: '街道7', value: 50 },
{ street: '街道8', value: 20 },
], ],
} source: [],
})
const barOption = { const barOption = {
legend: false, legend: false,
yAxis: { yAxis: {
...@@ -143,6 +157,7 @@ const barOption = { ...@@ -143,6 +157,7 @@ const barOption = {
}, },
grid: { grid: {
bottom: 0, bottom: 0,
height: '100%',
}, },
xAxis: [ xAxis: [
{ {
......
...@@ -36,7 +36,8 @@ const _config = { ...@@ -36,7 +36,8 @@ const _config = {
baseUrl: window._base_url, baseUrl: window._base_url,
apis: { apis: {
main: '/service-special-ja-ddd/public/risk/type/statistical', main: '/service-special-ja-ddd/public/risk/type/statistical',
list: '/service-special-ja-ddd/public/wholeBuildingRiskss', list: '/service-special-ja-ddd/public/getBuildingCoordinates',
// list: '/service-special-ja-ddd/public/wholeBuildingRiskss',
}, },
} }
export default _config export default _config
...@@ -134,7 +135,7 @@ async function onClick({ query, icon }) { ...@@ -134,7 +135,7 @@ async function onClick({ query, icon }) {
params: { pageSize: 9000, createTime_desc: 'desc', ...query }, params: { pageSize: 9000, createTime_desc: 'desc', ...query },
}) })
)?.data?.content || [] )?.data?.content || []
bus.emit('addPoints', { data, icon }) bus.emit('addPoints', { data, icon, size: 12 })
} }
</script> </script>
......
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