|
@@ -6,12 +6,14 @@
|
|
|
:style="{ width: computedWidth, height: computedHeight, zIndex: zIndex }"
|
|
|
>
|
|
|
<div :class="type === 'xs' || headerType === 'header2' ? 'dialog-header2' : 'dialog-header'">
|
|
|
- <div v-if="!hideTitle" class="dialog-title" :title="title ? title : '弹窗'">
|
|
|
- {{ title ? title : '弹窗' }}
|
|
|
- </div>
|
|
|
- <div v-if="!!getTagId" class="tags">
|
|
|
- <div v-for="(item, index) in tags" :key="index" class="tag">{{ item.dict_label }}</div>
|
|
|
- <i :class="tags && tags.length > 0 ? 'collectFill' : 'collect'" @click="handleShowAddTag" />
|
|
|
+ <div class="header-left">
|
|
|
+ <div v-if="!hideTitle" class="dialog-title" :title="title ? title : '弹窗'">
|
|
|
+ {{ title ? title : '弹窗' }}
|
|
|
+ </div>
|
|
|
+ <div v-if="!!getTagId" class="tags">
|
|
|
+ <div v-for="(item, index) in tags" :key="index" class="tag">{{ item.dict_label }}</div>
|
|
|
+ <i :class="tags && tags.length > 0 ? 'collectFill' : 'collect'" @click="handleShowAddTag" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<i class="decoration" />
|
|
|
<i class="dialog-close" @click="closeDialog" />
|
|
@@ -31,7 +33,7 @@
|
|
|
<i class="triangle3" />
|
|
|
<i class="triangle4" />
|
|
|
</div>
|
|
|
- <VideoTagEdit v-if="showAddTag" :id="getTagId" v-model="showAddTag" :tags="tags" @update-video-tag="getData(true)" />
|
|
|
+ <VideoTagEdit v-if="showAddTag" :id="getTagId" v-model="showAddTag" :tags="tags" @update-video-tag="getData2" />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup name="Dialog">
|
|
@@ -138,6 +140,10 @@ const getData = (needUpdate?: boolean) => {
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
+const getData2 = () => {
|
|
|
+ getData(true);
|
|
|
+ showAddTag.value = false;
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
if (props.customShow) {
|
|
|
zIndex.value = appStore.getZIndex();
|
|
@@ -168,7 +174,7 @@ onMounted(() => {
|
|
|
position: relative;
|
|
|
min-height: 175px;
|
|
|
line-height: 135px;
|
|
|
- padding: 0 40px;
|
|
|
+ padding: 0 40px 40px;
|
|
|
.dialog-title {
|
|
|
width: 965px;
|
|
|
color: transparent;
|
|
@@ -232,12 +238,11 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
.dialog-title {
|
|
|
width: auto;
|
|
|
- max-width: 2350px;
|
|
|
+ max-width: 1900px;
|
|
|
}
|
|
|
.tags {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- margin-top: -45px;
|
|
|
.tag {
|
|
|
width: 345px;
|
|
|
height: 71px;
|
|
@@ -265,26 +270,31 @@ onMounted(() => {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
}
|
|
|
- &::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- bottom: 19px;
|
|
|
- left: 0;
|
|
|
- width: 163px;
|
|
|
- height: 69px;
|
|
|
- background: url('@/assets/images/line.png') no-repeat;
|
|
|
- background-size: 100%;
|
|
|
- }
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- bottom: 50px;
|
|
|
- left: 178px;
|
|
|
- width: calc(100% - 178px);
|
|
|
- height: 6.9px;
|
|
|
- background-image: linear-gradient(to right, rgba(10, 154, 196, 1) 0%, rgba(10, 154, 196, 0) 100%);
|
|
|
- background-size: 100% 100%;
|
|
|
+ .header-left {
|
|
|
+ position: relative;
|
|
|
+ max-width: 2350px;
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ bottom: -31px;
|
|
|
+ left: 0;
|
|
|
+ width: 163px;
|
|
|
+ height: 69px;
|
|
|
+ background: url('@/assets/images/line.png') no-repeat;
|
|
|
+ background-size: 100%;
|
|
|
+ }
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0px;
|
|
|
+ left: 178px;
|
|
|
+ width: calc(100% - 178px);
|
|
|
+ height: 6.9px;
|
|
|
+ background-image: linear-gradient(to right, rgba(10, 154, 196, 1) 0%, rgba(10, 154, 196, 0) 100%);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
.el-form-item__label {
|
|
|
font-size: 38px;
|
|
@@ -342,4 +352,8 @@ onMounted(() => {
|
|
|
.common-btn-danger {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
+.header-left {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
</style>
|