【优化】优化通知公告前端命名规范问题

pull/281/head
xuyuxiang 2025-07-25 22:50:20 +08:00
parent 53807cb63f
commit 6684bedacf
4 changed files with 13 additions and 13 deletions

View File

@ -10,27 +10,27 @@ const request = (url, ...arg) => baseRequest(`/biz/notice/` + url, ...arg)
**/
export default {
// 获取通知公告分页
bizNoticePage(data) {
noticePage(data) {
return request('page', data, 'get')
},
// 提交通知公告表单 edit为true时为编辑默认为新增
bizNoticeSubmitForm(data, edit = false) {
noticeSubmitForm(data, edit = false) {
return request(edit ? 'edit' : 'add', data)
},
// 删除通知公告
bizNoticeDelete(data) {
noticeDelete(data) {
return request('delete', data)
},
// 获取通知公告详情
bizNoticeDetail(data) {
noticeDetail(data) {
return request('detail', data, 'get')
},
// 禁用通知公告
bizNoticeDisableStatus(data) {
noticeDisableStatus(data) {
return request('disableStatus', data)
},
// 启用通知公告
bizNoticeEnableStatus(data) {
noticeEnableStatus(data) {
return request('enableStatus', data)
}
}

View File

@ -72,7 +72,7 @@
const param = {
id: id
}
bizNoticeApi.bizNoticeDetail(param).then((data) => {
bizNoticeApi.noticeDetail(param).then((data) => {
formData.value = Object.assign({}, data)
})
} else {

View File

@ -133,7 +133,7 @@
const formDataParam = cloneDeep(formData.value)
formDataParam.place = JSON.stringify(formDataParam.place)
bizNoticeApi
.bizNoticeSubmitForm(formDataParam, formDataParam.id)
.noticeSubmitForm(formDataParam, formDataParam.id)
.then(() => {
onClose()
emit('successful')

View File

@ -198,7 +198,7 @@
searchFormParam.endCreateTime = searchFormParam.createTime[1]
delete searchFormParam.createTime
}
return bizNoticeApi.bizNoticePage(Object.assign(parameter, searchFormParam)).then((data) => {
return bizNoticeApi.noticePage(Object.assign(parameter, searchFormParam)).then((data) => {
return data
})
}
@ -214,13 +214,13 @@
id: record.id
}
]
bizNoticeApi.bizNoticeDelete(params).then(() => {
bizNoticeApi.noticeDelete(params).then(() => {
tableRef.value.refresh(true)
})
}
//
const deleteBatchBizNotice = (params) => {
bizNoticeApi.bizNoticeDelete(params).then(() => {
bizNoticeApi.noticeDelete(params).then(() => {
tableRef.value.clearRefreshSelected()
})
}
@ -229,7 +229,7 @@
loading.value = true
if (record.status === 'ENABLE') {
bizNoticeApi
.bizNoticeDisableStatus(record)
.noticeDisableStatus(record)
.then(() => {
tableRef.value.refresh()
})
@ -238,7 +238,7 @@
})
} else {
bizNoticeApi
.bizNoticeEnableStatus(record)
.noticeEnableStatus(record)
.then(() => {
tableRef.value.refresh()
})