28504
This commit is contained in:
@@ -136,7 +136,7 @@ export default {
|
||||
formRules: {
|
||||
imgUrl: [{required: true, message: '请添加图片', trigger: 'blur'}],
|
||||
title: [{required: true, message: '请输入标题', trigger: 'blur'}],
|
||||
type: [{required: true, trigger: 'blur'}],
|
||||
type: [{required: true, trigger: 'change', message: '请选择链接类型'}],
|
||||
// linkUrl: [{ required: true, message: '请输入链接', trigger: 'blur' }]
|
||||
},
|
||||
colConfigs: [
|
||||
@@ -223,20 +223,22 @@ export default {
|
||||
// 确定新增
|
||||
addConfirm() {
|
||||
// console.log('确定')
|
||||
this.instance
|
||||
.post(`/app/appbanner/addOrUpdate`, {
|
||||
imgUrl: this.dialogInfo.imgUrl[0].url,
|
||||
linkUrl: this.dialogInfo.linkUrl,
|
||||
status: this.status,
|
||||
title: this.dialogInfo.title,
|
||||
type: this.dialogInfo.type,
|
||||
id: this.dialogInfo.id,
|
||||
})
|
||||
.then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$message.success('新增成功')
|
||||
this.visible = false
|
||||
this.getList()
|
||||
this.$refs.ruleForm.validate((valid) => {
|
||||
if (valid) {
|
||||
this.instance.post(`/app/appbanner/addOrUpdate`, {
|
||||
imgUrl: this.dialogInfo.imgUrl[0].url,
|
||||
linkUrl: this.dialogInfo.linkUrl,
|
||||
status: this.status,
|
||||
title: this.dialogInfo.title,
|
||||
type: this.dialogInfo.type,
|
||||
id: this.dialogInfo.id,
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$message.success('新增成功')
|
||||
this.visible = false
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user