|
|
|
|
|
|
|
|
import TableAction from '@/components/DataTable/tools/Action.vue' |
|
|
import TableAction from '@/components/DataTable/tools/Action.vue' |
|
|
import TableImage from '@/components/DataTable/tools/Image.vue' |
|
|
import TableImage from '@/components/DataTable/tools/Image.vue' |
|
|
import TableTags from '@/components/DataTable/tools/Tags.vue' |
|
|
import TableTags from '@/components/DataTable/tools/Tags.vue' |
|
|
|
|
|
import TableSwitch from '@/components/DataTable/tools/Switch.vue' |
|
|
import { getUserList } from '@/api/system/user/index.js' |
|
|
import { getUserList } from '@/api/system/user/index.js' |
|
|
import { h, unref, ref } from 'vue' |
|
|
import { h, unref, ref } from 'vue' |
|
|
import { reactive } from 'vue' |
|
|
import { reactive } from 'vue' |
|
|
|
|
|
|
|
|
title: '状态', |
|
|
title: '状态', |
|
|
key: 'status', |
|
|
key: 'status', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
width: 100 |
|
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
render(row) { |
|
|
|
|
|
return h(TableSwitch, { |
|
|
|
|
|
data: row, |
|
|
|
|
|
rowKey: 'status', |
|
|
|
|
|
checkedValue: 1, |
|
|
|
|
|
uncheckedValue: 2, |
|
|
|
|
|
onGetRow: getSwitch.bind(row) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '部门', |
|
|
title: '部门', |
|
|
|
|
|
|
|
|
data.modalShow = true |
|
|
data.modalShow = true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getSwitch(row) { |
|
|
|
|
|
console.log(row) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return { data, loadDataTable, handleUser, rowData, modalTitle } |
|
|
return { data, loadDataTable, handleUser, rowData, modalTitle } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |