1.代码优化

sws 2024-09-03
v1.0.0
sws 2024-09-03 10:01:37 +08:00
parent f6bb52d6e4
commit 4a8228ce6c
3 changed files with 7 additions and 2 deletions

View File

@ -54,7 +54,7 @@
<el-button @click="mult_del_event">{{ upload_type_name }}</el-button>
<!-- <el-cascader :show-all-levels="false" clearable></el-cascader> -->
<div class="right-classify ml-12">
<transform-category :data="type_data_list" :check-img-ids="check_img_ids" :placeholder="upload_type_name + '移动至'" @call-back="transform_category_event"></transform-category>
<transform-category :data="type_data_list" :check-img-ids="check_img_ids" :type="upload_type_name" :placeholder="upload_type_name + '移动至'" @call-back="transform_category_event"></transform-category>
</div>
</div>
<div class="right-search">

View File

@ -38,6 +38,10 @@ const props = defineProps({
type: String,
default: () => '',
},
type: {
type: String,
default: '图片', // tree/list
},
});
interface cascaderData {
value: string;
@ -153,7 +157,7 @@ const confirm = () => {
});
} else {
if (!props.checkImgIds) {
ElMessage.warning('请先选择图片!');
ElMessage.warning('请先选择' + props.type + '!');
}
if (!category_id.value) {
ElMessage.warning('请先选择分组!');

View File

@ -24,6 +24,7 @@ watch(
new_data.content.theme = new_data.content.article_theme;
new_data.content.data_type = new_data.content.tabs_list[0].data_type;
new_data.content.category = new_data.content.tabs_list[0].category;
new_data.content.carousel_col = new_data.content.article_carousel_col;
new_data.content.data_list = new_data.content.tabs_list[0].data_list;
new_data.content.data_ids = new_data.content.tabs_list[0].data_ids;
new_data.content.number = new_data.content.tabs_list[0].number;