修改下拉框数据格式

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

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

Loading…
Cancel
Save