|
|
|
@ -111,6 +111,7 @@ export default defineComponent({
|
|
|
|
|
const setForm = reactive({
|
|
|
|
|
title: '',
|
|
|
|
|
fileUrl: '',
|
|
|
|
|
duration: undefined,
|
|
|
|
|
})
|
|
|
|
|
const visible = ref(false);
|
|
|
|
|
const editVisible = ref(false);
|
|
|
|
@ -158,6 +159,7 @@ export default defineComponent({
|
|
|
|
|
const data = res.data;
|
|
|
|
|
this.setForm.title = data.title;
|
|
|
|
|
this.setForm.fileUrl = data.fileUrl;
|
|
|
|
|
this.setForm.duration = data.duration;
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
this.editVisible = true;
|
|
|
|
|
},
|
|
|
|
@ -168,6 +170,7 @@ export default defineComponent({
|
|
|
|
|
this.editVisible = false;
|
|
|
|
|
this.setForm.title = '';
|
|
|
|
|
this.setForm.fileUrl = '';
|
|
|
|
|
this.setForm.duration = undefined;
|
|
|
|
|
this.$message.success(res.data)
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
@ -178,6 +181,7 @@ export default defineComponent({
|
|
|
|
|
this.visible = false;
|
|
|
|
|
this.setForm.title = '';
|
|
|
|
|
this.setForm.fileUrl = '';
|
|
|
|
|
this.setForm.duration = undefined;
|
|
|
|
|
this.$message.success(res.data)
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
@ -196,10 +200,12 @@ export default defineComponent({
|
|
|
|
|
},
|
|
|
|
|
//上传图片
|
|
|
|
|
handlerUpload(data) {
|
|
|
|
|
this.setForm.fileUrl = data.fileUrl
|
|
|
|
|
this.setForm.fileUrl = data.fileUrl;
|
|
|
|
|
this.setForm.duration = data.duration;
|
|
|
|
|
},
|
|
|
|
|
handlerCoverUpload(data) {
|
|
|
|
|
this.setForm.fileUrl = data.fileUrl
|
|
|
|
|
this.setForm.fileUrl = data.fileUrl;
|
|
|
|
|
this.setForm.duration = data.duration;
|
|
|
|
|
},
|
|
|
|
|
//编辑排序
|
|
|
|
|
editCancel() {
|
|
|
|
|