抽奖竞拍;市场管理;教师管理
This commit is contained in:
@@ -192,8 +192,15 @@ async function saveData() {
|
||||
const params = {
|
||||
...auctionForm.value
|
||||
}
|
||||
let func = ''
|
||||
if(params.id) { // 编辑
|
||||
func = 'editAucitonData'
|
||||
}
|
||||
else{ // 新增
|
||||
func = 'addAucitonData'
|
||||
}
|
||||
// console.log(params);return
|
||||
const res = await api.addAucitonData(params)
|
||||
const res = await api[func](params)
|
||||
if(res.code === 0) {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
@@ -404,7 +411,7 @@ function fileChange(index) {
|
||||
<template #footer>
|
||||
<div style="flex: auto">
|
||||
<el-button @click="cancelClick">取消</el-button>
|
||||
<el-button type="primary" @click="confirmClick">立即添加</el-button>
|
||||
<el-button type="primary" @click="confirmClick">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-drawer>
|
||||
|
||||
Reference in New Issue
Block a user