|
@@ -340,7 +340,7 @@
|
|
|
</div>
|
|
|
<div style="height:65vh;overflow: auto;padding-right: 20px">
|
|
|
|
|
|
- <el-form :model="impressionNanan" label-width="110px" ref="modifyWorkForm" :rules="modifyWorkFormRules">
|
|
|
+ <el-form :model="impressionNanan" label-width="110px" ref="modifyWorkForm" :rules="modifyWorkFormRules" >
|
|
|
<el-row>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="作品名称" prop="pictureTitle">
|
|
@@ -389,8 +389,8 @@
|
|
|
<el-row>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="作者电话" prop="uploaderPhone">
|
|
|
- <el-input v-model.number="impressionNanan.uploaderPhone" placeholder="请输入作者电话"
|
|
|
- clearable></el-input>
|
|
|
+ <el-input v-model="impressionNanan.uploaderPhone" placeholder="请输入作者电话"
|
|
|
+ maxlength="11" minlength="11" show-word-limit clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -1137,11 +1137,11 @@ export default {
|
|
|
}
|
|
|
api.modifyYxnaFile(fd).then((r) => {
|
|
|
if (r.data.result) {
|
|
|
- this.$message.success('新增成功')
|
|
|
+ this.$message.success('修改成功')
|
|
|
this.addWorkDialog = false
|
|
|
this.getData()
|
|
|
} else {
|
|
|
- this.$message.error("新增失败")
|
|
|
+ this.$message.error("修改失败")
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
this.$message.error("修改失败")
|
|
@@ -1289,6 +1289,10 @@ export default {
|
|
|
if (this.impressionNanan.isAlbum > 0) {
|
|
|
this.impressionNanan.isAlbum = this.impressionNanan.albumPeople
|
|
|
}
|
|
|
+ if (!this.impressionNanan.pictureDescription) {
|
|
|
+ this.$message.error('请输入作品描述!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
api.modifyYxna(this.impressionNanan).then(() => {
|
|
|
this.modifyWorkDialog = false
|
|
|
this.getData()
|