|
|
@@ -73,7 +73,7 @@
|
|
|
</div>
|
|
|
<div class="sop sop-2">
|
|
|
<CardWrap>
|
|
|
- <span slot="title" @click="openDrawer">检修兑现情况</span>
|
|
|
+ <span slot="title" @click="openDrawer('检修兑现情况')">检修兑现情况</span>
|
|
|
<div slot="content">
|
|
|
<Jxdxqk/>
|
|
|
</div>
|
|
|
@@ -92,11 +92,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-drawer
|
|
|
+ custom-class="drawer-wrap"
|
|
|
:title="drawer.title"
|
|
|
:visible.sync="drawer.visible"
|
|
|
+ :with-header="true"
|
|
|
+ size="100%"
|
|
|
:direction="drawer.direction"
|
|
|
>
|
|
|
- <span>我来啦!</span>
|
|
|
+ <component :is="drawer.comp"/>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -114,6 +117,7 @@ import QbDlsbxjdx from '@/views/dashboard-screen/qb-dlsbxjdx/index.vue'
|
|
|
import Jryl from '@/views/dashboard-screen/jryl/index.vue'
|
|
|
import ChartMap from '@/views/dashboard-screen/chart-map/chartMap.vue'
|
|
|
import dayjs from 'dayjs'
|
|
|
+import ScreenJxdxqk from '@/views/dashboard-screen/screen/screenJxdxqk.vue'
|
|
|
|
|
|
require('dayjs/locale/zh-cn')
|
|
|
export default {
|
|
|
@@ -125,7 +129,8 @@ export default {
|
|
|
drawer: {
|
|
|
title: '',
|
|
|
visible: false,
|
|
|
- direction: 'btt'
|
|
|
+ direction: 'btt',
|
|
|
+ comp: null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -143,9 +148,14 @@ export default {
|
|
|
}, 1000)
|
|
|
},
|
|
|
methods: {
|
|
|
- openDrawer(type, title) {
|
|
|
+
|
|
|
+ openDrawer(title) {
|
|
|
+ const map = {
|
|
|
+ '检修兑现情况': ScreenJxdxqk
|
|
|
+ }
|
|
|
this.drawer.title = title
|
|
|
this.drawer.visible = true
|
|
|
+ this.drawer.comp = map[title]
|
|
|
this.drawer = Object.assign({}, this.drawer)
|
|
|
}
|
|
|
}
|
|
|
@@ -314,4 +324,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .drawer-wrap {
|
|
|
+ background-image: url("/static/images/bg.png");
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+}
|
|
|
</style>
|