Commit 48f1869f authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改勤务节点&添加垃圾暴露

parent 854cfab3
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>南京东路街道</title> <title>南京东路街道</title>
<script type="module" crossorigin src="./assets/index.273427b4.js"></script> <script type="module" crossorigin src="./assets/index.468a88b9.js"></script>
<link rel="modulepreload" href="./assets/vendor.0a2bc783.js"> <link rel="modulepreload" href="./assets/vendor.0a2bc783.js">
<link rel="stylesheet" href="./assets/index.b71943ab.css"> <link rel="stylesheet" href="./assets/index.b71943ab.css">
</head> </head>
......
...@@ -15,3 +15,43 @@ export function convertIds(number: string): string { ...@@ -15,3 +15,43 @@ export function convertIds(number: string): string {
if (!number) return '' if (!number) return ''
return number.replace(/(\d{6})\d*(\d{2})/, '$1**********$2') return number.replace(/(\d{6})\d*(\d{2})/, '$1**********$2')
} }
export function transType(type: string): { text: string; color: string } {
switch (type) {
case 'fire':
return {
text: '消防通道占用',
color: '#2F86EE',
}
case 'batteryCar':
return {
text: '电瓶车入梯',
color: '#ffd400',
}
case 'overflowingGarbage':
return {
text: '垃圾满溢',
color: '#00f2ff',
}
case 'groupRent':
return {
text: '违规租赁',
color: '#F7933E',
}
case 'highFall':
return {
text: '高抛隐患',
color: '#5BD5FF',
}
case 'ferrousGarbage':
return {
text: '垃圾暴露',
color: '#4F953B',
}
default:
return {
text: '无',
color: '#fff',
}
}
}
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType } from 'vue' import { defineComponent, PropType } from 'vue'
import empty from '@/assets/images/empty.png' import empty from '@/assets/images/empty.png'
import { transType } from '@/tools/index'
export default defineComponent({ export default defineComponent({
name: 'DisposeList', name: 'DisposeList',
...@@ -50,37 +51,7 @@ export default defineComponent({ ...@@ -50,37 +51,7 @@ export default defineComponent({
const handleClick = (data: unknown) => { const handleClick = (data: unknown) => {
ctx.emit('select', data) ctx.emit('select', data)
} }
const transType = (type: string) => {
switch (type) {
case 'fire':
return {
text: '消防通道占用',
color: '#2F86EE',
}
case 'batteryCar':
return {
text: '电瓶车入梯',
color: '#ffd400',
}
case 'overflowingGarbage':
return {
text: '垃圾满溢',
color: '#00f2ff',
}
case 'groupRent':
return {
text: '违规租赁',
color: '#F7933E',
}
case 'highFall':
return {
text: '高抛隐患',
color: '#5BD5FF',
}
default:
return '无'
}
}
return { return {
empty, empty,
handleClick, handleClick,
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue' import { computed, defineComponent, PropType } from 'vue'
import SubTitle from '../components/sub-title.vue' import SubTitle from '../components/sub-title.vue'
import { transType } from '@/tools/index'
export default defineComponent({ export default defineComponent({
name: 'DisposeDrawer', name: 'DisposeDrawer',
...@@ -134,37 +135,6 @@ export default defineComponent({ ...@@ -134,37 +135,6 @@ export default defineComponent({
} }
return result return result
}) })
const transType = (type: string) => {
switch (type) {
case 'fire':
return {
text: '消防通道占用',
color: '#2F86EE',
}
case 'batteryCar':
return {
text: '电瓶车入梯',
color: '#ffd400',
}
case 'overflowingGarbage':
return {
text: '垃圾满溢',
color: '#00f2ff',
}
case 'groupRent':
return {
text: '违规租赁',
color: '#F7933E',
}
case 'highFall':
return {
text: '高抛隐患',
color: '#5BD5FF',
}
default:
return '无'
}
}
return { return {
communityData, communityData,
details, details,
......
...@@ -31,7 +31,13 @@ ...@@ -31,7 +31,13 @@
<div class="wrapper"> <div class="wrapper">
<m-sub2>快处闭环</m-sub2> <m-sub2>快处闭环</m-sub2>
<div class="events"> <div class="events">
<m-scroll :length="events.length" :limit="5" mode="2" :step="0.8"> <m-scroll
v-if="events.length > 0"
:length="events.length"
:limit="5"
mode="2"
:step="0.8"
>
<div <div
v-for="(item, i) in events" v-for="(item, i) in events"
:key="i" :key="i"
...@@ -91,6 +97,7 @@ ...@@ -91,6 +97,7 @@
</div> </div>
</div> </div>
</m-scroll> </m-scroll>
<m-empty v-else />
</div> </div>
</div> </div>
</m-card> </m-card>
...@@ -155,7 +162,7 @@ const sub = ref([ ...@@ -155,7 +162,7 @@ const sub = ref([
]) ])
const list = ref([ const list = ref([
{ name: '电瓶车入梯', value: 0, key: '1' }, { name: '电瓶车入梯', value: 0, key: '1' },
{ name: '垃圾暴露', value: 0, key: '// Todo' }, { name: '垃圾暴露', value: 0, key: '5' },
{ name: '占用消防通道', value: 0, key: '0' }, { name: '占用消防通道', value: 0, key: '0' },
{ name: '垃圾满溢', value: 0, key: '2' }, { name: '垃圾满溢', value: 0, key: '2' },
{ name: '高抛隐患', value: 0, key: '4' }, { name: '高抛隐患', value: 0, key: '4' },
...@@ -221,10 +228,11 @@ onMounted(() => { ...@@ -221,10 +228,11 @@ onMounted(() => {
overflowingGarbage = 0, //垃圾满溢 overflowingGarbage = 0, //垃圾满溢
groupRent = 0, //群租 groupRent = 0, //群租
highFall = 0, //高抛 highFall = 0, //高抛
ferrousGarbage = 0, // 垃圾暴露
} = res?.data?.content || {} } = res?.data?.content || {}
list.value = [ list.value = [
{ name: '电瓶车入梯', value: batteryCar, key: '1' }, { name: '电瓶车入梯', value: batteryCar, key: '1' },
{ name: '垃圾暴露', value: 0, key: '// Todo' }, { name: '垃圾暴露', value: ferrousGarbage, key: '5' },
{ name: '占用消防通道', value: fire, key: '0' }, { name: '占用消防通道', value: fire, key: '0' },
{ {
name: '垃圾满溢', name: '垃圾满溢',
...@@ -236,16 +244,7 @@ onMounted(() => { ...@@ -236,16 +244,7 @@ onMounted(() => {
] ]
}) })
}) })
const events = ref<any>([ const events = ref<any[]>([])
{
name: '占用消防通道',
time: '2020-03-13 13:23:08',
department: '小区物业',
discover: c1,
process: c2,
cur: 2,
},
])
ajax ajax
.get({ .get({
url: api.GET_DISCOVER_LIST, url: api.GET_DISCOVER_LIST,
...@@ -270,6 +269,8 @@ const transName = (type: string) => { ...@@ -270,6 +269,8 @@ const transName = (type: string) => {
return '违规租赁' return '违规租赁'
case 'highFall': case 'highFall':
return '高抛隐患' return '高抛隐患'
case 'ferrousGarbage':
return '垃圾暴露'
default: default:
return '无' return '无'
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<m-sub2>综合管理</m-sub2> <m-sub2>综合管理</m-sub2>
<div class="details"> <div class="details">
<m-scroll <m-scroll
v-if="caseList.length > 0" v-if="show && caseList.length > 0"
:limit="3" :limit="3"
:length="caseList.length" :length="caseList.length"
:step="0.88" :step="0.88"
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<p>{{ item.address }}</p> <p>{{ item.address }}</p>
<p>{{ item.acceptTime }}</p> <p>{{ item.acceptTime }}</p>
</div> </div>
<m-step :steps="steps" :current="steps.indexOf(item.phase)" /> <m-step :steps="steps" :current="steps.indexOf(item.status)" />
</div> </div>
</m-scroll> </m-scroll>
<m-empty v-else /> <m-empty v-else />
...@@ -41,6 +41,14 @@ export default defineComponent({ ...@@ -41,6 +41,14 @@ export default defineComponent({
name: 'Duty', name: 'Duty',
components: { Brief }, components: { Brief },
setup() { setup() {
const curViewType = computed(() => store.state.curView.type)
const show = computed(() => {
return (
curViewType.value === 'work1' ||
curViewType.value === 'work2' ||
curViewType.value === 'work3'
)
})
const summary = computed(() => { const summary = computed(() => {
const { const {
comprehensiveNum = 0, comprehensiveNum = 0,
...@@ -65,7 +73,7 @@ export default defineComponent({ ...@@ -65,7 +73,7 @@ export default defineComponent({
}, },
] ]
}) })
const steps = ref(['发现', '立案', '派遣', '处置', '核查', '结案']) const steps = ref(['已发现', '已受理', '已派单', '已签收', '已结案'])
const caseList = computed(() => store.state.dutyList) const caseList = computed(() => store.state.dutyList)
watch( watch(
() => store.state.curView.id, () => store.state.curView.id,
...@@ -82,6 +90,7 @@ export default defineComponent({ ...@@ -82,6 +90,7 @@ export default defineComponent({
summary, summary,
caseList, caseList,
steps, steps,
show,
} }
}, },
}) })
......
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