e332135c by 任超

style:css报错处理

1 parent ac8cde68
1 <template> 1 <template>
2 <div class="szxx"> 2 <div class="szxx">
3 <el-card class="box-card" v-for="(item,index) in tableData" :key="index"> 3 <el-card class="box-card" v-for="(item,index) in tableData" :key="index">
4 <div slot="header" class="szxx_header"> 4 <div slot="header" class="szxx_header">
5 <span class="header_type">{{item.bdcqzlx == 1 ? '不动产权证书' : '不动产登记证明'}}</span> 5 <span class="header_type">{{item.bdcqzlx == 1 ? '不动产权证书' : '不动产登记证明'}}</span>
6 <div class="header_text">{{item.bdcqzh}}</div> 6 <div class="header_text">{{item.bdcqzh}}</div>
7 </div> 7 </div>
8 <div class="szxx_body card_padding"> 8 <div class="szxx_body card_padding">
9 <div class="text color_iray"> 9 <div class="text color_iray">
10 <span>{{item.qllxmc}}</span> 10 <span>{{item.qllxmc}}</span>
11 </div> 11 </div>
12 <div class="text color_red"> 12 <div class="text color_red">
13 <span>{{item.qlr}}</span> 13 <span>{{item.qlr}}</span>
14 </div> 14 </div>
...@@ -28,13 +28,13 @@ ...@@ -28,13 +28,13 @@
28 <span>{{item.syqx}}</span> 28 <span>{{item.syqx}}</span>
29 </div> 29 </div>
30 <div v-if="item.ysxlh"> 30 <div v-if="item.ysxlh">
31 <div class="top_line middle_margin"></div> 31 <div class="top_line middle_margin"></div>
32 <div class="text color_iray"> 32 <div class="text color_iray">
33 <span>印刷序列号:{{item.ysxlh}}</span> 33 <span>印刷序列号:{{item.ysxlh}}</span>
34 </div> 34 </div>
35 </div> 35 </div>
36 </div> 36 </div>
37 <div class="card_padding"> 37 <div class="card_padding">
38 <div class="top_line middle_margin"></div> 38 <div class="top_line middle_margin"></div>
39 <div class="text" v-if="item.bsmSz"> 39 <div class="text" v-if="item.bsmSz">
40 <el-button class="operation_button" type="text" @click="openZsylDialog(item)">证书预览</el-button> 40 <el-button class="operation_button" type="text" @click="openZsylDialog(item)">证书预览</el-button>
...@@ -43,189 +43,206 @@ ...@@ -43,189 +43,206 @@
43 <div class="text" v-else> 43 <div class="text" v-else>
44 <el-button class="operation_button" type="text" @click="openZsylDialog(item)">证书打印(0)</el-button> 44 <el-button class="operation_button" type="text" @click="openZsylDialog(item)">证书打印(0)</el-button>
45 </div> 45 </div>
46 </div>
47 </el-card>
48 <el-dialog title="证书打印" :visible.sync="invalidDiglog" width="30%" :modal-append-to-body='false' top='30vh'>
49 <div class="invalid-diglog">
50 <div class="invalid-title">
51 <i class="el-icon-question invalid-icon"></i>
52 <div class="invalid-body">您确定作废证书并再次打印?</div>
53 </div>
54 <div class="invalid-reson">作废原因:</div>
55 <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input>
56 <div class="dialog-footer">
57 <el-button @click="closeInvalidDiglog()">取 消</el-button>
58 <el-button type="primary" @click="confirmInvalid()">确 定</el-button>
59 </div> 46 </div>
60 </div> 47 </el-card>
61 </el-dialog> 48 <el-dialog title="证书打印" :visible.sync="invalidDiglog" width="30%" :modal-append-to-body='false' top='30vh'>
62 <zsylDialog ref="zsylDialog" v-model="zsylFlag" :value='zsylFlag'/> 49 <div class="invalid-diglog">
63 </div> 50 <div class="invalid-title">
51 <i class="el-icon-question invalid-icon"></i>
52 <div class="invalid-body">您确定作废证书并再次打印?</div>
53 </div>
54 <div class="invalid-reson">作废原因:</div>
55 <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input>
56 <div class="dialog-footer">
57 <el-button @click="closeInvalidDiglog()">取 消</el-button>
58 <el-button type="primary" @click="confirmInvalid()">确 定</el-button>
59 </div>
60 </div>
61 </el-dialog>
62 <zsylDialog ref="zsylDialog" v-model="zsylFlag" :value='zsylFlag' />
63 </div>
64 </template> 64 </template>
65 <script> 65 <script>
66 import zsylDialog from "./zsyl"; 66 import zsylDialog from "./zsyl";
67 import { getBdcqzList,invalidCertificate } from "@/api/fqsq.js"; 67 import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js";
68 68
69 export default { 69 export default {
70 components: { zsylDialog }, 70 components: { zsylDialog },
71 props: { 71 props: {
72 72 },
73 }, 73 data () {
74 74 return {
75 data() { 75 tableData: [],
76 return { 76 zsylFlag: false,
77 tableData: [], 77 bdcqzlx: 1,
78 zsylFlag: false, 78 bdcqz: {},
79 bdcqzlx: 1, 79 zfyy: '',
80 bdcqz: {}, 80 invalidDiglog: false,
81 zfyy: '', 81 bsmSz: '',
82 invalidDiglog: false, 82 };
83 bsmSz: '', 83 },
84 }; 84 async created () {
85 }, 85 this.list();
86 async created() { 86 },
87 this.list(); 87 methods: {
88 }, 88 //初始化列表
89 methods: { 89 list () {
90 //初始化列表
91 list(){
92 var bsmSldy = this.$parent._data.unitData[0].bsmSldy 90 var bsmSldy = this.$parent._data.unitData[0].bsmSldy
93 getBdcqzList({bsmSldy:bsmSldy}).then(res => { 91 getBdcqzList({ bsmSldy: bsmSldy }).then(res => {
94 if (res.code === 200) { 92 if (res.code === 200) {
95 this.tableData = res.result 93 this.tableData = res.result
96 if(res.result){ 94 if (res.result) {
97 this.bdcqz = res.result[0] 95 this.bdcqz = res.result[0]
98 } 96 }
99 } 97 }
100 }) 98 })
101 }, 99 },
102 //打开证书预览弹窗 100 //打开证书预览弹窗
103 openZsylDialog(item){ 101 openZsylDialog (item) {
104 this.zsylFlag = true; 102 this.zsylFlag = true;
105 this.bdcqz = item; 103 this.bdcqz = item;
106 this.$nextTick(() => { 104 this.$nextTick(() => {
107 this.$refs.zsylDialog.ysxlhList(); 105 this.$refs.zsylDialog.ysxlhList();
108 }); 106 });
109 }, 107 },
110 //再次打印 108 //再次打印
111 openInvalidDiglog(item){ 109 openInvalidDiglog (item) {
112 this.bsmSz = item.bsmSz; 110 this.bsmSz = item.bsmSz;
113 this.invalidDiglog = true 111 this.invalidDiglog = true
114 }, 112 },
115 closeInvalidDiglog(){ 113 closeInvalidDiglog () {
116 this.invalidDiglog = false 114 this.invalidDiglog = false
117 this.bsmSz = ''; 115 this.bsmSz = '';
118 this.zfyy = ''; 116 this.zfyy = '';
119 }, 117 },
120 //作废缮证信息 118 //作废缮证信息
121 confirmInvalid(){ 119 confirmInvalid () {
122 invalidCertificate({"bsmSz":this.bsmSz,"zfyy": this.zfyy}).then(res => { 120 invalidCertificate({ "bsmSz": this.bsmSz, "zfyy": this.zfyy }).then(res => {
123 if (res.code === 200) { 121 if (res.code === 200) {
124 this.list(); 122 this.list();
125 this.$message.success('作废成功'); 123 this.$message.success('作废成功');
126 this.invalidDiglog = false; 124 this.invalidDiglog = false;
127 this.openZsylDialog(this.bdcqz); 125 this.openZsylDialog(this.bdcqz);
128 }else{ 126 } else {
129 this.$message.error(res.message); 127 this.$message.error(res.message);
130 } 128 }
131 }) 129 })
132 } 130 }
133 } 131 }
134 }; 132 };
135 </script> 133 </script>
136 <style scoped lang='scss'> 134 <style scoped lang='scss'>
137 @import "~@/styles/public.scss"; 135 @import "~@/styles/public.scss";
136
138 .szxx { 137 .szxx {
139 box-sizing: border-box; 138 box-sizing: border-box;
140 padding-right: 15px; 139 padding-right: 15px;
141 width: 100%; 140 width: 100%;
142 height: 600px; 141 height: 600px;
143 overflow-y: scroll; 142 overflow-y: scroll;
144 .box-card { 143
145 float: left; 144 .box-card {
146 width: 330px; 145 float: left;
147 margin-top: 20px; 146 width: 330px;
148 margin-right: 20px; 147 margin-top: 20px;
149 height: 440px; 148 margin-right: 20px;
150 .szxx_body { 149 height: 440px;
151 height: 240px; 150
152 } 151 .szxx_body {
153 } 152 height: 240px;
153 }
154 }
154 } 155 }
155 156
156 .szxx_header { 157 .szxx_header {
157 color:white; 158 color: white;
158 font-weight:bolder; 159 font-weight: bolder;
159 font-size: 18px; 160 font-size: 18px;
160 .header_type{ 161
162 .header_type {
161 display: flex; 163 display: flex;
162 justify-content: center; 164 justify-content: center;
163 align-content: center; 165 align-content: center;
164 } 166 }
165 .header_text{ 167
168 .header_text {
166 text-align: center; 169 text-align: center;
167 margin-top:10px; 170 margin-top: 10px;
168 height: 50px; 171 height: 50px;
169 line-height: 30px; 172 line-height: 30px;
170 } 173 }
171 } 174 }
175
172 .top_line { 176 .top_line {
173 border-top: 2px solid rgb(222,222,222); 177 border-top: 2px solid rgb(222, 222, 222);
174 } 178 }
179
175 .text { 180 .text {
176 margin-bottom: 10px; 181 margin-bottom: 10px;
177 text-align: center; 182 text-align: center;
178 } 183 }
184
179 .color_iray { 185 .color_iray {
180 color: rgb(153,153,153); 186 color: rgb(153, 153, 153);
181 } 187 }
188
182 .color_red { 189 .color_red {
183 color: rgb(255,89,24); 190 color: rgb(255, 89, 24);
184 } 191 }
192
185 .middle_margin { 193 .middle_margin {
186 margin-bottom: 10px; 194 margin-bottom: 10px;
187 } 195 }
196
188 .operation_button { 197 .operation_button {
189 border: 1px solid rgb(0, 121, 254); 198 border: 1px solid rgb(0, 121, 254);
190 padding: 15px 10px; 199 padding: 15px 10px;
191 text-align: center; 200 text-align: center;
192 width: 100px; 201 width: 100px;
193 } 202 }
203
194 .card_padding { 204 .card_padding {
195 padding-top:20px 205 padding-top: 20px
196 } 206 }
207
197 .invalid-diglog { 208 .invalid-diglog {
198 padding-bottom: 20px; 209 padding-bottom: 20px;
199 font-size: 16px; 210 font-size: 16px;
200 font-weight: bold; 211 font-weight: bold;
201 color: rgb(99, 99, 99); 212 color: rgb(99, 99, 99);
213
202 .invalid-title { 214 .invalid-title {
203 display: flex; 215 display: flex;
204 align-content: center; 216 align-content: center;
205 .invalid-icon{ 217
206 color:rgb(254,148,0); 218 .invalid-icon {
219 color: rgb(254, 148, 0);
207 font-size: 34px; 220 font-size: 34px;
208 margin-right: 10px; 221 margin-right: 10px;
209 } 222 }
210 .invalid-body{ 223
224 .invalid-body {
211 line-height: 40px; 225 line-height: 40px;
212 margin-bottom: 10px; 226 margin-bottom: 10px;
213 } 227 }
214 } 228 }
229
215 .invalid-reson { 230 .invalid-reson {
216 margin-bottom: 10px; 231 margin-bottom: 10px;
217 } 232 }
218 .dialog-footer{ 233
234 .dialog-footer {
219 margin-top: 10px; 235 margin-top: 10px;
220 display: flex; 236 display: flex;
221 justify-content: end; 237 justify-content: flex-end;
222 } 238 }
223 } 239 }
224 240
225 /deep/.el-card__header{ 241 /deep/.el-card__header {
226 background-color: rgb(198,67,83); 242 background-color: rgb(198, 67, 83);
227 } 243 }
228 /deep/.el-card__body{ 244
245 /deep/.el-card__body {
229 padding: 0px 246 padding: 0px
230 } 247 }
231 </style> 248 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -344,8 +344,6 @@ export default { ...@@ -344,8 +344,6 @@ export default {
344 li:hover { 344 li:hover {
345 border: 1px solid #ffffff; 345 border: 1px solid #ffffff;
346 border-radius: 5px; 346 border-radius: 5px;
347 //color: $light-blue ;
348
349 .svg-icon { 347 .svg-icon {
350 //color: $light-blue ; 348 //color: $light-blue ;
351 } 349 }
......