|
@@ -131,7 +131,7 @@
|
|
@ok="evSwitchStatus(record)"
|
|
@ok="evSwitchStatus(record)"
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
- <a-switch v-model="record.state" style="pointer-events: none" :checked-value="1" :unchecked-value="0" />
|
|
|
|
|
|
+ <a-switch v-model="record.state" style="pointer-events: none" checked-value="1" unchecked-value="0" />
|
|
</div>
|
|
</div>
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
</template>
|
|
</template>
|
|
@@ -141,8 +141,8 @@
|
|
v-model="record.status"
|
|
v-model="record.status"
|
|
disabled
|
|
disabled
|
|
style="pointer-events: none"
|
|
style="pointer-events: none"
|
|
- :checked-value="0"
|
|
|
|
- :unchecked-value="1"
|
|
|
|
|
|
+ checked-value="0"
|
|
|
|
+ unchecked-value="1"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
<template #id="{ record }">
|
|
<template #id="{ record }">
|
|
@@ -199,7 +199,7 @@ const fnTreeFilter = (data, ids) => {
|
|
const evSwitchStatus = async (e) =>{
|
|
const evSwitchStatus = async (e) =>{
|
|
await updateUserState({
|
|
await updateUserState({
|
|
id:e.id,
|
|
id:e.id,
|
|
- state: e.state == 1 ? 0 : 1,
|
|
|
|
|
|
+ state: e.state == "1" ? "0" : "1",
|
|
})
|
|
})
|
|
Message.success({
|
|
Message.success({
|
|
content: '操作成功',
|
|
content: '操作成功',
|