|
@@ -239,6 +239,7 @@ const formConfig = computed(() => {
|
|
|
prop: "menuId",
|
|
|
label: "菜单",
|
|
|
required: true,
|
|
|
+ isShow: formData.data.targetType == 1,
|
|
|
},
|
|
|
{
|
|
|
label: "跳转文章",
|
|
@@ -286,6 +287,7 @@ const openModal = () => {
|
|
|
dialogVisible.value = true;
|
|
|
modalType.value = "add";
|
|
|
formData.data = {};
|
|
|
+ articleList.value = []
|
|
|
};
|
|
|
const submitForm = () => {
|
|
|
byform.value.handleSubmit((valid) => {
|
|
@@ -357,6 +359,8 @@ const del = (row) => {
|
|
|
});
|
|
|
getList();
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
};
|
|
|
//获取字典
|
|
@@ -374,10 +378,12 @@ const getDictlist = async () => {
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
|
+ console.log("11",carouselModules.value)
|
|
|
targetType.value = res["carousel_target_type"].map((x) => ({
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
|
+ getMenuList();
|
|
|
};
|
|
|
|
|
|
//获取文章列表
|
|
@@ -425,11 +431,22 @@ const carouselUrlSuccess = (response, uploadFile) => {
|
|
|
const getMenuList = async () => {
|
|
|
const res = await findMenuListByOpen({});
|
|
|
columnListData.value = res.data;
|
|
|
+
|
|
|
+ res.data.forEach((x) => {
|
|
|
+ var columnLabel = {
|
|
|
+ label: x.name,
|
|
|
+ value: x.id
|
|
|
+ }
|
|
|
+ console.log(columnLabel)
|
|
|
+ carouselModules.value.push(columnLabel) ;
|
|
|
+ });
|
|
|
+ console.log( "carouselModules.value" ,carouselModules.value)
|
|
|
+
|
|
|
};
|
|
|
+getDictlist();
|
|
|
|
|
|
-getMenuList();
|
|
|
getList();
|
|
|
-getDictlist();
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|