bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="interviewDetail">
|
<div class="interviewDetail">
|
||||||
<template v-if="isEdit">
|
<template v-if="isEdit">
|
||||||
<u-form ref="interviewForm" label-position="top" :rules="rules" :model="form">
|
<u-form ref="interviewForm" label-position="top" :model="form">
|
||||||
<u-form-item label="调查走访事项" prop="title" required>
|
<u-form-item label="调查走访事项" prop="title" required>
|
||||||
<u-input v-model="form.title" placeholder="请输入,最多30字" maxlength="30"/>
|
<u-input v-model="form.title" placeholder="请输入,最多30字" maxlength="30"/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@@ -47,12 +47,6 @@ export default {
|
|||||||
let flag = this.$route.query?.detail != 1
|
let flag = this.$route.query?.detail != 1
|
||||||
document.title = flag ? "新增走访" : "走访详情"
|
document.title = flag ? "新增走访" : "走访详情"
|
||||||
return flag
|
return flag
|
||||||
},
|
|
||||||
rules() {
|
|
||||||
return {
|
|
||||||
title: [{required: true, message: '请输入调查走访事项'}],
|
|
||||||
// content: [{required: true, message: '请输入 调查走访内容'}],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -63,13 +57,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$refs.interviewForm.setRules(this.rules);
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.searchDetail();
|
this.searchDetail();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if (!this.form.title) {
|
||||||
|
return this.$u.toast("请输入调查走访事项")
|
||||||
|
}
|
||||||
|
|
||||||
this.$refs.interviewForm?.validate(v => {
|
this.$refs.interviewForm?.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.$http.post(`/app/appinterview/add-xcx`, {
|
this.$http.post(`/app/appinterview/add-xcx`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user