This commit is contained in:
2025-07-02 15:04:59 +08:00
parent 79edcad5b4
commit c9b7603460
2 changed files with 7 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ const MaterialSourceRef = ref();
const visible = ref(false);
const targetList = reactive([]);
const emits = defineEmits(['success']);
const {id, material, disabled} = defineProps({
const {id, material, disabled, hiddenMaterial} = defineProps({
id: {
type: Number,
default: null,
@@ -25,6 +25,10 @@ const {id, material, disabled} = defineProps({
disabled: {
type: Boolean,
default: false,
},
hiddenMaterial: {
type: Boolean,
default: false,
}
});
@@ -112,7 +116,7 @@ const success = async () => {
</UploadButton>
</div>
<div class="mt-[20px]" v-if="!SystemStore.isRoot">
<div class="mt-[20px]" v-if="!SystemStore.isRoot && !hiddenMaterial">
<div class="text-[#1D2129] text-[14px] mb-[12px]">从素材库添加</div>
<MaterialSource
ref="MaterialSourceRef"

View File

@@ -121,6 +121,7 @@ const update = async () => {
:src="v">
</x-image>
<add-material
:hiddenMaterial="true"
@success="val => item.material = val"
ref="AddMaterialRef"
:id="task.task_id"