活动加报名预约3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!-- 编辑弹窗 -->
|
||||
<template>
|
||||
<ele-modal
|
||||
width="930px"
|
||||
width="960px"
|
||||
:visible="visible"
|
||||
:append-to-body="true"
|
||||
:close-on-click-modal="true"
|
||||
@@ -88,6 +88,14 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="收货地址" width="100px" align="center">
|
||||
<template v-slot="{ row }">
|
||||
<el-select v-model="row.ifAddress" class="ele-fluid">
|
||||
<el-option label="不需要" value="0" />
|
||||
<el-option label="需要" value="1" />
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
width="70px"
|
||||
@@ -288,6 +296,7 @@
|
||||
tag: '',
|
||||
itemIds: '',
|
||||
ifCode: '0',
|
||||
ifAddress: '0',
|
||||
img: []
|
||||
});
|
||||
},
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="描述:" v-if="item.descrip">
|
||||
<el-input
|
||||
disabled="true"
|
||||
:disabled="true"
|
||||
v-model="item.descrip"
|
||||
:rows="2"
|
||||
type="textarea"
|
||||
|
||||
@@ -47,8 +47,24 @@
|
||||
>
|
||||
详情
|
||||
</el-link>
|
||||
<el-popconfirm
|
||||
v-if="row.useStatus == 1 && !row.ifAddress"
|
||||
class="ele-action"
|
||||
title="确定要通过吗?"
|
||||
@confirm="remove(row, 2)"
|
||||
>
|
||||
<template v-slot:reference>
|
||||
<el-link
|
||||
type="primary"
|
||||
:underline="false"
|
||||
icon="el-icon-finished"
|
||||
>
|
||||
通过
|
||||
</el-link>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
<el-link
|
||||
v-if="row.useStatus == 1"
|
||||
v-if="row.useStatus == 1 && row.ifAddress"
|
||||
type="primary"
|
||||
:underline="false"
|
||||
icon="el-icon-finished"
|
||||
@@ -88,6 +104,7 @@
|
||||
import {
|
||||
getGroupsExchangeDetail,
|
||||
listGroupsExchange,
|
||||
updateGroupsExchangeUseStatus,
|
||||
exportGroupsExchange
|
||||
} from '@/api/sylive/groups-exchange';
|
||||
import { utils, writeFile } from 'xlsx';
|
||||
@@ -202,6 +219,25 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
/* 删除 */
|
||||
remove(row, status) {
|
||||
const loading = this.$loading({ lock: true });
|
||||
updateGroupsExchangeUseStatus({
|
||||
cfId: row.id,
|
||||
type: this.useType,
|
||||
useStatus: status,
|
||||
descrip: ''
|
||||
})
|
||||
.then((msg) => {
|
||||
loading.close();
|
||||
this.$message.success(msg);
|
||||
this.reload();
|
||||
})
|
||||
.catch((e) => {
|
||||
loading.close();
|
||||
this.$message.error(e.message);
|
||||
});
|
||||
},
|
||||
/* 打开导入弹窗 */
|
||||
openImport() {
|
||||
this.showImport = true;
|
||||
|
||||
Reference in New Issue
Block a user