style:登记原因
Showing
10 changed files
with
271 additions
and
132 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-26 15:29:54 | 4 | * @LastEditTime: 2024-01-31 09:38:51 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -338,7 +338,7 @@ | ... | @@ -338,7 +338,7 @@ |
338 | v-model="ruleForm.diyaq.zxdyyy"> | 338 | v-model="ruleForm.diyaq.zxdyyy"> |
339 | </el-input> | 339 | </el-input> |
340 | </el-form-item> | 340 | </el-form-item> |
341 | <el-form-item v-else label="登记原因:" prop="djyy"> | 341 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
342 | <el-input | 342 | <el-input |
343 | class="textArea" | 343 | class="textArea" |
344 | type="textarea" | 344 | type="textarea" |
... | @@ -436,8 +436,12 @@ | ... | @@ -436,8 +436,12 @@ |
436 | isJfOperation: false, | 436 | isJfOperation: false, |
437 | //传递参数 | 437 | //传递参数 |
438 | propsParam: {}, | 438 | propsParam: {}, |
439 | rules: {}, | 439 | rules: { |
440 | }; | 440 | 'diyaq.djyy': [ |
441 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
442 | ] | ||
443 | } | ||
444 | } | ||
441 | }, | 445 | }, |
442 | methods: { | 446 | methods: { |
443 | /** | 447 | /** |
... | @@ -499,22 +503,35 @@ | ... | @@ -499,22 +503,35 @@ |
499 | } | 503 | } |
500 | } | 504 | } |
501 | 505 | ||
502 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 506 | this.$refs['ruleForm'].validate((valid) => { |
503 | if (res.code === 200) { | 507 | if (valid) { |
504 | this.$message({ | 508 | that.$store.dispatch("user/refreshPage", false); |
505 | showClose: true, | 509 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { |
506 | message: "保存成功!", | 510 | if (res.code === 200) { |
507 | type: "success", | 511 | that.$message({ |
508 | }); | 512 | showClose: true, |
509 | this.$store.dispatch("user/refreshPage", true); | 513 | message: "保存成功!", |
514 | type: "success", | ||
515 | }); | ||
516 | that.$store.dispatch("user/refreshPage", true); | ||
517 | } else { | ||
518 | that.$message({ | ||
519 | showClose: true, | ||
520 | message: res.message, | ||
521 | type: "error", | ||
522 | }); | ||
523 | } | ||
524 | }) | ||
525 | |||
510 | } else { | 526 | } else { |
511 | this.$message({ | 527 | this.$message({ |
512 | showClose: true, | 528 | showClose: true, |
513 | message: res.message, | 529 | message: "请输入登记原因", |
514 | type: "error", | 530 | type: "error" |
515 | }); | 531 | }) |
532 | return false | ||
516 | } | 533 | } |
517 | }); | 534 | }) |
518 | }, | 535 | }, |
519 | /** | 536 | /** |
520 | * @description: 更新权利人信息 | 537 | * @description: 更新权利人信息 | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-20 14:27:29 | 4 | * @LastEditTime: 2024-01-31 09:38:06 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -342,8 +342,12 @@ | ... | @@ -342,8 +342,12 @@ |
342 | }, | 342 | }, |
343 | //传递参数 | 343 | //传递参数 |
344 | propsParam: {}, | 344 | propsParam: {}, |
345 | rules: {}, | 345 | rules: { |
346 | }; | 346 | djyy: [ |
347 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
348 | ] | ||
349 | } | ||
350 | } | ||
347 | }, | 351 | }, |
348 | methods: { | 352 | methods: { |
349 | /** | 353 | /** | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-11-15 15:47:55 | 4 | * @LastEditTime: 2024-01-31 09:46:04 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -279,7 +279,7 @@ | ... | @@ -279,7 +279,7 @@ |
279 | </div> | 279 | </div> |
280 | <el-row :gutter="10"> | 280 | <el-row :gutter="10"> |
281 | <el-col> | 281 | <el-col> |
282 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy"> | 282 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="lq.djyy"> |
283 | <el-input | 283 | <el-input |
284 | class="textArea" | 284 | class="textArea" |
285 | type="textarea" | 285 | type="textarea" |
... | @@ -386,7 +386,11 @@ | ... | @@ -386,7 +386,11 @@ |
386 | propsParam: this.$attrs, | 386 | propsParam: this.$attrs, |
387 | //表单是否可操作 | 387 | //表单是否可操作 |
388 | viewEdit: true, | 388 | viewEdit: true, |
389 | rules: {} | 389 | rules: { |
390 | 'lq.djyy': [ | ||
391 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
392 | ] | ||
393 | } | ||
390 | }; | 394 | }; |
391 | }, | 395 | }, |
392 | methods: { | 396 | methods: { |
... | @@ -491,24 +495,36 @@ | ... | @@ -491,24 +495,36 @@ |
491 | }) | 495 | }) |
492 | } | 496 | } |
493 | } | 497 | } |
494 | saveData(this.ruleForm).then((res) => { | 498 | this.$refs['ruleForm'].validate((valid) => { |
495 | if (res.code === 200) { | 499 | if (valid) { |
496 | this.$message({ | 500 | that.$store.dispatch("user/refreshPage", false); |
497 | showClose: true, | 501 | saveData(that.ruleForm).then((res) => { |
498 | message: "保存成功!", | 502 | if (res.code === 200) { |
499 | type: "success", | 503 | that.$message({ |
500 | }); | 504 | showClose: true, |
501 | this.$store.dispatch("user/refreshPage", true); | 505 | message: "保存成功!", |
506 | type: "success", | ||
507 | }); | ||
508 | that.$store.dispatch("user/refreshPage", true); | ||
509 | } else { | ||
510 | that.$message({ | ||
511 | showClose: true, | ||
512 | message: res.message, | ||
513 | type: "error", | ||
514 | }); | ||
515 | } | ||
516 | }) | ||
502 | } else { | 517 | } else { |
503 | this.$message({ | 518 | this.$message({ |
504 | showClose: true, | 519 | showClose: true, |
505 | message: res.message, | 520 | message: "请输入登记原因", |
506 | type: "error", | 521 | type: "error" |
507 | }); | 522 | }) |
523 | return false | ||
508 | } | 524 | } |
509 | }); | 525 | }) |
510 | }, | 526 | } |
511 | }, | 527 | } |
512 | }; | 528 | }; |
513 | </script> | 529 | </script> |
514 | <style scoped lang="scss"> | 530 | <style scoped lang="scss"> | ... | ... |
... | @@ -292,7 +292,7 @@ | ... | @@ -292,7 +292,7 @@ |
292 | </div> | 292 | </div> |
293 | <el-row :gutter="10"> | 293 | <el-row :gutter="10"> |
294 | <el-col> | 294 | <el-col> |
295 | <el-form-item label="登记原因:" prop="djyy"> | 295 | <el-form-item label="登记原因:" prop="nydsyq.djyy"> |
296 | <el-input | 296 | <el-input |
297 | class="textArea" | 297 | class="textArea" |
298 | type="textarea" | 298 | type="textarea" |
... | @@ -389,7 +389,11 @@ | ... | @@ -389,7 +389,11 @@ |
389 | propsParam: {}, | 389 | propsParam: {}, |
390 | //表单是否可操作 | 390 | //表单是否可操作 |
391 | viewEdit: true, | 391 | viewEdit: true, |
392 | rules: {}, | 392 | rules: { |
393 | 'nydsyq.djyy': [ | ||
394 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
395 | ] | ||
396 | }, | ||
393 | }; | 397 | }; |
394 | }, | 398 | }, |
395 | methods: { | 399 | methods: { |
... | @@ -452,23 +456,35 @@ | ... | @@ -452,23 +456,35 @@ |
452 | }); | 456 | }); |
453 | } | 457 | } |
454 | } | 458 | } |
455 | 459 | this.$refs['ruleForm'].validate((valid) => { | |
456 | saveData(this.ruleForm).then((res) => { | 460 | if (valid) { |
457 | if (res.code === 200) { | 461 | that.$store.dispatch("user/refreshPage", false); |
458 | this.$message({ | 462 | saveData(that.ruleForm).then((res) => { |
459 | showClose: true, | 463 | if (res.code === 200) { |
460 | message: "保存成功!", | 464 | that.$message({ |
461 | type: "success", | 465 | showClose: true, |
462 | }); | 466 | message: "保存成功!", |
463 | this.$store.dispatch("user/refreshPage", true); | 467 | type: "success", |
468 | }); | ||
469 | that.$store.dispatch("user/refreshPage", true); | ||
470 | } else { | ||
471 | that.$message({ | ||
472 | showClose: true, | ||
473 | message: res.message, | ||
474 | type: "error", | ||
475 | }); | ||
476 | } | ||
477 | }) | ||
464 | } else { | 478 | } else { |
465 | this.$message({ | 479 | this.$message({ |
466 | showClose: true, | 480 | showClose: true, |
467 | message: res.message, | 481 | message: "请输入登记原因", |
468 | type: "error", | 482 | type: "error" |
469 | }); | 483 | }) |
484 | return false | ||
470 | } | 485 | } |
471 | }); | 486 | }) |
487 | |||
472 | }, | 488 | }, |
473 | /** | 489 | /** |
474 | * @description: upDateQlrxxList | 490 | * @description: upDateQlrxxList | ... | ... |
... | @@ -304,7 +304,7 @@ | ... | @@ -304,7 +304,7 @@ |
304 | </div> | 304 | </div> |
305 | <el-row :gutter="10"> | 305 | <el-row :gutter="10"> |
306 | <el-col> | 306 | <el-col> |
307 | <el-form-item label="登记原因:" prop="djyy"> | 307 | <el-form-item label="登记原因:" prop="nydsyq.djyy"> |
308 | <el-input | 308 | <el-input |
309 | class="textArea" | 309 | class="textArea" |
310 | type="textarea" | 310 | type="textarea" |
... | @@ -397,8 +397,12 @@ | ... | @@ -397,8 +397,12 @@ |
397 | ruleForm: {}, | 397 | ruleForm: {}, |
398 | //传递参数 | 398 | //传递参数 |
399 | propsParam: {}, | 399 | propsParam: {}, |
400 | rules: {}, | 400 | rules: { |
401 | }; | 401 | 'nydsyq.djyy': [ |
402 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
403 | ] | ||
404 | } | ||
405 | } | ||
402 | }, | 406 | }, |
403 | methods: { | 407 | methods: { |
404 | /** | 408 | /** |
... | @@ -460,23 +464,34 @@ | ... | @@ -460,23 +464,34 @@ |
460 | }) | 464 | }) |
461 | } | 465 | } |
462 | } | 466 | } |
463 | 467 | this.$refs['ruleForm'].validate((valid) => { | |
464 | saveData(this.ruleForm).then((res) => { | 468 | if (valid) { |
465 | if (res.code === 200) { | 469 | that.$store.dispatch("user/refreshPage", false); |
466 | this.$message({ | 470 | saveData(that.ruleForm).then((res) => { |
467 | showClose: true, | 471 | if (res.code === 200) { |
468 | message: "保存成功!", | 472 | that.$message({ |
469 | type: "success", | 473 | showClose: true, |
470 | }); | 474 | message: "保存成功!", |
471 | this.$store.dispatch("user/refreshPage", true); | 475 | type: "success", |
476 | }); | ||
477 | that.$store.dispatch("user/refreshPage", true); | ||
478 | } else { | ||
479 | that.$message({ | ||
480 | showClose: true, | ||
481 | message: res.message, | ||
482 | type: "error", | ||
483 | }); | ||
484 | } | ||
485 | }) | ||
472 | } else { | 486 | } else { |
473 | this.$message({ | 487 | this.$message({ |
474 | showClose: true, | 488 | showClose: true, |
475 | message: res.message, | 489 | message: "请输入登记原因", |
476 | type: "error", | 490 | type: "error" |
477 | }); | 491 | }) |
492 | return false | ||
478 | } | 493 | } |
479 | }); | 494 | }) |
480 | }, | 495 | }, |
481 | /** | 496 | /** |
482 | * @description: 权利人更新 | 497 | * @description: 权利人更新 | ... | ... |
... | @@ -265,7 +265,7 @@ | ... | @@ -265,7 +265,7 @@ |
265 | v-model="ruleForm.ygdj.zxyy"> | 265 | v-model="ruleForm.ygdj.zxyy"> |
266 | </el-input> | 266 | </el-input> |
267 | </el-form-item> | 267 | </el-form-item> |
268 | <el-form-item v-else label="登记原因:" prop="djyy"> | 268 | <el-form-item v-else label="登记原因:" prop="ygdj.djyy"> |
269 | <el-input | 269 | <el-input |
270 | class="textArea" | 270 | class="textArea" |
271 | type="textarea" | 271 | type="textarea" |
... | @@ -354,7 +354,11 @@ | ... | @@ -354,7 +354,11 @@ |
354 | }, | 354 | }, |
355 | //传递参数 | 355 | //传递参数 |
356 | propsParam: this.$attrs, | 356 | propsParam: this.$attrs, |
357 | rules: {} | 357 | rules: { |
358 | 'ygdj.djyy': [ | ||
359 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
360 | ] | ||
361 | } | ||
358 | } | 362 | } |
359 | }, | 363 | }, |
360 | methods: { | 364 | methods: { |
... | @@ -451,25 +455,37 @@ | ... | @@ -451,25 +455,37 @@ |
451 | }) | 455 | }) |
452 | } | 456 | } |
453 | } | 457 | } |
454 | saveData(this.ruleForm).then((res) => { | 458 | this.$refs['ruleForm'].validate((valid) => { |
455 | if (res.code === 200) { | 459 | if (valid) { |
456 | this.$message({ | 460 | that.$store.dispatch("user/refreshPage", false); |
457 | showClose: true, | 461 | saveData(that.ruleForm).then((res) => { |
458 | message: "保存成功!", | 462 | if (res.code === 200) { |
459 | type: "success", | 463 | that.$message({ |
460 | }); | 464 | showClose: true, |
461 | this.$store.dispatch("user/refreshPage", true); | 465 | message: "保存成功!", |
466 | type: "success", | ||
467 | }); | ||
468 | that.$store.dispatch("user/refreshPage", true); | ||
469 | } else { | ||
470 | that.$message({ | ||
471 | showClose: true, | ||
472 | message: res.message, | ||
473 | type: "error", | ||
474 | }); | ||
475 | } | ||
476 | }) | ||
462 | } else { | 477 | } else { |
463 | this.$message({ | 478 | that.$message({ |
464 | showClose: true, | 479 | showClose: true, |
465 | message: res.message, | 480 | message: "请输入登记原因", |
466 | type: "error", | 481 | type: "error" |
467 | }); | 482 | }) |
483 | return false | ||
468 | } | 484 | } |
469 | }); | 485 | }) |
470 | }, | 486 | } |
471 | }, | 487 | } |
472 | }; | 488 | } |
473 | </script> | 489 | </script> |
474 | <style scoped lang="scss"> | 490 | <style scoped lang="scss"> |
475 | @import "~@/styles/public.scss"; | 491 | @import "~@/styles/public.scss"; | ... | ... |
... | @@ -181,7 +181,7 @@ | ... | @@ -181,7 +181,7 @@ |
181 | </div> | 181 | </div> |
182 | <el-row :gutter="10"> | 182 | <el-row :gutter="10"> |
183 | <el-col> | 183 | <el-col> |
184 | <el-form-item label="登记原因:" prop="djyy"> | 184 | <el-form-item label="登记原因:" prop="ygdj.djyy"> |
185 | <el-input | 185 | <el-input |
186 | class="textArea" | 186 | class="textArea" |
187 | type="textarea" | 187 | type="textarea" |
... | @@ -263,8 +263,12 @@ | ... | @@ -263,8 +263,12 @@ |
263 | ruleForm: {}, | 263 | ruleForm: {}, |
264 | //传递参数 | 264 | //传递参数 |
265 | propsParam: this.$attrs, | 265 | propsParam: this.$attrs, |
266 | rules: {}, | 266 | rules: { |
267 | }; | 267 | 'ygdj.djyy': [ |
268 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
269 | ] | ||
270 | } | ||
271 | } | ||
268 | }, | 272 | }, |
269 | methods: { | 273 | methods: { |
270 | /** | 274 | /** |
... | @@ -373,22 +377,37 @@ | ... | @@ -373,22 +377,37 @@ |
373 | }) | 377 | }) |
374 | } | 378 | } |
375 | } | 379 | } |
376 | saveData(this.ruleForm).then((res) => { | 380 | |
377 | if (res.code === 200) { | 381 | |
378 | this.$message({ | 382 | this.$refs['ruleForm'].validate((valid) => { |
379 | showClose: true, | 383 | if (valid) { |
380 | message: "保存成功!", | 384 | that.$store.dispatch("user/refreshPage", false); |
381 | type: "success", | 385 | saveData(that.ruleForm).then((res) => { |
382 | }); | 386 | if (res.code === 200) { |
383 | this.$store.dispatch("user/refreshPage", true); | 387 | that.$message({ |
388 | showClose: true, | ||
389 | message: "保存成功!", | ||
390 | type: "success", | ||
391 | }); | ||
392 | that.$store.dispatch("user/refreshPage", true); | ||
393 | } else { | ||
394 | that.$message({ | ||
395 | showClose: true, | ||
396 | message: res.message, | ||
397 | type: "error", | ||
398 | }); | ||
399 | } | ||
400 | }) | ||
384 | } else { | 401 | } else { |
385 | this.$message({ | 402 | that.$message({ |
386 | showClose: true, | 403 | showClose: true, |
387 | message: res.message, | 404 | message: "请输入登记原因", |
388 | type: "error", | 405 | type: "error" |
389 | }); | 406 | }) |
407 | return false | ||
390 | } | 408 | } |
391 | }); | 409 | }) |
410 | |||
392 | }, | 411 | }, |
393 | /** | 412 | /** |
394 | * @description: compare | 413 | * @description: compare | ... | ... |
... | @@ -290,7 +290,7 @@ | ... | @@ -290,7 +290,7 @@ |
290 | v-model="ruleForm.ygdj.zxyy"> | 290 | v-model="ruleForm.ygdj.zxyy"> |
291 | </el-input> | 291 | </el-input> |
292 | </el-form-item> | 292 | </el-form-item> |
293 | <el-form-item v-else label="登记原因:" prop="djyy"> | 293 | <el-form-item v-else label="登记原因:" prop="ygdj.djyy"> |
294 | <el-input | 294 | <el-input |
295 | class="textArea" | 295 | class="textArea" |
296 | type="textarea" | 296 | type="textarea" |
... | @@ -387,6 +387,9 @@ | ... | @@ -387,6 +387,9 @@ |
387 | zwlxqssjrules: [{ required: true, message: "债务履行起始时间", trigger: "blur" }], | 387 | zwlxqssjrules: [{ required: true, message: "债务履行起始时间", trigger: "blur" }], |
388 | zwlxjssjrules: [{ required: true, message: "债务履行结束时间", trigger: "blur" }], | 388 | zwlxjssjrules: [{ required: true, message: "债务履行结束时间", trigger: "blur" }], |
389 | dbfwrules: [{ required: true, message: "担保范围", trigger: "blur" }], | 389 | dbfwrules: [{ required: true, message: "担保范围", trigger: "blur" }], |
390 | 'ygdj.djyy': [ | ||
391 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
392 | ] | ||
390 | } | 393 | } |
391 | } | 394 | } |
392 | }, | 395 | }, | ... | ... |
... | @@ -280,7 +280,7 @@ | ... | @@ -280,7 +280,7 @@ |
280 | v-model="ruleForm.diyaqList[0].zxdyyy"> | 280 | v-model="ruleForm.diyaqList[0].zxdyyy"> |
281 | </el-input> | 281 | </el-input> |
282 | </el-form-item> | 282 | </el-form-item> |
283 | <el-form-item v-else label="登记原因:" prop="djyy"> | 283 | <el-form-item v-else label="登记原因:" prop="diyaqList[0].djyy"> |
284 | <el-input | 284 | <el-input |
285 | class="textArea" | 285 | class="textArea" |
286 | type="textarea" | 286 | type="textarea" |
... | @@ -360,7 +360,11 @@ | ... | @@ -360,7 +360,11 @@ |
360 | ruleForm: {}, | 360 | ruleForm: {}, |
361 | //传递参数 | 361 | //传递参数 |
362 | propsParam: {}, | 362 | propsParam: {}, |
363 | rules: {}, | 363 | rules: { |
364 | 'diyaqList[0].djyy': [ | ||
365 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
366 | ] | ||
367 | }, | ||
364 | tableData: [], | 368 | tableData: [], |
365 | }; | 369 | }; |
366 | }, | 370 | }, |
... | @@ -423,22 +427,34 @@ | ... | @@ -423,22 +427,34 @@ |
423 | }); | 427 | }); |
424 | } | 428 | } |
425 | } | 429 | } |
426 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { | 430 | this.$refs['ruleForm'].validate((valid) => { |
427 | if (res.code === 200) { | 431 | if (valid) { |
428 | this.$message({ | 432 | that.$store.dispatch("user/refreshPage", false); |
429 | showClose: true, | 433 | saveBatchData(that.ruleForm, that.propsParam.djlx).then((res) => { |
430 | message: "保存成功!", | 434 | if (res.code === 200) { |
431 | type: "success", | 435 | that.$message({ |
432 | }); | 436 | showClose: true, |
433 | this.$store.dispatch("user/refreshPage", true); | 437 | message: "保存成功!", |
438 | type: "success", | ||
439 | }); | ||
440 | that.$store.dispatch("user/refreshPage", true); | ||
441 | } else { | ||
442 | that.$message({ | ||
443 | showClose: true, | ||
444 | message: res.message, | ||
445 | type: "error", | ||
446 | }); | ||
447 | } | ||
448 | }) | ||
434 | } else { | 449 | } else { |
435 | this.$message({ | 450 | that.$message({ |
436 | showClose: true, | 451 | showClose: true, |
437 | message: res.message, | 452 | message: "请输入登记原因", |
438 | type: "error", | 453 | type: "error" |
439 | }); | 454 | }) |
455 | return false | ||
440 | } | 456 | } |
441 | }); | 457 | }) |
442 | }, | 458 | }, |
443 | /** | 459 | /** |
444 | * @description: 是否持证人变化 | 460 | * @description: 是否持证人变化 | ... | ... |
... | @@ -338,7 +338,7 @@ | ... | @@ -338,7 +338,7 @@ |
338 | v-model="ruleForm.diyaq.zxdyyy"> | 338 | v-model="ruleForm.diyaq.zxdyyy"> |
339 | </el-input> | 339 | </el-input> |
340 | </el-form-item> | 340 | </el-form-item> |
341 | <el-form-item v-else label="登记原因:" prop="djyy"> | 341 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
342 | <el-input | 342 | <el-input |
343 | class="textArea" | 343 | class="textArea" |
344 | type="textarea" | 344 | type="textarea" |
... | @@ -416,7 +416,11 @@ | ... | @@ -416,7 +416,11 @@ |
416 | ruleForm: {}, | 416 | ruleForm: {}, |
417 | //传递参数 | 417 | //传递参数 |
418 | propsParam: {}, | 418 | propsParam: {}, |
419 | rules: {}, | 419 | rules: { |
420 | 'diyaq.djyy': [ | ||
421 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
422 | ] | ||
423 | }, | ||
420 | // 键名转换,方法默认是label和children进行树状渲染 | 424 | // 键名转换,方法默认是label和children进行树状渲染 |
421 | normalizer (node) { | 425 | normalizer (node) { |
422 | //方法 | 426 | //方法 |
... | @@ -490,22 +494,35 @@ | ... | @@ -490,22 +494,35 @@ |
490 | }); | 494 | }); |
491 | } | 495 | } |
492 | } | 496 | } |
493 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 497 | this.$refs['ruleForm'].validate((valid) => { |
494 | if (res.code === 200) { | 498 | if (valid) { |
495 | this.$message({ | 499 | that.$store.dispatch("user/refreshPage", false); |
496 | showClose: true, | 500 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { |
497 | message: "保存成功!", | 501 | if (res.code === 200) { |
498 | type: "success", | 502 | that.$message({ |
499 | }); | 503 | showClose: true, |
500 | this.$store.dispatch("user/refreshPage", true); | 504 | message: "保存成功!", |
505 | type: "success", | ||
506 | }); | ||
507 | that.$store.dispatch("user/refreshPage", true); | ||
508 | } else { | ||
509 | that.$message({ | ||
510 | showClose: true, | ||
511 | message: res.message, | ||
512 | type: "error", | ||
513 | }); | ||
514 | } | ||
515 | }) | ||
501 | } else { | 516 | } else { |
502 | this.$message({ | 517 | that.$message({ |
503 | showClose: true, | 518 | showClose: true, |
504 | message: res.message, | 519 | message: "请输入登记原因", |
505 | type: "error", | 520 | type: "error" |
506 | }); | 521 | }) |
522 | return false | ||
507 | } | 523 | } |
508 | }); | 524 | }) |
525 | |||
509 | }, | 526 | }, |
510 | /** | 527 | /** |
511 | * @description: 更新权利人信息 | 528 | * @description: 更新权利人信息 | ... | ... |
-
Please register or sign in to post a comment