bug
This commit is contained in:
parent
50a2c9c9a0
commit
5a3f811a95
@ -51,6 +51,16 @@ export function updateActiveNewlyweds(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 修改新人有礼活动
|
||||||
|
export function editActiveNewlyweds(data) {
|
||||||
|
return request({
|
||||||
|
url: '/business/marketingActivity/activeNewlyweds/edit',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 删除新人有礼活动
|
// 删除新人有礼活动
|
||||||
export function delActiveNewlyweds(id) {
|
export function delActiveNewlyweds(id) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -504,10 +504,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listActiveNewlyweds, getActiveNewlyweds, delActiveNewlyweds, addActiveNewlyweds, updateActiveNewlyweds,huiActiveNewlyweds } from "@/api/EventMarketing/activeNewlyweds";
|
import {
|
||||||
|
listActiveNewlyweds,
|
||||||
|
getActiveNewlyweds,
|
||||||
|
delActiveNewlyweds,
|
||||||
|
addActiveNewlyweds,
|
||||||
|
updateActiveNewlyweds,
|
||||||
|
huiActiveNewlyweds,
|
||||||
|
editActiveNewlyweds
|
||||||
|
} from "@/api/EventMarketing/activeNewlyweds";
|
||||||
import {getoilName, listExchange, listFavorable, looklook, looklooklook} from "@/api/EventMarketing/activeConsumption";
|
import {getoilName, listExchange, listFavorable, looklook, looklooklook} from "@/api/EventMarketing/activeConsumption";
|
||||||
import QRCode from "qrcodejs2";
|
import QRCode from "qrcodejs2";
|
||||||
import {delActiveFullminus, getActiveFullminus, updateActiveFullminus} from "@/api/EventMarketing/activeFullminus";
|
import {
|
||||||
|
delActiveFullminus,
|
||||||
|
editActiveFullminus,
|
||||||
|
getActiveFullminus,
|
||||||
|
updateActiveFullminus
|
||||||
|
} from "@/api/EventMarketing/activeFullminus";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ActiveNewlyweds",
|
name: "ActiveNewlyweds",
|
||||||
@ -887,17 +900,24 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeletexia(row){
|
handleDeletexia(row){
|
||||||
getActiveNewlyweds(row.id).then(response => {
|
// getActiveNewlyweds(row.id).then(response => {
|
||||||
|
//
|
||||||
let data = response.data
|
// let data = response.data
|
||||||
data.isonline = 1
|
// data.isonline = 1
|
||||||
updateActiveNewlyweds(data).then(response => {
|
// updateActiveNewlyweds(data).then(response => {
|
||||||
|
// this.$modal.msgSuccess("下线成功");
|
||||||
|
// this.open = false;
|
||||||
|
// this.getList();
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// });
|
||||||
|
this.$modal.confirm('确定下线此条新人有礼活动信息?').then(function() {
|
||||||
|
return editActiveNewlyweds({id:row.id,isonline:1});
|
||||||
|
}).then(() => {
|
||||||
this.$modal.msgSuccess("下线成功");
|
this.$modal.msgSuccess("下线成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
}).catch(() => {});
|
||||||
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
// this.form.activeNewlywedsChildList
|
// this.form.activeNewlywedsChildList
|
||||||
@ -949,7 +969,7 @@ export default {
|
|||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
this.$modal.confirm('是否确认删除新人有礼活动编号为"' + ids + '"的数据项?').then(function() {
|
this.$modal.confirm('是否确认删除此条新人有礼活动信息?').then(function() {
|
||||||
return delActiveNewlyweds(ids);
|
return delActiveNewlyweds(ids);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -1098,7 +1098,7 @@ export default {
|
|||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() {
|
this.$modal.confirm('是否确认删除此条一键发券活动的信息?').then(function() {
|
||||||
return deleteCardFavorable(ids);
|
return deleteCardFavorable(ids);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新人有礼活动(ActiveNewlyweds)表控制层
|
* 新人有礼活动(ActiveNewlyweds)表控制层
|
||||||
@ -91,6 +92,19 @@ public class ActiveNewlywedsController extends BaseController {
|
|||||||
return getSuccessResult(this.activeNewlywedsService.updateOneById(activeNewlywedsDTO));
|
return getSuccessResult(this.activeNewlywedsService.updateOneById(activeNewlywedsDTO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param map 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/edit")
|
||||||
|
public ResponseObject updateIsOnline(@RequestBody Map<String,String> map) {
|
||||||
|
Integer id = Integer.valueOf(map.get("id"));
|
||||||
|
String isonline = map.get("isonline");
|
||||||
|
return getSuccessResult(this.activeNewlywedsService.updateIsonline(id,isonline));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除数据
|
* 删除数据
|
||||||
*
|
*
|
||||||
|
@ -51,6 +51,14 @@ public interface ActiveNewlywedsService extends IService<ActiveNewlyweds> {
|
|||||||
*/
|
*/
|
||||||
Boolean updateOneById(ActiveNewlywedsDTO activeNewlywedsDTO);
|
Boolean updateOneById(ActiveNewlywedsDTO activeNewlywedsDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改下线
|
||||||
|
* @param id
|
||||||
|
* @param isonline
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Boolean updateIsonline(Integer id,String isonline);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询单条数据(小程序端)
|
* 查询单条数据(小程序端)
|
||||||
* @return
|
* @return
|
||||||
|
@ -473,6 +473,18 @@ public class ActiveNewlywedsServiceImpl extends ServiceImpl<ActiveNewlywedsMappe
|
|||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean updateIsonline(Integer id, String isonline) {
|
||||||
|
int row = 0;
|
||||||
|
ActiveNewlyweds activeNewlyweds = baseMapper.selectById(id);
|
||||||
|
if (ObjectUtil.isNotEmpty(activeNewlyweds)){
|
||||||
|
activeNewlyweds.setStatus("2");
|
||||||
|
activeNewlyweds.setIsonline(isonline);
|
||||||
|
row = baseMapper.updateById(activeNewlyweds);
|
||||||
|
}
|
||||||
|
return row == 1;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ActiveNewlywedsAppletVO> selectApplet(ActiveConsumption activeConsumption) {
|
public List<ActiveNewlywedsAppletVO> selectApplet(ActiveConsumption activeConsumption) {
|
||||||
ArrayList<ActiveNewlywedsAppletVO> arrayList = new ArrayList<>();
|
ArrayList<ActiveNewlywedsAppletVO> arrayList = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user