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