|
|
@@ -177,6 +177,7 @@ export default {
|
|
|
if (this.fromData.unit.trim() === '') return this.$message.warning('单位或个人不能为空')
|
|
|
if (this.fromData.description.trim() === '') return this.$message.warning('登记说明不能为空')
|
|
|
if (this.fromData.description.length > 255) return this.$message.warning('登记说明不能超过255个字')
|
|
|
+ if (this.fromData.unit.length > 50) return this.$message.warning('单位或个人不能超过50个字')
|
|
|
// 发请求
|
|
|
this.fromData.status = null
|
|
|
await addSubmit({ ...this.fromData, id: this.mydata.id })
|
|
|
@@ -199,6 +200,7 @@ export default {
|
|
|
if (this.fromData.unit.trim() === '') return this.$message.warning('单位或个人不能为空')
|
|
|
if (this.fromData.description.trim() === '') return this.$message.warning('登记说明不能为空')
|
|
|
if (this.fromData.description.length > 255) return this.$message.warning('登记说明不能超过255个字')
|
|
|
+ if (this.fromData.unit.length > 50) return this.$message.warning('单位或个人不能超过50个字')
|
|
|
this.$confirm('是否确认提交?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|