Browse Source

指挥调度 调度联络完成

wangqin
Joe 11 months ago
parent
commit
29651e704d
  1. 87
      ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue
  2. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/camera.svg
  3. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/phone.svg
  4. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/rescueVehicles.svg
  5. 76
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue
  6. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue
  7. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue

87
ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue

@ -0,0 +1,87 @@
<template>
<div class='Descriptions' :style="getStyle()">
<div class="item" v-for="(item, index) in list" :key="`${item.key || item.label}${index}`"
:style="gridStyle(item, index)">
<div class="title text">
<slot :name="`title-${item.key || item.label}`" :data="item">
{{ item.label || '-' }}:
</slot>
</div>
<div class="content text">
<slot :name="`content-${item.key || item.label}`" :data="item">
{{ item.text || '-' }}
</slot>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Descriptions',
props: {
/**
* {
* key: string;
* label: string;
* text: string;
* gridRow: number;
* gridColumn: number;
* }[]
*/
list: {
type: Array,
default: () => []
},
column: {
type: String,
default: "2"
}
},
computed: {
gridStyle() {
return (item, index) => ({
gridRow: `span ${item.gridRow || 1}`,
gridColumn: `span ${item.gridColumn || 1}`,
})
}
},
methods: {
getStyle() {
return {
gridTemplateColumns: `repeat(${this.column}, 1fr)`,
}
},
getComponent(type) {
return `Form${type.replace(/^[a-z]/, word => word.toUpperCase())}`
}
}
}
</script>
<style lang='scss' scoped>
.Descriptions {
display: grid;
gap: 9px;
.text {
font-size: 15px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #FFF;
line-height: 18px;
display: flex;
align-items: center;
gap: 3px;
}
.title {
color: #3DE8FF;
}
.item {
display: flex;
gap: 6px;
}
}
</style>

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/camera.svg

@ -0,0 +1,12 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1142815146">
<circle id="Ellipse 41" cx="9" cy="9" r="9" fill="url(#paint0_linear_442_6135)"/>
<path id="Vector" d="M7.332 11.5929H6.144V9.93805L5 9.69469V15L6.144 14.5619V12.7124H7.992L9.004 11.2035L7.684 10.4248L7.332 11.5929ZM13.316 11.9336L16 10.0354L7.64 4H6.672L5.352 6.28761V7.06637L12.7 11.9823H13.316V11.9336ZM12.304 12.323L5.968 7.79646L5.308 8.57522L12.656 13.4912H13.316L13.668 13.1018L14.02 11.9823C14.02 11.9823 13.052 12.7611 13.008 12.7611C12.612 12.469 12.304 12.323 12.304 12.323Z" fill="white"/>
</g>
<defs>
<linearGradient id="paint0_linear_442_6135" x1="8.67672" y1="3.43511" x2="8.67672" y2="17.5878" gradientUnits="userSpaceOnUse">
<stop stop-color="#39D5BF"/>
<stop offset="1" stop-color="#1FAED6"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 866 B

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/phone.svg

