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

物业监管接口补全

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