add filterable for select

This commit is contained in:
hofee 2024-09-23 15:36:27 +08:00
parent 8061c1d2a9
commit 5c4a8b7abf
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
<p style="font-size: 16px; color: #464c5b; font-weight: bold;">Select Scene:</p> <p style="font-size: 16px; color: #464c5b; font-weight: bold;">Select Scene:</p>
</Col> </Col>
<Col span="12"> <Col span="12">
<Select v-model="localSceneName" style="width: 100%;" @on-change="handleSceneChange" placeholder="please select..." :disabled="localDisableBtn"> <Select v-model="localSceneName" style="width: 100%;" @on-change="handleSceneChange" placeholder="please select..." :disabled="localDisableBtn" filterable>
<Option v-for="item in sceneNameList" :value="item" :key="item">{{ item }}</Option> <Option v-for="item in sceneNameList" :value="item" :key="item">{{ item }}</Option>
</Select> </Select>
</Col> </Col>

View File

@ -3,7 +3,7 @@ import qs from 'qs';
import axios from 'axios' import axios from 'axios'
import { Message } from 'view-design' import { Message } from 'view-design'
var baseURL = "http://localhost:13333/" // var baseURL = "http://localhost:13333/"
export default { export default {
post(url, params) { post(url, params) {
@ -13,7 +13,7 @@ export default {
return qs.stringify(data) return qs.stringify(data)
} }
]; ];
var res = axios.post(`${baseURL}${url}`, params).then((res) => { var res = axios.post(`${url}`, params).then((res) => {
console.log("res:", res) console.log("res:", res)
if (res.status == 200) { if (res.status == 200) {
if (res.data.exception != undefined && res.data.exception) { if (res.data.exception != undefined && res.data.exception) {
@ -37,7 +37,7 @@ export default {
return JSON.stringify(data) return JSON.stringify(data)
} }
]; ];
var res = axios.post(`${baseURL}${url}`, params).then((res) => { var res = axios.post(`${url}`, params).then((res) => {
console.log("res:", res) console.log("res:", res)
if (res.status == 200) { if (res.status == 200) {
if (res.data.exception != undefined && res.data.exception) { if (res.data.exception != undefined && res.data.exception) {
@ -64,7 +64,7 @@ export default {
return data; return data;
} }
]; ];
var res = axios.post(`${baseURL}${url}`, params).then((res) => { var res = axios.post(`${url}`, params).then((res) => {
console.log("res:", res) console.log("res:", res)
if (res.status == 200) { if (res.status == 200) {
if (res.data.exception != undefined && res.data.exception) { if (res.data.exception != undefined && res.data.exception) {