|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="table_item">
|
|
<div class="table_item">
|
|
- <s-table ref="tableRef" :columns="columns" :data="loadData" :row-key="(record) => record.code">
|
|
|
|
|
|
+ <s-table ref="tableRef" :columns="columns" :data="loadData" :row-key="(record) => record.id">
|
|
<template #operator>
|
|
<template #operator>
|
|
<!-- 搜索区域 -->
|
|
<!-- 搜索区域 -->
|
|
<div class="table-search">
|
|
<div class="table-search">
|
|
@@ -57,6 +57,7 @@
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteData(record)">
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteData(record)">
|
|
<a-button type="link" danger size="small">删除</a-button>
|
|
<a-button type="link" danger size="small">删除</a-button>
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
|
|
+ <a-button type="link" size="small" @click="configformRef.onOpen(record)">区域配置</a-button>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<!-- <template #expandedRowRender="{ record }">
|
|
<!-- <template #expandedRowRender="{ record }">
|
|
@@ -128,6 +129,7 @@
|
|
</template> -->
|
|
</template> -->
|
|
</s-table>
|
|
</s-table>
|
|
<Form ref="formRef" @successful="tableRef.refresh(true)" />
|
|
<Form ref="formRef" @successful="tableRef.refresh(true)" />
|
|
|
|
+ <configForm ref="configformRef" @successful="tableRef.refresh(true)" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -135,7 +137,10 @@
|
|
import tool from '@/utils/tool'
|
|
import tool from '@/utils/tool'
|
|
import setupApi from '@/api/basicset/setupApi'
|
|
import setupApi from '@/api/basicset/setupApi'
|
|
import Form from './form.vue'
|
|
import Form from './form.vue'
|
|
|
|
+ import configForm from './configForm.vue'
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
|
|
+ const configformRef = ref()
|
|
|
|
+
|
|
const searchFormRef = ref()
|
|
const searchFormRef = ref()
|
|
const searchFormState = ref({})
|
|
const searchFormState = ref({})
|
|
const tableRef = ref()
|
|
const tableRef = ref()
|
|
@@ -175,13 +180,12 @@
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'action',
|
|
dataIndex: 'action',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 150
|
|
|
|
|
|
+ width: 200
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
|
|
const loadData = (parameter) => {
|
|
const loadData = (parameter) => {
|
|
return setupApi.setupPage(Object.assign(parameter, searchFormState.value)).then((res) => {
|
|
return setupApi.setupPage(Object.assign(parameter, searchFormState.value)).then((res) => {
|
|
- console.log(res, 'x')
|
|
|
|
return res
|
|
return res
|
|
})
|
|
})
|
|
}
|
|
}
|