From abe597986895ebccd69c25b86522709438e5cc70 Mon Sep 17 00:00:00 2001 From: wangchengming <15110151257@163.com> Date: Fri, 14 Nov 2025 10:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mediaLibrary/mediaForm.vue | 10 ++++++---- src/views/pitchPrice/index.vue | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/mediaLibrary/mediaForm.vue b/src/views/mediaLibrary/mediaForm.vue index 971d6c0..9b85394 100644 --- a/src/views/mediaLibrary/mediaForm.vue +++ b/src/views/mediaLibrary/mediaForm.vue @@ -31,7 +31,7 @@ - + @@ -798,24 +798,24 @@ const handleChoseSupplier = (val) => { // 获取一级媒体类型 const getMediaTypeOne = () => { sysMediaTypeListByPid({ parentId: 0 }).then(res => { + ruleForm.value.mediaCategory = undefined mediaTypeOne.value = res.data }) } // 获取二级媒体类型 const getMediaTypeTwo = (value) => { sysMediaTypeListByPid({ parentId: value }).then(res => { - ruleForm.value.mediaTypeTwo = undefined - ruleForm.value.mediaTypeThree = undefined + ruleForm.value.displayForm = undefined mediaTypeTwo.value = res.data }) } // 获取三级媒体类型 const getMediaTypeThree = (value) => { sysMediaTypeListByPid({ parentId: value }).then(res => { - ruleForm.value.mediaTypeThree = undefined mediaTypeThree.value = res.data }) } + // 获取业务部门 const getDepList = () => { listDept({ businessFlag: 1 }).then(response => { @@ -1005,6 +1005,8 @@ const handleSubmit = () => { } ruleForm.value.mediaFile = mediaFile.value + ruleForm.value.displayForm = ruleForm.value.displayForm ? ruleForm.value.displayForm : -1 + if (ruleForm.value.id != undefined) { updateMedia(ruleForm.value).then(response => { proxy.$modal.msgSuccess("修改成功") diff --git a/src/views/pitchPrice/index.vue b/src/views/pitchPrice/index.vue index 6bee46a..26b1908 100644 --- a/src/views/pitchPrice/index.vue +++ b/src/views/pitchPrice/index.vue @@ -332,6 +332,7 @@ const getPitchPricePage = () => { // 类型切换 const handleChangeType = (val) => { queryParams.value.type = val + total.value = 0 pitchPriceList.value = [] }