|
|
@@ -11,13 +11,15 @@
|
|
|
<a-skeleton avatar :title="false" :loading="!!item.loading" active>
|
|
|
<div style="width: 100%">
|
|
|
<a-list-item-meta>
|
|
|
- <template #title>{{ item.info }}</template>
|
|
|
+ <template #title>
|
|
|
+ <div class="askName">{{ item.userIdName }}</div>
|
|
|
+ </template>
|
|
|
<template #avatar v-if="item.avatar">
|
|
|
<a-avatar :src="item.avatar" />
|
|
|
</template>
|
|
|
</a-list-item-meta>
|
|
|
- {{ item.remark }}
|
|
|
- <div class="flc">
|
|
|
+ {{ item.info }}
|
|
|
+ <div class="flc mt-2" v-if="item.userId == userInfo.id">
|
|
|
<div @click="editNote(item)">
|
|
|
<a-tooltip title="编辑" :getPopupContainer="(trigger) => trigger.parentElement">
|
|
|
<edit-outlined />
|
|
|
@@ -34,6 +36,15 @@
|
|
|
</a-tooltip>
|
|
|
</div> -->
|
|
|
</div>
|
|
|
+ <div v-for="(item, idx) in item.recordChildList" :key="item.id" v-if="item.recordChildList" class="askitemBox">
|
|
|
+ <div class="flc">
|
|
|
+ <div class="askName">{{ item.userIdName }}</div>
|
|
|
+ <div v-if="item.avatar">
|
|
|
+ <a-avatar :src="item.avatar" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>{{ item.info }}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</a-skeleton>
|
|
|
</a-list-item>
|
|
|
@@ -46,6 +57,9 @@
|
|
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue'
|
|
|
import { createVNode } from 'vue'
|
|
|
import { Modal } from 'ant-design-vue'
|
|
|
+ import askDiv from './ask.vue'
|
|
|
+ import tool from '@/utils/tool'
|
|
|
+ const userInfo = tool.data.get('USER_INFO')
|
|
|
const props = defineProps({
|
|
|
idsObj: {
|
|
|
type: [Array, Object],
|
|
|
@@ -65,7 +79,7 @@
|
|
|
getList()
|
|
|
})
|
|
|
const pagination = ref({
|
|
|
- current:1,
|
|
|
+ current: 1,
|
|
|
onChange: (page) => {
|
|
|
pagination.value.current = page
|
|
|
getList()
|
|
|
@@ -76,7 +90,7 @@
|
|
|
classCentre
|
|
|
.askList(
|
|
|
{
|
|
|
- current:pagination.value.current,
|
|
|
+ current: pagination.value.current,
|
|
|
size: pagination.value.pageSize,
|
|
|
...props.idsObj
|
|
|
},
|
|
|
@@ -134,4 +148,15 @@
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+ .askitemBox {
|
|
|
+ border-top: 1px solid #f0f0f0;
|
|
|
+ padding-top:10px;
|
|
|
+ margin-top:10px;
|
|
|
+ margin-left:15px;
|
|
|
+ }
|
|
|
+ .askName {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 500;
|
|
|
+ color: rgba(0, 0, 0, 0.425);
|
|
|
+ }
|
|
|
</style>
|