|
|
@@ -63,29 +63,29 @@
|
|
|
</el-button>
|
|
|
<!-- 根据 isNeedRegisterMember 动态显示按钮 -->
|
|
|
<el-button
|
|
|
- v-if="scope.row.isNeedRegisterMember === 0"
|
|
|
+ v-if="scope.row.isNeedRegisterMember === '0'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-open"
|
|
|
- @click="handlePeriodUser(scope.row, 1)"
|
|
|
+ @click="handlePeriodUser(scope.row, '1')"
|
|
|
>开启单独注册会员
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-else-if="scope.row.isNeedRegisterMember === 1"
|
|
|
+ v-else-if="scope.row.isNeedRegisterMember === '1'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-turn-off"
|
|
|
- @click="handlePeriodUser(scope.row, 0)"
|
|
|
+ @click="handlePeriodUser(scope.row, '0')"
|
|
|
>关闭单独注册会员
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- v-else
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-open"
|
|
|
- @click="handlePeriodUser(scope.row, 1)"
|
|
|
- >开启单独注册会员
|
|
|
- </el-button>
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- v-else-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- icon="el-icon-open"-->
|
|
|
+<!-- @click="handlePeriodUser(scope.row, '1')"-->
|
|
|
+<!-- >开启单独注册会员-->
|
|
|
+<!-- </el-button>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -555,7 +555,7 @@ export default {
|
|
|
},
|
|
|
/** 处理单独注册会员开关 */
|
|
|
handlePeriodUser(data, open) {
|
|
|
- const actionText = open === 1 ? '开启' : '关闭';
|
|
|
+ const actionText = open === '1' ? '开启' : '关闭';
|
|
|
this.$confirm(`确定要${actionText}【${data.periodName}】的单独注册会员功能吗?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|