@ -0,0 +1,12 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1142815144">
<circle id="Ellipse 41" cx="9" cy="9" r="9" fill="url(#paint0_linear_442_6131)"/>
<path id="Vector" d="M13.2129 12.054C13.3301 12.1716 13.396 12.3309 13.396 12.497C13.396 12.6631 13.3301 12.8224 13.2129 12.9401L12.7695 13.3834C12.4423 13.7106 12.0115 13.9098 11.4894 13.9759C11.3601 13.9921 11.2299 14.0001 11.0996 14C10.6846 13.9946 10.2726 13.93 9.87599 13.8081C8.69812 13.4646 7.45951 12.6826 6.38933 11.6106C5.31915 10.5386 4.53531 9.30183 4.19182 8.12398C4.01917 7.53746 3.96262 6.99425 4.02398 6.5106C4.09015 5.98845 4.28927 5.55834 4.61652 5.23049L5.05987 4.78774C5.17749 4.67045 5.33682 4.60458 5.50292 4.60458C5.66903 4.60458 5.82836 4.67045 5.94597 4.78774L7.89564 6.73739C8.01293 6.855 8.0788 7.01433 8.0788 7.18044C8.0788 7.34654 8.01293 7.50587 7.89564 7.62348L7.45229 8.06623C7.20204 8.31648 7.45229 9.12858 8.16153 9.83842C8.87077 10.5483 9.68288 10.8009 9.93373 10.5477L10.3771 10.1043C10.4947 9.98702 10.654 9.92115 10.8201 9.92115C10.9862 9.92115 11.1456 9.98702 11.2632 10.1043L13.2129 12.054ZM9.98968 7.50919C10.1225 7.50935 10.2499 7.56219 10.3438 7.65613C10.4378 7.75007 10.4906 7.87744 10.4908 8.01029C10.4891 8.04422 10.4944 8.07814 10.5062 8.10999C10.518 8.14183 10.5362 8.17094 10.5597 8.19555C10.5831 8.22015 10.6113 8.23974 10.6425 8.25313C10.6737 8.26651 10.7074 8.27342 10.7413 8.27342C10.7753 8.27342 10.8089 8.26651 10.8402 8.25313C10.8714 8.23974 10.8996 8.22015 10.923 8.19555C10.9464 8.17094 10.9646 8.14183 10.9765 8.10999C10.9883 8.07814 10.9935 8.04422 10.9919 8.01029C10.9917 7.74454 10.8861 7.48972 10.6982 7.3018C10.5103 7.11389 10.2554 7.00825 9.98968 7.00809C9.95574 7.00643 9.92182 7.01168 9.88998 7.02352C9.85813 7.03536 9.82902 7.05354 9.80442 7.07697C9.77981 7.1004 9.76022 7.12859 9.74684 7.15981C9.73345 7.19104 9.72655 7.22466 9.72655 7.25864C9.72655 7.29262 9.73345 7.32624 9.74684 7.35747C9.76022 7.38869 9.77981 7.41688 9.80442 7.44031C9.82902 7.46374 9.85813 7.48192 9.88998 7.49376C9.92182 7.5056 9.95574 7.51085 9.98968 7.50919ZM13.6845 6.44924C13.3779 5.7228 12.8638 5.10296 12.2066 4.66734C11.5493 4.23172 10.7782 3.99969 9.98968 4.0003C9.95574 3.99864 9.92182 4.00389 9.88998 4.01573C9.85813 4.02757 9.82902 4.04575 9.80442 4.06918C9.77981 4.09261 9.76022 4.1208 9.74684 4.15202C9.73345 4.18325 9.72655 4.21687 9.72655 4.25085C9.72655 4.28483 9.73345 4.31845 9.74684 4.34968C9.76022 4.3809 9.77981 4.40909 9.80442 4.43252C9.82902 4.45595 9.85813 4.47413 9.88998 4.48597C9.92182 4.49781 9.95574 4.50306 9.98968 4.5014C10.92 4.50251 11.8118 4.87256 12.4696 5.53036C13.1274 6.18816 13.4975 7.08001 13.4986 8.01029C13.4969 8.04422 13.5022 8.07814 13.514 8.10999C13.5259 8.14183 13.544 8.17094 13.5675 8.19555C13.5909 8.22015 13.6191 8.23974 13.6503 8.25313C13.6815 8.26651 13.7152 8.27342 13.7491 8.27342C13.7831 8.27342 13.8167 8.26651 13.848 8.25313C13.8792 8.23974 13.9074 8.22015 13.9308 8.19555C13.9542 8.17094 13.9724 8.14183 13.9843 8.10999C13.9961 8.07814 14.0014 8.04422 13.9997 8.01029C14.0009 7.47401 13.8937 6.94302 13.6845 6.44924ZM9.98968 6.00529C10.5212 6.00593 11.0309 6.21737 11.4067 6.59325C11.7826 6.96912 11.9941 7.47872 11.9947 8.01029C11.993 8.04422 11.9983 8.07814 12.0101 8.10999C12.022 8.14183 12.0401 8.17094 12.0636 8.19555C12.087 8.22015 12.1152 8.23974 12.1464 8.25313C12.1776 8.26651 12.2113 8.27342 12.2452 8.27342C12.2792 8.27342 12.3128 8.26651 12.3441 8.25313C12.3753 8.23974 12.4035 8.22015 12.4269 8.19555C12.4503 8.17094 12.4685 8.14183 12.4804 8.10999C12.4922 8.07814 12.4975 8.04422 12.4958 8.01029C12.4958 7.34563 12.2318 6.7082 11.7618 6.23821C11.2918 5.76823 10.6543 5.5042 9.98968 5.5042C9.95574 5.50253 9.92182 5.50778 9.88998 5.51962C9.85813 5.53146 9.82902 5.54965 9.80442 5.57308C9.77981 5.59651 9.76022 5.62469 9.74684 5.65592C9.73345 5.68715 9.72655 5.72077 9.72655 5.75474C9.72655 5.78872 9.73345 5.82234 9.74684 5.85357C9.76022 5.8848 9.77981 5.91298 9.80442 5.93641C9.82902 5.95984 9.85813 5.97803 9.88998 5.98987C9.92182 6.00171 9.95574 6.00696 9.98968 6.00529Z" fill="white"/>
</g>
<defs>
<linearGradient id="paint0_linear_442_6131" x1="8.67672" y1="3.43511" x2="8.67672" y2="17.5878" gradientUnits="userSpaceOnUse">
<stop stop-color="#39D5BF"/>
<stop offset="1" stop-color="#1FAED6"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

