修改
This commit is contained in:
parent
724c252ed0
commit
ad51ed5bfe
@ -61,7 +61,7 @@ const tableRef = ref();
|
||||
});
|
||||
const handleSubmits = async () => {
|
||||
if(!selectRow.value.id) {
|
||||
return message("请选择文字文章",'error');
|
||||
return message("请选择文章",'error');
|
||||
}
|
||||
emit("update:visible", false);
|
||||
emit("success",selectRow.value);
|
||||
|
@ -22,6 +22,7 @@
|
||||
<el-select
|
||||
v-model="formData.type"
|
||||
placeholder="请选择页面类型"
|
||||
@change="handleType"
|
||||
>
|
||||
<el-option label="CMS文章" :value="1"></el-option>
|
||||
<el-option label="通知公告" :value="2"></el-option>
|
||||
@ -121,6 +122,10 @@ const getArticle=()=>{
|
||||
}
|
||||
chooseVisible.value = true
|
||||
}
|
||||
const handleType=()=>{
|
||||
formData.typeId = ''
|
||||
formData.typeText=''
|
||||
}
|
||||
const setFormData = async () => {
|
||||
const data = await getLayoutDetail(props.layoutId);
|
||||
for (const key in formData) {
|
||||
|
Loading…
Reference in New Issue
Block a user