ee61002c by xiaomiao

弹框样式拆分

1 parent cd82abd6
......@@ -113,8 +113,8 @@ export default {
}
</script>
<style rel="stylesheet/scss" lang="scss" >
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
// @import "~@/styles/mixin.scss";
// @import "~@/styles/dialogBox.scss";
</style>
<style rel="stylesheet/scss" scoped lang="scss" >
/deep/.is-fullscreen {
......
......@@ -128,14 +128,14 @@
</template>
<script>
import axios from "axios";
import SERVER from '@/api/config'
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/'
import { mapGetters } from "vuex";
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
import { getTabsDetail, getXml, getReportDetail, restartGenerateXml, edit } from "@/api/dataReport.js";
export default {
import axios from "axios";
import SERVER from '@/api/config'
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/'
import { mapGetters } from "vuex";
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
import { getTabsDetail, getXml, getReportDetail, restartGenerateXml, edit } from "@/api/dataReport.js";
export default {
components: { JsonEditor, Xyjg },
props: {
title: {
......@@ -332,27 +332,27 @@ export default {
}
}
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
// @import "~@/styles/mixin.scss";
// @import "~@/styles/dialogBox.scss";
/deep/.el-dialog__body {
/deep/.el-dialog__body {
display: flex;
flex-direction: column;
padding-bottom: 30px;
}
}
/deep/ .el-tabs {
color: #CEF8FF;
}
/deep/ .el-tabs {
color: #cef8ff;
}
.d-center {
.d-center {
z-index: 1000;
}
}
.sjmx {
.sjmx {
display: flex;
flex-direction: column;
height: 49vh;
......@@ -361,21 +361,21 @@ export default {
height: 50px;
padding-top: 6px;
}
}
}
.result {
.result {
flex: 1;
height: 100%;
}
}
.editDialogBox-con {
.editDialogBox-con {
flex: 1;
height: 100%;
overflow-y: hidden;
}
}
/deep/.el-tabs__item {
color: #CEF8FF !important;
/deep/.el-tabs__item {
color: #cef8ff !important;
display: flex;
flex-direction: row;
......@@ -383,73 +383,73 @@ export default {
background: url("~@/image/tabitem.png") no-repeat;
background-size: 100% 100%;
border: none !important;
}
}
.obligee-item-name {
background: #05275B;
color: #FFFFFF;
.obligee-item-name {
background: #05275b;
color: #ffffff;
background: url("~@/image/itembg.png") no-repeat;
background-size: 100% 100%;
}
}
/deep/.el-tabs__nav-scroll {
/deep/.el-tabs__nav-scroll {
background: none;
}
}
/deep/.el-tabs__nav {
/deep/.el-tabs__nav {
display: flex;
border: none !important;
}
}
/deep/.el-tabs__item.is-top {
/deep/.el-tabs__item.is-top {
border: 1px solid #dfe4ed;
border-top: 1px solid #dfe4ed;
border-bottom: 1px solid transparent;
}
}
/deep/.el-tabs__header {
/deep/.el-tabs__header {
border: none;
margin-bottom: 0;
}
}
/deep/.el-tabs__item.is-top:not(:last-child) {
/deep/.el-tabs__item.is-top:not(:last-child) {
margin-right: 5px;
}
}
/deep/.el-tabs__item.is-top {
/deep/.el-tabs__item.is-top {
background-color: none !important;
}
}
/deep/.el-tabs__item.is-active {
/deep/.el-tabs__item.is-active {
background: url("~@/image/tabitemse.png") no-repeat;
background-size: 100% 100%;
}
}
.success-images {
.success-images {
width: 30px;
height: 30px;
position: relative;
top: 10px;
right: 3px;
}
}
.tab-pane-item {
.tab-pane-item {
line-height: 20px;
color: #02D9FD;
color: #02d9fd;
p {
text-align: center;
}
}
}
.edit-content {
.edit-content {
overflow-y: auto;
overflow-x: hidden;
padding-right: 1px;
border-top: none;
}
}
/deep/.editDialogBox {
/deep/.editDialogBox {
border-radius: 8px;
overflow: hidden;
min-width: 1228px;
......@@ -471,13 +471,13 @@ export default {
width: 100%;
border-bottom: 1px solid #ccc;
}
}
}
.el-dialog__wrapper {
.el-dialog__wrapper {
overflow: hidden;
}
}
.dialog-from {
.dialog-from {
padding-top: 0;
.el-col {
......@@ -523,6 +523,6 @@ export default {
color: #d7eaee;
margin: 3px 0;
}
}
}
</style>
......
<template>
<transition name="msgbox-fade" v-if="myShow">
<div class="ls-mask" v-loading="loading">
<div class="ls-mask-window dialogBox" :style="{ 'width': width }">
<div class="ls-mask-window" :style="{ 'width': width }">
<div class="ls-head">
<div class="ls-title" :style="{ 'text-align': titleStyle }">
<svg-icon v-if="iconClass != ''" :icon-class='iconClass' />
......@@ -21,8 +21,8 @@
</transition>
</template>
<script>
import Popup1 from './index'
export default {
import Popup1 from './index'
export default {
name: 'index',
data () {
return {
......@@ -102,13 +102,10 @@ export default {
this.$el.parentNode.removeChild(this.$el);
}
}
}
}
</script>
<style scoped lang="scss" >
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
.ls-mask {
.ls-mask {
width: 100%;
height: 100%;
z-index: 2000;
......@@ -116,10 +113,9 @@ export default {
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.3);
}
}
.ls-mask-window {
.ls-mask-window {
background: white;
position: relative;
left: 50%;
......@@ -128,36 +124,36 @@ export default {
transform: translate(-50%, -50%);
border-radius: 5px;
overflow: hidden;
}
}
.ls-mask-window b {
.ls-mask-window b {
padding-left: 5px;
}
}
/deep/.closeStyle {
/deep/.closeStyle {
top: 7px !important;
}
}
.ls-title {
.ls-title {
padding: 10px;
color: #ffffff;
// background: linear-gradient(90deg, #1D66DC 0%, #081B56 100%);
font-size: 16px;
}
}
.ls-title .svg-icon {
.ls-title .svg-icon {
font-size: 18px;
}
}
.mask-content {
.mask-content {
padding: 15px;
width: 100%;
min-height: 20%;
max-height: 95%;
// overflow-y: scroll;
}
}
.ls-mask-footer {
.ls-mask-footer {
height: 50px;
display: flex;
justify-content: center;
......@@ -169,24 +165,23 @@ export default {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
overflow: hidden;
}
}
/deep/.closeStyle {
/deep/.closeStyle {
position: absolute;
top: 13px;
right: 26px;
font-size: 24px;
cursor: pointer;
color: #409EFF;
}
color: #409eff;
}
/deep/.el-loading-mask {
/deep/.el-loading-mask {
background: none;
}
}
/deep/.el-button {
/deep/.el-button {
margin: 8px 10px;
width: 75px;
}
}
</style>
......
.dialogBox {
overflow: hidden;
background: url("~@/image/dialogBg.png") no-repeat !important;
background-size: 100% 100% !important;
// min-height: 90vh;
.dialog_title {
display: flex;
position: relative;
font-size: 22px;
top: -10px;
width: 38%;
height: 40px;
margin-left: 28px;
justify-content: center;
white-space: nowrap;
b {
font-weight: 200;
display: inline-block;
position: relative;
font-size: 24px;
top: -11px;
width: 38%;
height: 40px;
margin-left: 28px;
// @include flex-center;
display: flex;
justify-content: center;
}
}
.dialog_full {
position: absolute;
top: 0;
right: 30px;
}
.el-dialog__body {
max-height: 88vh;
overflow-x: hidden;
overflow-y: hidden;
}
.dialog_footer {
margin-bottom: 8px;
@include flex-center;
}
.dialogBox-content {
height: auto
}
.editDialogBox-box {
background: #031A46;
box-shadow: inset 0px 0px 12px 0px #02D9FD;
border-radius: 2px;
border: 1px solid #6BC1FC;
margin: 0 18px 10px 18px;
}
}
.item-content-input {
/deep/.el-input__inner {
border: none !important;
text-align: right;
}
}
.regularHeight {
display: flex;
flex-direction: column;
height: 87vh;
.editDialogBox-con,
.JsonEditor {
flex: 1;
height: 100%;
}
}
.dialog-from {
padding: 13px;
border-radius: 2px;
box-sizing: border-box;
.el-row {
display: flex;
flex-wrap: nowrap;
}
.el-col {
line-height: 18px;
display: flex;
align-items: center;
margin-bottom: 3px;
color: #B5D6DC;
border-radius: 2px;
border: 1px solid #224C7C;
span {
display: inline-block;
padding: 3px;
border-radius: 3px;
overflow: hidden;
white-space: nowrap;
text-align: left;
color: #02D9FD;
}
p {
flex: 1;
width: 100%;
padding-left: 5px;
line-height: 20px;
color: #c0c4cc;
cursor: not-allowed;
white-space: nowrap;
margin-right: 5px;
text-align: right;
}
}
}
/deep/.el-textarea__inner {
border: 1px solid #224C7C;
margin: 0 0 10px 0 !important;
width: 100% !important;
color: #dadde3 !important;
background: transparent !important;
}
/deep/.el-input__inner {
border: 1px solid #224C7C !important;
margin: 0 !important;
width: 100% !important;
color: #dadde3 !important;
background: transparent !important;
}
.dialog_title {
@include flex;
justify-content: space-between;
width: 100%;
}
.el-dialog__header {
color: #FFFFFF;
height: 46px !important;
width: 97%;
margin: 0 auto;
margin-top: 2px;
}
.el-dialog__body {
padding-top: 0;
padding-bottom: 0;
// height: 95vh;
}
.el-dialog__headerbtn {
width: 42px;
height: 20px;
background: url("~@/image/closebg.png") no-repeat;
background-size: 100% 100%;
right: 40px;
top: 33px;
&:hover {
box-shadow: inset 0px 0px 12px 0px #02D9FD;
}
}
.el-dialog__close {
font-size: 0;
}
.el-form-item {
@include flex;
width: 100%;
}
.el-dialog__wrapper {
width: 100%;
height: 100%;
overflow: hidden;
}
.contentCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(calc(-50% + 85px), -50%);
}
.mainCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
// 展开收起按钮位置
.el-input__suffix {
right: 10px;
}
}
\ No newline at end of file
......
......@@ -79,6 +79,15 @@
}
}
.el-dialog__close {
font-size: 0;
}
.el-form-item {
display: flex;
width: 100%;
}
.advanced-search {
display: flex;
font-size: 12px;
......@@ -240,12 +249,6 @@
color: #fff;
}
.el-dialog__headerbtn {
position: absolute;
top: 22px;
right: 30px;
}
.el-dialog__header {
text-align: center;
margin-bottom: 10px;
......@@ -424,6 +427,7 @@
width: 100%;
border-bottom: 1px solid #ccc;
}
}
.el-dialog__wrapper {
......@@ -552,3 +556,202 @@
background-size: cover;
color: white;
}
// 监管弹框样式
.dialogBox {
overflow: hidden;
background: url("~@/image/dialogBg.png") no-repeat !important;
background-size: 100% 100% !important;
// min-height: 90vh;
.dialog_title {
display: flex;
position: relative;
font-size: 22px;
top: -10px;
width: 38%;
height: 40px;
margin-left: 28px;
justify-content: center;
white-space: nowrap;
b {
font-weight: 200;
display: inline-block;
position: relative;
font-size: 24px;
top: -11px;
width: 38%;
height: 40px;
margin-left: 28px;
// @include flex-center;
display: flex;
justify-content: center;
}
}
.dialog_full {
position: absolute;
top: 0;
right: 30px;
}
.el-dialog__body {
max-height: 88vh;
overflow-x: hidden;
overflow-y: hidden;
}
.dialog_footer {
margin-bottom: 8px;
display: flex;
justify-content: center;
align-items: center;
}
.dialogBox-content {
height: auto
}
.editDialogBox-box {
background: #031A46;
box-shadow: inset 0px 0px 12px 0px #02D9FD;
border-radius: 2px;
border: 1px solid #6BC1FC;
margin: 0 18px 10px 18px;
}
.item-content-input {
/deep/.el-input__inner {
border: none !important;
text-align: right;
}
}
.regularHeight {
display: flex;
flex-direction: column;
height: 87vh;
.editDialogBox-con,
.JsonEditor {
flex: 1;
height: 100%;
}
}
.dialog-from {
padding: 13px;
border-radius: 2px;
box-sizing: border-box;
.el-row {
display: flex;
flex-wrap: nowrap;
}
.el-col {
line-height: 18px;
display: flex;
align-items: center;
margin-bottom: 3px;
color: #B5D6DC;
border-radius: 2px;
border: 1px solid #224C7C;
span {
display: inline-block;
padding: 3px;
border-radius: 3px;
overflow: hidden;
white-space: nowrap;
text-align: left;
color: #02D9FD;
}
p {
flex: 1;
width: 100%;
padding-left: 5px;
line-height: 20px;
color: #c0c4cc;
cursor: not-allowed;
white-space: nowrap;
margin-right: 5px;
text-align: right;
}
}
}
.el-textarea__inner {
border: 1px solid #224C7C;
margin: 0 0 10px 0 !important;
width: 100% !important;
color: #dadde3 !important;
background: transparent !important;
}
.el-input__inner {
border: 1px solid #224C7C !important;
margin: 0 !important;
width: 100% !important;
color: #dadde3 !important;
background: transparent !important;
}
.el-dialog__header {
color: #FFFFFF;
height: 46px !important;
width: 97%;
margin: 0 auto;
margin-top: 2px;
}
.el-dialog__body {
padding-top: 0;
padding-bottom: 0;
// height: 95vh;
}
.el-dialog__headerbtn {
width: 42px;
height: 20px;
background: url("~@/image/closebg.png") no-repeat;
background-size: 100% 100%;
right: 40px;
top: 33px;
&:hover {
box-shadow: inset 0px 0px 12px 0px #02D9FD;
}
}
.el-dialog__close {
font-size: 0;
}
.el-form-item {
display: flex;
width: 100%;
}
}
.contentCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(calc(-50% + 85px), -50%);
}
.mainCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
// 展开收起按钮位置
.el-input__suffix {
right: 10px;
}
}
......
......@@ -27,7 +27,14 @@
padding: 22px 42px 20px;
}
.el-dialog__close {
font-size: 0;
}
.el-form-item {
display: flex;
width: 100%;
}
.el-form--inline .el-form-item {
width: auto;
......
......@@ -193,12 +193,12 @@
</template>
<script>
import { sbdata, sendThis } from './data/sbdata'
import { dbdata, sendThis1 } from './data/dbdata'
import { getDetail, edit, regenerateDbXml } from "@/api/recordLog.js"
import JsonEditor from "@/components/JsonEditor.vue";
import { judgeListComplete } from "@/utils/tools.js"
export default {
import { sbdata, sendThis } from './data/sbdata'
import { dbdata, sendThis1 } from './data/dbdata'
import { getDetail, edit, regenerateDbXml } from "@/api/recordLog.js"
import JsonEditor from "@/components/JsonEditor.vue";
import { judgeListComplete } from "@/utils/tools.js"
export default {
components: { JsonEditor },
data () {
return {
......@@ -455,32 +455,31 @@ export default {
}
}
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
// @import "~@/styles/mixin.scss";
// @import "~@/styles/dialogBox.scss";
/deep/.el-tabs__header {
/deep/.el-tabs__header {
margin: 0;
}
}
/deep/.el-dialog {
/deep/.el-dialog {
display: flex;
flex-direction: column;
}
}
/deep/.el-dialog__body {
/deep/.el-dialog__body {
display: flex;
flex-direction: column;
padding-bottom: 30px;
height: 100%;
flex: 1;
position: relative;
}
}
.regularHeight {
.regularHeight {
display: flex;
flex-direction: column;
height: 87vh;
......@@ -490,16 +489,17 @@ export default {
.JsonEditor {
flex: 1;
}
}
}
.d-center {}
.d-center {
}
.dialog_title {
top: -13px
}
.dialog_title {
top: -13px;
}
/deep/.el-tabs__item {
color: #CEF8FF !important;
/deep/.el-tabs__item {
color: #cef8ff !important;
display: flex;
flex-direction: row;
......@@ -507,39 +507,39 @@ export default {
background: url("~@/image/tabitem.png") no-repeat;
background-size: 100% 100%;
border: none !important;
}
}
/deep/.el-tabs__nav {
/deep/.el-tabs__nav {
display: flex;
border: none !important;
}
}
/deep/.el-tabs__item.is-top:not(:last-child) {
/deep/.el-tabs__item.is-top:not(:last-child) {
margin-right: 5px;
}
}
/deep/.el-icon-circle-close {
/deep/.el-icon-circle-close {
display: none;
}
}
/deep/.el-tabs__item.is-active {
/deep/.el-tabs__item.is-active {
background: url("~@/image/tabitemse.png") no-repeat;
background-size: 100% 100%;
}
}
.from-clues-content {
.from-clues-content {
margin-top: 0;
background: none;
padding: 0;
}
}
.editDialogBox-box {
.editDialogBox-box {
position: relative;
top: 10px;
height: 100%;
}
}
.dialog-from {
.dialog-from {
padding-top: 0;
.el-col {
......@@ -571,6 +571,6 @@ export default {
color: #d7eaee;
margin: 3px 0;
}
}
}
</style>
......
......@@ -177,9 +177,12 @@
white-space: nowrap;
b {
font-size: 16px;
font-weight: 600;
}
}
.el-dialog__headerbtn {
right: 20px !important;
top: 23px !important;
}
}
}
</style>
......
......@@ -412,6 +412,6 @@
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
// @import "~@/styles/mixin.scss";
// @import "~@/styles/dialogBox.scss";
</style>
......
......@@ -210,9 +210,12 @@
white-space: nowrap;
b {
font-size: 16px;
font-weight: 600;
}
}
.el-dialog__headerbtn {
right: 20px !important;
top: 23px !important;
}
}
.selbig {
width: 500px;
......