3
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/images/rescueVehicles.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.7 KiB

76
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue

@ -1,20 +1,90 @@
<template>
<Card class='DispatchLiaison' title="调度联络">
DispatchLiaison
<template #title-suffix>
<ButtonGradient class="title-button">
调度
</ButtonGradient>
</template>
<Descriptions :list="list" style="gap: 24px; flex: 1;">
<template #content-phone1="{ data: { text } }">
{{ text }}
<img src="./images/phone.svg" />
</template>
<template #content-phone2="{ data: { text } }">
{{ text }}
<img src="./images/phone.svg" />
<img src="./images/camera.svg" />
</template>
<template #content-rescueVehicles="{ data: { text } }">
{{ text }}
<img src="./images/rescueVehicles.svg" />
</template>
</Descriptions>
</Card>
</template>
<script>
import Card from "./../../components/Card.vue"
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue';
import Descriptions from '@screen/components/Descriptions.vue';
export default {
name: 'DispatchLiaison',
components: {
Card
Card,
ButtonGradient,
Descriptions
},
data() {
return {
list: [
{
label: '业务单位',
text: '山东正晨科技股份有限公司',
gridColumn: 2
},
{
label: '值班领导',
text: '张亮亮',
},
{
label: '手机',
key: "phone1",
text: '18888888888',
},
{
label: '调度人员',
text: '',
gridColumn: 2
},
{
label: '路管人员',
text: '王一博',
},
{
label: '手机',
key: "phone2",
text: '16666666666',
},
{
label: '救援车辆',
key: "rescueVehicles",
text: '鲁A34567 (大型清障车)',
gridColumn: 2
},
]
}
}
}
</script>
<style lang='scss' scoped>
.DispatchLiaison {}
.DispatchLiaison {
::v-deep {
.content {
display: flex;
align-items: center;
}
}
}
</style>

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue

@ -1,16 +1,26 @@
<template>
<Card class='EventInformation' title="事件信息">
<template #title-suffix>
<ButtonGradient class="title-button">
搜索
</ButtonGradient>
<ButtonGradient class="title-button">
编写
</ButtonGradient>
</template>
EventInformation
</Card>
</template>
<script>
import Card from "./../../components/Card.vue"
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue';
export default {
name: 'EventInformation',
components: {
Card
Card,
ButtonGradient
}
}
</script>

9
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue

@ -42,8 +42,15 @@ export default {
.CommandDispatch {
padding: 24px 12px 21px 12px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: repeat(24, 1fr);
gap: 18px;
::v-deep {
.title-button {
border-radius: 65px;
font-size: 12px;
}
}
}
</style>

Loading…
Cancel
Save