|
@@ -111,8 +111,8 @@
|
|
|
<el-radio v-model="ruleForm.type" label="2">文本</el-radio>
|
|
|
<el-radio v-model="ruleForm.type" label="3">底部</el-radio>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="网站logo:" prop="" :label-width="formLabelWidth" :class="['custom-form-item']"
|
|
|
- class="custom-align-right" v-show="this.ruleForm.type != '2'">
|
|
|
+ <el-form-item label="网站logo:" prop="webLogo" :label-width="formLabelWidth"
|
|
|
+ :class="['custom-form-item']" class="custom-align-right" v-if="this.ruleForm.type != '2'">
|
|
|
<div class="uploaderBox">
|
|
|
<!--图片上传组件 start ------------------------------------------------------------>
|
|
|
<div class="avatar-upload-container" @mouseenter="hovering = true"
|
|
@@ -244,6 +244,7 @@ export default {
|
|
|
webName: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
webUrl: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
type: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ webLogo: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
sort: [{ required: true, trigger: 'blur', validator: validateEmpty }]
|
|
|
},
|
|
|
|
|
@@ -377,8 +378,8 @@ export default {
|
|
|
this.ruleForm.webName = ''
|
|
|
this.ruleForm.webUrl = ''
|
|
|
this.ruleForm.type = '1'
|
|
|
- this.logoUrl = 'http://183.131.25.186:9501/image/20241225/17350893036168.png'
|
|
|
- this.ruleForm.webLogo = 'http://183.131.25.186:9501/image/20241225/17350893036168.png'
|
|
|
+ this.logoUrl = ''
|
|
|
+ this.ruleForm.webLogo = ''
|
|
|
this.ruleForm.webDesc = ''
|
|
|
this.ruleForm.sort = 0
|
|
|
},
|
|
@@ -440,6 +441,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ if (this.ruleForm.webLogo == '') {
|
|
|
+ this.$message.error("请上传网站logo");
|
|
|
+ return
|
|
|
+ }
|
|
|
createLink({
|
|
|
title: this.ruleForm.webName,
|
|
|
website_id: this.website_id,
|
|
@@ -462,7 +467,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
if (this.dialogName == "编辑") {
|
|
|
if (this.website_id == " ") {
|
|
@@ -497,6 +501,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ if (this.ruleForm.webLogo == '') {
|
|
|
+ this.$message.error("请上传网站logo");
|
|
|
+ return
|
|
|
+ }
|
|
|
updateLink({
|
|
|
title: this.ruleForm.webName,
|
|
|
website_id: this.website_id,
|