修改设备类型选择

master
夜笙歌 2 years ago
parent 82e1c27683
commit fd5dc8934e

@ -32,13 +32,14 @@
</el-select>
</el-form-item>
<el-form-item :label="t('baseDevice.baseDevice.state')" prop="state">
<el-input
v-model="queryParams.state"
:placeholder="t('common.pleaseEnter') + t('baseDevice.baseDevice.state')"
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
<el-select clearable v-model="queryParams.state" :placeholder="t('common.PleaseSelect')" class="m-2">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item :label="t('baseDevice.baseDevice.activeTime')" prop="activeTime">
<el-date-picker
@ -213,6 +214,16 @@ const options = [
label: '胎压传感器',
},
]
const options1 = [
{
value: 0,
label: '启用',
},
{
value: 1,
label: '关闭',
},
]
//
const postList = ref([]);
@ -242,7 +253,7 @@ const queryParams = ref({
internetThingsNo: undefined,
simCode: undefined,
deviceType: null,
state: 0,
state: null,
activeTime: undefined,
lastRunTime: undefined,
isDelete: undefined,

@ -31,8 +31,8 @@ export default defineConfig(({mode, command}) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
target: 'http://10.11.41.249:8080',
// target: 'http://localhost:8080',
// target: 'http://10.11.41.249:8080',
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}

Loading…
Cancel
Save