safecheck-client 3.0.35-33 → 3.0.35-34

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}">
4
+ <defect-paper-new @select-changed="selected" :style="style" :style2="style2" v-ref:check></defect-paper-new>
5
+ </div>
6
+ <div class="binary-right" v-show="showItem">
7
+ <div class="flex">
8
+ <defect-list-new v-if='$refs.check && $refs.check.selected' :check='$refs.check.selected'
9
+ v-ref:detail></defect-list-new>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import DefectPaperNew from './DefectPaperNew'
17
+ import DefectListNew from './DefectListNew'
18
+
19
+ export default {
20
+ title: '隐患查看',
21
+ props: ['f'],
22
+ components: {DefectPaperNew, DefectListNew},
23
+ data() {
24
+ return {
25
+ showItem: false,
26
+ style: 'col-sm-2 form-group',
27
+ style2: 'col-sm-4 form-group'
28
+ }
29
+ },
30
+ methods: {
31
+ selected(row) {
32
+ this.showItem = true
33
+ }
34
+ },
35
+ watch: {
36
+ 'showItem'(val) {
37
+ //tag
38
+ //tag
39
+ if (val) {
40
+ this.style = 'col-sm-3 form-group'
41
+ this.style2 = 'col-sm-6 form-group'
42
+ } else {
43
+ this.style = 'col-sm-2 form-group'
44
+ this.style2 = 'col-sm-4 form-group'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ </script>
50
+ <style>
51
+ .form-input-group label {
52
+ text-align: right;
53
+ width: auto;
54
+ }
55
+
56
+ .datapanel {
57
+ color: #333;
58
+ background-color: white;
59
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
60
+ padding: 5px 7px 5px 7px;
61
+ border-radius: 10px;
62
+ }
63
+ </style>