正确的vibrationInstant二次

boardTest
zangch 10 months ago
parent f88c14db73
commit b3c0a1fcf9

@ -128,7 +128,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['ems/record:recordVibrateInstance:add']" v-hasPermi="['ems/record:recordVibrationInstant:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -139,7 +139,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['ems/record:recordVibrateInstance:edit']" v-hasPermi="['ems/record:recordVibrationInstant:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -150,7 +150,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['ems/record:recordVibrateInstance:remove']" v-hasPermi="['ems/record:recordVibrationInstant:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -160,13 +160,13 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['ems/record:recordVibrateInstance:export']" v-hasPermi="['ems/record:recordVibrationInstant:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="recordVibrateInstanceList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="recordVibrationInstantList" @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="objId" v-if="columns[0].visible"/>--> <!-- <el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>-->
<el-table-column label="采集时间" align="center" prop="collectTime" width="180" v-if="columns[1].visible"> <el-table-column label="采集时间" align="center" prop="collectTime" width="180" v-if="columns[1].visible">
@ -192,14 +192,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['ems/record:recordVibrateInstance:edit']" v-hasPermi="['ems/record:recordVibrationInstant:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['ems/record:recordVibrateInstance:remove']" v-hasPermi="['ems/record:recordVibrationInstant:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -282,13 +282,13 @@
</template> </template>
<script> <script>
import { listRecordVibrateInstance, getRecordVibrateInstance, delRecordVibrateInstance, addRecordVibrateInstance, updateRecordVibrateInstance } from "@/api/ems/record/recordVibrateInstance"; import { listRecordVibrationInstant, getRecordVibrationInstant, delRecordVibrationInstant, addRecordVibrationInstant, updateRecordVibrationInstant } from "@/api/ems/record/recordVibrationInstant";
import { getMonitorInfoTree, listBaseMonitorInfo } from '@/api/ems/base/baseMonitorInfo' import { getMonitorInfoTree, listBaseMonitorInfo } from '@/api/ems/base/baseMonitorInfo'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import {parseTime} from "@/utils/ruoyi"; import {parseTime} from "@/utils/ruoyi";
export default { export default {
name: "RecordVibrateInstance", name: "RecordVibrationInstant",
data() { data() {
return { return {
@ -308,7 +308,7 @@ export default {
// //
total: 0, total: 0,
// //
recordVibrateInstanceList: [], recordVibrationInstantList: [],
// //
title: "", title: "",
// //
@ -403,8 +403,8 @@ export default {
this.queryParams.params["beginRecodeTime"] = this.daterangeRecodeTime[0]; this.queryParams.params["beginRecodeTime"] = this.daterangeRecodeTime[0];
this.queryParams.params["endRecodeTime"] = this.daterangeRecodeTime[1]; this.queryParams.params["endRecodeTime"] = this.daterangeRecodeTime[1];
} }
listRecordVibrateInstance(this.queryParams).then(response => { listRecordVibrationInstant(this.queryParams).then(response => {
this.recordVibrateInstanceList = response.rows; this.recordVibrationInstantList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
@ -457,7 +457,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const objId = row.objId || this.ids const objId = row.objId || this.ids
getRecordVibrateInstance(objId).then(response => { getRecordVibrationInstant(objId).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改震动实时数据"; this.title = "修改震动实时数据";
@ -468,13 +468,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.objId != null) { if (this.form.objId != null) {
updateRecordVibrateInstance(this.form).then(response => { updateRecordVibrationInstant(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addRecordVibrateInstance(this.form).then(response => { addRecordVibrationInstant(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -487,7 +487,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const objIds = row.objId || this.ids; const objIds = row.objId || this.ids;
this.$modal.confirm('是否确认删除震动实时数据编号为"' + objIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除震动实时数据编号为"' + objIds + '"的数据项?').then(function() {
return delRecordVibrateInstance(objIds); return delRecordVibrationInstant(objIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -513,9 +513,9 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('ems/record/recordVibrateInstance/export', { this.download('ems/record/recordVibrationInstant/export', {
...this.queryParams ...this.queryParams
}, `recordVibrateInstance_${new Date().getTime()}.xlsx`) }, `recordVibrationInstant_${new Date().getTime()}.xlsx`)
} }
} }

Loading…
Cancel
Save