This commit is contained in:
@QQNZX 2023-11-16 18:39:06 +08:00
parent dde0c7d4ee
commit bbc0a08162

View File

@ -88,8 +88,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDeletexia(scope.row)"
v-if="scope.row.isonline == 0"
>下线</el-button>
</template>
</el-table-column>
@ -428,6 +434,7 @@
import { listActiveNewlyweds, getActiveNewlyweds, delActiveNewlyweds, addActiveNewlyweds, updateActiveNewlyweds } from "@/api/EventMarketing/activeNewlyweds";
import {listExchange, listFavorable} from "@/api/EventMarketing/activeConsumption";
import QRCode from "qrcodejs2";
import {getActiveFullminus, updateActiveFullminus} from "@/api/EventMarketing/activeFullminus";
export default {
name: "ActiveNewlyweds",
@ -744,6 +751,19 @@ export default {
this.title = "修改新人有礼活动";
});
},
handleDeletexia(row){
getActiveNewlyweds(row.id).then(response => {
let data = response.data
data.isonline = 1
updateActiveNewlyweds(data).then(response => {
this.$modal.msgSuccess("下线成功");
this.open = false;
this.getList();
});
});
},
/** 提交按钮 */
submitForm() {
// this.form.activeNewlywedsChildList