|
|
|
|
@ -153,7 +153,6 @@
|
|
|
|
|
<div class="type-change">
|
|
|
|
|
<div class="type-change-item" @click="type = 'img'">
|
|
|
|
|
<i class="el-icon-picture type-change-item__icon"></i>
|
|
|
|
|
<div class="type-change-item__num">{{ imgs.length }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="type-change-item" @click="type = 'video'">
|
|
|
|
|
<i class="el-icon-video-camera-solid type-change-item__icon"></i>
|
|
|
|
|
@ -175,7 +174,8 @@
|
|
|
|
|
class="today-item"
|
|
|
|
|
v-for="(item, index) in toDayNums"
|
|
|
|
|
:style="{ 'grid-area': `d${index}` }"
|
|
|
|
|
@click="activeToday = item"
|
|
|
|
|
:class="{ 'today-item-active': activeToday.name === item.name }"
|
|
|
|
|
@click.stop.prevent="todayClick($event,item,index)"
|
|
|
|
|
>
|
|
|
|
|
<div class="today-item__value">{{ item.val }}</div>
|
|
|
|
|
<div class="today-item__name">{{ item.name }}</div>
|
|
|
|
|
@ -183,6 +183,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<dv-scroll-board
|
|
|
|
|
@click="scrollBoardClick"
|
|
|
|
|
ref="scrollBoard"
|
|
|
|
|
:key="scrollBoardKey"
|
|
|
|
|
:config="listConfig"
|
|
|
|
|
@ -191,14 +192,23 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<dataPreview ref="dataPreview" v-model="isShowPreview" :data="selectData" :label="activeToday.name"></dataPreview>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { scheduleList } from "@/api/schedule"
|
|
|
|
|
import { getList as longInsuranceIndex } from "@/api/longInsurance"
|
|
|
|
|
import { getList as scheduleListChecksIndex } from "@/api/scheduleListChecks"
|
|
|
|
|
import { getList } from "@/api/bigScreen";
|
|
|
|
|
import gsap from "gsap";
|
|
|
|
|
import dataPreview from "@/views/bigSreen/component/dataPreview.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
dataPreview
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
total: {
|
|
|
|
|
@ -207,6 +217,12 @@ export default {
|
|
|
|
|
zongfuwushichang: 0,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
listData: new Map([
|
|
|
|
|
['changhuxian',[]],
|
|
|
|
|
['jujiayuanzhu',[]],
|
|
|
|
|
['canlianjujiatuoyang',[]],
|
|
|
|
|
['huifangjicha',[]]
|
|
|
|
|
]),
|
|
|
|
|
toDayNums: [
|
|
|
|
|
{
|
|
|
|
|
key: "changhuxian",
|
|
|
|
|
@ -246,9 +262,17 @@ export default {
|
|
|
|
|
activeArea: {},
|
|
|
|
|
|
|
|
|
|
activeToday: {},
|
|
|
|
|
activeColor: "#8537d8",
|
|
|
|
|
activeColors: ['#8537d8','#159138', '#4b72dc', '#c92d40'],
|
|
|
|
|
selectData: {},
|
|
|
|
|
isShowPreview: false,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
todayClick(e, item, index) {
|
|
|
|
|
this.activeToday = item
|
|
|
|
|
this.activeColor = this.activeColors[index]
|
|
|
|
|
},
|
|
|
|
|
async getTotal() {
|
|
|
|
|
const res = (
|
|
|
|
|
await getList(
|
|
|
|
|
@ -319,17 +343,52 @@ export default {
|
|
|
|
|
? 0
|
|
|
|
|
: Number(res.find((j) => j.key === i.key)?.value);
|
|
|
|
|
});
|
|
|
|
|
this.scrollBoardKey++;
|
|
|
|
|
// try {
|
|
|
|
|
// this.listConfig.data = JSON.parse(
|
|
|
|
|
// res.find((i) => i.key === "list")?.value ?? "[]"
|
|
|
|
|
// ).map((i) => [
|
|
|
|
|
// i.name,
|
|
|
|
|
// i.people,
|
|
|
|
|
// `<span style="color: #03b1fa;">${i.time}</span>`,
|
|
|
|
|
// ]);
|
|
|
|
|
// this.scrollBoardKey++;
|
|
|
|
|
// } catch (err) {
|
|
|
|
|
// console.error(err);
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
async getListData() {
|
|
|
|
|
try {
|
|
|
|
|
this.listConfig.data = JSON.parse(
|
|
|
|
|
res.find((i) => i.key === "list")?.value ?? "[]"
|
|
|
|
|
).map((i) => [
|
|
|
|
|
i.name,
|
|
|
|
|
i.people,
|
|
|
|
|
`<span style="color: #03b1fa;">${i.time}</span>`,
|
|
|
|
|
]);
|
|
|
|
|
this.scrollBoardKey++;
|
|
|
|
|
const res = await Promise.all([
|
|
|
|
|
longInsuranceIndex({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 20,
|
|
|
|
|
sort_name: 'created_at'
|
|
|
|
|
},false),
|
|
|
|
|
scheduleListChecksIndex({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 20,
|
|
|
|
|
sort_name: 'created_at'
|
|
|
|
|
},false),
|
|
|
|
|
scheduleList({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 20,
|
|
|
|
|
sort_name: 'created_at',
|
|
|
|
|
product_type_id: 19
|
|
|
|
|
}),
|
|
|
|
|
scheduleList({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 20,
|
|
|
|
|
sort_name: 'created_at',
|
|
|
|
|
product_type_id: 20
|
|
|
|
|
})
|
|
|
|
|
])
|
|
|
|
|
this.listData.set("changhuxian",res[0]?.data||[])
|
|
|
|
|
this.listData.set("huifangjicha",res[1]?.data||[])
|
|
|
|
|
this.listData.set("canlianjujiatuoyang",res[2]?.list?.data||[])
|
|
|
|
|
this.listData.set("jujiayuanzhu",res[3]?.list?.data||[])
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error(err);
|
|
|
|
|
console.error(err)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -359,6 +418,14 @@ export default {
|
|
|
|
|
this.playVideo();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
scrollBoardClick({row, ceil, rowIndex , columnIndex}) {
|
|
|
|
|
if(columnIndex === 4) {
|
|
|
|
|
this.selectData = this.listData.get(this.activeToday.key) ? this.listData.get(this.activeToday.key)[rowIndex] : {};
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.isShowPreview = true;
|
|
|
|
|
},300)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
flyingConfig() {
|
|
|
|
|
@ -396,21 +463,36 @@ export default {
|
|
|
|
|
index: true,
|
|
|
|
|
rowNum: 8,
|
|
|
|
|
align: ["center", "left", "center", "center"],
|
|
|
|
|
columnWidth: [52],
|
|
|
|
|
header: ["服务名称", "人员", "时间"],
|
|
|
|
|
data: Array.from({ length: 10 }, () => [
|
|
|
|
|
"稽查回访",
|
|
|
|
|
"人员a",
|
|
|
|
|
'<span style="color: #03b1fa;">13:55</span>',
|
|
|
|
|
]),
|
|
|
|
|
columnWidth: [54],
|
|
|
|
|
waitTime: 2000,
|
|
|
|
|
header: [`<span style="color: ${this.activeColor}">${this.activeToday?.name||"服务名称"}</span>`, "人员", "时间","操作"],
|
|
|
|
|
data:
|
|
|
|
|
this.listData.get(this.activeToday.key) ? this.listData.get(this.activeToday.key).map(i =>
|
|
|
|
|
[
|
|
|
|
|
this.activeToday?.name,
|
|
|
|
|
i.customer?.name||i.customer_id,
|
|
|
|
|
`<span style="color: #03b1fa;">${this.$moment(i.created_at).format('HH:mm')}</span>`,
|
|
|
|
|
'<button style="line-height: 25px; height: 25px;color: #fff;width: 68px;border-radius: 12px;background-color: #0e2e91;">查看</button>']
|
|
|
|
|
) : [],
|
|
|
|
|
// Array.from({ length: 10 }, () => [
|
|
|
|
|
// "稽查回访",
|
|
|
|
|
// "人员a",
|
|
|
|
|
// '<span style="color: #03b1fa;">13:55</span>',
|
|
|
|
|
// '<button style="line-height: 25px; height: 25px;color: #fff;width: 68px;border-radius: 12px;background-color: #0e2e91;">查看</button>'
|
|
|
|
|
// ]),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getTotal();
|
|
|
|
|
this.getData();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getAreas();
|
|
|
|
|
Promise.all([
|
|
|
|
|
this.getData(),
|
|
|
|
|
this.getListData()
|
|
|
|
|
]).then(_ => {
|
|
|
|
|
this.todayClick(false,this.toDayNums[0],0)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.addEventListener("keypress", this.keywordRegister);
|
|
|
|
|
@ -422,6 +504,16 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
$todayBkgColors:
|
|
|
|
|
linear-gradient(0deg, #8537d8 0%, #8537d8 0%, #bb7efc 100%),
|
|
|
|
|
linear-gradient(0deg, #159138 0%, #159138 0%, #51d893 99%, #51d893 100%),
|
|
|
|
|
linear-gradient(0deg, #0d2d8f 0%, #2eafdc 100%),
|
|
|
|
|
linear-gradient(0deg, #c92d40, #ec5b6d);
|
|
|
|
|
$todayColors:
|
|
|
|
|
#8537d8,
|
|
|
|
|
#159138,
|
|
|
|
|
#4b72dc,
|
|
|
|
|
#c92d40;
|
|
|
|
|
.center-top {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
@ -522,14 +614,6 @@ export default {
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
//.video-btn {
|
|
|
|
|
// cursor: pointer;
|
|
|
|
|
// width: 230px;
|
|
|
|
|
// height: 230px;
|
|
|
|
|
// position: absolute;
|
|
|
|
|
// top: calc(50% - 115px);
|
|
|
|
|
// left: calc(50% - 115px);
|
|
|
|
|
//}
|
|
|
|
|
.video-btn {
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
background-color: #e7e6e630;
|
|
|
|
|
@ -616,7 +700,7 @@ export default {
|
|
|
|
|
width: 552px;
|
|
|
|
|
margin-left: 30px;
|
|
|
|
|
|
|
|
|
|
$todayColors: #db4edd, #00cf92, #59d4fc, #fff, #fe7629;
|
|
|
|
|
|
|
|
|
|
.today {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-column-gap: 14px;
|
|
|
|
|
@ -626,11 +710,13 @@ export default {
|
|
|
|
|
"d3 d3 d3 d3 d3 d3";
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
@for $index from 1 through length($todayColors) {
|
|
|
|
|
@for $index from 1 through length($todayBkgColors) {
|
|
|
|
|
&-item:nth-child(#{$index}) {
|
|
|
|
|
.today-item__name {
|
|
|
|
|
color: nth($todayColors, $index);
|
|
|
|
|
}
|
|
|
|
|
background: nth($todayBkgColors, $index);
|
|
|
|
|
}
|
|
|
|
|
&-item-active:nth-child(#{$index}) {
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: nth($todayColors, $index);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&-item {
|
|
|
|
|
@ -641,6 +727,8 @@ export default {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
transition: all .2s;
|
|
|
|
|
|
|
|
|
|
&__value {
|
|
|
|
|
line-height: 1;
|
|
|
|
|
@ -651,8 +739,25 @@ export default {
|
|
|
|
|
&__name {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
::v-deep .header-item:nth-child(1) {
|
|
|
|
|
color: #3a67f7;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .header-item:nth-child(2) span {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .row-item:nth-child(2) .ceil button {
|
|
|
|
|
transition: all .2s;
|
|
|
|
|
background-color: #03b1fa !important;
|
|
|
|
|
color: #000000 !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|