u
This commit is contained in:
1 parent
1217f7df5f
commit
6e59e8be45
42 files changed
+1256
-430
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyListItem } from '@/types/company'
|
||||
import type { Company } from '@/types/company'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
@@ -18,7 +18,7 @@ const page = reactive<Pagination>({
|
||||
|
||||
const loading = ref<boolean>(true)
|
||||
|
||||
const companyList = ref<CompanyListItem[]>([])
|
||||
const companyList = ref<Company[]>([])
|
||||
|
||||
onMounted(() => {
|
||||
getCompanyList()
|
||||
@@ -50,7 +50,7 @@ function getCompanyList() {
|
||||
})
|
||||
}
|
||||
|
||||
function toDetail(data: CompanyListItem) {
|
||||
function toDetail(data: Company) {
|
||||
router.push({
|
||||
path: '/company/detail',
|
||||
query: {
|
||||
@@ -137,6 +137,7 @@ function toDetail(data: CompanyListItem) {
|
||||
layout="prev, pager, next"
|
||||
background
|
||||
size="large"
|
||||
@change="getCompanyList()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user