修改文件路径
parent
17672b8cad
commit
a1cef7add3
@ -0,0 +1,45 @@
|
||||
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询轮胎基础信息列表
|
||||
export function listTest(query) {
|
||||
return request({
|
||||
url: '/test/test/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询轮胎基础信息详细
|
||||
export function getTest(id) {
|
||||
return request({
|
||||
url: '/test/test/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增轮胎基础信息
|
||||
export function addTest(data) {
|
||||
return request({
|
||||
url: '/test/test',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改轮胎基础信息
|
||||
export function updateTest(data) {
|
||||
return request({
|
||||
url: '/test/test',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除轮胎基础信息
|
||||
export function delTest(id) {
|
||||
return request({
|
||||
url: '/test/test/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<el-form style="margin-top: 24px" ref="postRef" :label-width=" locale ? '250px':'300px'" :model="form" :rules="rules">
|
||||
<el-form-item v-if="false" prop="id">
|
||||
<el-input v-model="form.id"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="第一轴高气压阀值" prop="internationalization1">
|
||||
<el-input-number v-model="form.internationalization1" :step="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="第一轴低气压阀值" prop="internationalization2">
|
||||
<el-input-number v-model="form.internationalization2" :step="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其他轴高气压阀值" prop="internationalization3">
|
||||
<el-input-number v-model="form.internationalization3" :step="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其他轴低气压阀值" prop="internationalization4">
|
||||
<el-input-number v-model="form.internationalization4" :step="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="高温阀值" prop="internationalization5">
|
||||
<el-input-number v-model="form.internationalization5" :step="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设置生效时间" prop="internationalization6">
|
||||
<el-date-picker
|
||||
v-model="form.internationalization6"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="失败无限定时推送" prop="internationalization7">
|
||||
<el-switch v-model="form.internationalization7" />
|
||||
</el-form-item>
|
||||
<el-form-item label="选择车辆" prop="internationalization8">
|
||||
<el-select
|
||||
filterable
|
||||
:remote-method="remoteMethod"
|
||||
v-model="form.internationalization8"
|
||||
class="m-2"
|
||||
placeholder="Select" >
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label=" ">
|
||||
<el-button icon="Search" type="primary" @click="handleQuery">{{ t('option.search') }}</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">{{ t('option.reset') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script name="Test" setup>
|
||||
import {addTest, delTest, getTest, listTest, updateTest} from "@/api/realTimeMonitoring/alarmSendingSettings";
|
||||
|
||||
import {useI18n} from 'vue-i18n';
|
||||
import Cookies from "js-cookie";
|
||||
|
||||
const {t} = useI18n();
|
||||
|
||||
const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'
|
||||
const {proxy} = getCurrentInstance();
|
||||
|
||||
const remoteMethod = (e) => {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
const options = [
|
||||
{
|
||||
value: 'Option1',
|
||||
label: 'Option1',
|
||||
},
|
||||
{
|
||||
value: 'Option2',
|
||||
label: 'Option2',
|
||||
},
|
||||
{
|
||||
value: 'Option3',
|
||||
label: 'Option3',
|
||||
},
|
||||
{
|
||||
value: 'Option4',
|
||||
label: 'Option4',
|
||||
},
|
||||
{
|
||||
value: 'Option5',
|
||||
label: 'Option5',
|
||||
},
|
||||
]
|
||||
const form = ref({
|
||||
internationalization1:10,
|
||||
internationalization2:10,
|
||||
internationalization3:10,
|
||||
internationalization4:10,
|
||||
internationalization5:10,
|
||||
internationalization6:'2023-3-3',
|
||||
internationalization7:true,
|
||||
internationalization8:'Option4',
|
||||
})
|
||||
</script>
|
Loading…
Reference in New Issue