修改文件路径

master
夜笙歌 2 years ago
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>

@ -6,7 +6,7 @@
<el-form-item label="车牌号" prop="internationalization1"> <el-form-item label="车牌号" prop="internationalization1">
<el-input <el-input
v-model="queryParams.internationalization1" v-model="queryParams.internationalization1"
:placeholder=" t('common.pleaseEnter') + t('test.test.internationalization1')" :placeholder=" t('common.pleaseEnter') + '车牌号'"
clearable clearable
style="width: 200px" style="width: 200px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -17,7 +17,7 @@
v-model="queryParams.internationalization2" v-model="queryParams.internationalization2"
type="datetimerange" type="datetimerange"
range-separator="到" range-separator="到"
start-placeholder="开始时间e" start-placeholder="开始时间"
end-placeholder="结束时间" end-placeholder="结束时间"
/> />
</el-form-item> </el-form-item>
@ -80,21 +80,19 @@
<el-table-column label="轮胎号" align="center" prop="internationalization1" <el-table-column label="轮胎号" align="center" prop="internationalization1"
width="150"/> width="150"/>
<el-table-column label="品牌" align="center" prop="internationalization2" <el-table-column label="品牌" align="center" prop="internationalization2"
width="150"/> />
<el-table-column label="型号" align="center" prop="internationalization3" <el-table-column label="型号" align="center" prop="internationalization3"
width="150"/> />
<el-table-column label="t('test.test.internationalization4')" align="center" prop="internationalization4" <el-table-column label="高压报警" align="center" prop="internationalization4"
width="150"/> />
<el-table-column label="t('test.test.internationalization5')" align="center" prop="internationalization5" <el-table-column label="低压报警" align="center" prop="internationalization5"
width="150"/> />
<el-table-column label="t('test.test.internationalization6')" align="center" prop="internationalization6" <el-table-column label="高温报警" align="center" prop="internationalization6"
width="150"/> />
<el-table-column label="t('test.test.internationalization7')" align="center" prop="internationalization7" <el-table-column label="低气压报警" align="center" prop="internationalization7"
width="150"/> />
<el-table-column label="t('test.test.internationalization8')" align="center" prop="internationalization8" <el-table-column label="时间段总里程" align="center" prop="internationalization8"
width="150"/> />
<el-table-column :label="t('test.test.internationalization9')" align="center" prop="internationalization9"
width="150"/>
<el-table-column :label="t('option.option')" align="center" class-name="small-padding fixed-width" fixed="right" <el-table-column :label="t('option.option')" align="center" class-name="small-padding fixed-width" fixed="right"
width="160"> width="160">
<template #default="scope"> <template #default="scope">

Loading…
Cancel
Save