|
@@ -1,39 +1,47 @@
|
|
|
<template>
|
|
|
- <div class="message-list">
|
|
|
+ <div class="message-list waits-list">
|
|
|
<div
|
|
|
- class="message-item cursor-pointer"
|
|
|
v-for="item in tableData"
|
|
|
:key="item.id"
|
|
|
+ class="message-item cursor-pointer"
|
|
|
>
|
|
|
<div class="m-head">
|
|
|
- <span class="m-title">{{ item.taskName }}</span>
|
|
|
- <t-tag theme="success" variant="light" v-if="item.diffTime == 0"
|
|
|
- >正常</t-tag
|
|
|
- >
|
|
|
- <template v-else>
|
|
|
- <t-tag theme="danger" variant="light">已超时</t-tag>
|
|
|
- <t-tag class="m-l-5px" theme="danger" variant="light"
|
|
|
- >超时时长:{{ item.diffTime <= 30 ? '30天' : '大于30天' }}</t-tag
|
|
|
+ <div class="m-title">
|
|
|
+ <span>{{ item.taskName }}</span>
|
|
|
+ <t-tag v-if="item.diffTime == 0" theme="success" variant="light"
|
|
|
+ >正常</t-tag
|
|
|
>
|
|
|
- </template>
|
|
|
+ <template v-else>
|
|
|
+ <t-tag theme="danger" variant="light">已超时</t-tag>
|
|
|
+ <t-tag theme="danger" variant="light"
|
|
|
+ >超时时长:{{ item.diffTime <= 30 ? '30天' : '大于30天' }}</t-tag
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="m-time">{{ timestampFilter(item.flowTime, 'mm') }}</div>
|
|
|
</div>
|
|
|
<div class="m-body">
|
|
|
<div class="m-content">{{ item.typeStr }}</div>
|
|
|
- <div class="m-info flex items-center">
|
|
|
+ <t-space class="m-info" :size="5">
|
|
|
<p>发起人:{{ item.createRealName }}</p>
|
|
|
<p>服务单元: {{ item.serviceName }} </p>
|
|
|
- <p>客户类型:{{ CUSTOMER_TYPE[item.customType] }}</p>
|
|
|
+ <p>客户类型:{{ customerTypeFilter(item.customType) }}</p>
|
|
|
<p>客户名称:{{ item.customName }}</p>
|
|
|
- </div>
|
|
|
+ <template #separator>
|
|
|
+ <t-divider layout="vertical" />
|
|
|
+ </template>
|
|
|
+ </t-space>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<t-pagination
|
|
|
v-if="pagination.total > 0"
|
|
|
- class="m-t-20px"
|
|
|
+ class="page-pagination"
|
|
|
v-model="pagination.pageNumber"
|
|
|
v-model:pageSize="pagination.pageSize"
|
|
|
:total="pagination.total"
|
|
|
+ showJumper
|
|
|
+ :showPageSize="false"
|
|
|
@change="onChange"
|
|
|
/>
|
|
|
<div class="none-box" v-if="!tableData.length">
|
|
@@ -44,71 +52,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="MyTaskList">
|
|
|
-import { CUSTOMER_TYPE } from '@/config/constants';
|
|
|
-const { tableData, loading, pagination, onChange } = defineProps([
|
|
|
+import { timestampFilter, customerTypeFilter } from '@/utils/filter';
|
|
|
+
|
|
|
+const { tableData, pagination, onChange } = defineProps([
|
|
|
'tableData',
|
|
|
- 'loading',
|
|
|
'pagination',
|
|
|
'onChange',
|
|
|
]);
|
|
|
</script>
|
|
|
-
|
|
|
-<style lang="less" scoped>
|
|
|
-.message-list {
|
|
|
- .none-box {
|
|
|
- text-align: center;
|
|
|
- margin-top: 100px;
|
|
|
- img {
|
|
|
- height: 120px;
|
|
|
- }
|
|
|
- p {
|
|
|
- color: @light-text-color;
|
|
|
- font-size: 14px;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- .message-item {
|
|
|
- border: 1px solid #e5e5e5;
|
|
|
- border-radius: 4px;
|
|
|
- background-color: #fff;
|
|
|
- padding: 0 15px;
|
|
|
- margin-bottom: 10px;
|
|
|
- transition: all 0.3s;
|
|
|
- &:hover {
|
|
|
- background-color: #f3f3f3;
|
|
|
- }
|
|
|
- .m-head {
|
|
|
- height: 55px;
|
|
|
- border-bottom: 1px solid #e5e5e5;
|
|
|
- .m-title {
|
|
|
- font-size: 16px;
|
|
|
- color: #262626;
|
|
|
- font-weight: bold;
|
|
|
- line-height: 54px;
|
|
|
- margin-right: 12px;
|
|
|
- }
|
|
|
- }
|
|
|
- .m-body {
|
|
|
- padding: 15px 0;
|
|
|
- .m-content {
|
|
|
- color: #595959;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .m-info {
|
|
|
- margin-top: 20px;
|
|
|
- p {
|
|
|
- padding-right: 20px;
|
|
|
- border-right: 1px solid #e5e5e5;
|
|
|
- color: @light-text-color;
|
|
|
- line-height: 1;
|
|
|
- margin-right: 20px;
|
|
|
- &:last-child {
|
|
|
- border-right: none;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-</style>
|