Commit f9c7e3ce authored by 罗林杰's avatar 罗林杰

修改报名删除问题

parent 8397249f
......@@ -36,3 +36,15 @@ export function exportApplication(query) {
responseType: 'blob'
})
}
// 5. 删除报名表
export function delApplication(data) {
return request({
url: '/cmsApplication/delete/' + data.businessId,
method: 'delete',
data: JSON.stringify(data), // 确保数据被正确序列化为 JSON 字符串
headers: {
'Content-Type': 'application/json' // 设置正确的 Content-Type
}
})
}
......@@ -270,6 +270,13 @@
:size="commonField.size"
@click="handleViewGridData(scope.row)"
>查看</el-button>
<el-button
v-has-permi="['cms:activity:update']"
:class="commonField.updateClass"
:type="commonField.typeParent"
:size="commonField.size"
@click="handleDelete(scope.row)"
>删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -294,7 +301,7 @@ import {
} from '@/api/contentManagement/activity'
import { parseTime } from '@/utils'
import { getDataCache, setDataCache } from '@/assets/js/filterData'
import {exportApplication, listCmsApplication} from '@/api/contentManagement/application'
import { delApplication, exportApplication, listCmsApplication } from '@/api/contentManagement/application'
import { yesOrNo } from '@/utils/allPageData'
import { getOssUrl } from '@/api/contentManagement/opmArticle'
import { getPrivateInfo } from '@/api/contentManagement/memInfo'
......@@ -655,6 +662,27 @@ export default {
}
})
},
// 删除报名人
handleDelete(row) {
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
const form = {
businessId: row.businessId,
activityId: row.activityId,
orderId: row.orderId
}
return delApplication(form)
}).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.loadData1()
})
},
// 封面图片预览
justEnter(event) {
// 鼠标进入时的操作
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment