提交 a06e3c7b authored 作者: matian's avatar matian

跟进记录字数限制

上级 e12c3d20
...@@ -66,7 +66,14 @@ ...@@ -66,7 +66,14 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="跟进记录" prop="desc"> <el-form-item label="跟进记录" prop="desc">
<el-input v-model="form.desc" type="textarea" size="small" rows="4" placeholder="请输入跟进记录" /> <el-input
v-model="form.desc"
type="textarea"
size="small"
rows="4"
placeholder="请输入跟进记录"
maxlength="200"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" style="margin-left: 20px" @click="submit" :disabled="btnDisabled">提交</el-button> <el-button type="primary" style="margin-left: 20px" @click="submit" :disabled="btnDisabled">提交</el-button>
...@@ -132,7 +139,7 @@ export default { ...@@ -132,7 +139,7 @@ export default {
methods: { methods: {
// 提交 // 提交
submit() { submit() {
this.$refs.form.validate().then((valid) => { this.$refs.form.validate().then(valid => {
if (valid) { if (valid) {
this.fetchCreateRecord() this.fetchCreateRecord()
} }
...@@ -154,15 +161,17 @@ export default { ...@@ -154,15 +161,17 @@ export default {
// } // }
// } // }
this.btnDisabled = true this.btnDisabled = true
createFollowRecord(this.customerId, params).then(res => { createFollowRecord(this.customerId, params)
this.$message.success('新建跟进记录成功') .then(res => {
this.$emit('input', false) this.$message.success('新建跟进记录成功')
this.$emit('success') this.$emit('input', false)
}).finally(() => { this.$emit('success')
window.setTimeout(() => { })
this.btnDisabled = false .finally(() => {
}, 500) window.setTimeout(() => {
}) this.btnDisabled = false
}, 500)
})
}, },
fetchProjectList() { fetchProjectList() {
getCoopList({ page: 1, limit: 1000, customer_id: this.customerId }).then(res => { getCoopList({ page: 1, limit: 1000, customer_id: this.customerId }).then(res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论