投诉类型接口添加参数

This commit is contained in:
zhouyanli
2026-06-30 14:24:37 +08:00
parent 1a8abc6d47
commit 78fc468bc4
3 changed files with 17 additions and 4 deletions

View File

@@ -104,8 +104,8 @@ export const submitQuestionnair = (id,data) => {
}
// =====投诉意见=======
// 获取投诉类型
export const getComplainType = () => {
return get('/complain/getComplainType')
export const getComplainType = (data) => {
return post('/complain/getComplainType',data)
}
// 获取投诉列表
export const getComplainList = (data) => {

View File

@@ -174,8 +174,9 @@ onLoad(() => {
// 获取投诉类型
const getSelectType = async () => {
let params = {status:'0'}
try {
const res = await getComplainType()
const res = await getComplainType(params)
if (res.code === 200) {
typeOptions.value = res.data || []
} else {