修改设备类型选择

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

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

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

Loading…
Cancel
Save