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 = [] }