优化搜索接收器

master
夜笙歌 2 years ago
parent 324251864c
commit e8a59c6b13

@ -49,3 +49,11 @@ export function getCarQueueList() {
method: 'get' method: 'get'
}) })
} }
// 获取接收器
export function getBindList(params) {
return request({
url: '/basecar/car/getDeviceList',
method: 'get',
params
})
}

@ -162,7 +162,7 @@
</template> </template>
<script name="basetyre" setup> <script name="basetyre" setup>
import {addBaseCar, delBaseCar, getBaseCar, listBaseCar, updateBaseCar, getCarQueueList} from "@/api/basecar/car"; import {addBaseCar, delBaseCar, getBaseCar, listBaseCar, updateBaseCar, getCarQueueList,getBindList} from "@/api/basecar/car";
import {useI18n} from 'vue-i18n'; import {useI18n} from 'vue-i18n';
import Cookies from "js-cookie"; import Cookies from "js-cookie";
@ -278,13 +278,12 @@ function handleSelectionChange(selection) {
// //
const bindHandleSelectionChange = (selection) => { const bindHandleSelectionChange = (selection) => {
bindValue.value = selection bindValue.value = selection
console.log(bindValue.value)
} }
// //
const bindSearch = () => { const bindSearch = () => {
console.log(bindInput.value) let params = {id:bindInput.value}
listBaseCar(queryParams.value).then(response => { getBindList(params).then(response => {
bindList.value = response.rows; bindList.value = response.rows;
}) })
} }

Loading…
Cancel
Save