|
@@ -38,7 +38,7 @@
|
|
|
</PageWrapper>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
- import { computed, defineComponent, ref, watch } from 'vue'
|
|
|
+ import { computed, defineComponent, ref } from 'vue'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
import { getManagerInfoById, toggleManagerStatus } from '/@/api/sys/manager'
|
|
|
import { PageWrapper } from '/@/components/Page'
|
|
@@ -64,7 +64,7 @@
|
|
|
const route = useRoute()
|
|
|
const { createMessage } = useMessage()
|
|
|
const loginPassText = computed(() => (info.value?.canLogin === 1 ? '已开启' : '开启'))
|
|
|
- const loginForbidText = computed(() => (info.value?.canLogin === 0 ? '已静止' : '静止'))
|
|
|
+ const loginForbidText = computed(() => (info.value?.canLogin === 0 ? '已禁止' : '禁止'))
|
|
|
async function fetchManagerInfo(id: string) {
|
|
|
const data = await getManagerInfoById({ id })
|
|
|
info.value = data
|
|
@@ -85,9 +85,9 @@
|
|
|
await toggleManagerStatus({ id, canLogin: status })
|
|
|
}
|
|
|
|
|
|
- watch(info, newVal => {
|
|
|
- console.log(newVal)
|
|
|
- })
|
|
|
+ // watch(info, newVal => {
|
|
|
+ // console.log(newVal)
|
|
|
+ // })
|
|
|
function onChange(e: RadioChangeEvent) {
|
|
|
try {
|
|
|
submitManagerStatus(info.value?.id || '', e.target?.value || 0)
|