This commit is contained in:
Tony 2024-01-03 10:44:54 +08:00
commit 5277071516
6 changed files with 398 additions and 266 deletions

View File

@ -1,35 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
<!-- <el-form-item label="" prop="reserveOne">--> <el-form-item label="轧辊编号" prop="reserveEight">
<!-- <el-input--> <el-select v-model="queryParams.reserveTwo" placeholder="请选择轧辊编号" clearable>
<!-- v-model="queryParams.reserveOne"--> <el-option
<!-- placeholder="请输入"--> v-for="dict in dict.type.tiewire_device_line_name"
<!-- clearable--> :key="dict.value"
<!-- @keyup.enter.native="handleQuery"--> :label="dict.label"
<!-- />--> :value="dict.value"
<!-- </el-form-item>--> ></el-option>
<!-- <el-form-item label="" prop="reserveTwo">--> </el-select>
<!-- <el-input--> </el-form-item>
<!-- v-model="queryParams.reserveTwo"--> <el-form-item label="采集数据名称" prop="reserveThree">
<!-- placeholder="请输入"--> <el-select v-model="queryParams.reserveThree" placeholder="请选择采集数据名称" clearable>
<!-- clearable--> <el-option
<!-- @keyup.enter.native="handleQuery"--> v-for="dict in dict.type.tiewire_device_line_type"
<!-- />--> :key="dict.value"
<!-- </el-form-item>--> :label="dict.label"
<!-- <el-form-item label="" prop="reserveThree">--> :value="dict.value"
<!-- <el-input--> ></el-option>
<!-- v-model="queryParams.reserveThree"--> </el-select>
<!-- placeholder="请输入"--> </el-form-item>
<!-- clearable--> <el-form-item>
<!-- @keyup.enter.native="handleQuery"--> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<!-- />--> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item>--> </el-form>
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,19 +79,25 @@
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="识别编号" align="center" prop="reserveOne"/> <!-- <el-table-column label="轧辊编号" align="center" prop="reserveOne"/>-->
<el-table-column label="识别类型" align="center" prop="reserveTwo"/> <el-table-column label="轧辊编号" align="center" prop="reserveTwo">
<el-table-column label="识别例图" align="center" prop="reserveThree">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.reserveThree" :width="50" :height="50"/> <dict-tag :options="dict.type.tiewire_device_line_name" :value="scope.row.reserveTwo"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行为状态" align="center" prop="reserveFour"/> <el-table-column label="采集数据名称" align="center" prop="reserveThree">
<el-table-column label="是否报警" align="center" prop="reserveFive"/>
<el-table-column label="上传人" align="center" prop="reserveSix"/>
<el-table-column label="上传时间" align="center" prop="reserveSeven">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveSeven, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <dict-tag :options="dict.type.tiewire_device_line_type" :value="scope.row.reserveThree"/>
</template>
</el-table-column>
<el-table-column label="湿度测量" align="center" prop="reserveFour"/>
<el-table-column label="湿度标准" align="center" prop="reserveFive"/>
<el-table-column label="湿度来源" align="center" prop="reserveSix"/>
<el-table-column label="影响" align="center" prop="reserveSeven"/>
<el-table-column label="措施/建议" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="上传时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -131,24 +133,45 @@
<!-- 添加或修改AI识别算法开发对话框 --> <!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="识别类型" prop="reserveTwo"> <el-form-item label="轧辊编号" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入识别类型"/> <!-- <el-input v-model="form.reserveTwo" placeholder="请输入轧辊编号"/>-->
<el-select :disabled="disabled" v-model="form.reserveTwo" placeholder="请选择轧辊编号" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_name"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="识别例图" prop="reserveThree"> <el-form-item label="采集数据名称" prop="reserveThree">
<image-upload v-model="form.reserveThree"/> <el-select :disabled="disabled" v-model="form.reserveThree" placeholder="请选择采集数据名称" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="行为状态" prop="reserveFour"> <el-form-item label="湿度测量" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入行为状态"/> <el-input v-model="form.reserveFour" placeholder="请输入湿度测量"/>
</el-form-item> </el-form-item>
<el-form-item label="是否报警" prop="reserveFive"> <el-form-item label="湿度标准参数" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入是否报警"/> <el-input v-model="form.reserveFive" placeholder="请输入湿度标准参数"/>
</el-form-item> </el-form-item>
<el-form-item label="上传人" prop="reserveSix"> <el-form-item label="湿度来源" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入上传人"/> <el-input v-model="form.reserveSix" placeholder="请输入湿度来源"/>
</el-form-item> </el-form-item>
<el-form-item label="上传时间" prop="reserveSeven"> <el-form-item label="影响" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入影响"/>
</el-form-item>
<el-form-item label="措施/建议" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入措施/建议"/>
</el-form-item>
<el-form-item label="上传时间" prop="reserveNine">
<el-date-picker <el-date-picker
v-model="form.reserveSeven" v-model="form.reserveNine"
type="datetime" type="datetime"
placeholder="请选择时间" placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss "> format="yyyy-MM-dd HH:mm:ss ">
@ -174,6 +197,7 @@ import {
export default { export default {
name: "GodUniversalElectricMeter", name: "GodUniversalElectricMeter",
dicts: ['tiewire_device_line_name', 'tiewire_device_line_type'],
data() { data() {
return { return {
// //
@ -213,7 +237,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'humidityData',
}, },
// //
form: {}, form: {},
@ -258,7 +282,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'humidityData',
remark: null remark: null
}; };
this.resetForm("form"); this.resetForm("form");

View File

@ -1,35 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<!-- <el-form-item label="" prop="reserveOne">--> <el-form-item label="轧辊编号" prop="reserveEight">
<!-- <el-input--> <el-select v-model="queryParams.reserveTwo" placeholder="请选择轧辊编号" clearable>
<!-- v-model="queryParams.reserveOne"--> <el-option
<!-- placeholder="请输入"--> v-for="dict in dict.type.tiewire_device_line_name"
<!-- clearable--> :key="dict.value"
<!-- @keyup.enter.native="handleQuery"--> :label="dict.label"
<!-- />--> :value="dict.value"
<!-- </el-form-item>--> ></el-option>
<!-- <el-form-item label="" prop="reserveTwo">--> </el-select>
<!-- <el-input--> </el-form-item>
<!-- v-model="queryParams.reserveTwo"--> <el-form-item label="采集数据名称" prop="reserveThree">
<!-- placeholder="请输入"--> <el-select v-model="queryParams.reserveThree" placeholder="请选择采集数据名称" clearable>
<!-- clearable--> <el-option
<!-- @keyup.enter.native="handleQuery"--> v-for="dict in dict.type.tiewire_device_line_type"
<!-- />--> :key="dict.value"
<!-- </el-form-item>--> :label="dict.label"
<!-- <el-form-item label="" prop="reserveThree">--> :value="dict.value"
<!-- <el-input--> ></el-option>
<!-- v-model="queryParams.reserveThree"--> </el-select>
<!-- placeholder="请输入"--> </el-form-item>
<!-- clearable--> <el-form-item>
<!-- @keyup.enter.native="handleQuery"--> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<!-- />--> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item>--> </el-form>
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,19 +79,25 @@
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="识别编号" align="center" prop="reserveOne"/> <!-- <el-table-column label="轧辊编号" align="center" prop="reserveOne"/>-->
<el-table-column label="识别类型" align="center" prop="reserveTwo"/> <el-table-column label="轧辊编号" align="center" prop="reserveTwo">
<el-table-column label="识别例图" align="center" prop="reserveThree">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.reserveThree" :width="50" :height="50"/> <dict-tag :options="dict.type.tiewire_device_line_name" :value="scope.row.reserveTwo"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行为状态" align="center" prop="reserveFour"/> <el-table-column label="采集数据名称" align="center" prop="reserveThree">
<el-table-column label="是否报警" align="center" prop="reserveFive"/>
<el-table-column label="上传人" align="center" prop="reserveSix"/>
<el-table-column label="上传时间" align="center" prop="reserveSeven">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveSeven, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <dict-tag :options="dict.type.tiewire_device_line_type" :value="scope.row.reserveThree"/>
</template>
</el-table-column>
<el-table-column label="轧辊车速" align="center" prop="reserveFour"/>
<el-table-column label="轧辊负载" align="center" prop="reserveFive"/>
<el-table-column label="电流" align="center" prop="reserveSix"/>
<el-table-column label="扭矩" align="center" prop="reserveSeven"/>
<el-table-column label="建议/分析" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="上传时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -131,24 +133,45 @@
<!-- 添加或修改AI识别算法开发对话框 --> <!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="识别类型" prop="reserveTwo"> <el-form-item label="轧辊编号" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入识别类型"/> <!-- <el-input v-model="form.reserveTwo" placeholder="请输入轧辊编号"/>-->
<el-select :disabled="disabled" v-model="form.reserveTwo" placeholder="请选择轧辊编号" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_name"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="识别例图" prop="reserveThree"> <el-form-item label="采集数据名称" prop="reserveThree">
<image-upload v-model="form.reserveThree"/> <el-select :disabled="disabled" v-model="form.reserveThree" placeholder="请选择采集数据名称" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="行为状态" prop="reserveFour"> <el-form-item label="轧辊车速" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入行为状态"/> <el-input v-model="form.reserveFour" placeholder="请输入轧辊车速"/>
</el-form-item> </el-form-item>
<el-form-item label="是否报警" prop="reserveFive"> <el-form-item label="轧辊负载" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入是否报警"/> <el-input v-model="form.reserveFive" placeholder="请输入轧辊负载"/>
</el-form-item> </el-form-item>
<el-form-item label="上传人" prop="reserveSix"> <el-form-item label="电流" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入上传人"/> <el-input v-model="form.reserveSix" placeholder="请输入电流"/>
</el-form-item> </el-form-item>
<el-form-item label="上传时间" prop="reserveSeven"> <el-form-item label="扭矩" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入扭矩"/>
</el-form-item>
<el-form-item label="建议/分析" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入建议/分析"/>
</el-form-item>
<el-form-item label="上传时间" prop="reserveNine">
<el-date-picker <el-date-picker
v-model="form.reserveSeven" v-model="form.reserveNine"
type="datetime" type="datetime"
placeholder="请选择时间" placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss "> format="yyyy-MM-dd HH:mm:ss ">
@ -174,6 +197,7 @@ import {
export default { export default {
name: "GodUniversalElectricMeter", name: "GodUniversalElectricMeter",
dicts: ['tiewire_device_line_name', 'tiewire_device_line_type'],
data() { data() {
return { return {
// //
@ -213,7 +237,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'load',
}, },
// //
form: {}, form: {},
@ -258,7 +282,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'load',
remark: null remark: null
}; };
this.resetForm("form"); this.resetForm("form");

View File

@ -1,35 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
<!-- <el-form-item label="" prop="reserveOne">--> <el-form-item label="轧辊编号" prop="reserveEight">
<!-- <el-input--> <el-select v-model="queryParams.reserveTwo" placeholder="请选择轧辊编号" clearable>
<!-- v-model="queryParams.reserveOne"--> <el-option
<!-- placeholder="请输入"--> v-for="dict in dict.type.tiewire_device_line_name"
<!-- clearable--> :key="dict.value"
<!-- @keyup.enter.native="handleQuery"--> :label="dict.label"
<!-- />--> :value="dict.value"
<!-- </el-form-item>--> ></el-option>
<!-- <el-form-item label="" prop="reserveTwo">--> </el-select>
<!-- <el-input--> </el-form-item>
<!-- v-model="queryParams.reserveTwo"--> <el-form-item label="采集数据名称" prop="reserveThree">
<!-- placeholder="请输入"--> <el-select v-model="queryParams.reserveThree" placeholder="请选择采集数据名称" clearable>
<!-- clearable--> <el-option
<!-- @keyup.enter.native="handleQuery"--> v-for="dict in dict.type.tiewire_device_line_type"
<!-- />--> :key="dict.value"
<!-- </el-form-item>--> :label="dict.label"
<!-- <el-form-item label="" prop="reserveThree">--> :value="dict.value"
<!-- <el-input--> ></el-option>
<!-- v-model="queryParams.reserveThree"--> </el-select>
<!-- placeholder="请输入"--> </el-form-item>
<!-- clearable--> <el-form-item>
<!-- @keyup.enter.native="handleQuery"--> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<!-- />--> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item>--> </el-form>
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,19 +79,25 @@
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="识别编号" align="center" prop="reserveOne"/> <!-- <el-table-column label="轧辊编号" align="center" prop="reserveOne"/>-->
<el-table-column label="识别类型" align="center" prop="reserveTwo"/> <el-table-column label="轧辊编号" align="center" prop="reserveTwo">
<el-table-column label="识别例图" align="center" prop="reserveThree">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.reserveThree" :width="50" :height="50"/> <dict-tag :options="dict.type.tiewire_device_line_name" :value="scope.row.reserveTwo"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行为状态" align="center" prop="reserveFour"/> <el-table-column label="采集数据名称" align="center" prop="reserveThree">
<el-table-column label="是否报警" align="center" prop="reserveFive"/>
<el-table-column label="上传人" align="center" prop="reserveSix"/>
<el-table-column label="上传时间" align="center" prop="reserveSeven">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveSeven, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <dict-tag :options="dict.type.tiewire_device_line_type" :value="scope.row.reserveThree"/>
</template>
</el-table-column>
<el-table-column label="压力值" align="center" prop="reserveFour"/>
<el-table-column label="压力波动" align="center" prop="reserveFive"/>
<el-table-column label="报警状态" align="center" prop="reserveSix"/>
<el-table-column label="压力阈值" align="center" prop="reserveSeven"/>
<el-table-column label="措施/建议" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="上传时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -131,24 +133,45 @@
<!-- 添加或修改AI识别算法开发对话框 --> <!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="识别类型" prop="reserveTwo"> <el-form-item label="轧辊编号" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入识别类型"/> <!-- <el-input v-model="form.reserveTwo" placeholder="请输入轧辊编号"/>-->
<el-select :disabled="disabled" v-model="form.reserveTwo" placeholder="请选择轧辊编号" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_name"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="识别例图" prop="reserveThree"> <el-form-item label="采集数据名称" prop="reserveThree">
<image-upload v-model="form.reserveThree"/> <el-select :disabled="disabled" v-model="form.reserveThree" placeholder="请选择采集数据名称" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="行为状态" prop="reserveFour"> <el-form-item label="压力值" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入行为状态"/> <el-input v-model="form.reserveFour" placeholder="请输入压力值"/>
</el-form-item> </el-form-item>
<el-form-item label="是否报警" prop="reserveFive"> <el-form-item label="压力波动参数" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入是否报警"/> <el-input v-model="form.reserveFive" placeholder="请输入压力波动参数"/>
</el-form-item> </el-form-item>
<el-form-item label="上传人" prop="reserveSix"> <el-form-item label="报警状态" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入上传人"/> <el-input v-model="form.reserveSix" placeholder="请输入报警状态"/>
</el-form-item> </el-form-item>
<el-form-item label="上传时间" prop="reserveSeven"> <el-form-item label="压力阈值" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入压力阈值"/>
</el-form-item>
<el-form-item label="措施/建议" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入措施/建议"/>
</el-form-item>
<el-form-item label="上传时间" prop="reserveNine">
<el-date-picker <el-date-picker
v-model="form.reserveSeven" v-model="form.reserveNine"
type="datetime" type="datetime"
placeholder="请选择时间" placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss "> format="yyyy-MM-dd HH:mm:ss ">
@ -174,6 +197,7 @@ import {
export default { export default {
name: "GodUniversalElectricMeter", name: "GodUniversalElectricMeter",
dicts: ['tiewire_device_line_name', 'tiewire_device_line_type'],
data() { data() {
return { return {
// //
@ -213,7 +237,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'pressures',
}, },
// //
form: {}, form: {},
@ -258,7 +282,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'pressures',
remark: null remark: null
}; };
this.resetForm("form"); this.resetForm("form");

View File

@ -1,35 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<!-- <el-form-item label="" prop="reserveOne">--> <el-form-item label="轧辊编号" prop="reserveEight">
<!-- <el-input--> <el-select v-model="queryParams.reserveTwo" placeholder="请选择轧辊编号" clearable>
<!-- v-model="queryParams.reserveOne"--> <el-option
<!-- placeholder="请输入"--> v-for="dict in dict.type.tiewire_device_line_name"
<!-- clearable--> :key="dict.value"
<!-- @keyup.enter.native="handleQuery"--> :label="dict.label"
<!-- />--> :value="dict.value"
<!-- </el-form-item>--> ></el-option>
<!-- <el-form-item label="" prop="reserveTwo">--> </el-select>
<!-- <el-input--> </el-form-item>
<!-- v-model="queryParams.reserveTwo"--> <el-form-item label="采集数据名称" prop="reserveThree">
<!-- placeholder="请输入"--> <el-select v-model="queryParams.reserveThree" placeholder="请选择采集数据名称" clearable>
<!-- clearable--> <el-option
<!-- @keyup.enter.native="handleQuery"--> v-for="dict in dict.type.tiewire_device_line_type"
<!-- />--> :key="dict.value"
<!-- </el-form-item>--> :label="dict.label"
<!-- <el-form-item label="" prop="reserveThree">--> :value="dict.value"
<!-- <el-input--> ></el-option>
<!-- v-model="queryParams.reserveThree"--> </el-select>
<!-- placeholder="请输入"--> </el-form-item>
<!-- clearable--> <el-form-item>
<!-- @keyup.enter.native="handleQuery"--> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<!-- />--> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item>--> </el-form>
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,19 +79,28 @@
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="识别编号" align="center" prop="reserveOne"/> <!-- <el-table-column label="轧辊编号" align="center" prop="reserveOne"/>-->
<el-table-column label="识别类型" align="center" prop="reserveTwo"/> <el-table-column label="轧辊编号" align="center" prop="reserveTwo">
<el-table-column label="识别例图" align="center" prop="reserveThree">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.reserveThree" :width="50" :height="50"/> <dict-tag :options="dict.type.tiewire_device_line_name" :value="scope.row.reserveTwo"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行为状态" align="center" prop="reserveFour"/> <el-table-column label="采集数据名称" align="center" prop="reserveThree">
<el-table-column label="是否报警" align="center" prop="reserveFive"/>
<el-table-column label="上传人" align="center" prop="reserveSix"/>
<el-table-column label="上传时间" align="center" prop="reserveSeven">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveSeven, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <dict-tag :options="dict.type.tiewire_device_line_type" :value="scope.row.reserveThree"/>
</template>
</el-table-column>
<el-table-column label="振动幅度" align="center" prop="reserveFour"/>
<el-table-column label="振动频率" align="center" prop="reserveFive"/>
<el-table-column label="振动速度" align="center" prop="reserveSix"/>
<el-table-column label="振动加速度" align="center" prop="reserveSeven"/>
<el-table-column label="相位角" align="center" prop="reserveTen"/>
<el-table-column label="共振频率" align="center" prop="reserveEleven"/>
<el-table-column label="峰-峰值" align="center" prop="reserveTwelve"/>
<el-table-column label="谐波分析" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="上传时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -131,24 +136,54 @@
<!-- 添加或修改AI识别算法开发对话框 --> <!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="识别类型" prop="reserveTwo"> <el-form-item label="轧辊编号" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入识别类型"/> <!-- <el-input v-model="form.reserveTwo" placeholder="请输入轧辊编号"/>-->
<el-select :disabled="disabled" v-model="form.reserveTwo" placeholder="请选择轧辊编号" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_name"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="识别例图" prop="reserveThree"> <el-form-item label="采集数据名称" prop="reserveThree">
<image-upload v-model="form.reserveThree"/> <el-select :disabled="disabled" v-model="form.reserveThree" placeholder="请选择采集数据名称" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="行为状态" prop="reserveFour"> <el-form-item label="振动幅度" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入行为状态"/> <el-input v-model="form.reserveFour" placeholder="请输入振动幅度"/>
</el-form-item> </el-form-item>
<el-form-item label="是否报警" prop="reserveFive"> <el-form-item label="振动频率参数" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入是否报警"/> <el-input v-model="form.reserveFive" placeholder="请输入振动频率参数"/>
</el-form-item> </el-form-item>
<el-form-item label="上传人" prop="reserveSix"> <el-form-item label="振动速度" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入上传人"/> <el-input v-model="form.reserveSix" placeholder="请输入振动速度"/>
</el-form-item> </el-form-item>
<el-form-item label="上传时间" prop="reserveSeven"> <el-form-item label="振动加速度" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入振动加速度"/>
</el-form-item>
<el-form-item label="相位角" prop="reserveTen">
<el-input v-model="form.reserveTen" placeholder="请输入相位角"/>
</el-form-item>
<el-form-item label="共振频率" prop="reserveEleven">
<el-input v-model="form.reserveEleven" placeholder="请输入共振频率"/>
</el-form-item>
<el-form-item label="峰-峰值" prop="reserveTwelve">
<el-input v-model="form.reserveTwelve" placeholder="请输入峰-峰值"/>
</el-form-item>
<el-form-item label="谐波分析" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入谐波分析"/>
</el-form-item>
<el-form-item label="上传时间" prop="reserveNine">
<el-date-picker <el-date-picker
v-model="form.reserveSeven" v-model="form.reserveNine"
type="datetime" type="datetime"
placeholder="请选择时间" placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss "> format="yyyy-MM-dd HH:mm:ss ">
@ -174,6 +209,7 @@ import {
export default { export default {
name: "GodUniversalElectricMeter", name: "GodUniversalElectricMeter",
dicts: ['tiewire_device_line_name', 'tiewire_device_line_type'],
data() { data() {
return { return {
// //
@ -213,7 +249,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'vibrationData',
}, },
// //
form: {}, form: {},
@ -258,7 +294,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'vibrationData',
remark: null remark: null
}; };
this.resetForm("form"); this.resetForm("form");

View File

@ -1,35 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
<!-- <el-form-item label="" prop="reserveOne">--> <el-form-item label="轧辊编号" prop="reserveEight">
<!-- <el-input--> <el-select v-model="queryParams.reserveTwo" placeholder="请选择轧辊编号" clearable>
<!-- v-model="queryParams.reserveOne"--> <el-option
<!-- placeholder="请输入"--> v-for="dict in dict.type.tiewire_device_line_name"
<!-- clearable--> :key="dict.value"
<!-- @keyup.enter.native="handleQuery"--> :label="dict.label"
<!-- />--> :value="dict.value"
<!-- </el-form-item>--> ></el-option>
<!-- <el-form-item label="" prop="reserveTwo">--> </el-select>
<!-- <el-input--> </el-form-item>
<!-- v-model="queryParams.reserveTwo"--> <el-form-item label="采集数据名称" prop="reserveThree">
<!-- placeholder="请输入"--> <el-select v-model="queryParams.reserveThree" placeholder="请选择采集数据名称" clearable>
<!-- clearable--> <el-option
<!-- @keyup.enter.native="handleQuery"--> v-for="dict in dict.type.tiewire_device_line_type"
<!-- />--> :key="dict.value"
<!-- </el-form-item>--> :label="dict.label"
<!-- <el-form-item label="" prop="reserveThree">--> :value="dict.value"
<!-- <el-input--> ></el-option>
<!-- v-model="queryParams.reserveThree"--> </el-select>
<!-- placeholder="请输入"--> </el-form-item>
<!-- clearable--> <el-form-item>
<!-- @keyup.enter.native="handleQuery"--> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<!-- />--> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item>--> </el-form>
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,19 +79,25 @@
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="识别编号" align="center" prop="reserveOne"/> <!-- <el-table-column label="轧辊编号" align="center" prop="reserveOne"/>-->
<el-table-column label="识别类型" align="center" prop="reserveTwo"/> <el-table-column label="轧辊编号" align="center" prop="reserveTwo">
<el-table-column label="识别例图" align="center" prop="reserveThree">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.reserveThree" :width="50" :height="50"/> <dict-tag :options="dict.type.tiewire_device_line_name" :value="scope.row.reserveTwo"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行为状态" align="center" prop="reserveFour"/> <el-table-column label="采集数据名称" align="center" prop="reserveThree">
<el-table-column label="是否报警" align="center" prop="reserveFive"/>
<el-table-column label="上传人" align="center" prop="reserveSix"/>
<el-table-column label="上传时间" align="center" prop="reserveSeven">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveSeven, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <dict-tag :options="dict.type.tiewire_device_line_type" :value="scope.row.reserveThree"/>
</template>
</el-table-column>
<el-table-column label="油液粘度" align="center" prop="reserveFour"/>
<el-table-column label="油液密度" align="center" prop="reserveFive"/>
<el-table-column label="温度补偿" align="center" prop="reserveSix"/>
<el-table-column label="标准和规范" align="center" prop="reserveSeven"/>
<el-table-column label="措施/建议" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="上传时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -131,24 +133,45 @@
<!-- 添加或修改AI识别算法开发对话框 --> <!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="识别类型" prop="reserveTwo"> <el-form-item label="轧辊编号" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入识别类型"/> <!-- <el-input v-model="form.reserveTwo" placeholder="请输入轧辊编号"/>-->
<el-select :disabled="disabled" v-model="form.reserveTwo" placeholder="请选择轧辊编号" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_name"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="识别例图" prop="reserveThree"> <el-form-item label="采集数据名称" prop="reserveThree">
<image-upload v-model="form.reserveThree"/> <el-select :disabled="disabled" v-model="form.reserveThree" placeholder="请选择采集数据名称" style="width: 100%">
<el-option
v-for="dict in dict.type.tiewire_device_line_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="行为状态" prop="reserveFour"> <el-form-item label="油液粘度" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入行为状态"/> <el-input v-model="form.reserveFour" placeholder="请输入油液粘度"/>
</el-form-item> </el-form-item>
<el-form-item label="是否报警" prop="reserveFive"> <el-form-item label="油液密度参数" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入是否报警"/> <el-input v-model="form.reserveFive" placeholder="请输入油液密度参数"/>
</el-form-item> </el-form-item>
<el-form-item label="上传人" prop="reserveSix"> <el-form-item label="温度补偿" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入上传人"/> <el-input v-model="form.reserveSix" placeholder="请输入温度补偿"/>
</el-form-item> </el-form-item>
<el-form-item label="上传时间" prop="reserveSeven"> <el-form-item label="标准和规范" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入标准和规范"/>
</el-form-item>
<el-form-item label="措施/建议" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入措施/建议"/>
</el-form-item>
<el-form-item label="上传时间" prop="reserveNine">
<el-date-picker <el-date-picker
v-model="form.reserveSeven" v-model="form.reserveNine"
type="datetime" type="datetime"
placeholder="请选择时间" placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss "> format="yyyy-MM-dd HH:mm:ss ">
@ -174,6 +197,7 @@ import {
export default { export default {
name: "GodUniversalElectricMeter", name: "GodUniversalElectricMeter",
dicts: ['tiewire_device_line_name', 'tiewire_device_line_type'],
data() { data() {
return { return {
// //
@ -213,7 +237,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'viscosity',
}, },
// //
form: {}, form: {},
@ -258,7 +282,7 @@ export default {
reserveThirteen: null, reserveThirteen: null,
reserveFourteen: null, reserveFourteen: null,
sysType: null, sysType: null,
moduleType: 'keyAreaPersonnel', moduleType: 'viscosity',
remark: null remark: null
}; };
this.resetForm("form"); this.resetForm("form");

View File

@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://117.73.11.84:9150/prod-api`, target: `http://localhost:8080`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''