|
|
|
@ -318,16 +318,17 @@ const indeterminate = computed(() => {
|
|
|
|
|
<span :style="{ 'margin-left': '18px' }">字段信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<n-grid cols="4" class="mt-4 proCard" responsive="screen" :x-gap="24">
|
|
|
|
|
<n-grid-item span="3">
|
|
|
|
|
<n-grid cols="24" class="mt-4 proCard" responsive="screen" :x-gap="24">
|
|
|
|
|
<n-grid-item span="17">
|
|
|
|
|
<NCard
|
|
|
|
|
:title="allCount"
|
|
|
|
|
class="dragcardStyle"
|
|
|
|
|
|
|
|
|
|
:segmented="{ content: true, footer: true }"
|
|
|
|
|
size="small"
|
|
|
|
|
:bordered="false"
|
|
|
|
|
>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="left">
|
|
|
|
|
<n-input v-model:value="searchKey" placeholder="搜索关键词">
|
|
|
|
|
<template #suffix>
|
|
|
|
|
<SvgIcon size="14px" name="magnifying-1" />
|
|
|
|
@ -346,7 +347,7 @@ const indeterminate = computed(() => {
|
|
|
|
|
<div
|
|
|
|
|
v-for="item in showOffList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
style="width: 170px"
|
|
|
|
|
style="width: 165px"
|
|
|
|
|
:class="{ 'disable-check': item.fix }"
|
|
|
|
|
class="draggable-li"
|
|
|
|
|
>
|
|
|
|
@ -366,6 +367,7 @@ const indeterminate = computed(() => {
|
|
|
|
|
<NCard
|
|
|
|
|
:title="selectCount"
|
|
|
|
|
class="dragcardStyle"
|
|
|
|
|
style="width: 216px;"
|
|
|
|
|
:segmented="{ content: true, footer: true }"
|
|
|
|
|
size="small"
|
|
|
|
|
:bordered="false"
|
|
|
|
@ -373,12 +375,13 @@ const indeterminate = computed(() => {
|
|
|
|
|
<template #header-extra>
|
|
|
|
|
<span class="textbtnStyle" @click="clearDragSource">恢复默认</span>
|
|
|
|
|
</template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="overstyle">
|
|
|
|
|
<n-input v-model:value="searchFixVal" placeholder="搜索关键词">
|
|
|
|
|
<template #suffix>
|
|
|
|
|
<SvgIcon size="14px" name="magnifying-1" />
|
|
|
|
|
</template>
|
|
|
|
|
</n-input>
|
|
|
|
|
<div class="titletwo">系统默认</div>
|
|
|
|
|
<div class="draggable-ul">
|
|
|
|
|
<div
|
|
|
|
|
v-for="item in showFixList"
|
|
|
|
@ -389,6 +392,7 @@ const indeterminate = computed(() => {
|
|
|
|
|
<span class="ml-2" style="color: #666">{{ item.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="titletwo">自定义配置</div>
|
|
|
|
|
<VueDraggable
|
|
|
|
|
v-model="showOnList"
|
|
|
|
|
class="draggable-ul"
|
|
|
|
@ -401,8 +405,23 @@ const indeterminate = computed(() => {
|
|
|
|
|
:class="{ fix: item.fix }"
|
|
|
|
|
class="cursor-move draggable-item"
|
|
|
|
|
>
|
|
|
|
|
<SvgIcon name="drag" size="24" />
|
|
|
|
|
<SvgIcon name="drag" size="14" />
|
|
|
|
|
<span class="ml-2">{{ item.name }}</span>
|
|
|
|
|
|
|
|
|
|
<div class="zhiding">
|
|
|
|
|
<n-popover trigger="hover" placement="bottom">
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-if="!item.fix"
|
|
|
|
|
size="16px"
|
|
|
|
|
style="display: block; cursor: pointer;position:absolute; right: 50px; top:14.5px"
|
|
|
|
|
name="topbt"
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<span>置顶</span>
|
|
|
|
|
</n-popover>
|
|
|
|
|
</div>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-if="!item.fix"
|
|
|
|
|
size="16px"
|
|
|
|
@ -484,7 +503,8 @@ const indeterminate = computed(() => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cardstyle {
|
|
|
|
|
width: 820px;
|
|
|
|
|
width: 808px;
|
|
|
|
|
height:746px;
|
|
|
|
|
--n-padding-bottom: 20px;
|
|
|
|
|
--n-padding-left: 24px;
|
|
|
|
|
}
|
|
|
|
@ -496,6 +516,7 @@ const indeterminate = computed(() => {
|
|
|
|
|
|
|
|
|
|
.draggable-ul {
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
border: 1px solid #cad2dd;
|
|
|
|
|
border-top: 0px;
|
|
|
|
@ -517,16 +538,66 @@ const indeterminate = computed(() => {
|
|
|
|
|
color: #333;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-bottom: 1px solid #e8e8e8;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.disable-check {
|
|
|
|
|
color: gainsboro;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.overstyle{
|
|
|
|
|
height: 474px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
border:1px solid #cad2dd
|
|
|
|
|
}
|
|
|
|
|
/* 定义滚动条的宽度及背景颜色 */
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
width: 5px; /* for vertical scrollbars */
|
|
|
|
|
height: 10px; /* for horizontal scrollbars */
|
|
|
|
|
background: #f1f1f1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 定义滚动条轨道的样式 */
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
|
background-color: #e1e1e1;
|
|
|
|
|
border-radius: 10px; /* 圆角 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 定义滚动条滑块的样式 */
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
background-color: #888;
|
|
|
|
|
border-radius: 10px; /* 圆角 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 滑块hover时的样式 */
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background-color: #555;
|
|
|
|
|
}
|
|
|
|
|
::v-deep(.draggable-ul){
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
.left{
|
|
|
|
|
::v-deep(.draggable-ul){
|
|
|
|
|
height: 444px;
|
|
|
|
|
border: 1px solid #cad2dd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.titletwo{
|
|
|
|
|
margin: 10px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: Regular;
|
|
|
|
|
text-align: left;
|
|
|
|
|
color: #999999;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep(.n-card.n-card--content-segmented > .n-card__content:not(:first-child)) {
|
|
|
|
|
border: 0px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep(.n-card > .n-card-header) {
|
|
|
|
@ -568,4 +639,13 @@ const indeterminate = computed(() => {
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
border: 1px solid #cad2dd !important;
|
|
|
|
|
}
|
|
|
|
|
.zhiding{
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.draggable-item:hover {
|
|
|
|
|
.zhiding{
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|