|
@@ -135,12 +135,12 @@ const queryList = async () => {
|
|
|
const { options, searchParams } = tableOpts
|
|
|
options.loading = true
|
|
|
try {
|
|
|
- const { records: list, total } = await department.departmentPageApi(searchParams)
|
|
|
- tableOpts.total = total
|
|
|
+ const list = await department.departmentPageApi(searchParams)
|
|
|
+ // tableOpts.total = total
|
|
|
tableOpts.list = list
|
|
|
} catch {
|
|
|
console.log('获取列表数据失败')
|
|
|
- tableOpts.total = 0
|
|
|
+ // tableOpts.total = 0
|
|
|
tableOpts.list = []
|
|
|
options.loading = false // 更改加载中的 loading值
|
|
|
} finally {
|
|
@@ -158,7 +158,7 @@ const columns = [
|
|
|
{
|
|
|
prop: 'name',
|
|
|
label: '部门名称',
|
|
|
- minWidth: 80
|
|
|
+ minWidth: 250
|
|
|
},
|
|
|
{
|
|
|
prop: 'code',
|
|
@@ -192,7 +192,7 @@ const columns = [
|
|
|
{
|
|
|
prop: 'updateTime',
|
|
|
label: '修改时间',
|
|
|
- minWidth: 126
|
|
|
+ minWidth: 150
|
|
|
},
|
|
|
{
|
|
|
prop: 'createBy',
|
|
@@ -202,7 +202,7 @@ const columns = [
|
|
|
{
|
|
|
prop: 'createTime',
|
|
|
label: '创建时间',
|
|
|
- minWidth: 126
|
|
|
+ minWidth: 150
|
|
|
},
|
|
|
{
|
|
|
prop: 'action',
|
|
@@ -219,7 +219,7 @@ const { searchData, tableOpts, checkedColumns, activeColumns, curSelectionRows,
|
|
|
{
|
|
|
options: {
|
|
|
showIndex: false,
|
|
|
- treeProps: { children: 'children', hasChildren: 'hasChildren' },
|
|
|
+ // treeProps: { children: 'children', hasChildren: 'hasChildren' },
|
|
|
onSelectionChange: selectionChange
|
|
|
},
|
|
|
// 需要展示的列
|