This commit is contained in:
wangchengming 2025-11-14 10:09:06 +08:00
parent 1eed363506
commit abe5979868
2 changed files with 7 additions and 4 deletions

View File

@ -31,7 +31,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="供应商/媒体形式/名称" prop="mediaName" > <el-form-item label="供应商/媒体形式/名称" prop="mediaName">
<el-input v-model="ruleForm.mediaName" placeholder="请输入" /> <el-input v-model="ruleForm.mediaName" placeholder="请输入" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -798,24 +798,24 @@ const handleChoseSupplier = (val) => {
// //
const getMediaTypeOne = () => { const getMediaTypeOne = () => {
sysMediaTypeListByPid({ parentId: 0 }).then(res => { sysMediaTypeListByPid({ parentId: 0 }).then(res => {
ruleForm.value.mediaCategory = undefined
mediaTypeOne.value = res.data mediaTypeOne.value = res.data
}) })
} }
// //
const getMediaTypeTwo = (value) => { const getMediaTypeTwo = (value) => {
sysMediaTypeListByPid({ parentId: value }).then(res => { sysMediaTypeListByPid({ parentId: value }).then(res => {
ruleForm.value.mediaTypeTwo = undefined ruleForm.value.displayForm = undefined
ruleForm.value.mediaTypeThree = undefined
mediaTypeTwo.value = res.data mediaTypeTwo.value = res.data
}) })
} }
// //
const getMediaTypeThree = (value) => { const getMediaTypeThree = (value) => {
sysMediaTypeListByPid({ parentId: value }).then(res => { sysMediaTypeListByPid({ parentId: value }).then(res => {
ruleForm.value.mediaTypeThree = undefined
mediaTypeThree.value = res.data mediaTypeThree.value = res.data
}) })
} }
// //
const getDepList = () => { const getDepList = () => {
listDept({ businessFlag: 1 }).then(response => { listDept({ businessFlag: 1 }).then(response => {
@ -1005,6 +1005,8 @@ const handleSubmit = () => {
} }
ruleForm.value.mediaFile = mediaFile.value ruleForm.value.mediaFile = mediaFile.value
ruleForm.value.displayForm = ruleForm.value.displayForm ? ruleForm.value.displayForm : -1
if (ruleForm.value.id != undefined) { if (ruleForm.value.id != undefined) {
updateMedia(ruleForm.value).then(response => { updateMedia(ruleForm.value).then(response => {
proxy.$modal.msgSuccess("修改成功") proxy.$modal.msgSuccess("修改成功")

View File

@ -332,6 +332,7 @@ const getPitchPricePage = () => {
// //
const handleChangeType = (val) => { const handleChangeType = (val) => {
queryParams.value.type = val queryParams.value.type = val
total.value = 0
pitchPriceList.value = [] pitchPriceList.value = []
} }