update
parent
4d66be55fd
commit
a1c8349368
|
|
@ -52,7 +52,7 @@ const props = defineProps({
|
||||||
:deep(img) {
|
:deep(img) {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
// max-width: 500px;
|
// max-width: 500px;
|
||||||
height: 500px;
|
// height: 500px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import sTree from './sTree.vue'
|
// import sTree from './sTree.vue'
|
||||||
const emit = defineEmits(['clickFile', 'clickMore', 'changeIsShow'])
|
const emit = defineEmits(['clickFile', 'clickMore', 'changeIsShow'])
|
||||||
type Props = {
|
type Props = {
|
||||||
data?: []
|
data?: []
|
||||||
|
|
|
||||||
|
|
@ -405,7 +405,7 @@ const handleVisitsScoll = () => {
|
||||||
>
|
>
|
||||||
<div class="truncate2" @click="toDetail(i)">
|
<div class="truncate2" @click="toDetail(i)">
|
||||||
<span
|
<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
|
>{{ ++key }}</span
|
||||||
>
|
>
|
||||||
<span class="text-18px">{{ i.title }}</span>
|
<span class="text-18px">{{ i.title }}</span>
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,8 @@ function getLastSubstring(str: string): string {
|
||||||
</thead>
|
</thead>
|
||||||
<tbody >
|
<tbody >
|
||||||
<tr v-if="tableData" v-for="(it, index) in tableData" :key="index">
|
<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="download text-#000 text-18px" @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="text-#000 text-18px" >{{ it.createTime}}</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ import { RouterView } from 'vue-router'
|
||||||
import { useUserStore } from '@/stores/modules/user'
|
import { useUserStore } from '@/stores/modules/user'
|
||||||
import { treeDbList,download } from '@/api/daikin/base'
|
import { treeDbList,download } from '@/api/daikin/base'
|
||||||
import {databaseld} from "@/stores/modules/database"
|
import {databaseld} from "@/stores/modules/database"
|
||||||
|
import { NPopover } from 'naive-ui'
|
||||||
|
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
const store = useUserStore()
|
const store = useUserStore()
|
||||||
const database = databaseld()
|
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 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"
|
<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" >
|
@click.stop="goChild(item)" @click="activeItem = item.id" >
|
||||||
|
<!-- <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>
|
<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 v-if="item.childList && idx == index" class="pl10px">
|
||||||
<div class="my30px pl10px text-#000 " v-for="(ite, ind) in item.childList" :key="item.id"
|
<div class="my30px pl10px text-#000 " v-for="(ite, ind) in item.childList" :key="item.id"
|
||||||
@click.stop="goChild(ite)" @click="activeItem = ite.id">
|
@click.stop="goChild(ite)" @click="activeItem = ite.id">
|
||||||
|
<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>
|
<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 v-if="ite.childList && idx == index" class="pl10px">
|
||||||
<div class="my30px pl10px text-#000 " v-for="(it, ind) in ite.childList" :key="item.id"
|
<div class="my30px pl10px text-#000 " v-for="(it, ind) in ite.childList" :key="item.id"
|
||||||
@click.stop="goChild(it)" @click="activeItem = it.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>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,10 @@
|
||||||
<!-- <el-button type="primary" class="button" @click="getUser(scope.row)">查看范围</el-button> -->
|
<!-- <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 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">
|
<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>
|
</el-tooltip>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
@ -345,7 +346,7 @@ async function addClickB(row: any) {
|
||||||
}
|
}
|
||||||
let list: any[] =[]
|
let list: any[] =[]
|
||||||
if(row.userList&&row.userList.length>0){
|
if(row.userList&&row.userList.length>0){
|
||||||
console.log(row.userList&&row.userList.length>0)
|
console.log(row)
|
||||||
row.userList.forEach((index) => {
|
row.userList.forEach((index) => {
|
||||||
list.push(index.userId)
|
list.push(index.userId)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue