修改bug
parent
5d8ea02811
commit
a138db4ecf
|
|
@ -202,7 +202,7 @@ export const accountFormSchema: FormSchema[] = [
|
||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const res = await getKeywords({ key: 'device-supplier' })
|
const res = await getKeywords({ type_key: 'device-supplier' })
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
|
|
@ -216,7 +216,7 @@ export const accountFormSchema: FormSchema[] = [
|
||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const res = await getKeywords({ key: 'device-project' })
|
const res = await getKeywords({ type_key: 'device-project' })
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<Box title="气象数据">
|
<Box title="气象数据">
|
||||||
<template #center>
|
<template #center>
|
||||||
<!-- <div
|
<div
|
||||||
class="text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold"
|
class="text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold"
|
||||||
>
|
>
|
||||||
{{ currentTabValue }}
|
{{ currentTabValue }}
|
||||||
</div> -->
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<div class="py-10px relative" v-if="tabList.length > 1">
|
<div class="py-10px relative" v-if="tabList.length > 1">
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@
|
||||||
function onMenuClick({ key }) {
|
function onMenuClick({ key }) {
|
||||||
if (Data.currentTab == key) return
|
if (Data.currentTab == key) return
|
||||||
Data.currentTab = key
|
Data.currentTab = key
|
||||||
|
getData()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTabs() {
|
async function getTabs() {
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@
|
||||||
function onMenuClick({ key }) {
|
function onMenuClick({ key }) {
|
||||||
if (Data.currentTab == key) return
|
if (Data.currentTab == key) return
|
||||||
Data.currentTab = key
|
Data.currentTab = key
|
||||||
|
getData()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTabs() {
|
async function getTabs() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue