修改下拉框数据格式

master
夜笙歌 2 years ago
parent 18c0474847
commit 3c270c8bff

@ -123,7 +123,7 @@
<el-table-column :label="t('baseDevice.baseDevice.deviceType')" align="center" prop="deviceType"
>
<template #default="scope">
{{ scope.row.state === 0 ? 'GPS接收机' : '胎压传感器' }}
{{ scope.row.deviceType === 0 ? 'GPS接收机' : '胎压传感器' }}
</template>
</el-table-column>
<el-table-column :label="t('baseDevice.baseDevice.state')" align="center" prop="state"
@ -205,11 +205,11 @@ const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'
const {proxy} = getCurrentInstance();
const options = [
{
value: '0',
value: 0,
label: 'GPS接收机',
},
{
value: '1',
value: 1,
label: '胎压传感器',
},
]
@ -241,7 +241,7 @@ const queryParams = ref({
companyCode: undefined,
internetThingsNo: undefined,
simCode: undefined,
deviceType: undefined,
deviceType: 0,
state: 0,
activeTime: undefined,
lastRunTime: undefined,
@ -268,7 +268,7 @@ const rules = {
const form = ref({
id: null,
internetThingsNo: null,
deviceType: null,
deviceType: 0,
state: 0,
});
@ -294,7 +294,7 @@ function reset() {
form.value = {
id: null,
internetThingsNo: null,
deviceType: null,
deviceType: 0,
state: 0,
};
proxy.resetForm("postRef");

Loading…
Cancel
Save