1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<template>
<div class="content">
<div class="top">
<div class="top-left">
<div :style="tlw1" @click="top_left_1_warn">营销任务</div>
<div :style="tlw2" @click="top_left_2_warn">定期检查</div>
<div :style="tlw3" @click="top_left_3_warn">风险预警</div>
</div>
<div class="top-right">
<div class="search-logo"><img src="../../../../assets/images/search-logo.png" alt="" /></div>
<div class="search-bar">
<van-form>
<van-field class="name" label-width="20px" v-model="username" name="username" placeholder="请输入关键字搜索" />
</van-form>
</div>
<div class="search">搜索</div>
</div>
</div>
<div class="bottom">
<upcoming-marketing-task v-if="this.topLeft1"></upcoming-marketing-task>
<upcoming-periodic-inspection v-if="this.topLeft2"></upcoming-periodic-inspection>
<upcoming-risk-warning v-if="this.topLeft3"></upcoming-risk-warning>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import UpcomingMarketingTask from "@/components/workbench/upcoming-tasks-content/company-business/upcoming/UpcomingMarketingTask.vue";
import UpcomingPeriodicInspection from "@/components/workbench/upcoming-tasks-content/company-business/upcoming/UpcomingPeriodicInspection.vue";
import UpcomingRiskWarning from "@/components/workbench/upcoming-tasks-content/company-business/upcoming/UpcomingRiskWarning.vue";
/**
* @Description 代办任务
* @Author JiangTao
* @Date 2021-10-23 下午 06:52
*/
@Component({
name: "Upcoming",
components: { UpcomingMarketingTask, UpcomingPeriodicInspection, UpcomingRiskWarning },
})
export default class Upcoming extends Vue {
username = "";
//营销任务
topLeft1 = true;
//定期检查
topLeft2 = false;
//风险预警
topLeft3 = false;
src = require("../../../../assets/svg/red-message-box.svg");
style = {
width: "18.43%",
height: "100%",
lineHeight: "250%",
border: "0",
color: "#fd5065",
marginRight: "3%",
backgroundImage: `url("${this.src}")`,
backgroundRepeat: "no-repeat",
paddingBottom: "1%",
};
tlw1: any = this.style;
tlw2: any = {};
tlw3: any = {};
top_left_1_warn() {
this.tlw1 = this.style;
this.tlw2 = {};
this.tlw3 = {};
this.topLeft1 = true;
this.topLeft2 = false;
this.topLeft3 = false;
}
top_left_2_warn() {
this.tlw1 = {};
this.tlw2 = this.style;
this.tlw3 = {};
this.topLeft1 = false;
this.topLeft2 = true;
this.topLeft3 = false;
}
top_left_3_warn() {
this.tlw1 = {};
this.tlw2 = {};
this.tlw3 = this.style;
this.topLeft1 = false;
this.topLeft2 = false;
this.topLeft3 = true;
}
}
</script>
<style scoped>
.top {
width: 100%;
height: 20%;
display: flex;
justify-content: space-around;
align-items: center;
background-color: white;
}
.top-left {
width: 100%;
display: flex;
justify-content: flex-start;
margin-left: 2%;
margin-top: 1%;
}
.top-left > * {
width: 18.32%;
height: 85%;
line-height: 240%;
border: 1px solid rgba(178, 178, 178, 1);
border-radius: 5px;
font-size: 85%;
color: #999999;
margin-right: 3%;
padding-top: 0.1%;
text-align: center;
}
.top-right {
width: 93%;
display: flex;
align-items: center;
padding-top: 0.5%;
}
.search-bar {
height: 34px;
}
.search-logo {
/*display: inline-block;*/
/*margin-top: 1.4%;*/
/*margin-left: 2%;*/
margin-right: -5%;
}
.name {
border: 1px solid rgba(228, 228, 228, 1);
width: 75.5%;
line-height: 200%;
padding-top: 0.6%;
margin-top: -6.9%;
padding-bottom: 0.6%;
border-bottom-left-radius: 6px;
border-top-left-radius: 6px;
padding-left: 10%;
float: left;
background-color: rgba(255, 255, 255, 0);
}
.search {
width: 15.73%;
line-height: 34px;
background-color: #fd5065;
color: white;
font-size: 115%;
text-align: center;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.top-left div:hover {
}
.bottom {
width: 100%;
height: 100%;
float: left;
margin-top: 3%;
}
::v-deep .van-field {
margin-top: 1px;
width: 100%;
}
</style>