|
|
@@ -41,8 +41,9 @@ import dataTable from '@/components/DataTable/index.vue' |
|
|
|
import TableAction from '@/components/DataTable/tools/Action.vue' |
|
|
|
import TableImage from '@/components/DataTable/tools/Image.vue' |
|
|
|
import TableTags from '@/components/DataTable/tools/Tags.vue' |
|
|
|
import { getUserList, deleteUser, resetPassword } from '@/api/system/user/index.js' |
|
|
|
import { h, unref, toRefs, ref, reactive } from 'vue' |
|
|
|
import TableSwitch from '@/components/DataTable/tools/Switch.vue' |
|
|
|
import { getUserList } from '@/api/system/user/index.js' |
|
|
|
import { h, unref, ref, toRefs, reactive } from 'vue' |
|
|
|
import UserModal from './components/UserModal.vue' |
|
|
|
import info from './info.js' |
|
|
|
import { NSwitch } from 'naive-ui' |
|
|
@@ -101,10 +102,12 @@ export default { |
|
|
|
align: 'center', |
|
|
|
width: 100, |
|
|
|
render(row) { |
|
|
|
return h(NSwitch, { |
|
|
|
data: row.status, |
|
|
|
value: row.status === 1, |
|
|
|
onChange: setStatus.bind(row) |
|
|
|
return h(TableSwitch, { |
|
|
|
data: row, |
|
|
|
rowKey: 'status', |
|
|
|
checkedValue: 1, |
|
|
|
uncheckedValue: 2, |
|
|
|
onGetRow: setStatus.bind(row) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |