update
parent
4d66be55fd
commit
a1c8349368
|
|
@ -52,7 +52,7 @@ const props = defineProps({
|
|||
:deep(img) {
|
||||
// width: 100%;
|
||||
// max-width: 500px;
|
||||
height: 500px;
|
||||
// height: 500px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import sTree from './sTree.vue'
|
||||
// import sTree from './sTree.vue'
|
||||
const emit = defineEmits(['clickFile', 'clickMore', 'changeIsShow'])
|
||||
type Props = {
|
||||
data?: []
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@ const handleVisitsScoll = () => {
|
|||
>
|
||||
<div class="truncate2" @click="toDetail(i)">
|
||||
<span
|
||||
class="text-#fff bg-#407DF1 px5px text-16px rounded-20px mr-5px inlineFlex"
|
||||
class="text-#fff bg-#407DF1 px5px text-18px rounded-20px mr-5px inlineFlex"
|
||||
>{{ ++key }}</span
|
||||
>
|
||||
<span class="text-18px">{{ i.title }}</span>
|
||||
|
|
|
|||
|
|
@ -150,8 +150,8 @@ function getLastSubstring(str: string): string {
|
|||
</thead>
|
||||
<tbody >
|
||||
<tr v-if="tableData" v-for="(it, index) in tableData" :key="index">
|
||||
<td class="h50px"><span class="download text-#000 text-16px" @click="toDetail(it)">{{ it.title}}</span></td>
|
||||
<td class="h50px"><span class="text-#000 text-16px" >{{ it.createTime}}</span></td>
|
||||
<td class="h50px"><span class="download text-#000 text-18px" @click="toDetail(it)">{{ it.title}}</span></td>
|
||||
<td class="h50px"><span class="text-#000 text-18px" >{{ it.createTime}}</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ import { RouterView } from 'vue-router'
|
|||
import { useUserStore } from '@/stores/modules/user'
|
||||
import { treeDbList,download } from '@/api/daikin/base'
|
||||
import {databaseld} from "@/stores/modules/database"
|
||||
import { NPopover } from 'naive-ui'
|
||||
|
||||
const { push } = useRouter()
|
||||
const store = useUserStore()
|
||||
const database = databaseld()
|
||||
|
|
@ -83,18 +85,41 @@ const onClic = ref(false)
|
|||
<div v-if="m.childList && idx == index" class="pl40px" v-show="idx === index&&onClic?true:false">
|
||||
<div class="my30px pl10px text-#000 activeChildren" v-for="(item, ind) in m.childList" :key="item.id"
|
||||
@click.stop="goChild(item)" @click="activeItem = item.id" >
|
||||
<span class="text-18px flex child font-900 truncate" :class="activeItem === item.id ? 'text-#002fa7' : ''">{{ item.name }}</span>
|
||||
<!-- <el-tooltip :content="item.name" placement="top-start" effect="light"> -->
|
||||
<n-popover trigger="hover" placement="top-start">
|
||||
<template #trigger>
|
||||
<span class="text-18px flex child font-900 truncate" :class="activeItem === item.id ? 'text-#002fa7' : ''">{{ item.name }}</span>
|
||||
</template>
|
||||
<div class="text-18px leading-40px">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</n-popover>
|
||||
<!-- </el-tooltip> -->
|
||||
|
||||
|
||||
<div v-if="item.childList && idx == index" class="pl10px">
|
||||
<div class="my30px pl10px text-#000 " v-for="(ite, ind) in item.childList" :key="item.id"
|
||||
@click.stop="goChild(ite)" @click="activeItem = ite.id">
|
||||
<span class="text-18px flex childs font-900 truncate" :class="activeItem === ite.id ? 'text-#002fa7' : ''">{{ ite.name }}</span>
|
||||
<n-popover trigger="hover" placement="top-start">
|
||||
<template #trigger>
|
||||
<span class="text-18px flex childs font-900 truncate" :class="activeItem === ite.id ? 'text-#002fa7' : ''">{{ ite.name }}</span>
|
||||
</template>
|
||||
<div class="text-18px leading-40px">
|
||||
{{ ite.name }}
|
||||
</div>
|
||||
</n-popover>
|
||||
|
||||
<div v-if="ite.childList && idx == index" class="pl10px">
|
||||
<div class="my30px pl10px text-#000 " v-for="(it, ind) in ite.childList" :key="item.id"
|
||||
@click.stop="goChild(it)" @click="activeItem = it.id">
|
||||
<n-popover trigger="hover" placement="top-start">
|
||||
<template #trigger>
|
||||
<span class="text-18px flex childs font-900 truncate" :class="activeItem === it.id ? 'text-#002fa7' : ''">{{ it.name }}</span>
|
||||
</template>
|
||||
<div class="text-18px leading-40px">
|
||||
{{ it.name }}
|
||||
</div>
|
||||
</n-popover>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,9 +54,10 @@
|
|||
<!-- <el-button type="primary" class="button" @click="getUser(scope.row)">查看范围</el-button> -->
|
||||
|
||||
<!-- <span class="descStyle" v-if="scope.row.userList" v-for="it in scope.row.userList"> {{it.nickName}}</span> -->
|
||||
<span v-if="scope.row.userList" v-for="it in scope.row.userList">
|
||||
<!-- <span>{{ scope.row.userList }}</span> -->
|
||||
<span v-if="scope.row.userList" v-for="(it,e) in scope.row.userList">
|
||||
<el-tooltip :content="it.nickName" placement="top">
|
||||
<p class="descStyle">{{ it.nickName }}</p>
|
||||
<p class="descStyle">{{ it.nickName }} <span v-if="e=== 1 && scope.row.userList.length > 2" >...共{{ scope.row.userList.length }}人</span> </p>
|
||||
</el-tooltip>
|
||||
</span>
|
||||
|
||||
|
|
@ -345,7 +346,7 @@ async function addClickB(row: any) {
|
|||
}
|
||||
let list: any[] =[]
|
||||
if(row.userList&&row.userList.length>0){
|
||||
console.log(row.userList&&row.userList.length>0)
|
||||
console.log(row)
|
||||
row.userList.forEach((index) => {
|
||||
list.push(index.userId)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue